2019-06-24 08:11:30.295642 [NOTICE] switch_channel.c:1104 New Channel sofia/default/1909834226@165.22.13.168 [330b88fc-9679-11e9-966c-bd5d12ddb142] 2019-06-24 08:11:30.295642 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1909834226@165.22.13.168) Running State Change CS_NEW (Cur 1 Tot 21) 2019-06-24 08:11:30.295642 [DEBUG] sofia.c:9873 sofia/default/1909834226@165.22.13.168 receiving invite from 117.247.91.162:62623 version: 1.6.20 64bit 2019-06-24 08:11:30.295642 [DEBUG] sofia.c:10044 IP 117.247.91.162 Rejected by acl "default". Falling back to Digest auth. 2019-06-24 08:11:30.295642 [WARNING] sofia_reg.c:1792 SIP auth challenge (INVITE) on sofia profile 'default' for [08001234444@165.22.13.168] from ip 117.247.91.162 2019-06-24 08:11:30.295642 [DEBUG] switch_core_state_machine.c:603 (sofia/default/1909834226@165.22.13.168) State NEW 2019-06-24 08:11:30.295642 [DEBUG] sofia.c:2334 detaching session 330b88fc-9679-11e9-966c-bd5d12ddb142 2019-06-24 08:11:30.495603 [DEBUG] sofia.c:2442 Re-attaching to session 330b88fc-9679-11e9-966c-bd5d12ddb142 2019-06-24 08:11:30.495603 [DEBUG] sofia.c:9873 sofia/default/1909834226@165.22.13.168 receiving invite from 117.247.91.162:62623 version: 1.6.20 64bit 2019-06-24 08:11:30.495603 [DEBUG] sofia.c:10044 IP 117.247.91.162 Rejected by acl "default". Falling back to Digest auth. 2019-06-24 08:11:30.515578 [DEBUG] sofia.c:7084 Channel sofia/default/1909834226@165.22.13.168 entering state [received][100] 2019-06-24 08:11:30.515578 [DEBUG] sofia.c:7094 Remote SDP: v=0 o=Z 0 0 IN IP4 117.247.91.162 s=Z c=IN IP4 117.247.91.162 t=0 0 m=audio 8000 RTP/AVP 3 110 8 0 98 101 a=rtpmap:110 speex/8000 a=rtpmap:98 iLBC/8000 a=fmtp:98 mode=20 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1] 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1] 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1] 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1] 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1] 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1] 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/1909834226@165.22.13.168 PCMA/8000 20 ms 160 samples 64000 bits 1 channels 2019-06-24 08:11:30.515578 [DEBUG] switch_core_codec.c:111 sofia/default/1909834226@165.22.13.168 Original read codec set to PCMA:8 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000 2019-06-24 08:11:30.515578 [DEBUG] switch_core_media.c:4767 sofia/default/1909834226@165.22.13.168 Set 2833 dtmf send payload to 101 recv payload to 101 2019-06-24 08:11:30.515578 [DEBUG] sofia.c:7507 (sofia/default/1909834226@165.22.13.168) State Change CS_NEW -> CS_INIT 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1909834226@165.22.13.168) Running State Change CS_INIT (Cur 1 Tot 21) 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:627 (sofia/default/1909834226@165.22.13.168) State INIT 2019-06-24 08:11:30.515578 [DEBUG] mod_sofia.c:90 sofia/default/1909834226@165.22.13.168 SOFIA INIT 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:40 sofia/default/1909834226@165.22.13.168 Standard INIT 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:48 (sofia/default/1909834226@165.22.13.168) State Change CS_INIT -> CS_ROUTING 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:627 (sofia/default/1909834226@165.22.13.168) State INIT going to sleep 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1909834226@165.22.13.168) Running State Change CS_ROUTING (Cur 1 Tot 21) 2019-06-24 08:11:30.515578 [DEBUG] switch_channel.c:2249 (sofia/default/1909834226@165.22.13.168) Callstate Change DOWN -> RINGING 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:643 (sofia/default/1909834226@165.22.13.168) State ROUTING 2019-06-24 08:11:30.515578 [DEBUG] mod_sofia.c:143 sofia/default/1909834226@165.22.13.168 SOFIA ROUTING 2019-06-24 08:11:30.515578 [DEBUG] switch_core_state_machine.c:236 sofia/default/1909834226@165.22.13.168 Standard ROUTING 2019-06-24 08:11:30.515578 [INFO] mod_dialplan_xml.c:637 Processing 1909834226 <1909834226>->08001234444 in context default 2019-06-24 08:11:30.515578 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fc61c133ce0 Connected. 2019-06-24 08:11:30.515578 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes') 2019-06-24 08:11:30.515578 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2019-06-24 08:11:30.536112 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 08001234444 2019-06-24 08:11:30.536112 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '08001234444' AND status=0 limit 1 2019-06-24 08:11:30.536112 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Generated XML:
2019-06-24 08:11:30.536112 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fc61c133ce0 released. Dialplan: sofia/default/1909834226@165.22.13.168 parsing [default->08001234444] continue=false Dialplan: sofia/default/1909834226@165.22.13.168 Regex (PASS) [08001234444] destination_number(08001234444) =~ /08001234444/ break=on-false Dialplan: sofia/default/1909834226@165.22.13.168 Action log(INFO ASTPP - Calling Card Call) Dialplan: sofia/default/1909834226@165.22.13.168 Action answer() Dialplan: sofia/default/1909834226@165.22.13.168 Action sleep(2000) Dialplan: sofia/default/1909834226@165.22.13.168 Action lua(astpp-callingcards.lua) 2019-06-24 08:11:30.536112 [DEBUG] switch_core_state_machine.c:286 (sofia/default/1909834226@165.22.13.168) State Change CS_ROUTING -> CS_EXECUTE 2019-06-24 08:11:30.536112 [DEBUG] switch_core_state_machine.c:643 (sofia/default/1909834226@165.22.13.168) State ROUTING going to sleep 2019-06-24 08:11:30.536112 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1909834226@165.22.13.168) Running State Change CS_EXECUTE (Cur 1 Tot 21) 2019-06-24 08:11:30.536112 [DEBUG] switch_core_state_machine.c:650 (sofia/default/1909834226@165.22.13.168) State EXECUTE 2019-06-24 08:11:30.536112 [DEBUG] mod_sofia.c:198 sofia/default/1909834226@165.22.13.168 SOFIA EXECUTE 2019-06-24 08:11:30.536112 [DEBUG] switch_core_state_machine.c:328 sofia/default/1909834226@165.22.13.168 Standard EXECUTE EXECUTE sofia/default/1909834226@165.22.13.168 log(INFO ASTPP - Calling Card Call) 2019-06-24 08:11:30.536112 [INFO] mod_dptools.c:1742 ASTPP - Calling Card Call EXECUTE sofia/default/1909834226@165.22.13.168 answer() 2019-06-24 08:11:30.536112 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/1909834226@165.22.13.168] 165.22.13.168 port 31440 -> 117.247.91.162 port 8000 codec: 8 ms: 20 2019-06-24 08:11:30.536112 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms 2019-06-24 08:11:30.536112 [DEBUG] switch_core_media.c:7180 sofia/default/1909834226@165.22.13.168 Set 2833 dtmf send payload to 101 2019-06-24 08:11:30.536112 [DEBUG] switch_core_media.c:7187 sofia/default/1909834226@165.22.13.168 Set 2833 dtmf receive payload to 101 2019-06-24 08:11:30.536112 [DEBUG] switch_core_media.c:7210 sofia/default/1909834226@165.22.13.168 Set rtp dtmf delay to 40 2019-06-24 08:11:30.536112 [DEBUG] mod_sofia.c:850 Local SDP sofia/default/1909834226@165.22.13.168: v=0 o=FreeSWITCH 1561346850 1561346851 IN IP4 165.22.13.168 s=FreeSWITCH c=IN IP4 165.22.13.168 t=0 0 m=audio 31440 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv 2019-06-24 08:11:30.536112 [NOTICE] mod_dptools.c:1312 Channel [sofia/default/1909834226@165.22.13.168] has been answered 2019-06-24 08:11:30.536112 [DEBUG] switch_channel.c:3773 (sofia/default/1909834226@165.22.13.168) Callstate Change RINGING -> ACTIVE EXECUTE sofia/default/1909834226@165.22.13.168 sleep(2000) 2019-06-24 08:11:30.536112 [DEBUG] sofia.c:7084 Channel sofia/default/1909834226@165.22.13.168 entering state [completed][200] 2019-06-24 08:11:30.775644 [DEBUG] sofia.c:7084 Channel sofia/default/1909834226@165.22.13.168 entering state [ready][200] 2019-06-24 08:11:30.835647 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. EXECUTE sofia/default/1909834226@165.22.13.168 lua(astpp-callingcards.lua) 2019-06-24 08:11:32.555682 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fc61c133ce0 Connected. 2019-06-24 08:11:32.555682 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes') 2019-06-24 08:11:32.575611 [NOTICE] switch_cpp.cpp:1365 [ASTPP] SECTION 2019-06-24 08:11:32.575611 [DEBUG] switch_core_file.c:342 File /usr/share/freeswitch/sounds/en/us/callie/astpp-welcome.wav sample rate 16000 doesn't match requested rate 8000 2019-06-24 08:11:32.575611 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms 2019-06-24 08:11:34.355634 [DEBUG] switch_ivr_play_say.c:1942 done playing file /usr/share/freeswitch/sounds/en/us/callie/astpp-welcome.wav 2019-06-24 08:11:34.355634 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT * FROM ani_map WHERE number = 1909834226 2019-06-24 08:11:34.355634 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT *,(select currencyrate from currency where id=currency_id) as currencyrate FROM accounts WHERE (number = "15" OR id="15") AND status=0 AND deleted=0 limit 1 2019-06-24 08:11:34.355634 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [validate_card_usage] Query :SELECT DATE_FORMAT('2029-06-21 11:12:39' , '%Y%m%d%H%i%s') AS expiry 2019-06-24 08:11:34.355634 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [validate_card_usage] Query :SELECT DATE_FORMAT('2019-06-24 12:11:34' , '%Y%m%d%H%i%s') AS expiry 2019-06-24 08:11:34.355634 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 9983869251] 2019-06-24 08:11:34.355634 [DEBUG] switch_core_file.c:342 File /usr/share/freeswitch/sounds/en/us/callie/astpp-phonenum.wav sample rate 16000 doesn't match requested rate 8000 2019-06-24 08:11:34.375567 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms 2019-06-24 08:11:38.055629 [DEBUG] switch_ivr_play_say.c:1942 done playing file /usr/share/freeswitch/sounds/en/us/callie/astpp-phonenum.wav 2019-06-24 08:11:40.275639 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 1:960 2019-06-24 08:11:40.275639 [INFO] switch_channel.c:515 RECV DTMF 1:960 2019-06-24 08:11:40.835644 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 2:960 2019-06-24 08:11:40.835644 [INFO] switch_channel.c:515 RECV DTMF 2:960 2019-06-24 08:11:41.275678 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 3:960 2019-06-24 08:11:41.275678 [INFO] switch_channel.c:515 RECV DTMF 3:960 2019-06-24 08:11:41.815633 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 4:960 2019-06-24 08:11:41.815633 [INFO] switch_channel.c:515 RECV DTMF 4:960 2019-06-24 08:11:42.215692 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 5:960 2019-06-24 08:11:42.215692 [INFO] switch_channel.c:515 RECV DTMF 5:960 2019-06-24 08:11:42.715635 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 6:960 2019-06-24 08:11:42.715635 [INFO] switch_channel.c:515 RECV DTMF 6:960 2019-06-24 08:11:43.255664 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 7:960 2019-06-24 08:11:43.255664 [INFO] switch_channel.c:515 RECV DTMF 7:960 2019-06-24 08:11:43.575690 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF 8:960 2019-06-24 08:11:43.575690 [INFO] switch_channel.c:515 RECV DTMF 8:960 2019-06-24 08:11:44.075706 [DEBUG] switch_rtp.c:7534 RTP RECV DTMF #:960 2019-06-24 08:11:44.075706 [INFO] switch_channel.c:515 RECV DTMF #:960 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] [CHECK_destination] Dialed destination number :12345678 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '12345678' OR number = '1234567' OR number = '123456' OR number = '12345' OR number = '1234' OR number = '123' OR number = '12' OR number = '1' OR number ='--') OR (number = '12345678*' OR number = '1234567*' OR number = '123456*' OR number = '12345*' OR number = '1234*' OR number = '123*' OR number = '12*' OR number = '1*' OR number ='--') OR (number = '1909834226' OR number = '190983422' OR number = '19098342' OR number = '1909834' OR number = '190983' OR number = '19098' OR number = '1909' OR number = '190' OR number = '19' OR number = '1' OR number ='--') OR (number = '1909834226*' OR number = '190983422*' OR number = '19098342*' OR number = '1909834*' OR number = '190983*' OR number = '19098*' OR number = '1909*' OR number = '190*' OR number = '19*' OR number = '1*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Call Barring Status : -1 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '12345678' OR routing_prefix = '1234567' OR routing_prefix = '123456' OR routing_prefix = '12345' OR routing_prefix = '1234' OR routing_prefix = '123' OR routing_prefix = '12' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information =================== 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 15 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 9983869251 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 9.951 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid] 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 2 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] CID Pool : 0 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] ======================================================== 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^12345678.*' OR blocked_patterns = '^1234567.*' OR blocked_patterns = '^123456.*' OR blocked_patterns = '^12345.*' OR blocked_patterns = '^1234.*' OR blocked_patterns = '^123.*' OR blocked_patterns = '^12.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 15 limit 1 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT * FROM packages_view as P inner join package_patterns as PKGPTR on P.id = PKGPTR.product_id WHERE (patterns = '^12345678.*' OR patterns = '^1234567.*' OR patterns = '^123456.*' OR patterns = '^12345.*' OR patterns = '^1234.*' OR patterns = '^123.*' OR patterns = '^12.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 15 ORDER BY LENGTH(PKGPTR.patterns) DESC 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] Package Type : 1 Call Direction : outbound [0:inbound,1:outbound,2:both] 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_COUNTER_INFO] Query :SELECT used_seconds FROM counters WHERE accountid = 15 AND product_id = 576 AND status=1 LIMIT 1 2019-06-24 08:11:44.075706 [INFO] switch_cpp.cpp:1365 [ASTPP] Remaining minutes : 9 2019-06-24 08:11:44.075706 [NOTICE] switch_cpp.cpp:1365 [ASTPP] package_id : 72 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 2 AND status = 0 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction : 2019-06-24 08:11:44.075706 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^12345678.*' OR pattern = '^1234567.*' OR pattern = '^123456.*' OR pattern = '^12345.*' OR pattern = '^1234.*' OR pattern = '^123.*' OR pattern = '^12.*' OR pattern = '^1.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 2 OR accountid=15) ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] call_direction:::::: 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information =================== 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.04900 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] comment : USA 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 203 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 15 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] Trunk ID: 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] Routing type: 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================ 2019-06-24 08:11:44.095619 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your9.951 balance Accountid 15 !!! 2019-06-24 08:11:44.095619 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 180 mins! 2019-06-24 08:11:44.095619 [NOTICE] switch_cpp.cpp:1365 [ASTPP] 9 Minutes 2019-06-24 08:11:44.095619 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [SAY_TIMELIMIT] MINUTES 9 2019-06-24 08:11:44.095619 [DEBUG] switch_core_file.c:342 File /usr/share/freeswitch/sounds/en/us/callie/astpp-this-call-will-last.wav sample rate 16000 doesn't match requested rate 8000 2019-06-24 08:11:44.095619 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms 2019-06-24 08:11:45.275664 [DEBUG] switch_ivr_play_say.c:1942 done playing file /usr/share/freeswitch/sounds/en/us/callie/astpp-this-call-will-last.wav EXECUTE sofia/default/1909834226@165.22.13.168 say(en number pronounced 9) 2019-06-24 08:11:45.295622 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms 2019-06-24 08:11:45.955729 [DEBUG] switch_ivr_play_say.c:1942 done playing file file_string://digits/9.wav 2019-06-24 08:11:45.955729 [DEBUG] switch_core_file.c:342 File /usr/share/freeswitch/sounds/en/us/callie/astpp-minutes.wav sample rate 16000 doesn't match requested rate 8000 2019-06-24 08:11:45.955729 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms 2019-06-24 08:11:46.575704 [DEBUG] switch_ivr_play_say.c:1942 done playing file /usr/share/freeswitch/sounds/en/us/callie/astpp-minutes.wav 2019-06-24 08:11:46.575704 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES]123131 Query rate_carrier_id : 2019-06-24 08:11:46.575704 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=2 ORDER by id asc 2019-06-24 08:11:46.575704 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CARRIER_RATES] Query :SELECT TK.id as trunk_id,TK.name as trunk_name,TK.codec,GW.name as path,GW.dialplan_variable,TK.provider_id,TR.init_inc,TK.status,TK.maxchannels,TK.cps,TK.leg_timeout,TR.pattern,TR.id as outbound_route_id,TR.connectcost,TR.comment,TR.includedseconds,TR.cost,TR.inc,TR.prepend,TR.strip,(select name from gateways where status=0 AND id = TK.failover_gateway_id) as path1,(select name from gateways where status=0 AND id = TK.failover_gateway_id1) as path2 FROM outbound_routes as TR,trunks as TK,gateways as GW WHERE GW.status=0 AND GW.id= TK.gateway_id AND TK.status=0 AND TK.id= TR.trunk_id AND (pattern = '^12345678.*' OR pattern = '^1234567.*' OR pattern = '^123456.*' OR pattern = '^12345.*' OR pattern = '^1234.*' OR pattern = '^123.*' OR pattern = '^12.*' OR pattern = '^1.*' OR pattern ='--') AND TR.status = 0 AND TR.trunk_id IN (1) ORDER by TR.cost ASC,TR.precedence ASC, TK.precedence 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Termination Rates Information =================== 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Code : ^1.* 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Destination : 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Free Seconds : 0 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Prefix : ^1.* 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Strip : 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Termination rate id : 1 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Gateway name : YourProvider 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Failover gateway : 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Vendor id : 3 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] Max channels : 0 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] trunk_name : YourProvider 2019-06-24 08:11:46.575704 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================= 2019-06-24 08:11:46.575704 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Loss less routing flag ::> 1 EXECUTE sofia/default/1909834226@165.22.13.168 export(call_processed=internal) 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_processed]=[internal] EXECUTE sofia/default/1909834226@165.22.13.168 export(callstart=2019-06-24 12:11:46) 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [callstart]=[2019-06-24 12:11:46] EXECUTE sofia/default/1909834226@165.22.13.168 export(originated_destination_number=12345678) 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [originated_destination_number]=[12345678] EXECUTE sofia/default/1909834226@165.22.13.168 export(effective_destination_number=12345678) 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [effective_destination_number]=[12345678] EXECUTE sofia/default/1909834226@165.22.13.168 set(continue_on_fail=true) 2019-06-24 08:11:46.575704 [DEBUG] mod_dptools.c:1548 SET sofia/default/1909834226@165.22.13.168 [continue_on_fail]=[true] EXECUTE sofia/default/1909834226@165.22.13.168 set(hangup_after_bridge=true) 2019-06-24 08:11:46.575704 [DEBUG] mod_dptools.c:1548 SET sofia/default/1909834226@165.22.13.168 [hangup_after_bridge]=[true] EXECUTE sofia/default/1909834226@165.22.13.168 export(account_id=15) 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [account_id]=[15] EXECUTE sofia/default/1909834226@165.22.13.168 export(account_type=0) 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [account_type]=[0] EXECUTE sofia/default/1909834226@165.22.13.168 export(resellerid=0) 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [resellerid]=[0] EXECUTE sofia/default/1909834226@165.22.13.168 export(parent_id=0) 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [parent_id]=[0] EXECUTE sofia/default/1909834226@165.22.13.168 export(accountcode=9983869251) 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [accountcode]=[9983869251] EXECUTE sofia/default/1909834226@165.22.13.168 export(call_direction=outbound) 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_direction]=[outbound] EXECUTE sofia/default/1909834226@165.22.13.168 export(calltype=CALLINGCARD) 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [calltype]=[CALLINGCARD] EXECUTE sofia/default/1909834226@165.22.13.168 export(origination_rates=ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.04900|INC:60|INITIALBLOCK:60|RATEGROUP:2|MARKUP:0|CI:203|ACCID:15) 2019-06-24 08:11:46.575704 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [origination_rates]=[ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.04900|INC:60|INITIALBLOCK:60|RATEGROUP:2|MARKUP:0|CI:203|ACCID:15] EXECUTE sofia/default/1909834226@165.22.13.168 set(execute_on_answer=sched_hangup +540) 2019-06-24 08:11:46.595798 [DEBUG] mod_dptools.c:1548 SET sofia/default/1909834226@165.22.13.168 [execute_on_answer]=[sched_hangup +540] EXECUTE sofia/default/1909834226@165.22.13.168 set(process_cdr=true) 2019-06-24 08:11:46.595798 [DEBUG] mod_dptools.c:1548 SET sofia/default/1909834226@165.22.13.168 [process_cdr]=[true] EXECUTE sofia/default/1909834226@165.22.13.168 sched_hangup(+540) 2019-06-24 08:11:46.595798 [DEBUG] switch_scheduler.c:249 Added task 6 switch_ivr_schedule_hangup (330b88fc-9679-11e9-966c-bd5d12ddb142) to run at 1561378846 2019-06-24 08:11:46.595798 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 15 AND status=0 LIMIT 1 EXECUTE sofia/default/1909834226@165.22.13.168 export(original_caller_id_name=1909834226) 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [original_caller_id_name]=[1909834226] EXECUTE sofia/default/1909834226@165.22.13.168 export(original_caller_id_number=1909834226) 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [original_caller_id_number]=[1909834226] EXECUTE sofia/default/1909834226@165.22.13.168 export(presence_data=x|||Test(9983869251)|||^1.* // USA // 0.04900|||YourProvider // ^1.* // // 0.01000|||CC) 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||Test(9983869251)|||^1.* // USA // 0.04900|||YourProvider // ^1.* // // 0.01000|||CC] 2019-06-24 08:11:46.595798 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate FROM localization WHERE id=(SELECT localization_id from accounts where id = 3) AND status=0 limit 1 EXECUTE sofia/default/1909834226@165.22.13.168 export(termination_rates=ID:1|CODE:^1.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|TRUNK:1|PROVIDER:3) 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [termination_rates]=[ID:1|CODE:^1.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|TRUNK:1|PROVIDER:3] EXECUTE sofia/default/1909834226@165.22.13.168 export(trunk_id=1) 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [trunk_id]=[1] EXECUTE sofia/default/1909834226@165.22.13.168 export(provider_id=3) 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [provider_id]=[3] EXECUTE sofia/default/1909834226@165.22.13.168 set(hangup_after_bridge=false) 2019-06-24 08:11:46.595798 [DEBUG] mod_dptools.c:1548 SET sofia/default/1909834226@165.22.13.168 [hangup_after_bridge]=[false] EXECUTE sofia/default/1909834226@165.22.13.168 export(absolute_codec_string=PCMA,G729,PCMA) 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [absolute_codec_string]=[PCMA,G729,PCMA] EXECUTE sofia/default/1909834226@165.22.13.168 bridge([leg_timeout=30]sofia/gateway/YourProvider/12345678) 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1823 (sofia/default/1909834226@165.22.13.168) Callstate Change ACTIVE -> RING_WAIT 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [call_processed]=[internal] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [callstart]=[2019-06-24 12:11:46] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [originated_destination_number]=[12345678] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [effective_destination_number]=[12345678] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [account_id]=[15] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [account_type]=[0] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [resellerid]=[0] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [parent_id]=[0] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [accountcode]=[9983869251] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [call_direction]=[outbound] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [calltype]=[CALLINGCARD] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [origination_rates]=[ID:1|CODE:^1.*|DESTINATION:USA|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.04900|INC:60|INITIALBLOCK:60|RATEGROUP:2|MARKUP:0|CI:203|ACCID:15] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [original_caller_id_name]=[1909834226] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [original_caller_id_number]=[1909834226] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [presence_data]=[x|||Test(9983869251)|||^1.* // USA // 0.04900|||YourProvider // ^1.* // // 0.01000|||CC] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [termination_rates]=[ID:1|CODE:^1.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|TRUNK:1|PROVIDER:3] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [trunk_id]=[1] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [provider_id]=[3] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_channel.c:1250 sofia/default/1909834226@165.22.13.168 EXPORTING[export_vars] [absolute_codec_string]=[PCMA,G729,PCMA] to event 2019-06-24 08:11:46.595798 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables 2019-06-24 08:11:46.595798 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables 2019-06-24 08:11:46.595798 [NOTICE] switch_channel.c:1104 New Channel sofia/default/12345678 [3cc15390-9679-11e9-9691-bd5d12ddb142] 2019-06-24 08:11:46.595798 [DEBUG] mod_sofia.c:4819 (sofia/default/12345678) State Change CS_NEW -> CS_INIT 2019-06-24 08:11:46.595798 [DEBUG] switch_ivr_originate.c:2963 sofia/default/12345678 Setting leg timeout to 30 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:584 (sofia/default/12345678) Running State Change CS_INIT (Cur 2 Tot 22) 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:627 (sofia/default/12345678) State INIT 2019-06-24 08:11:46.595798 [DEBUG] mod_sofia.c:90 sofia/default/12345678 SOFIA INIT 2019-06-24 08:11:46.595798 [DEBUG] sofia_glue.c:1295 sofia/default/12345678 sending invite version: 1.6.20 64bit Local SDP: v=0 o=FreeSWITCH 1561352324 1561352325 IN IP4 165.22.13.168 s=FreeSWITCH c=IN IP4 165.22.13.168 t=0 0 m=audio 25982 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:40 sofia/default/12345678 Standard INIT 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:48 (sofia/default/12345678) State Change CS_INIT -> CS_ROUTING 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:627 (sofia/default/12345678) State INIT going to sleep 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:584 (sofia/default/12345678) Running State Change CS_ROUTING (Cur 2 Tot 22) 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:643 (sofia/default/12345678) State ROUTING 2019-06-24 08:11:46.595798 [DEBUG] mod_sofia.c:143 sofia/default/12345678 SOFIA ROUTING 2019-06-24 08:11:46.595798 [DEBUG] switch_ivr_originate.c:67 (sofia/default/12345678) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:643 (sofia/default/12345678) State ROUTING going to sleep 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:584 (sofia/default/12345678) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 22) 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:662 (sofia/default/12345678) State CONSUME_MEDIA 2019-06-24 08:11:46.595798 [DEBUG] switch_core_state_machine.c:662 (sofia/default/12345678) State CONSUME_MEDIA going to sleep 2019-06-24 08:11:46.595798 [DEBUG] sofia.c:7084 Channel sofia/default/12345678 entering state [calling][0] 2019-06-24 08:11:46.815666 [DEBUG] sofia.c:7084 Channel sofia/default/12345678 entering state [completing][200] 2019-06-24 08:11:46.815666 [DEBUG] sofia.c:7094 Remote SDP: v=0 o=root 1122097807 1122097807 IN IP4 139.59.75.7 s=Asterisk PBX 16.4.0 c=IN IP4 139.59.75.7 t=0 0 m=audio 17556 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=maxptime:150 2019-06-24 08:11:46.815666 [DEBUG] sofia.c:7084 Channel sofia/default/12345678 entering state [ready][200] 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[PCMA:8:8000:20:64000:1] 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/12345678 PCMA/8000 20 ms 160 samples 64000 bits 1 channels 2019-06-24 08:11:46.815666 [DEBUG] switch_core_codec.c:111 sofia/default/12345678 Original read codec set to PCMA:8 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:4767 sofia/default/12345678 Set 2833 dtmf send payload to 101 recv payload to 101 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/12345678] 165.22.13.168 port 25982 -> 139.59.75.7 port 17556 codec: 8 ms: 20 2019-06-24 08:11:46.815666 [DEBUG] switch_rtp.c:4137 Starting timer [soft] 160 bytes per 20ms 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:7180 sofia/default/12345678 Set 2833 dtmf send payload to 101 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:7187 sofia/default/12345678 Set 2833 dtmf receive payload to 101 2019-06-24 08:11:46.815666 [DEBUG] switch_core_media.c:7210 sofia/default/12345678 Set rtp dtmf delay to 40 2019-06-24 08:11:46.815666 [NOTICE] sofia.c:8218 Channel [sofia/default/12345678] has been answered 2019-06-24 08:11:46.815666 [DEBUG] switch_channel.c:3773 (sofia/default/12345678) Callstate Change DOWN -> ACTIVE 2019-06-24 08:11:46.835633 [DEBUG] switch_ivr_originate.c:3705 Originate Resulted in Success: [sofia/default/12345678] 2019-06-24 08:11:46.835633 [DEBUG] switch_channel.c:2047 (sofia/default/1909834226@165.22.13.168) Callstate Change RING_WAIT -> ACTIVE 2019-06-24 08:11:46.835633 [DEBUG] switch_ivr_bridge.c:1614 (sofia/default/12345678) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA 2019-06-24 08:11:46.835633 [DEBUG] switch_core_state_machine.c:584 (sofia/default/12345678) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 22) 2019-06-24 08:11:46.835633 [DEBUG] switch_core_state_machine.c:653 (sofia/default/12345678) State EXCHANGE_MEDIA 2019-06-24 08:11:46.835633 [DEBUG] mod_sofia.c:631 SOFIA EXCHANGE_MEDIA 2019-06-24 08:11:47.115649 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed. 2019-06-24 08:13:03.575656 [NOTICE] sofia.c:1012 Hangup sofia/default/1909834226@165.22.13.168 [CS_EXECUTE] [NORMAL_CLEARING] 2019-06-24 08:13:03.575656 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/1909834226@165.22.13.168] 2019-06-24 08:13:03.575656 [DEBUG] switch_ivr_bridge.c:706 sofia/default/1909834226@165.22.13.168 ending bridge by request from write function 2019-06-24 08:13:03.575656 [DEBUG] switch_ivr_bridge.c:787 BRIDGE THREAD DONE [sofia/default/12345678] 2019-06-24 08:13:03.575656 [NOTICE] switch_ivr_bridge.c:904 Hangup sofia/default/12345678 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING] 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:653 (sofia/default/12345678) State EXCHANGE_MEDIA going to sleep 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:584 (sofia/default/12345678) Running State Change CS_HANGUP (Cur 2 Tot 22) 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:850 (sofia/default/12345678) Callstate Change ACTIVE -> HANGUP 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:852 (sofia/default/12345678) State HANGUP 2019-06-24 08:13:03.575656 [DEBUG] mod_sofia.c:432 sofia/default/12345678 Overriding SIP cause 480 with 200 from the other leg 2019-06-24 08:13:03.575656 [DEBUG] mod_sofia.c:438 Channel sofia/default/12345678 hanging up, cause: NORMAL_CLEARING 2019-06-24 08:13:03.575656 [DEBUG] switch_ivr_bridge.c:1712 sofia/default/12345678 skip receive message [UNBRIDGE] (channel is hungup already) 2019-06-24 08:13:03.575656 [DEBUG] switch_ivr_bridge.c:1715 sofia/default/1909834226@165.22.13.168 skip receive message [UNBRIDGE] (channel is hungup already) 2019-06-24 08:13:03.575656 [DEBUG] switch_core_session.c:2815 sofia/default/1909834226@165.22.13.168 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already) 2019-06-24 08:13:03.575656 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Got DTMF digits: retries:0 2019-06-24 08:13:03.575656 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Got DTMF digits: retries:1 2019-06-24 08:13:03.575656 [DEBUG] switch_cpp.cpp:1365 [ASTPP] Got DTMF digits: retries:2 2019-06-24 08:13:03.575656 [DEBUG] switch_cpp.cpp:721 CoreSession::hangup 2019-06-24 08:13:03.575656 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fc61c133ce0 released. 2019-06-24 08:13:03.575656 [DEBUG] switch_cpp.cpp:1112 sofia/default/1909834226@165.22.13.168 destroy/unlink session from object 2019-06-24 08:13:03.575656 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/default/12345678 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:60 sofia/default/12345678 Standard HANGUP, cause: NORMAL_CLEARING 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:852 (sofia/default/12345678) State HANGUP going to sleep 2019-06-24 08:13:03.575656 [DEBUG] switch_core_session.c:2815 sofia/default/1909834226@165.22.13.168 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already) 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:650 (sofia/default/1909834226@165.22.13.168) State EXECUTE going to sleep 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1909834226@165.22.13.168) Running State Change CS_HANGUP (Cur 2 Tot 22) 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:619 (sofia/default/12345678) State Change CS_HANGUP -> CS_REPORTING 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:584 (sofia/default/12345678) Running State Change CS_REPORTING (Cur 2 Tot 22) 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1909834226@165.22.13.168) Callstate Change ACTIVE -> HANGUP 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:938 (sofia/default/12345678) State REPORTING 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:852 (sofia/default/1909834226@165.22.13.168) State HANGUP 2019-06-24 08:13:03.575656 [DEBUG] mod_sofia.c:438 Channel sofia/default/1909834226@165.22.13.168 hanging up, cause: NORMAL_CLEARING 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:60 sofia/default/1909834226@165.22.13.168 Standard HANGUP, cause: NORMAL_CLEARING 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:852 (sofia/default/1909834226@165.22.13.168) State HANGUP going to sleep 2019-06-24 08:13:03.575656 [INFO] mod_json_cdr.c:271 Process [3cc15390-9679-11e9-9691-bd5d12ddb142.cdr.json] 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:619 (sofia/default/1909834226@165.22.13.168) State Change CS_HANGUP -> CS_REPORTING 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:584 (sofia/default/1909834226@165.22.13.168) Running State Change CS_REPORTING (Cur 2 Tot 22) 2019-06-24 08:13:03.575656 [DEBUG] switch_core_state_machine.c:938 (sofia/default/1909834226@165.22.13.168) State REPORTING 2019-06-24 08:13:03.575656 [INFO] mod_json_cdr.c:271 Process [330b88fc-9679-11e9-966c-bd5d12ddb142.cdr.json] 2019-06-24 08:13:03.595587 [DEBUG] switch_core_state_machine.c:174 sofia/default/1909834226@165.22.13.168 Standard REPORTING, cause: NORMAL_CLEARING 2019-06-24 08:13:03.595587 [DEBUG] switch_core_state_machine.c:938 (sofia/default/1909834226@165.22.13.168) State REPORTING going to sleep 2019-06-24 08:13:03.595587 [DEBUG] switch_core_state_machine.c:610 (sofia/default/1909834226@165.22.13.168) State Change CS_REPORTING -> CS_DESTROY 2019-06-24 08:13:03.595587 [DEBUG] switch_core_session.c:1665 Session 21 (sofia/default/1909834226@165.22.13.168) Locked, Waiting on external entities 2019-06-24 08:13:03.595587 [NOTICE] switch_core_session.c:1683 Session 21 (sofia/default/1909834226@165.22.13.168) Ended 2019-06-24 08:13:03.595587 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/1909834226@165.22.13.168 [CS_DESTROY] 2019-06-24 08:13:03.595587 [DEBUG] switch_core_state_machine.c:741 (sofia/default/1909834226@165.22.13.168) Running State Change CS_DESTROY (Cur 1 Tot 22) 2019-06-24 08:13:03.595587 [DEBUG] switch_core_state_machine.c:751 (sofia/default/1909834226@165.22.13.168) State DESTROY 2019-06-24 08:13:03.595587 [DEBUG] mod_sofia.c:343 sofia/default/1909834226@165.22.13.168 SOFIA DESTROY 2019-06-24 08:13:03.595587 [DEBUG] switch_core_state_machine.c:181 sofia/default/1909834226@165.22.13.168 Standard DESTROY 2019-06-24 08:13:03.595587 [DEBUG] switch_core_state_machine.c:751 (sofia/default/1909834226@165.22.13.168) State DESTROY going to sleep 2019-06-24 08:13:03.615586 [DEBUG] switch_scheduler.c:144 Deleting task 6 switch_ivr_schedule_hangup (330b88fc-9679-11e9-966c-bd5d12ddb142) 2019-06-24 08:13:03.615586 [DEBUG] switch_core_state_machine.c:174 sofia/default/12345678 Standard REPORTING, cause: NORMAL_CLEARING 2019-06-24 08:13:03.615586 [DEBUG] switch_core_state_machine.c:938 (sofia/default/12345678) State REPORTING going to sleep 2019-06-24 08:13:03.615586 [DEBUG] switch_core_state_machine.c:610 (sofia/default/12345678) State Change CS_REPORTING -> CS_DESTROY 2019-06-24 08:13:03.615586 [DEBUG] switch_core_session.c:1665 Session 22 (sofia/default/12345678) Locked, Waiting on external entities 2019-06-24 08:13:03.615586 [NOTICE] switch_core_session.c:1683 Session 22 (sofia/default/12345678) Ended 2019-06-24 08:13:03.615586 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/12345678 [CS_DESTROY] 2019-06-24 08:13:03.615586 [DEBUG] switch_core_state_machine.c:741 (sofia/default/12345678) Running State Change CS_DESTROY (Cur 0 Tot 22) 2019-06-24 08:13:03.615586 [DEBUG] switch_core_state_machine.c:751 (sofia/default/12345678) State DESTROY 2019-06-24 08:13:03.615586 [DEBUG] mod_sofia.c:343 sofia/default/12345678 SOFIA DESTROY 2019-06-24 08:13:03.615586 [DEBUG] switch_core_state_machine.c:181 sofia/default/12345678 Standard DESTROY 2019-06-24 08:13:03.615586 [DEBUG] switch_core_state_machine.c:751 (sofia/default/12345678) State DESTROY going to sleep