From 638b8b7ecad0f5343815c11bcd872670a2a1d6ba Mon Sep 17 00:00:00 2001 From: Sooyoung Ha Date: Tue, 23 Apr 2013 23:32:11 +0900 Subject: [PATCH] block all incoming calls when the incoming call barring is set --- packaging/vmodemd-emul.spec | 2 +- vmodem-x86.service | 1 + vmodem/server/server_tx_call.c | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/packaging/vmodemd-emul.spec b/packaging/vmodemd-emul.spec index 973dd36..863a152 100644 --- a/packaging/vmodemd-emul.spec +++ b/packaging/vmodemd-emul.spec @@ -1,6 +1,6 @@ #git:slp/pkgs/v/vmodem-daemon-emulator Name: vmodemd-emul -Version: 0.2.42 +Version: 0.2.43 Release: 1 Summary: Modem Emulator Group: System/ModemEmulator diff --git a/vmodem-x86.service b/vmodem-x86.service index 15496db..6116b1b 100644 --- a/vmodem-x86.service +++ b/vmodem-x86.service @@ -4,3 +4,4 @@ Description=VModem (x86) [Service] Type=simple ExecStart=/usr/bin/vmodem_x86 +Environment=VGSM_VERBOSE=12 diff --git a/vmodem/server/server_tx_call.c b/vmodem/server/server_tx_call.c index c818c62..8430fd6 100644 --- a/vmodem/server/server_tx_call.c +++ b/vmodem/server/server_tx_call.c @@ -364,6 +364,9 @@ int server_tx_call_incoming_noti( LXT_MESSAGE * packet ) // int call_exist = 0; // ÇöÀç call list¿¡, callÀÌ ¾ø´Ù¸é incoming noti Àü¼ÛÇÑ´Ù. unsigned short call_type; + int i; + call_barring_entry_t * resp_entry = get_call_barring_entry() ; + TRACE(MSGL_VGSM_INFO, "\n"); get_current_state_machine( &state ); @@ -428,6 +431,18 @@ int server_tx_call_incoming_noti( LXT_MESSAGE * packet ) // //090314 callback_callist(); + if(!resp_entry) + TRACE(MSGL_VGSM_INFO, "CB entry is NULL!!!\n"); + else { + for(i=0; i