c:637 Processing anonymous ->3184982 in context default 2017-10-11 13:59:51.329298 [DEBUG] switch_cpp.cpp:1365 [ASTPP] host: 127.0.0.1dbname: bt_astppuser: postgres password: gPcSzMkRO3 2017-10-11 13:59:51.329298 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7ff92406ad90 Connected. 2017-10-11 13:59:51.329298 [DEBUG] switch_cpp.cpp:1365 [ASTPP] host: 127.0.0.1dbname: bt_astppuser: postgres password: gPcSzMkRO3 2017-10-11 13:59:51.329298 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM system WHERE group_title IN ('global','opensips','callingcard') 2017-10-11 13:59:51.329298 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 3184982 2017-10-11 13:59:51.329298 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : anonymous / anonymous 2017-10-11 13:59:51.329298 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,B.id as accountid,B.number as account_code,A.from_number as did_number,A.to_number as to_number,A.reg_exp as reg_exp,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.from_number = '3184982' LIMIT 1 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound 2017-10-11 13:59:51.349288 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE (ip = '10.240.16.2/32' AND coalesce(prefix ,'')='' AND coalesce(from_callerid ,'')='') OR (ip = '10.240.16.2/32' AND (prefix = '3184982' OR prefix = '318498' OR prefix = '31849' OR prefix = '3184' OR prefix = '318' OR prefix = '31' OR prefix = '3' OR prefix ='--') AND 'nonymous' >= from_callerid AND 'nonymous' = from_callerid AND 'nonymous' = '2017-10-11 11:59:51' OR expiry = '1970-01-01 00:00:01') limit 1 2017-10-11 13:59:51.349288 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT * FROM packages as P inner join package_patterns as PKGPTR on P.id = PKGPTR.package_id WHERE (patterns = '^3184982.*' OR patterns = '^318498.*' OR patterns = '^31849.*' OR patterns = '^3184.*' OR patterns = '^318.*' OR patterns = '^31.*' OR patterns = '^3.*' OR patterns ='--') AND status = 0 AND pricelist_id = 32 ORDER BY LENGTH(PKGPTR.patterns) DESC LIMIT 1 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information =================== 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 461 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 9650044327 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 1 [0:prepaid,1:postpaid] 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 32 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] ======================================================== 2017-10-11 13:59:51.349288 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 32 AND status = 0 2017-10-11 13:59:51.349288 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,B.id as accountid,B.number as account_code,A.from_number as did_number,A.to_number as to_number,A.reg_exp as reg_exp,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.from_number = '3184982' LIMIT 1 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information =================== 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 368 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.0000000000 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.0000000000 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] comment : 3184982 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 461 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================ 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max length duration : 100 minutes 2017-10-11 13:59:51.349288 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = '461' OR id=461) AND status=0 AND deleted=0 AND (expiry >= '2017-10-11 11:59:51' OR expiry = '1970-01-01 00:00:01') limit 1 2017-10-11 13:59:51.349288 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 32 AND status = 0 2017-10-11 13:59:51.349288 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^3184982.*' OR pattern = '^318498.*' OR pattern = '^31849.*' OR pattern = '^3184.*' OR pattern = '^318.*' OR pattern = '^31.*' OR pattern = '^3.*' OR pattern ='--') AND status = 0 AND pricelist_id = 32 ORDER BY LENGTH(pattern) DESC,cost DESC LIMIT 1 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information =================== 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 167 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] comment : PTBW-CUST-FINCHOICE 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 461 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================ 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100 2017-10-11 13:59:51.349288 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:461 2017-10-11 13:59:51.349288 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML: 2017-10-11 13:59:51.349288 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7ff92406ad90 released. Dialplan: sofia/default/anonymous@160.242.81.210 parsing [default->3184982] continue=false Dialplan: sofia/default/anonymous@160.242.81.210 Regex (PASS) [3184982] destination_number(3184982) =~ /3184982/ break=on-false Dialplan: sofia/default/anonymous@160.242.81.210 Action set(effective_destination_number=3184982) Dialplan: sofia/default/anonymous@160.242.81.210 Action sched_hangup(+6000 normal_clearing) Dialplan: sofia/default/anonymous@160.242.81.210 Action set(callstart=2017-10-11 11:59:51) Dialplan: sofia/default/anonymous@160.242.81.210 Action set(hangup_after_bridge=true) Dialplan: sofia/default/anonymous@160.242.81.210 Action set(continue_on_fail=true) Dialplan: sofia/default/anonymous@160.242.81.210 Action set(account_id=461) Dialplan: sofia/default/anonymous@160.242.81.210 Action set(parent_id=0) Dialplan: sofia/default/anonymous@160.242.81.210 Action set(entity_id=3) Dialplan: sofia/default/anonymous@160.242.81.210 Action set(call_processed=internal) Dialplan: sofia/default/anonymous@160.242.81.210 Action set(call_direction=inbound) Dialplan: sofia/default/anonymous@160.242.81.210 Action set(accountname=PATTON4E01.KE.GBE.BW) Dialplan: sofia/default/anonymous@160.242.81.210 Action set(origination_rates_did=ID:368|CODE:^.3184982.*|DESTINATION:3184982|CONNECTIONCOST:0.0000000000|INCLUDEDSECONDS:0|COST:0.0000000000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|ACCID:461) Dialplan: sofia/default/anonymous@160.242.81.210 Action set(origination_rates=ID:167|CODE:^3184982.*|DESTINATION:PTBW-CUST-FINCHOICE |CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:32|MARKUP:0|ACCID:461) Dialplan: sofia/default/anonymous@160.242.81.210 Action set(receiver_accid=461) Dialplan: sofia/default/anonymous@160.242.81.210 Action limit(db 3184982 did_3184982 30 !SWITCH_CONGESTION) Dialplan: sofia/default/anonymous@160.242.81.210 Action set(calltype=OTHER) |--- Dialplan: Processing recursive conditions level:1 [3184982_recur_1] require-nested=TRUE |--- Dialplan: sofia/default/anonymous@160.242.81.210 Regex (FAIL) [3184982_recur_1] destination_number(3184982) =~ /^(\d+)$ / break=on-false |--- Dialplan: sofia/default/anonymous@160.242.81.210 ANTI-Action bridge(sofia/default/26779118100@172.20.0.11) 2017-10-11 13:59:51.349288 [DEBUG] switch_core_state_machine.c:286 (sofia/default/anonymous@160.242.81.210) State Change CS_ROUTING -> CS_EXECUTE 2017-10-11 13:59:51.349288 [DEBUG] switch_core_state_machine.c:643 (sofia/default/anonymous@160.242.81.210) State ROUTING going to sleep 2017-10-11 13:59:51.349288 [DEBUG] switch_core_state_machine.c:584 (sofia/default/anonymous@160.242.81.210) Running State Change CS_EXECUTE (Cur 7 Tot 19089) 2017-10-11 13:59:51.349288 [DEBUG] switch_core_state_machine.c:650 (sofia/default/anonymous@160.242.81.210) State EXECUTE 2017-10-11 13:59:51.349288 [DEBUG] mod_sofia.c:198 sofia/default/anonymous@160.242.81.210 SOFIA EXECUTE 2017-10-11 13:59:51.349288 [DEBUG] switch_core_state_machine.c:328 sofia/default/anonymous@160.242.81.210 Standard EXECUTE EXECUTE sofia/default/anonymous@160.242.81.210 set(effective_destination_number=3184982) 2017-10-11 13:59:51.349288 [DEBUG] mod_dptools.c:1548 SET sofia/default/anonymous@160.242.81.210 [effective_destination_number]=[3184982] EXECUTE sofia/default/anonymous@160.242.81.210 sched_hangup(+6000 normal_clearing) 2017-10-11 13:59:51.349288 [DEBUG] switch_scheduler.c:249 Added task 7846 switch_ivr_schedule_hangup (2796e073-5e28-436c-84a2-821b229fdd8c) to run at 1507729191 EXECUTE sofia/default/anonymous@160.242.81.210 set(callstart=2017-10-11 11:59:51) 2017-10-11 13:59:51.349288 [DEBUG] mod_dptools.c:1548 SET sofia/default/anonymous@160.242.81.210 [callstart]=[2017-10-11 11:59:51] EXECUTE sofia/default/anonymous@160.242.81.210 set(hangup_after_bridge=true) 2017-10-11 13:59:51.349288 [DEBUG] mod_dptools.c:1548 SET sofia/default/anonymous@160.242.81.210 [hangup_after_bridge]=[true] EXECUTE sofia/default/anonymous@160.242.81.210 set(continue_on_fail=true) 2017-10-11 13:59:51.349288 [DEBUG] mod_dptools.c:1548 SET sofia/default/anonymous@160.242.81.210 [continue_on_fail]=[true] EXECUTE sofia/default/anonymous@160.242.81.210 set(account_id=461) 2017-10-11 13:59:51.349288 [DEBUG] mod_dptools.c:1548 SET sofia/default/anonymous@160.242.81.210 [account_id]=[461] EXECUTE sofia/default/anonymous@160.242.81.210 set(parent_id=0) 2017-10-11 13:59:51.349288 [DEBUG] mod_dptools.c:1548 SET sofia/default/anonymous@160.242.81.210 [parent_id]=[0] EXECUTE sofia/default/anonymous@160.242.81.210 set(entity_id=3) 2017-10-11 13:59:51.349288 [DEBUG] mod_dptools.c:1548 SET sofia/default/anonymous@160.242.81.210 [entity_id]=[3] EXECUTE sofia/default/anonymous@160.242.81.210 set(call_processed=internal) 2017-10-11 13:59:51.349288 [DEBUG] mod_dptools.c:1548 SET sofia/default/anonymous@160.242.81.210 [call_processed]=[internal] EXECUTE sofia/default/anonymous@160.242.81.210 set(call_direction=inbound) 2017-10-11 13:59:51.349288 [DEBUG] mod_dptools.c:1548 SET sofia/default/anonymous@160.242.81.210 [call_direction]=[inbound] EXECUTE sofia/default/anonymous@160.242.81.210 set(accountname=PATTON4E01.KE.GBE.BW) 2017-10-11 13:59:51.349288 [DEBUG] mod_dptools.c:1548 SET sofia/default/anonymous@160.242.81.210 [accountname]=[PATTON4E01.KE.GBE.BW] EXECUTE sofia/default/anonymous@160.242.81.210 set(origination_rates_did=ID:368|CODE:^.3184982.*|DESTINATION:3184982|CONNECTIONCOST:0.0000000000|INCLUDEDSECONDS:0|COST:0.0000000000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|ACCID:461) 2017-10-11 13:59:51.349288 [DEBUG] mod_dptools.c:1548 SET sofia/default/anonymous@160.242.81.210 [origination_rates_did]=[ID:368|CODE:^.3184982.*|DESTINATION:3184982|CONNECTIONCOST:0.0000000000|INCLUDEDSECONDS:0|COST:0.0000000000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|ACCID:461] EXECUTE sofia/default/anonymous@160.242.81.210 set(origination_rates=ID:167|CODE:^3184982.*|DESTINATION:PTBW-CUST-FINCHOICE |CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:32|MARKUP:0|ACCID:461) 2017-10-11 13:59:51.349288 [DEBUG] mod_dptools.c:1548 SET sofia/default/anonymous@160.242.81.210 [origination_rates]=[ID:167|CODE:^3184982.*|DESTINATION:PTBW-CUST-FINCHOICE |CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:32|MARKUP:0|ACCID:461] EXECUTE sofia/default/anonymous@160.242.81.210 set(receiver_accid=461) 2017-10-11 13:59:51.349288 [DEBUG] mod_dptools.c:1548 SET sofia/default/anonymous@160.242.81.210 [receiver_accid]=[461] EXECUTE sofia/default/anonymous@160.242.81.210 limit(db 3184982 did_3184982 30 !SWITCH_CONGESTION) 2017-10-11 13:59:51.349288 [DEBUG] switch_limit.c:126 incr called: 3184982_did_3184982 max:30, interval:0 2017-10-11 13:59:51.349288 [DEBUG] mod_db.c:194 Usage for 3184982_did_3184982 is now 1/30 EXECUTE sofia/default/anonymous@160.242.81.210 set(calltype=OTHER) 2017-10-11 13:59:51.349288 [DEBUG] mod_dptools.c:1548 SET sofia/default/anonymous@160.242.81.210 [calltype]=[OTHER] EXECUTE sofia/default/anonymous@160.242.81.210 bridge(sofia/default/26779118100@172.20.0.11) 2017-10-11 13:59:51.369287 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables 2017-10-11 13:59:51.369287 [NOTICE] switch_channel.c:1104 New Channel sofia/default/26779118100@172.20.0.11 [e13252cc-26d8-4e56-8496-d7924fa698ff] 2017-10-11 13:59:51.369287 [DEBUG] mod_sofia.c:4819 (sofia/default/26779118100@172.20.0.11) State Change CS_NEW -> CS_INIT 2017-10-11 13:59:51.369287 [DEBUG] switch_core_state_machine.c:584 (sofia/default/26779118100@172.20.0.11) Running State Change CS_INIT (Cur 8 Tot 19090) 2017-10-11 13:59:51.369287 [DEBUG] switch_core_state_machine.c:627 (sofia/default/26779118100@172.20.0.11) State INIT 2017-10-11 13:59:51.369287 [DEBUG] mod_sofia.c:90 sofia/default/26779118100@172.20.0.11 SOFIA INIT 2017-10-11 13:59:51.369287 [DEBUG] sofia_glue.c:1295 sofia/default/26779118100@172.20.0.11 sending invite version: 1.6.19 git 7a77e0b 2017-07-13 12:01:45Z 64bit Local SDP: v=0 o=FreeSWITCH 1507698839 1507698840 IN IP4 160.242.81.211 s=FreeSWITCH c=IN IP4 160.242.81.211 t=0 0 m=audio 24352 RTP/AVP 0 8 18 102 3 9 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:18 G729/8000 a=rtpmap:102 AMR/8000 a=rtpmap:3 GSM/8000 a=rtpmap:9 G722/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv 2017-10-11 13:59:51.369287 [DEBUG] switch_core_state_machine.c:40 sofia/default/26779118100@172.20.0.11 Standard INIT 2017-10-11 13:59:51.369287 [DEBUG] switch_core_state_machine.c:48 (sofia/default/26779118100@172.20.0.11) State Change CS_INIT -> CS_ROUTING 2017-10-11 13:59:51.369287 [DEBUG] switch_core_state_machine.c:627 (sofia/default/26779118100@172.20.0.11) State INIT going to sleep 2017-10-11 13:59:51.369287 [DEBUG] switch_core_state_machine.c:584 (sofia/default/26779118100@172.20.0.11) Running State Change CS_ROUTING (Cur 8 Tot 19090) 2017-10-11 13:59:51.369287 [DEBUG] sofia.c:7084 Channel sofia/default/26779118100@172.20.0.11 entering state [calling][0] 2017-10-11 13:59:51.369287 [DEBUG] switch_core_state_machine.c:643 (sofia/default/26779118100@172.20.0.11) State ROUTING 2017-10-11 13:59:51.369287 [DEBUG] mod_sofia.c:143 sofia/default/26779118100@172.20.0.11 SOFIA ROUTING 2017-10-11 13:59:51.369287 [DEBUG] switch_ivr_originate.c:67 (sofia/default/26779118100@172.20.0.11) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2017-10-11 13:59:51.369287 [DEBUG] switch_core_state_machine.c:643 (sofia/default/26779118100@172.20.0.11) State ROUTING going to sleep 2017-10-11 13:59:51.369287 [DEBUG] switch_core_state_machine.c:584 (sofia/default/26779118100@172.20.0.11) Running State Change CS_CONSUME_MEDIA (Cur 8 Tot 19090) 2017-10-11 13:59:51.369287 [DEBUG] switch_core_state_machine.c:662 (sofia/default/26779118100@172.20.0.11) State CONSUME_MEDIA 2017-10-11 13:59:51.369287 [DEBUG] switch_core_state_machine.c:662 (sofia/default/26779118100@172.20.0.11) State CONSUME_MEDIA going to sleep 2017-10-11 13:59:51.429298 [DEBUG] sofia.c:7084 Channel sofia/default/26779118100@172.20.0.11 entering state [completing][200] 2017-10-11 13:59:51.429298 [DEBUG] sofia.c:7094 Remote SDP: v=0 o=root 1547127708 1547127708 IN IP4 172.20.0.11 s=Asterisk PBX 1.8.28-cert4 c=IN IP4 172.20.0.11 t=0 0 m=audio 15722 RTP/AVP 18 101 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 2017-10-11 13:59:51.429298 [DEBUG] sofia.c:7084 Channel sofia/default/26779118100@172.20.0.11 entering state [ready][200] 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1] 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1] 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G729:18:8000:20:8000:1] 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:4478 Bah HUMBUG! Sticking with G729@8000h@20i 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [G729:18:8000:20:8000:1] ++++ is saved as a match 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[AMR:96:8000:20:12200:1] 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[GSM:3:8000:20:13200:1] 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G729:18:8000:20:8000:1]/[G722:9:8000:20:64000:1] 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000 2017-10-11 13:59:51.429298 [DEBUG] mod_sangoma_codec.c:327 Sangoma init called (encoding = 1, decoding = 1, iana = 18) 2017-10-11 13:59:51.429298 [DEBUG] mod_sangoma_codec.c:379 Sangoma init done for codec G729/Sangoma G729, iana = 18 2017-10-11 13:59:51.429298 [DEBUG] mod_sangoma_codec.c:327 Sangoma init called (encoding = 1, decoding = 1, iana = 18) 2017-10-11 13:59:51.429298 [DEBUG] mod_sangoma_codec.c:379 Sangoma init done for codec G729/Sangoma G729, iana = 18 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/26779118100@172.20.0.11 G729/8000 20 ms 160 samples 8000 bits 1 channels 2017-10-11 13:59:51.429298 [DEBUG] switch_core_codec.c:111 sofia/default/26779118100@172.20.0.11 Original read codec set to G729:18 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:4767 sofia/default/26779118100@172.20.0.11 Set 2833 dtmf send payload to 101 recv payload to 101 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/26779118100@172.20.0.11] 160.242.81.211 port 24352 -> 172.20.0.11 port 15722 codec: 18 ms: 20 2017-10-11 13:59:51.429298 [DEBUG] switch_rtp.c:4133 Not using a timer 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:7179 sofia/default/26779118100@172.20.0.11 Set 2833 dtmf send payload to 101 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:7186 sofia/default/26779118100@172.20.0.11 Set 2833 dtmf receive payload to 101 2017-10-11 13:59:51.429298 [DEBUG] switch_core_media.c:7209 sofia/default/26779118100@172.20.0.11 Set rtp dtmf delay to 40 2017-10-11 13:59:51.429298 [NOTICE] sofia.c:8218 Channel [sofia/default/26779118100@172.20.0.11] has been answered 2017-10-11 13:59:51.429298 [DEBUG] switch_channel.c:3773 (sofia/default/26779118100@172.20.0.11) Callstate Change DOWN -> ACTIVE 2017-10-11 13:59:51.449291 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/anonymous@160.242.81.210] 160.242.81.211 port 23184 -> 10.240.16.2 port 5264 codec: 0 ms: 20 2017-10-11 13:59:51.449291 [DEBUG] switch_rtp.c:4133 Not using a timer 2017-10-11 13:59:51.449291 [DEBUG] switch_core_media.c:7179 sofia/default/anonymous@160.242.81.210 Set 2833 dtmf send payload to 101 2017-10-11 13:59:51.449291 [DEBUG] switch_core_media.c:7186 sofia/default/anonymous@160.242.81.210 Set 2833 dtmf receive payload to 101 2017-10-11 13:59:51.449291 [DEBUG] switch_core_media.c:7209 sofia/default/anonymous@160.242.81.210 Set rtp dtmf delay to 40 2017-10-11 13:59:51.449291 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/anonymous@160.242.81.210: v=0 o=FreeSWITCH 1507700007 1507700008 IN IP4 160.242.81.211 s=FreeSWITCH c=IN IP4 160.242.81.211 t=0 0 m=audio 23184 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv 2017-10-11 13:59:51.449291 [NOTICE] switch_ivr_originate.c:3647 Channel [sofia/default/anonymous@160.242.81.210] has been answered 2017-10-11 13:59:51.449291 [DEBUG] switch_channel.c:3773 (sofia/default/anonymous@160.242.81.210) Callstate Change RINGING -> ACTIVE 2017-10-11 13:59:51.449291 [DEBUG] sofia.c:7084 Channel sofia/default/anonymous@160.242.81.210 entering state [completed][200] 2017-10-11 13:59:51.449291 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/26779118100@172.20.0.11] 2017-10-11 13:59:51.449291 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/26779118100@172.20.0.11) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA 2017-10-11 13:59:51.449291 [DEBUG] switch_core_state_machine.c:584 (sofia/default/26779118100@172.20.0.11) Running State Change CS_EXCHANGE_MEDIA (Cur 8 Tot 19090) 2017-10-11 13:59:51.449291 [DEBUG] switch_core_state_machine.c:653 (sofia/default/26779118100@172.20.0.11) State EXCHANGE_MEDIA 2017-10-11 13:59:51.449291 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA 2017-10-11 13:59:51.469300 [DEBUG] sofia.c:7084 Channel sofia/default/anonymous@160.242.81.210 entering state [ready][200] 2017-10-11 13:59:51.529301 [DEBUG] switch_rtp.c:7271 Correct audio ip/port confirmed. 2017-10-11 13:59:51.529301 [DEBUG] mod_sangoma_codec.c:1114 sngtc_get_existing_rtp_session 2017-10-11 13:59:51.529301 [DEBUG] mod_sangoma_codec.c:1114 sngtc_get_free_rtp_session 2017-10-11 13:59:51.529301 [DEBUG] mod_sangoma_codec.c:224 New allocated port 28532 for IP 160.242.81.211/160.242.81.211 2017-10-11 13:59:51.529301 [DEBUG] mod_sangoma_codec.c:224 New allocated port 28542 for IP 160.242.81.211/160.242.81.211 2017-10-11 13:59:51.529301 [DEBUG] mod_sangoma_codec.c:1114 sngtc_create_transcoding_session: Created session RTP ID = 0x000100CB 2017-10-11 13:59:51.529301 [INFO] mod_sangoma_codec.c:282 Creating RTP session for host (160.242.81.211/28532) vocallo(10.147.255.150/15330) Iana=0 CodecId=10 ms=20000 idx=32252 2017-10-11 13:59:51.529301 [DEBUG] switch_rtp.c:4133 Not using a timer 2017-10-11 13:59:51.549290 [INFO] mod_sangoma_codec.c:282 Creating RTP session for host (160.242.81.211/28542) vocallo(10.147.255.150/15332) Iana=10 CodecId=30 ms=20000 idx=32252 2017-10-11 13:59:51.549290 [DEBUG] switch_rtp.c:4133 Not using a timer 2017-10-11 13:59:51.549290 [DEBUG] mod_sangoma_codec.c:1114 sngtc_get_existing_rtp_session 2017-10-11 13:59:51.549290 [DEBUG] mod_sangoma_codec.c:1114 sngtc_get_free_rtp_session 2017-10-11 13:59:51.549290 [DEBUG] mod_sangoma_codec.c:224 New allocated port 16762 for IP 160.242.81.211/160.242.81.211 2017-10-11 13:59:51.549290 [DEBUG] mod_sangoma_codec.c:224 New allocated port 16778 for IP 160.242.81.211/160.242.81.211 2017-10-11 13:59:51.569298 [DEBUG] mod_sangoma_codec.c:1114 sngtc_create_transcoding_session: Created session RTP ID = 0x000100CC 2017-10-11 13:59:51.569298 [INFO] mod_sangoma_codec.c:282 Creating RTP session for host (160.242.81.211/16762) vocallo(10.147.255.150/15334) Iana=10 CodecId=30 ms=20000 idx=32255 2017-10-11 13:59:51.569298 [DEBUG] switch_rtp.c:4133 Not using a timer 2017-10-11 13:59:51.569298 [INFO] mod_sangoma_codec.c:282 Creating RTP session for host (160.242.81.211/16778) vocallo(10.147.255.150/15336) Iana=18 CodecId=50 ms=20000 idx=32255 2017-10-11 13:59:51.569298 [DEBUG] switch_rtp.c:4133 Not using a timer 2017-10-11 13:59:51.569298 [DEBUG] mod_sangoma_codec.c:642 No output from sangoma encoder 2017-10-11 13:59:51.569298 [DEBUG] mod_sangoma_codec.c:642 No output from sangoma encoder 2017-10-11 13:59:51.569298 [DEBUG] mod_sangoma_codec.c:642 No output from sangoma encoder 2017-10-11 13:59:51.569298 [DEBUG] mod_sangoma_codec.c:802 Encoder Rx queue for RTP session 32248 is now 2, windex = 0, rindex = 2 2017-10-11 13:59:51.589298 [DEBUG] mod_sangoma_codec.c:642 No output from sangoma encoder 2017-10-11 13:59:51.609300 [DEBUG] mod_sangoma_codec.c:802 Encoder Rx queue for RTP session 32252 is now 1, windex = 1, rindex = 0 2017-10-11 13:59:51.609300 [DEBUG] mod_sangoma_codec.c:642 No output from sangoma encoder 2017-10-11 13:59:51.629300 [DEBUG] mod_sangoma_codec.c:606 Encoder Rx queue for RTP session 32255 is now 1, windex = 1, rindex = 0 2017-10-11 13:59:52.649298 [DEBUG] switch_rtp.c:7271 Correct audio ip/port confirmed. 2017-10-11 13:59:52.649298 [DEBUG] mod_sangoma_codec.c:1114 sngtc_get_existing_rtp_session 2017-10-11 13:59:52.649298 [DEBUG] mod_sangoma_codec.c:1114 GOT EXISING SESSION ! 2017-10-11 13:59:52.649298 [DEBUG] mod_sangoma_codec.c:1114 sngtc_get_existing_rtp_session 2017-10-11 13:59:52.649298 [DEBUG] mod_sangoma_codec.c:1114 GOT EXISING SESSION ! 2017-10-11 13:59:52.649298 [DEBUG] mod_sangoma_codec.c:642 No output from sangoma encoder 2017-10-11 13:59:52.669288 [DEBUG] mod_sangoma_codec.c:802 Encoder Rx queue for RTP session 32254 is now 1, windex = 1, rindex = 0 2017-10-11 13:59:52.669288 [DEBUG] mod_sangoma_codec.c:606 Encoder Rx queue for RTP session 32253 is now 1, windex = 1, rindex = 0 2017-10-11 13:59:54.089299 [DEBUG] mod_sangoma_codec.c:802 Encoder Rx queue for RTP session 32254 is now 2, windex = 0, rindex = 2 2017-10-11 13:59:54.089299 [DEBUG] mod_sangoma_codec.c:606 Encoder Rx queue for RTP session 32253 is now 2, windex = 0, rindex = 2 2017-10-11 13:59:54.849299 [DEBUG] mod_sangoma_codec.c:802 Encoder Rx queue for RTP session 32254 is now 3, windex = 1, rindex = 2 2017-10-11 13:59:54.849299 [DEBUG] mod_sangoma_codec.c:802 Encoder Rx queue for RTP session 32254 is now 4, windex = 2, rindex = 2 2017-10-11 13:59:54.849299 [DEBUG] mod_sangoma_codec.c:606 Encoder Rx queue for RTP session 32253 is now 3, windex = 1, rindex = 2 2017-10-11 13:59:54.849299 [DEBUG] mod_sangoma_codec.c:606 Encoder Rx queue for RTP session 32253 is now 4, windex = 2, rindex = 2 2017-10-11 13:59:57.869289 [DEBUG] sofia.c:7084 Channel sofia/default/74202588 entering state [completing][200] 2017-10-11 13:59:57.869289 [DEBUG] sofia.c:7091 Duplicate SDP v=0 o=HuaweiSoftx3000 1074865824 1074865824 IN IP4 10.1.8.180 s=SipCall c=IN IP4 10.1.8.70 t=0 0 m=audio 2496 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=ptime:20 2017-10-11 13:59:57.869289 [DEBUG] sofia.c:7084 Channel sofia/default/74202588 entering state [ready][200] 2017-10-11 13:59:57.869289 [NOTICE] sofia.c:8159 Channel [sofia/default/74202588] has been answered 2017-10-11 13:59:57.869289 [DEBUG] switch_channel.c:3773 (sofia/default/74202588) Callstate Change RINGING -> ACTIVE 2017-10-11 13:59:57.889288 [DEBUG] switch_core_media.c:6861 Audio params are unchanged for sofia/default/anonymous@160.242.81.210. 2017-10-11 13:59:57.889288 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/anonymous@160.242.81.210: v=0 o=FreeSWITCH 1507692103 1507692105 IN IP4 160.242.81.211 s=FreeSWITCH c=IN IP4 160.242.81.211 t=0 0 m=audio 31068 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv 2017-10-11 13:59:57.889288 [NOTICE] switch_ivr_bridge.c:623 Channel [sofia/default/anonymous@160.242.81.210] has been answered 2017-10-11 13:59:57.889288 [DEBUG] switch_channel.c:3773 (sofia/default/anonymous@160.242.81.210) Callstate Change EARLY -> ACTIVE 2017-10-11 13:59:57.889288 [DEBUG] sofia.c:7084 Channel sofia/default/anonymous@160.242.81.210 entering state [completed][200] 2017-10-11 13:59:57.929287 [DEBUG] switch_rtp.c:7271 Correct audio ip/port confirmed. 2017-10-11 13:59:57.929287 [DEBUG] mod_sangoma_codec.c:802 Encoder Rx queue for RTP session 32246 is now 2, windex = 2, rindex = 0 2017-10-11 13:59:57.929287 [DEBUG] mod_sangoma_codec.c:802 Encoder Rx queue for RTP session 32246 is now 3, windex = 3, rindex = 0 2017-10-11 13:59:57.929287 [DEBUG] mod_sangoma_codec.c:606 Encoder Rx queue for RTP session 32245 is now 2, windex = 2, rindex = 0 2017-10-11 13:59:57.929287 [DEBUG] mod_sangoma_codec.c:606 Encoder Rx queue for RTP session 32245 is now 3, windex = 3, rindex = 0 2017-10-11 13:59:57.949290 [DEBUG] sofia.c:7084 Channel sofia/default/anonymous@160.242.81.210 entering state [ready][200] 2017-10-11 13:59:57.949290 [DEBUG] switch_rtp.c:7271 Correct audio ip/port confirmed. 2017-10-11 13:59:57.949290 [DEBUG] mod_sangoma_codec.c:802 Encoder Rx queue for RTP session 32244 is now 3, windex = 2, rindex = 3 2017-10-11 13:59:57.949290 [DEBUG] mod_sangoma_codec.c:802 Encoder Rx queue for RTP session 32244 is now 4, windex = 3, rindex = 3 2017-10-11 13:59:57.949290 [DEBUG] mod_sangoma_codec.c:606 Encoder Rx queue for RTP session 32247 is now 3, windex = 1, rindex = 2 2017-10-11 13:59:57.949290 [DEBUG] mod_sangoma_codec.c:606 Encoder Rx queue for RTP session 32247 is now 4, windex = 2, rindex = 2 2017-10-11 14:00:13.849297 [DEBUG] switch_rtp.c:7497 RTP RECV DTMF 2:880 2017-10-11 14:00:13.849297 [INFO] switch_channel.c:515 RECV DTMF 2:880 2017-10-11 14:00:13.849297 [DEBUG] switch_rtp.c:5235 Send start packet for [2] ts=14215320 dur=160/160/880 seq=15906 lw=14215320 2017-10-11 14:00:13.849297 [DEBUG] switch_rtp.c:5134 Send middle packet for [2] ts=14215320 dur=320/320/880 seq=15907 lw=14215480 2017-10-11 14:00:13.869297 [DEBUG] mod_sangoma_codec.c:802 Encoder Rx queue for RTP session 32252 is now 2, windex = 2, rindex = 0 2017-10-11 14:00:13.869297 [DEBUG] mod_sangoma_codec.c:606 Encoder Rx queue for RTP session 32255 is now 2, windex = 1, rindex = 3 2017-10-11 14:00:13.869297 [DEBUG] switch_rtp.c:5134 Send middle packet for [2] ts=14215320 dur=480/480/880 seq=15908 lw=14215640 2017-10-11 14:00:13.869297 [DEBUG] switch_rtp.c:5134 Send middle packet for [2] ts=14215320 dur=640/640/880 seq=15909 lw=14215800 2017-10-11 14:00:13.869297 [DEBUG] switch_rtp.c:5134 Send middle packet for [2] ts=14215320 dur=800/800/880 seq=15910 lw=14215960 2017-10-11 14:00:13.869297 [DEBUG] switch_rtp.c:5134 Send end packet for [2] ts=14215320 dur=960/960/880 seq=15911 lw=14215960 2017-10-11 14:00:13.869297 [DEBUG] switch_rtp.c:5134 Send end packet for [2] ts=14215320 dur=960/960/880 seq=15912 lw=14215960 2017-10-11 14:00:13.869297 [DEBUG] switch_rtp.c:5134 Send end packet for [2] ts=14215320 dur=960/960/880 seq=15913 lw=14215960 2017-10-11 14:00:13.869297 [DEBUG] switch_rtp.c:5082 Queue digit delay of 40ms 2017-10-11 14:00:27.729299 [NOTICE] switch_channel.c:1104 New Channel sofia/default/anonymous@160.242.81.210 [cd5ece29-b787-4874-a39e-6c0e7d8cfd3b] 2017-10-11 14:00:27.729299 [DEBUG] switch_core_state_machine.c:584 (sofia/default/anonymous@160.242.81.210) Running State Change CS_NEW (Cur 9 Tot 19091) 2017-10-11 14:00:27.729299 [DEBUG] sofia.c:9873 sofia/default/anonymous@160.242.81.210 receiving invite from 160.242.81.210:5060 version: 1.6.19 git 7a77e0b 2017-07-13 12:01:45Z 64bit 2017-10-11 14:00:27.729299 [DEBUG] sofia.c:9989 IP 160.242.81.210 Approved by acl "default[]". Access Granted. 2017-10-11 14:00:27.729299 [DEBUG] sofia.c:7084 Channel sofia/default/anonymous@160.242.81.210 entering state [received][100] 2017-10-11 14:00:27.729299 [DEBUG] sofia.c:7094 Remote SDP: v=0 o=MxSIP 0 30803 IN IP4 160.242.83.122 s=SIP Call c=IN IP4 160.242.83.122 t=0 0 m=audio 5098 RTP/AVP 8 0 101 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4478 Bah HUMBUG! Sticking with PCMA@8000h@20i 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1] 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[AMR:96:8000:20:12200:1] 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[GSM:3:8000:20:13200:1] 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1] 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4478 Bah HUMBUG! Sticking with PCMU@8000h@20i 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1] 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[AMR:96:8000:20:12200:1] 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[GSM:3:8000:20:13200:1] 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1] 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000 2017-10-11 14:00:27.729299 [DEBUG] mod_sangoma_codec.c:327 Sangoma init called (encoding = 1, decoding = 1, iana = 0) 2017-10-11 14:00:27.729299 [DEBUG] mod_sangoma_codec.c:379 Sangoma init done for codec PCMU/Sangoma PCMU, iana = 0 2017-10-11 14:00:27.729299 [DEBUG] mod_sangoma_codec.c:327 Sangoma init called (encoding = 1, decoding = 1, iana = 0) 2017-10-11 14:00:27.729299 [DEBUG] mod_sangoma_codec.c:379 Sangoma init done for codec PCMU/Sangoma PCMU, iana = 0 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/anonymous@160.242.81.210 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2017-10-11 14:00:27.729299 [DEBUG] switch_core_codec.c:111 sofia/default/anonymous@160.242.81.210 Original read codec set to PCMU:0 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000 2017-10-11 14:00:27.729299 [DEBUG] switch_core_media.c:4767 sofia/default/anonymous@160.242.81.210 Set 2833 dtmf send payload to 101 recv payload to 101 2017-10-11 14:00:27.729299 [DEBUG] sofia.c:7507 (sofia/default/anonymous@160.242.81.210) State Change CS_NEW -> CS_INIT 2017-10-11 14:00:27.729299 [DEBUG] switch_core_state_machine.c:603 (sofia/default/anonymous@160.242.81.210) State NEW 2017-10-11 14:00:27.729299 [DEBUG] switch_core_state_machine.c:584 (sofia/default/anonymous@160.242.81.210) Running State Change CS_INIT (Cur 9 Tot 19091) 2017-10-11 14:00:27.729299 [DEBUG] switch_core_state_machine.c:627 (sofia/default/anonymous@160.242.81.210) State INIT 2017-10-11 14:00:27.729299 [DEBUG] mod_sofia.c:90 sofia/default/anonymous@160.242.81.210 SOFIA INIT 2017-10-11 14:00:27.729299 [DEBUG] switch_core_state_machine.c:40 sofia/default/anonymous@160.242.81.210 Standard INIT 2017-10-11 14:00:27.729299 [DEBUG] switch_core_state_machine.c:48 (sofia/default/anonymous@160.242.81.210) State Change CS_INIT -> CS_ROUTING 2017-10-11 14:00:27.729299 [DEBUG] switch_core_state_machine.c:627 (sofia/default/anonymous@160.242.81.210) State INIT going to sleep 2017-10-11 14:00:27.729299 [DEBUG] switch_core_state_machine.c:584 (sofia/default/anonymous@160.242.81.210) Running State Change CS_ROUTING (Cur 9 Tot 19091) 2017-10-11 14:00:27.729299 [DEBUG] switch_channel.c:2249 (sofia/default/anonymous@160.242.81.210) Callstate Change DOWN -> RINGING 2017-10-11 14:00:27.729299 [DEBUG] switch_core_state_machine.c:643 (sofia/default/anonymous@160.242.81.210) State ROUTING 2017-10-11 14:00:27.729299 [DEBUG] mod_sofia.c:143 sofia/default/anonymous@160.242.81.210 SOFIA ROUTING 2017-10-11 14:00:27.729299 [DEBUG] switch_core_state_machine.c:236 sofia/default/anonymous@160.242.81.210 Standard ROUTING 2017-10-11 14:00:27.729299 [INFO] mod_dialplan_xml.c:637 Processing anonymous ->26775065994 in context default 2017-10-11 14:00:27.729299 [DEBUG] switch_cpp.cpp:1365 [ASTPP] host: 127.0.0.1dbname: bt_astppuser: postgres password: gPcSzMkRO3 2017-10-11 14:00:27.729299 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7ff92406ad90 Connected. 2017-10-11 14:00:27.729299 [DEBUG] switch_cpp.cpp:1365 [ASTPP] host: 127.0.0.1dbname: bt_astppuser: postgres password: gPcSzMkRO3 2017-10-11 14:00:27.729299 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM system WHERE group_title IN ('global','opensips','callingcard') 2017-10-11 14:00:27.749294 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 26775065994 2017-10-11 14:00:27.749294 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number : anonymous / anonymous 2017-10-11 14:00:27.749294 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,B.id as accountid,B.number as account_code,A.from_number as did_number,A.to_number as to_number,A.reg_exp as reg_exp,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.from_number = '26775065994' LIMIT 1 2017-10-11 14:00:27.749294 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : outbound 2017-10-11 14:00:27.749294 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE (ip = '160.242.83.122/32' AND coalesce(prefix ,'')='' AND coalesce(from_callerid ,'')='') OR (ip = '160.242.83.122/32' AND (prefix = '26775065994' OR prefix = '2677506599' OR prefix = '267750659' OR prefix = '26775065' OR prefix = '2677506' OR prefix = '267750' OR prefix = '26775' OR prefix = '2677' OR prefix = '267' OR prefix = '26' OR prefix = '2' OR prefix ='--') AND 'anonymous' >= from_callerid AND 'anonymous' = from_callerid AND 'anonymous' <= to_callerid) OR (ip = '160.242.83.122/32' AND (prefix = '26775065994' OR prefix = '2677506599' OR prefix = '267750659' OR prefix = '26775065' OR prefix = '2677506' OR prefix = '267750' OR prefix = '26775' OR prefix = '2677' OR prefix = '267' OR prefix = '26' OR prefix = '2' OR prefix ='--') AND coalesce(from_callerid ,'')='') ORDER BY from_callerid DESC,LENGTH(prefix) DESC LIMIT 1 2017-10-11 14:00:27.749294 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 7362454752]