2021-07-29 07:17:09.949595 [DEBUG] switch_core_state_machine.c:604 (sofia/default/505@test-tls.astppbilling.org:7777) State NEW 2021-07-29 07:17:10.109583 [DEBUG] sofia.c:2544 Re-attaching to session 1feeab23-ac71-47b5-8f50-c3faaffb8f64 2021-07-29 07:17:10.129564 [DEBUG] sofia.c:10280 sofia/default/505@test-tls.astppbilling.org:7777 receiving invite from 117.247.91.162:40006 version: 1.10.5 -release-17-25569c1631 64bit 2021-07-29 07:17:10.129564 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 117.247.91.162:0. 2021-07-29 07:17:10.149578 [DEBUG] sofia.c:11477 Setting NAT mode based on via received 2021-07-29 07:17:10.149578 [DEBUG] sofia.c:7326 Channel sofia/default/505@test-tls.astppbilling.org:7777 entering state [received][100] 2021-07-29 07:17:10.149578 [DEBUG] sofia.c:7336 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 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1] 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1] 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1] 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1] 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1] 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1] 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/505@test-tls.astppbilling.org:7777 PCMA/8000 20 ms 160 samples 64000 bits 1 channels 2021-07-29 07:17:10.149578 [DEBUG] switch_core_codec.c:111 sofia/default/505@test-tls.astppbilling.org:7777 Original read codec set to PCMA:8 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000 2021-07-29 07:17:10.149578 [DEBUG] switch_core_media.c:5911 sofia/default/505@test-tls.astppbilling.org:7777 Set 2833 dtmf send payload to 101 recv payload to 101 2021-07-29 07:17:10.149578 [DEBUG] sofia.c:7760 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_NEW -> CS_INIT 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_INIT (Cur 1 Tot 8) 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:628 (sofia/default/505@test-tls.astppbilling.org:7777) State INIT 2021-07-29 07:17:10.149578 [DEBUG] mod_sofia.c:93 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA INIT 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:40 sofia/default/505@test-tls.astppbilling.org:7777 Standard INIT 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:48 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_INIT -> CS_ROUTING 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:628 (sofia/default/505@test-tls.astppbilling.org:7777) State INIT going to sleep 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_ROUTING (Cur 1 Tot 8) 2021-07-29 07:17:10.149578 [DEBUG] switch_channel.c:2332 (sofia/default/505@test-tls.astppbilling.org:7777) Callstate Change DOWN -> RINGING 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:644 (sofia/default/505@test-tls.astppbilling.org:7777) State ROUTING 2021-07-29 07:17:10.149578 [DEBUG] mod_sofia.c:154 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA ROUTING 2021-07-29 07:17:10.149578 [DEBUG] switch_core_state_machine.c:236 sofia/default/505@test-tls.astppbilling.org:7777 Standard ROUTING 2021-07-29 07:17:10.149578 [INFO] mod_dialplan_xml.c:637 Processing 505 <505>->12344 in context default 2021-07-29 07:17:10.269576 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes') 2021-07-29 07:17:10.289560 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2021-07-29 07:17:10.309555 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [xml_handler] Params: Event-Name: REQUEST_PARAMS Core-UUID: aa5f78b3-2e05-4f6b-a835-2d410e4d0f4d FreeSWITCH-Hostname: ip-172-31-5-221 FreeSWITCH-Switchname: ip-172-31-5-221 FreeSWITCH-IPv4: 172.31.5.221 FreeSWITCH-IPv6: %3A%3A1 Event-Date-Local: 2021-07-29%2007%3A17%3A10 Event-Date-GMT: Thu,%2029%20Jul%202021%2007%3A17%3A10%20GMT Event-Date-Timestamp: 1627543030149578 Event-Calling-File: mod_dialplan_xml.c Event-Calling-Function: dialplan_xml_locate Event-Calling-Line-Number: 608 Event-Sequence: 38394 Channel-State: CS_ROUTING Channel-Call-State: RINGING Channel-State-Number: 2 Channel-Name: sofia/default/505%40test-tls.astppbilling.org%3A7777 Unique-ID: 1feeab23-ac71-47b5-8f50-c3faaffb8f64 Call-Direction: inbound Presence-Call-Direction: inbound Channel-HIT-Dialplan: true Channel-Presence-ID: 505%40test-tls.astppbilling.org Channel-Call-UUID: 1feeab23-ac71-47b5-8f50-c3faaffb8f64 Answer-State: ringing Channel-Read-Codec-Name: PCMA Channel-Read-Codec-Rate: 8000 Channel-Read-Codec-Bit-Rate: 64000 Channel-Write-Codec-Name: PCMA Channel-Write-Codec-Rate: 8000 Channel-Write-Codec-Bit-Rate: 64000 Caller-Direction: inbound Caller-Logical-Direction: inbound Caller-Username: 505 Caller-Dialplan: XML Caller-Caller-ID-Name: 505 Caller-Caller-ID-Number: 505 Caller-Orig-Caller-ID-Name: 505 Caller-Orig-Caller-ID-Number: 505 Caller-Network-Addr: 117.247.91.162 Caller-ANI: 505 Caller-Destination-Number: 12344 Caller-Unique-ID: 1feeab23-ac71-47b5-8f50-c3faaffb8f64 Caller-Source: mod_sofia Caller-Context: default Caller-Channel-Name: sofia/default/505%40test-tls.astppbilling.org%3A7777 Caller-Profile-Index: 1 Caller-Profile-Created-Time: 1627543030129564 Caller-Channel-Created-Time: 1627543030129564 Caller-Channel-Answered-Time: 0 Caller-Channel-Progress-Time: 0 Caller-Channel-Progress-Media-Time: 0 Caller-Channel-Hangup-Time: 0 Caller-Channel-Transfer-Time: 0 Caller-Channel-Resurrect-Time: 0 Caller-Channel-Bridged-Time: 0 Caller-Channel-Last-Hold: 0 Caller-Channel-Hold-Accum: 0 Caller-Screen-Bit: true Caller-Privacy-Hide-Name: false Caller-Privacy-Hide-Number: false variable_direction: inbound variable_uuid: 1feeab23-ac71-47b5-8f50-c3faaffb8f64 variable_session_id: 8 variable_sip_from_params: transport%3DTCP variable_sip_from_user: 505 variable_sip_from_port: 7777 variable_sip_from_uri: 505%40test-tls.astppbilling.org%3A7777 variable_sip_from_host: test-tls.astppbilling.org variable_video_media_flow: disabled variable_text_media_flow: disabled variable_channel_name: sofia/default/505%40test-tls.astppbilling.org%3A7777 variable_sip_call_id: ZWZhYTljOWVlMDNiNDdjYmEyMzJmYmUwNDBhNDY0ZTg. variable_sip_local_network_addr: 13.232.140.73 variable_sip_network_ip: 117.247.91.162 variable_sip_network_port: 40006 variable_sip_invite_stamp: 1627543030129564 variable_sip_received_ip: 117.247.91.162 variable_sip_received_port: 40006 variable_sip_via_protocol: tcp variable_sip_authorized: true variable_Event-Name: REQUEST_PARAMS variable_Core-UUID: aa5f78b3-2e05-4f6b-a835-2d410e4d0f4d variable_FreeSWITCH-Hostname: ip-172-31-5-221 variable_FreeSWITCH-Switchname: ip-172-31-5-221 variable_FreeSWITCH-IPv4: 172.31.5.221 variable_FreeSWITCH-IPv6: %3A%3A1 variable_Event-Date-Local: 2021-07-29%2007%3A17%3A10 variable_Event-Date-GMT: Thu,%2029%20Jul%202021%2007%3A17%3A10%20GMT variable_Event-Date-Timestamp: 1627543030129564 variable_Event-Calling-File: sofia.c variable_Event-Calling-Function: sofia_handle_sip_i_invite variable_Event-Calling-Line-Number: 10542 variable_Event-Sequence: 38385 variable_sip_number_alias: 505 variable_sip_auth_username: 505 variable_sip_auth_realm: test-tls.astppbilling.org variable_number_alias: 505 variable_requested_user_name: 505 variable_requested_domain_name: test-tls.astppbilling.org variable_user_context: default variable_sipcall: true variable_sip_user: 505 variable_accountcode: 4585185001 variable_user_name: 505 variable_domain_name: test-tls.astppbilling.org variable_sip_from_user_stripped: 505 variable_sip_from_tag: 9ebdfb57 variable_sofia_profile_name: default variable_sofia_profile_url: sip%3Amod_sofia%4013.232.140.73%3A7777 variable_recovery_profile_name: default variable_sip_full_via: SIP/2.0/TCP%20192.168.1.50%3A59931%3Bbranch%3Dz9hG4bK-d8754z-367a1707c349a899-1---d8754z-%3Breceived%3D117.247.91.162%3Brport%3D40006 variable_sip_recover_via: SIP/2.0/TCP%20192.168.1.50%3A59931%3Bbranch%3Dz9hG4bK-d8754z-367a1707c349a899-1---d8754z-%3Breceived%3D117.247.91.162%3Brport%3D40006 variable_sip_full_from: %3Csip%3A505%40test-tls.astppbilling.org%3A7777%3Btransport%3DTCP%3E%3Btag%3D9ebdfb57 variable_sip_full_to: %3Csip%3A12344%40test-tls.astppbilling.org%3A7777%3Btransport%3DTCP%3E variable_sip_allow: INVITE,%20ACK,%20CANCEL,%20BYE,%20NOTIFY,%20REFER,%20MESSAGE,%20OPTIONS,%20INFO,%20SUBSCRIBE variable_sip_req_params: transport%3DTCP variable_sip_req_user: 12344 variable_sip_req_port: 7777 variable_sip_req_uri: 12344%40test-tls.astppbilling.org%3A7777 variable_sip_req_host: test-tls.astppbilling.org variable_sip_to_params: transport%3DTCP variable_sip_to_user: 12344 variable_sip_to_port: 7777 variable_sip_to_uri: 12344%40test-tls.astppbilling.org%3A7777 variable_sip_to_host: test-tls.astppbilling.org variable_sip_contact_params: transport%3DTCP variable_sip_contact_user: 505 variable_sip_contact_port: 59931 variable_sip_contact_uri: 505%40117.247.91.162%3A59931 variable_sip_contact_host: 117.247.91.162 variable_sip_user_agent: Z%203.3.25608%20r25552 variable_sip_via_host: 192.168.1.50 variable_sip_via_port: 59931 variable_sip_via_rport: 40006 variable_max_forwards: 70 variable_presence_id: 505%40test-tls.astppbilling.org variable_sip_nat_detected: true variable_switch_r_sdp: v%3D0%0D%0Ao%3DZ%200%200%20IN%20IP4%20117.247.91.162%0D%0As%3DZ%0D%0Ac%3DIN%20IP4%20117.247.91.162%0D%0At%3D0%200%0D%0Am%3Daudio%208000%20RTP/AVP%203%20110%208%200%2098%20101%0D%0Aa%3Drtpmap%3A110%20speex/8000%0D%0Aa%3Drtpmap%3A98%20iLBC/8000%0D%0Aa%3Dfmtp%3A98%20mode%3D20%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0A variable_ep_codec_string: CORE_PCM_MODULE.PCMA%408000h%4020i%4064000b,CORE_PCM_MODULE.PCMU%408000h%4020i%4064000b variable_rtp_use_codec_string: PCMA,PCMU variable_remote_video_media_flow: inactive variable_remote_text_media_flow: inactive variable_remote_audio_media_flow: sendrecv variable_audio_media_flow: sendrecv variable_remote_media_ip: 117.247.91.162 variable_remote_media_port: 8000 variable_rtp_audio_recv_pt: 8 variable_rtp_use_codec_name: PCMA variable_rtp_use_codec_rate: 8000 variable_rtp_use_codec_ptime: 20 variable_rtp_use_codec_channels: 1 variable_rtp_last_audio_codec_string: PCMA%408000h%4020i%401c variable_read_codec: PCMA variable_original_read_codec: PCMA variable_read_rate: 8000 variable_original_read_rate: 8000 variable_write_codec: PCMA variable_write_rate: 8000 variable_dtmf_type: rfc2833 variable_endpoint_disposition: RECEIVED variable_call_uuid: 1feeab23-ac71-47b5-8f50-c3faaffb8f64 Hunt-Direction: inbound Hunt-Logical-Direction: inbound Hunt-Username: 505 Hunt-Dialplan: XML Hunt-Caller-ID-Name: 505 Hunt-Caller-ID-Number: 505 Hunt-Orig-Caller-ID-Name: 505 Hunt-Orig-Caller-ID-Number: 505 Hunt-Network-Addr: 117.247.91.162 Hunt-ANI: 505 Hunt-Destination-Number: 12344 Hunt-Unique-ID: 1feeab23-ac71-47b5-8f50-c3faaffb8f64 Hunt-Source: mod_sofia Hunt-Context: default Hunt-Channel-Name: sofia/default/505%40test-tls.astppbilling.org%3A7777 Hunt-Profile-Index: 1 Hunt-Profile-Created-Time: 1627543030129564 Hunt-Channel-Created-Time: 1627543030129564 Hunt-Channel-Answered-Time: 0 Hunt-Channel-Progress-Time: 0 Hunt-Channel-Progress-Media-Time: 0 Hunt-Channel-Hangup-Time: 0 Hunt-Channel-Transfer-Time: 0 Hunt-Channel-Resurrect-Time: 0 Hunt-Channel-Bridged-Time: 0 Hunt-Channel-Last-Hold: 0 Hunt-Channel-Hold-Accum: 0 Hunt-Screen-Bit: true Hunt-Privacy-Hide-Name: false Hunt-Privacy-Hide-Number: false 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] tag_name: 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] key_name: 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] section: dialplan 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] key_value: 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] blind_flag: 0 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 12344 2021-07-29 07:17:10.309555 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '12344' limit 1 2021-07-29 07:17:10.309555 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '12344' AND status=0 limit 1 2021-07-29 07:17:10.309555 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '12344' and status=0 LIMIT 1 2021-07-29 07:17:10.309555 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FAXER] in custom Caller ID 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number : 505 / 505 2021-07-29 07:17:10.309555 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="12344" LIMIT 1 2021-07-29 07:17:10.309555 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="12344" AND domains.domain="any" limit 1 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : outbound 2021-07-29 07:17:10.309555 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 4585185001] 2021-07-29 07:17:10.309555 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "4585185001" AND deleted = 0 limit 1 2021-07-29 07:17:10.329558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^12344.*' OR blocked_patterns = '^1234.*' OR blocked_patterns = '^123.*' OR blocked_patterns = '^12.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 7 limit 1 2021-07-29 07:17:10.329558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="12344" AND A.accountid = '7' limit 1 2021-07-29 07:17:10.329558 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 12344 2021-07-29 07:17:10.329558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="12344" LIMIT 1 2021-07-29 07:17:10.329558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="12344" AND domains.domain="any" limit 1 2021-07-29 07:17:10.329558 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : outbound 2021-07-29 07:17:10.329558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="12344" AND (accountid = 0 OR status = 1) LIMIT 1 2021-07-29 07:17:10.329558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^12344.*' OR patterns = '^1234.*' OR patterns = '^123.*' OR patterns = '^12.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 7 ORDER BY LENGTH(PKGPTR.patterns) DESC 2021-07-29 07:17:10.329558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '12344' OR number = '1234' OR number = '123' OR number = '12' OR number = '1' OR number ='--') OR (number = '12344*' OR number = '1234*' OR number = '123*' OR number = '12*' OR number = '1*' OR number ='--') OR (number = '505' OR number = '50' OR number = '5' OR number ='--') OR (number = '505*' OR number = '50*' OR number = '5*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '12344' 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 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information =================== 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 7 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 4585185001 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 46.5043 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid] 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] ======================================================== 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :outbound 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^12344.*' OR pattern = '^1234.*' OR pattern = '^123.*' OR pattern = '^12.*' OR pattern = '^1.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 1 OR accountid=7) ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] call_direction:::::: outbound 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information =================== 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 13 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 0.02000 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] comment : 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 0 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 7 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk ID: 1 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Routing type: 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================ 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your46.5043 balance Accountid 7 !!! 2021-07-29 07:17:10.349556 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 100 mins! 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 100 minutes 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] [DIALPLAN] User Rate ID : 13 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES]123131 Query rate_carrier_id :1 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [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 = '^12344.*' 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 FIELD(TR.trunk_id,1),LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Termination Rates Information =================== 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 19 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Code : ^12344.* 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Destination : 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Free Seconds : 0 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Prefix : ^12344.* 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Strip : 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Prepend : 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Carrier id : 1 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] carrier_name : YourProvider 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] dialplan_variable : 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Failover gateway : 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Vendor id : 3 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Max channels : 0 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk Name : YourTrunk 2021-07-29 07:17:10.349556 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================END OF TERMINATION RATES======================= 2021-07-29 07:17:10.349556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 7 AND status=0 LIMIT 1 2021-07-29 07:17:10.369557 [INFO] switch_cpp.cpp:1447 [ASTPP] maxlength::::::::: 100 2021-07-29 07:17:10.369557 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2021-07-29 07:17:10.369557 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from accounts where id = 3) AND status=0 limit 1 2021-07-29 07:17:10.369557 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:
Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 parsing [default->12344] continue=false Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Regex (PASS) [12344] destination_number(12344) =~ /12344/ break=on-false Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(effective_destination_number=12344) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(bridge_pre_execute_bleg_app=sched_hangup) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(callstart=2021-07-29 07:17:10) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(hangup_after_bridge=true) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(continue_on_fail=TRUE) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(account_id=7) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(parent_id=0) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(entity_id=0) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(call_processed=internal) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(call_direction=outbound) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(accountname=default) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(filename1=astpp.pbx.lua) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(origination_rates=ID:13|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.02000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(original_caller_id_name=505) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(original_caller_id_number=505) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(effective_caller_id_name=505) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(effective_caller_id_number=505) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(calltype=STANDARD) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(termination_rates=ID:19|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(trunk_id=1) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(provider_id=3) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(rate_flag=0) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(force_trunk_flag=13) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action export(presence_data=trunk_id=1) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(intcall=0) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action export(presence_data=x|||sahil(4585185001)|||^12344.* // // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* // // 0.01000 // trunk_id=1|||STD|||117.247.91.162) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action bridge([leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/12344) 2021-07-29 07:17:10.369557 [DEBUG] switch_core_state_machine.c:287 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_ROUTING -> CS_EXECUTE 2021-07-29 07:17:10.369557 [DEBUG] switch_core_state_machine.c:644 (sofia/default/505@test-tls.astppbilling.org:7777) State ROUTING going to sleep 2021-07-29 07:17:10.369557 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_EXECUTE (Cur 1 Tot 8) 2021-07-29 07:17:10.369557 [DEBUG] switch_core_state_machine.c:651 (sofia/default/505@test-tls.astppbilling.org:7777) State EXECUTE 2021-07-29 07:17:10.369557 [DEBUG] mod_sofia.c:209 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA EXECUTE 2021-07-29 07:17:10.369557 [DEBUG] switch_core_state_machine.c:329 sofia/default/505@test-tls.astppbilling.org:7777 Standard EXECUTE EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(effective_destination_number=12344) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [effective_destination_number]=[12344] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(bridge_pre_execute_bleg_app=sched_hangup) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [bridge_pre_execute_bleg_app]=[sched_hangup] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(bridge_pre_execute_bleg_data=+6000 normal_clearing) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(callstart=2021-07-29 07:17:10) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [callstart]=[2021-07-29 07:17:10] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(hangup_after_bridge=true) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [hangup_after_bridge]=[true] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(continue_on_fail=TRUE) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [continue_on_fail]=[TRUE] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(account_id=7) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [account_id]=[7] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(parent_id=0) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [parent_id]=[0] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(entity_id=0) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [entity_id]=[0] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(call_processed=internal) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [call_processed]=[internal] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(call_direction=outbound) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [call_direction]=[outbound] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(accountname=default) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [accountname]=[default] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(filename1=astpp.pbx.lua) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [filename1]=[astpp.pbx.lua] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(origination_rates=ID:13|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.02000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [origination_rates]=[ID:13|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.02000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(original_caller_id_name=505) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [original_caller_id_name]=[505] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(original_caller_id_number=505) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [original_caller_id_number]=[505] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(effective_caller_id_name=505) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [effective_caller_id_name]=[505] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(effective_caller_id_number=505) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [effective_caller_id_number]=[505] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(calltype=STANDARD) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [calltype]=[STANDARD] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(termination_rates=ID:19|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [termination_rates]=[ID:19|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(trunk_id=1) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [trunk_id]=[1] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(provider_id=3) 2021-07-29 07:17:10.369557 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [provider_id]=[3] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(rate_flag=0) 2021-07-29 07:17:10.389553 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [rate_flag]=[0] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(force_trunk_flag=13) 2021-07-29 07:17:10.389553 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [force_trunk_flag]=[13] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 export(presence_data=trunk_id=1) 2021-07-29 07:17:10.389553 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[trunk_id=1] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(intcall=0) 2021-07-29 07:17:10.389553 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [intcall]=[0] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 export(presence_data=x|||sahil(4585185001)|||^12344.* // // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* // // 0.01000 // trunk_id=1|||STD|||117.247.91.162) 2021-07-29 07:17:10.389553 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[x|||sahil(4585185001)|||^12344.* // // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* // // 0.01000 // trunk_id=1|||STD|||117.247.91.162] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 bridge([leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/12344) 2021-07-29 07:17:10.389553 [DEBUG] switch_channel.c:1264 sofia/default/505@test-tls.astppbilling.org:7777 EXPORTING[export_vars] [presence_data]=[x|||sahil(4585185001)|||^12344.* // // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* // // 0.01000 // trunk_id=1|||STD|||117.247.91.162] to event 2021-07-29 07:17:10.389553 [DEBUG] switch_channel.c:1264 sofia/default/505@test-tls.astppbilling.org:7777 EXPORTING[export_vars] [presence_data]=[x|||sahil(4585185001)|||^12344.* // // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* // // 0.01000 // trunk_id=1|||STD|||117.247.91.162] to event 2021-07-29 07:17:10.389553 [DEBUG] switch_ivr_originate.c:2242 Parsing global variables 2021-07-29 07:17:10.389553 [DEBUG] switch_ivr_originate.c:2804 Parsing session specific variables 2021-07-29 07:17:10.389553 [NOTICE] switch_channel.c:1118 New Channel sofia/default/12344 [c50ef52d-a8eb-4604-a984-dd1f9c1e4aa1] 2021-07-29 07:17:10.389553 [DEBUG] mod_sofia.c:5089 (sofia/default/12344) State Change CS_NEW -> CS_INIT 2021-07-29 07:17:10.389553 [DEBUG] switch_ivr_originate.c:3111 sofia/default/12344 Setting leg timeout to 30 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_INIT (Cur 2 Tot 9) 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:628 (sofia/default/12344) State INIT 2021-07-29 07:17:10.389553 [DEBUG] mod_sofia.c:93 sofia/default/12344 SOFIA INIT 2021-07-29 07:17:10.389553 [DEBUG] sofia_glue.c:1618 sofia/default/12344 sending invite version: 1.10.5 -release-17-25569c1631 64bit Local SDP: v=0 o=FreeSWITCH 1627519296 1627519297 IN IP4 13.232.140.73 s=FreeSWITCH c=IN IP4 13.232.140.73 t=0 0 m=audio 23734 RTP/AVP 8 18 101 a=rtpmap:8 PCMA/8000 a=rtpmap:18 G729/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:40 sofia/default/12344 Standard INIT 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:48 (sofia/default/12344) State Change CS_INIT -> CS_ROUTING 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:628 (sofia/default/12344) State INIT going to sleep 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_ROUTING (Cur 2 Tot 9) 2021-07-29 07:17:10.389553 [DEBUG] sofia.c:7326 Channel sofia/default/12344 entering state [calling][0] 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:644 (sofia/default/12344) State ROUTING 2021-07-29 07:17:10.389553 [DEBUG] mod_sofia.c:154 sofia/default/12344 SOFIA ROUTING 2021-07-29 07:17:10.389553 [DEBUG] switch_ivr_originate.c:67 (sofia/default/12344) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:644 (sofia/default/12344) State ROUTING going to sleep 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 9) 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:663 (sofia/default/12344) State CONSUME_MEDIA 2021-07-29 07:17:10.389553 [DEBUG] switch_core_state_machine.c:663 (sofia/default/12344) State CONSUME_MEDIA going to sleep 2021-07-29 07:17:10.689667 [DEBUG] sofia.c:7326 Channel sofia/default/12344 entering state [completing][200] 2021-07-29 07:17:10.689667 [DEBUG] sofia.c:7336 Remote SDP: v=0 o=root 1498285237 1498285237 IN IP4 159.203.131.36 s=Asterisk PBX 16.4.0 c=IN IP4 159.203.131.36 t=0 0 m=audio 11326 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=maxptime:150 2021-07-29 07:17:10.689667 [DEBUG] sofia.c:7326 Channel sofia/default/12344 entering state [ready][200] 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[PCMA:8:8000:20:64000:1] 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[G729:18:8000:20:8000:1] 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/12344 PCMA/8000 20 ms 160 samples 64000 bits 1 channels 2021-07-29 07:17:10.689667 [DEBUG] switch_core_codec.c:111 sofia/default/12344 Original read codec set to PCMA:8 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:5911 sofia/default/12344 Set 2833 dtmf send payload to 101 recv payload to 101 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/12344] 172.31.5.221 port 23734 -> 159.203.131.36 port 11326 codec: 8 ms: 20 2021-07-29 07:17:10.689667 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:8977 sofia/default/12344 Set 2833 dtmf send payload to 101 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:8984 sofia/default/12344 Set 2833 dtmf receive payload to 101 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:9007 sofia/default/12344 Set rtp dtmf delay to 40 2021-07-29 07:17:10.689667 [NOTICE] sofia.c:8504 Channel [sofia/default/12344] has been answered 2021-07-29 07:17:10.689667 [DEBUG] switch_channel.c:3865 (sofia/default/12344) Callstate Change DOWN -> ACTIVE 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/505@test-tls.astppbilling.org:7777] 172.31.5.221 port 25910 -> 117.247.91.162 port 8000 codec: 8 ms: 20 2021-07-29 07:17:10.689667 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:8977 sofia/default/505@test-tls.astppbilling.org:7777 Set 2833 dtmf send payload to 101 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:8984 sofia/default/505@test-tls.astppbilling.org:7777 Set 2833 dtmf receive payload to 101 2021-07-29 07:17:10.689667 [DEBUG] switch_core_media.c:9007 sofia/default/505@test-tls.astppbilling.org:7777 Set rtp dtmf delay to 40 2021-07-29 07:17:10.689667 [DEBUG] mod_sofia.c:898 Local SDP sofia/default/505@test-tls.astppbilling.org:7777: v=0 o=FreeSWITCH 1627517120 1627517121 IN IP4 13.232.140.73 s=FreeSWITCH c=IN IP4 13.232.140.73 t=0 0 m=audio 25910 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 2021-07-29 07:17:10.689667 [DEBUG] sofia.c:7326 Channel sofia/default/505@test-tls.astppbilling.org:7777 entering state [completed][200] 2021-07-29 07:17:10.689667 [NOTICE] switch_ivr_originate.c:3794 Channel [sofia/default/505@test-tls.astppbilling.org:7777] has been answered 2021-07-29 07:17:10.729555 [DEBUG] switch_channel.c:3865 (sofia/default/505@test-tls.astppbilling.org:7777) Callstate Change RINGING -> ACTIVE 2021-07-29 07:17:10.729555 [DEBUG] switch_ivr_originate.c:3852 Originate Resulted in Success: [sofia/default/12344] 2021-07-29 07:17:10.729555 [DEBUG] switch_ivr_bridge.c:1793 (sofia/default/12344) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA 2021-07-29 07:17:10.729555 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 9) 2021-07-29 07:17:10.729555 [DEBUG] switch_core_state_machine.c:654 (sofia/default/12344) State EXCHANGE_MEDIA 2021-07-29 07:17:10.729555 [DEBUG] mod_sofia.c:656 SOFIA EXCHANGE_MEDIA 2021-07-29 07:17:10.809576 [DEBUG] sofia.c:7326 Channel sofia/default/505@test-tls.astppbilling.org:7777 entering state [ready][200] 2021-07-29 07:17:10.829557 [DEBUG] switch_rtp.c:7759 Correct audio ip/port confirmed. 2021-07-29 07:17:10.909574 [DEBUG] switch_ivr_bridge.c:655 sofia/default/12344 Bridge execute app sched_hangup(+6000 normal_clearing) 2021-07-29 07:17:10.929581 [DEBUG] switch_ivr.c:632 sofia/default/12344 Command Execute [depth=0] sched_hangup(+6000 normal_clearing) EXECUTE [depth=0] sofia/default/12344 sched_hangup(+6000 normal_clearing) 2021-07-29 07:17:10.929581 [DEBUG] switch_scheduler.c:252 Added task 4 switch_ivr_schedule_hangup (c50ef52d-a8eb-4604-a984-dd1f9c1e4aa1) to run at 1627549030 2021-07-29 07:17:11.049579 [DEBUG] switch_rtp.c:7759 Correct audio ip/port confirmed. 2021-07-29 07:17:13.189578 [NOTICE] sofia.c:1089 Hangup sofia/default/505@test-tls.astppbilling.org:7777 [CS_EXECUTE] [NORMAL_CLEARING] 2021-07-29 07:17:13.189578 [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/505@test-tls.astppbilling.org:7777] 2021-07-29 07:17:13.209557 [DEBUG] switch_ivr_bridge.c:820 sofia/default/505@test-tls.astppbilling.org:7777 ending bridge by request from write function 2021-07-29 07:17:13.209557 [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/12344] 2021-07-29 07:17:13.209557 [NOTICE] switch_ivr_bridge.c:1029 Hangup sofia/default/12344 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING] 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:654 (sofia/default/12344) State EXCHANGE_MEDIA going to sleep 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_HANGUP (Cur 2 Tot 9) 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:848 (sofia/default/12344) Callstate Change ACTIVE -> HANGUP 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:850 (sofia/default/12344) State HANGUP 2021-07-29 07:17:13.209557 [DEBUG] mod_sofia.c:447 sofia/default/12344 Overriding SIP cause 480 with 200 from the other leg 2021-07-29 07:17:13.209557 [DEBUG] mod_sofia.c:453 Channel sofia/default/12344 hanging up, cause: NORMAL_CLEARING 2021-07-29 07:17:13.209557 [DEBUG] mod_sofia.c:507 Sending BYE to sofia/default/12344 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:60 sofia/default/12344 Standard HANGUP, cause: NORMAL_CLEARING 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:850 (sofia/default/12344) State HANGUP going to sleep 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:620 (sofia/default/12344) State Change CS_HANGUP -> CS_REPORTING 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_REPORTING (Cur 2 Tot 9) 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:936 (sofia/default/12344) State REPORTING 2021-07-29 07:17:13.209557 [INFO] mod_json_cdr.c:271 Process [c50ef52d-a8eb-4604-a984-dd1f9c1e4aa1.cdr.json] 2021-07-29 07:17:13.209557 [DEBUG] switch_ivr_bridge.c:1892 sofia/default/12344 skip receive message [UNBRIDGE] (channel is hungup already) 2021-07-29 07:17:13.209557 [DEBUG] switch_ivr_bridge.c:1895 sofia/default/505@test-tls.astppbilling.org:7777 skip receive message [UNBRIDGE] (channel is hungup already) 2021-07-29 07:17:13.209557 [DEBUG] switch_core_session.c:2905 sofia/default/505@test-tls.astppbilling.org:7777 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already) 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:651 (sofia/default/505@test-tls.astppbilling.org:7777) State EXECUTE going to sleep 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_HANGUP (Cur 2 Tot 9) 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:848 (sofia/default/505@test-tls.astppbilling.org:7777) Callstate Change ACTIVE -> HANGUP 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:850 (sofia/default/505@test-tls.astppbilling.org:7777) State HANGUP 2021-07-29 07:17:13.209557 [DEBUG] mod_sofia.c:453 Channel sofia/default/505@test-tls.astppbilling.org:7777 hanging up, cause: NORMAL_CLEARING 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:60 sofia/default/505@test-tls.astppbilling.org:7777 Standard HANGUP, cause: NORMAL_CLEARING 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:850 (sofia/default/505@test-tls.astppbilling.org:7777) State HANGUP going to sleep 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:620 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_HANGUP -> CS_REPORTING 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_REPORTING (Cur 2 Tot 9) 2021-07-29 07:17:13.209557 [DEBUG] switch_core_state_machine.c:936 (sofia/default/505@test-tls.astppbilling.org:7777) State REPORTING 2021-07-29 07:17:13.209557 [INFO] mod_json_cdr.c:271 Process [1feeab23-ac71-47b5-8f50-c3faaffb8f64.cdr.json] 2021-07-29 07:17:13.229558 [DEBUG] switch_core_state_machine.c:174 sofia/default/12344 Standard REPORTING, cause: NORMAL_CLEARING 2021-07-29 07:17:13.229558 [DEBUG] switch_core_state_machine.c:936 (sofia/default/12344) State REPORTING going to sleep 2021-07-29 07:17:13.229558 [DEBUG] switch_core_state_machine.c:611 (sofia/default/12344) State Change CS_REPORTING -> CS_DESTROY 2021-07-29 07:17:13.229558 [DEBUG] switch_core_session.c:1726 Session 9 (sofia/default/12344) Locked, Waiting on external entities 2021-07-29 07:17:13.229558 [NOTICE] switch_core_session.c:1744 Session 9 (sofia/default/12344) Ended 2021-07-29 07:17:13.229558 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/12344 [CS_DESTROY] 2021-07-29 07:17:13.229558 [DEBUG] switch_core_state_machine.c:739 (sofia/default/12344) Running State Change CS_DESTROY (Cur 1 Tot 9) 2021-07-29 07:17:13.229558 [DEBUG] switch_core_state_machine.c:749 (sofia/default/12344) State DESTROY 2021-07-29 07:17:13.229558 [DEBUG] mod_sofia.c:364 sofia/default/12344 SOFIA DESTROY 2021-07-29 07:17:13.229558 [DEBUG] switch_core_state_machine.c:181 sofia/default/12344 Standard DESTROY 2021-07-29 07:17:13.229558 [DEBUG] switch_core_state_machine.c:749 (sofia/default/12344) State DESTROY going to sleep 2021-07-29 07:17:13.289564 [DEBUG] switch_core_state_machine.c:174 sofia/default/505@test-tls.astppbilling.org:7777 Standard REPORTING, cause: NORMAL_CLEARING 2021-07-29 07:17:13.289564 [DEBUG] switch_core_state_machine.c:936 (sofia/default/505@test-tls.astppbilling.org:7777) State REPORTING going to sleep 2021-07-29 07:17:13.289564 [DEBUG] switch_core_state_machine.c:611 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_REPORTING -> CS_DESTROY 2021-07-29 07:17:13.289564 [DEBUG] switch_core_session.c:1726 Session 8 (sofia/default/505@test-tls.astppbilling.org:7777) Locked, Waiting on external entities 2021-07-29 07:17:13.289564 [NOTICE] switch_core_session.c:1744 Session 8 (sofia/default/505@test-tls.astppbilling.org:7777) Ended 2021-07-29 07:17:13.289564 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/505@test-tls.astppbilling.org:7777 [CS_DESTROY] 2021-07-29 07:17:13.289564 [DEBUG] switch_core_state_machine.c:739 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_DESTROY (Cur 0 Tot 9) 2021-07-29 07:17:13.289564 [DEBUG] switch_core_state_machine.c:749 (sofia/default/505@test-tls.astppbilling.org:7777) State DESTROY 2021-07-29 07:17:13.289564 [DEBUG] mod_sofia.c:364 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA DESTROY 2021-07-29 07:17:13.289564 [DEBUG] switch_core_state_machine.c:181 sofia/default/505@test-tls.astppbilling.org:7777 Standard DESTROY 2021-07-29 07:17:13.289564 [DEBUG] switch_core_state_machine.c:749 (sofia/default/505@test-tls.astppbilling.org:7777) State DESTROY going to sleep 2021-07-29 07:17:13.429597 [DEBUG] switch_scheduler.c:147 Deleting task 4 switch_ivr_schedule_hangup (c50ef52d-a8eb-4604-a984-dd1f9c1e4aa1) 2021-07-29 07:17:40.689633 [NOTICE] switch_channel.c:1118 New Channel sofia/default/505@test-tls.astppbilling.org:7777 [ccc25279-92cd-46d3-8948-83978d373529] 2021-07-29 07:17:40.689633 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_NEW (Cur 1 Tot 10) 2021-07-29 07:17:40.689633 [DEBUG] sofia.c:10280 sofia/default/505@test-tls.astppbilling.org:7777 receiving invite from 117.247.91.162:40006 version: 1.10.5 -release-17-25569c1631 64bit 2021-07-29 07:17:40.689633 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 117.247.91.162:0. 2021-07-29 07:17:40.689633 [DEBUG] sofia.c:2434 detaching session ccc25279-92cd-46d3-8948-83978d373529 2021-07-29 07:17:40.689633 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [12344@test-tls.astppbilling.org] from ip 117.247.91.162 2021-07-29 07:17:40.689633 [DEBUG] switch_core_state_machine.c:604 (sofia/default/505@test-tls.astppbilling.org:7777) State NEW 2021-07-29 07:17:40.809587 [DEBUG] sofia.c:2544 Re-attaching to session ccc25279-92cd-46d3-8948-83978d373529 2021-07-29 07:17:40.829576 [DEBUG] sofia.c:10280 sofia/default/505@test-tls.astppbilling.org:7777 receiving invite from 117.247.91.162:40006 version: 1.10.5 -release-17-25569c1631 64bit 2021-07-29 07:17:40.829576 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 117.247.91.162:0. 2021-07-29 07:17:40.849558 [DEBUG] sofia.c:11477 Setting NAT mode based on via received 2021-07-29 07:17:40.849558 [DEBUG] sofia.c:7326 Channel sofia/default/505@test-tls.astppbilling.org:7777 entering state [received][100] 2021-07-29 07:17:40.849558 [DEBUG] sofia.c:7336 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 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1] 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1] 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1] 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1] 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1] 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1] 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/505@test-tls.astppbilling.org:7777 PCMA/8000 20 ms 160 samples 64000 bits 1 channels 2021-07-29 07:17:40.849558 [DEBUG] switch_core_codec.c:111 sofia/default/505@test-tls.astppbilling.org:7777 Original read codec set to PCMA:8 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000 2021-07-29 07:17:40.849558 [DEBUG] switch_core_media.c:5911 sofia/default/505@test-tls.astppbilling.org:7777 Set 2833 dtmf send payload to 101 recv payload to 101 2021-07-29 07:17:40.849558 [DEBUG] sofia.c:7760 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_NEW -> CS_INIT 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_INIT (Cur 1 Tot 10) 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:628 (sofia/default/505@test-tls.astppbilling.org:7777) State INIT 2021-07-29 07:17:40.849558 [DEBUG] mod_sofia.c:93 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA INIT 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:40 sofia/default/505@test-tls.astppbilling.org:7777 Standard INIT 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:48 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_INIT -> CS_ROUTING 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:628 (sofia/default/505@test-tls.astppbilling.org:7777) State INIT going to sleep 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_ROUTING (Cur 1 Tot 10) 2021-07-29 07:17:40.849558 [DEBUG] switch_channel.c:2332 (sofia/default/505@test-tls.astppbilling.org:7777) Callstate Change DOWN -> RINGING 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:644 (sofia/default/505@test-tls.astppbilling.org:7777) State ROUTING 2021-07-29 07:17:40.849558 [DEBUG] mod_sofia.c:154 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA ROUTING 2021-07-29 07:17:40.849558 [DEBUG] switch_core_state_machine.c:236 sofia/default/505@test-tls.astppbilling.org:7777 Standard ROUTING 2021-07-29 07:17:40.849558 [INFO] mod_dialplan_xml.c:637 Processing 505 <505>->12344 in context default 2021-07-29 07:17:40.849558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes') 2021-07-29 07:17:40.849558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2021-07-29 07:17:40.849558 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [xml_handler] Params: Event-Name: REQUEST_PARAMS Core-UUID: aa5f78b3-2e05-4f6b-a835-2d410e4d0f4d FreeSWITCH-Hostname: ip-172-31-5-221 FreeSWITCH-Switchname: ip-172-31-5-221 FreeSWITCH-IPv4: 172.31.5.221 FreeSWITCH-IPv6: %3A%3A1 Event-Date-Local: 2021-07-29%2007%3A17%3A40 Event-Date-GMT: Thu,%2029%20Jul%202021%2007%3A17%3A40%20GMT Event-Date-Timestamp: 1627543060849558 Event-Calling-File: mod_dialplan_xml.c Event-Calling-Function: dialplan_xml_locate Event-Calling-Line-Number: 608 Event-Sequence: 38509 Channel-State: CS_ROUTING Channel-Call-State: RINGING Channel-State-Number: 2 Channel-Name: sofia/default/505%40test-tls.astppbilling.org%3A7777 Unique-ID: ccc25279-92cd-46d3-8948-83978d373529 Call-Direction: inbound Presence-Call-Direction: inbound Channel-HIT-Dialplan: true Channel-Presence-ID: 505%40test-tls.astppbilling.org Channel-Call-UUID: ccc25279-92cd-46d3-8948-83978d373529 Answer-State: ringing Channel-Read-Codec-Name: PCMA Channel-Read-Codec-Rate: 8000 Channel-Read-Codec-Bit-Rate: 64000 Channel-Write-Codec-Name: PCMA Channel-Write-Codec-Rate: 8000 Channel-Write-Codec-Bit-Rate: 64000 Caller-Direction: inbound Caller-Logical-Direction: inbound Caller-Username: 505 Caller-Dialplan: XML Caller-Caller-ID-Name: 505 Caller-Caller-ID-Number: 505 Caller-Orig-Caller-ID-Name: 505 Caller-Orig-Caller-ID-Number: 505 Caller-Network-Addr: 117.247.91.162 Caller-ANI: 505 Caller-Destination-Number: 12344 Caller-Unique-ID: ccc25279-92cd-46d3-8948-83978d373529 Caller-Source: mod_sofia Caller-Context: default Caller-Channel-Name: sofia/default/505%40test-tls.astppbilling.org%3A7777 Caller-Profile-Index: 1 Caller-Profile-Created-Time: 1627543060849558 Caller-Channel-Created-Time: 1627543060849558 Caller-Channel-Answered-Time: 0 Caller-Channel-Progress-Time: 0 Caller-Channel-Progress-Media-Time: 0 Caller-Channel-Hangup-Time: 0 Caller-Channel-Transfer-Time: 0 Caller-Channel-Resurrect-Time: 0 Caller-Channel-Bridged-Time: 0 Caller-Channel-Last-Hold: 0 Caller-Channel-Hold-Accum: 0 Caller-Screen-Bit: true Caller-Privacy-Hide-Name: false Caller-Privacy-Hide-Number: false variable_direction: inbound variable_uuid: ccc25279-92cd-46d3-8948-83978d373529 variable_session_id: 10 variable_sip_from_params: transport%3DTCP variable_sip_from_user: 505 variable_sip_from_port: 7777 variable_sip_from_uri: 505%40test-tls.astppbilling.org%3A7777 variable_sip_from_host: test-tls.astppbilling.org variable_video_media_flow: disabled variable_text_media_flow: disabled variable_channel_name: sofia/default/505%40test-tls.astppbilling.org%3A7777 variable_sip_call_id: M2E2NjFlMzVhY2ViNGY2MWQ1NjZiNmNkODJkZDExNGU. variable_sip_local_network_addr: 13.232.140.73 variable_sip_network_ip: 117.247.91.162 variable_sip_network_port: 40006 variable_sip_invite_stamp: 1627543060829576 variable_sip_received_ip: 117.247.91.162 variable_sip_received_port: 40006 variable_sip_via_protocol: tcp variable_sip_authorized: true variable_Event-Name: REQUEST_PARAMS variable_Core-UUID: aa5f78b3-2e05-4f6b-a835-2d410e4d0f4d variable_FreeSWITCH-Hostname: ip-172-31-5-221 variable_FreeSWITCH-Switchname: ip-172-31-5-221 variable_FreeSWITCH-IPv4: 172.31.5.221 variable_FreeSWITCH-IPv6: %3A%3A1 variable_Event-Date-Local: 2021-07-29%2007%3A17%3A40 variable_Event-Date-GMT: Thu,%2029%20Jul%202021%2007%3A17%3A40%20GMT variable_Event-Date-Timestamp: 1627543060829576 variable_Event-Calling-File: sofia.c variable_Event-Calling-Function: sofia_handle_sip_i_invite variable_Event-Calling-Line-Number: 10542 variable_Event-Sequence: 38500 variable_sip_number_alias: 505 variable_sip_auth_username: 505 variable_sip_auth_realm: test-tls.astppbilling.org variable_number_alias: 505 variable_requested_user_name: 505 variable_requested_domain_name: test-tls.astppbilling.org variable_user_context: default variable_sipcall: true variable_sip_user: 505 variable_accountcode: 4585185001 variable_user_name: 505 variable_domain_name: test-tls.astppbilling.org variable_sip_from_user_stripped: 505 variable_sip_from_tag: 61697903 variable_sofia_profile_name: default variable_sofia_profile_url: sip%3Amod_sofia%4013.232.140.73%3A7777 variable_recovery_profile_name: default variable_sip_full_via: SIP/2.0/TCP%20192.168.1.50%3A59931%3Bbranch%3Dz9hG4bK-d8754z-cf6ef3d4ba27b39b-1---d8754z-%3Breceived%3D117.247.91.162%3Brport%3D40006 variable_sip_recover_via: SIP/2.0/TCP%20192.168.1.50%3A59931%3Bbranch%3Dz9hG4bK-d8754z-cf6ef3d4ba27b39b-1---d8754z-%3Breceived%3D117.247.91.162%3Brport%3D40006 variable_sip_full_from: %3Csip%3A505%40test-tls.astppbilling.org%3A7777%3Btransport%3DTCP%3E%3Btag%3D61697903 variable_sip_full_to: %3Csip%3A12344%40test-tls.astppbilling.org%3A7777%3Btransport%3DTCP%3E variable_sip_allow: INVITE,%20ACK,%20CANCEL,%20BYE,%20NOTIFY,%20REFER,%20MESSAGE,%20OPTIONS,%20INFO,%20SUBSCRIBE variable_sip_req_params: transport%3DTCP variable_sip_req_user: 12344 variable_sip_req_port: 7777 variable_sip_req_uri: 12344%40test-tls.astppbilling.org%3A7777 variable_sip_req_host: test-tls.astppbilling.org variable_sip_to_params: transport%3DTCP variable_sip_to_user: 12344 variable_sip_to_port: 7777 variable_sip_to_uri: 12344%40test-tls.astppbilling.org%3A7777 variable_sip_to_host: test-tls.astppbilling.org variable_sip_contact_params: transport%3DTCP variable_sip_contact_user: 505 variable_sip_contact_port: 59931 variable_sip_contact_uri: 505%40117.247.91.162%3A59931 variable_sip_contact_host: 117.247.91.162 variable_sip_user_agent: Z%203.3.25608%20r25552 variable_sip_via_host: 192.168.1.50 variable_sip_via_port: 59931 variable_sip_via_rport: 40006 variable_max_forwards: 70 variable_presence_id: 505%40test-tls.astppbilling.org variable_sip_nat_detected: true variable_switch_r_sdp: v%3D0%0D%0Ao%3DZ%200%200%20IN%20IP4%20117.247.91.162%0D%0As%3DZ%0D%0Ac%3DIN%20IP4%20117.247.91.162%0D%0At%3D0%200%0D%0Am%3Daudio%208000%20RTP/AVP%203%20110%208%200%2098%20101%0D%0Aa%3Drtpmap%3A110%20speex/8000%0D%0Aa%3Drtpmap%3A98%20iLBC/8000%0D%0Aa%3Dfmtp%3A98%20mode%3D20%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0A variable_ep_codec_string: CORE_PCM_MODULE.PCMA%408000h%4020i%4064000b,CORE_PCM_MODULE.PCMU%408000h%4020i%4064000b variable_rtp_use_codec_string: PCMA,PCMU variable_remote_video_media_flow: inactive variable_remote_text_media_flow: inactive variable_remote_audio_media_flow: sendrecv variable_audio_media_flow: sendrecv variable_remote_media_ip: 117.247.91.162 variable_remote_media_port: 8000 variable_rtp_audio_recv_pt: 8 variable_rtp_use_codec_name: PCMA variable_rtp_use_codec_rate: 8000 variable_rtp_use_codec_ptime: 20 variable_rtp_use_codec_channels: 1 variable_rtp_last_audio_codec_string: PCMA%408000h%4020i%401c variable_read_codec: PCMA variable_original_read_codec: PCMA variable_read_rate: 8000 variable_original_read_rate: 8000 variable_write_codec: PCMA variable_write_rate: 8000 variable_dtmf_type: rfc2833 variable_endpoint_disposition: RECEIVED variable_call_uuid: ccc25279-92cd-46d3-8948-83978d373529 Hunt-Direction: inbound Hunt-Logical-Direction: inbound Hunt-Username: 505 Hunt-Dialplan: XML Hunt-Caller-ID-Name: 505 Hunt-Caller-ID-Number: 505 Hunt-Orig-Caller-ID-Name: 505 Hunt-Orig-Caller-ID-Number: 505 Hunt-Network-Addr: 117.247.91.162 Hunt-ANI: 505 Hunt-Destination-Number: 12344 Hunt-Unique-ID: ccc25279-92cd-46d3-8948-83978d373529 Hunt-Source: mod_sofia Hunt-Context: default Hunt-Channel-Name: sofia/default/505%40test-tls.astppbilling.org%3A7777 Hunt-Profile-Index: 1 Hunt-Profile-Created-Time: 1627543060849558 Hunt-Channel-Created-Time: 1627543060849558 Hunt-Channel-Answered-Time: 0 Hunt-Channel-Progress-Time: 0 Hunt-Channel-Progress-Media-Time: 0 Hunt-Channel-Hangup-Time: 0 Hunt-Channel-Transfer-Time: 0 Hunt-Channel-Resurrect-Time: 0 Hunt-Channel-Bridged-Time: 0 Hunt-Channel-Last-Hold: 0 Hunt-Channel-Hold-Accum: 0 Hunt-Screen-Bit: true Hunt-Privacy-Hide-Name: false Hunt-Privacy-Hide-Number: false 2021-07-29 07:17:40.849558 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] key_value: 2021-07-29 07:17:40.849558 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] section: dialplan 2021-07-29 07:17:40.849558 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] tag_name: 2021-07-29 07:17:40.849558 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] key_name: 2021-07-29 07:17:40.849558 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] blind_flag: 0 2021-07-29 07:17:40.849558 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 12344 2021-07-29 07:17:40.849558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '12344' limit 1 2021-07-29 07:17:40.849558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '12344' AND status=0 limit 1 2021-07-29 07:17:40.849558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '12344' and status=0 LIMIT 1 2021-07-29 07:17:40.849558 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FAXER] in custom Caller ID 2021-07-29 07:17:40.849558 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number : 505 / 505 2021-07-29 07:17:40.849558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="12344" LIMIT 1 2021-07-29 07:17:40.849558 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="12344" AND domains.domain="any" limit 1 2021-07-29 07:17:40.869554 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : outbound 2021-07-29 07:17:40.869554 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 4585185001] 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "4585185001" AND deleted = 0 limit 1 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^12344.*' OR blocked_patterns = '^1234.*' OR blocked_patterns = '^123.*' OR blocked_patterns = '^12.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 7 limit 1 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num ="12344" AND A.accountid = '7' limit 1 2021-07-29 07:17:40.869554 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 12344 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="12344" LIMIT 1 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation FROM sip_devices as sip_devices,accounts as accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="12344" AND domains.domain="any" limit 1 2021-07-29 07:17:40.869554 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : outbound 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="12344" AND (accountid = 0 OR status = 1) LIMIT 1 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT *,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^12344.*' OR patterns = '^1234.*' OR patterns = '^123.*' OR patterns = '^12.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 7 ORDER BY LENGTH(PKGPTR.patterns) DESC 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '12344' OR number = '1234' OR number = '123' OR number = '12' OR number = '1' OR number ='--') OR (number = '12344*' OR number = '1234*' OR number = '123*' OR number = '12*' OR number = '1*' OR number ='--') OR (number = '505' OR number = '50' OR number = '5' OR number ='--') OR (number = '505*' OR number = '50*' OR number = '5*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1 2021-07-29 07:17:40.869554 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '12344' 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 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information =================== 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 7 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 4585185001 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 46.4843 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid] 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] ======================================================== 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :outbound 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^12344.*' OR pattern = '^1234.*' OR pattern = '^123.*' OR pattern = '^12.*' OR pattern = '^1.*' OR pattern ='--') AND status = 0 AND (pricelist_id = 1 OR accountid=7) ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] call_direction:::::: outbound 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information =================== 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 13 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 0.02000 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] comment : 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 0 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 7 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk ID: 1 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Routing type: 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================ 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your46.4843 balance Accountid 7 !!! 2021-07-29 07:17:40.889556 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 100 mins! 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 100 minutes 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] [DIALPLAN] User Rate ID : 13 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES]123131 Query rate_carrier_id :1 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [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 = '^12344.*' 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 FIELD(TR.trunk_id,1),LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Termination Rates Information =================== 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 19 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Code : ^12344.* 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Destination : 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Free Seconds : 0 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Prefix : ^12344.* 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Strip : 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Prepend : 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Carrier id : 1 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] carrier_name : YourProvider 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] dialplan_variable : 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Failover gateway : 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Vendor id : 3 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Max channels : 0 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk Name : YourTrunk 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================END OF TERMINATION RATES======================= 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 7 AND status=0 LIMIT 1 2021-07-29 07:17:40.889556 [INFO] switch_cpp.cpp:1447 [ASTPP] maxlength::::::::: 100 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,out_caller_id_terminate,number_terminate,dst_base_cid FROM localization WHERE id=(SELECT localization_id from accounts where id = 3) AND status=0 limit 1 2021-07-29 07:17:40.889556 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:
Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 parsing [default->12344] continue=false Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Regex (PASS) [12344] destination_number(12344) =~ /12344/ break=on-false Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(effective_destination_number=12344) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(bridge_pre_execute_bleg_app=sched_hangup) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(callstart=2021-07-29 07:17:40) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(hangup_after_bridge=true) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(continue_on_fail=TRUE) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(account_id=7) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(parent_id=0) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(entity_id=0) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(call_processed=internal) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(call_direction=outbound) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(accountname=default) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(filename1=astpp.pbx.lua) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(origination_rates=ID:13|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.02000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(original_caller_id_name=505) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(original_caller_id_number=505) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(effective_caller_id_name=505) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(effective_caller_id_number=505) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(calltype=STANDARD) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(termination_rates=ID:19|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(trunk_id=1) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(provider_id=3) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(rate_flag=0) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(force_trunk_flag=13) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action export(presence_data=trunk_id=1) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action set(intcall=0) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action export(presence_data=x|||sahil(4585185001)|||^12344.* // // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* // // 0.01000 // trunk_id=1|||STD|||117.247.91.162) Dialplan: sofia/default/505@test-tls.astppbilling.org:7777 Action bridge([leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/12344) 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:287 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_ROUTING -> CS_EXECUTE 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:644 (sofia/default/505@test-tls.astppbilling.org:7777) State ROUTING going to sleep 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_EXECUTE (Cur 1 Tot 10) 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:651 (sofia/default/505@test-tls.astppbilling.org:7777) State EXECUTE 2021-07-29 07:17:40.889556 [DEBUG] mod_sofia.c:209 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA EXECUTE 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:329 sofia/default/505@test-tls.astppbilling.org:7777 Standard EXECUTE EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(effective_destination_number=12344) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [effective_destination_number]=[12344] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(bridge_pre_execute_bleg_app=sched_hangup) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [bridge_pre_execute_bleg_app]=[sched_hangup] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(bridge_pre_execute_bleg_data=+6000 normal_clearing) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(callstart=2021-07-29 07:17:40) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [callstart]=[2021-07-29 07:17:40] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(hangup_after_bridge=true) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [hangup_after_bridge]=[true] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(continue_on_fail=TRUE) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [continue_on_fail]=[TRUE] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(account_id=7) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [account_id]=[7] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(parent_id=0) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [parent_id]=[0] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(entity_id=0) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [entity_id]=[0] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(call_processed=internal) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [call_processed]=[internal] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(call_direction=outbound) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [call_direction]=[outbound] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(accountname=default) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [accountname]=[default] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(filename1=astpp.pbx.lua) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [filename1]=[astpp.pbx.lua] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(origination_rates=ID:13|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.02000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [origination_rates]=[ID:13|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.02000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:7] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(original_caller_id_name=505) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [original_caller_id_name]=[505] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(original_caller_id_number=505) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [original_caller_id_number]=[505] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(effective_caller_id_name=505) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [effective_caller_id_name]=[505] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(effective_caller_id_number=505) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [effective_caller_id_number]=[505] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(calltype=STANDARD) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [calltype]=[STANDARD] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(termination_rates=ID:19|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [termination_rates]=[ID:19|CODE:^12344.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.01000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(trunk_id=1) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [trunk_id]=[1] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(provider_id=3) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [provider_id]=[3] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(rate_flag=0) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [rate_flag]=[0] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(force_trunk_flag=13) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [force_trunk_flag]=[13] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 export(presence_data=trunk_id=1) 2021-07-29 07:17:40.889556 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[trunk_id=1] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 set(intcall=0) 2021-07-29 07:17:40.889556 [DEBUG] mod_dptools.c:1672 SET sofia/default/505@test-tls.astppbilling.org:7777 [intcall]=[0] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 export(presence_data=x|||sahil(4585185001)|||^12344.* // // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* // // 0.01000 // trunk_id=1|||STD|||117.247.91.162) 2021-07-29 07:17:40.889556 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[x|||sahil(4585185001)|||^12344.* // // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* // // 0.01000 // trunk_id=1|||STD|||117.247.91.162] EXECUTE [depth=0] sofia/default/505@test-tls.astppbilling.org:7777 bridge([leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/12344) 2021-07-29 07:17:40.889556 [DEBUG] switch_channel.c:1264 sofia/default/505@test-tls.astppbilling.org:7777 EXPORTING[export_vars] [presence_data]=[x|||sahil(4585185001)|||^12344.* // // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* // // 0.01000 // trunk_id=1|||STD|||117.247.91.162] to event 2021-07-29 07:17:40.889556 [DEBUG] switch_channel.c:1264 sofia/default/505@test-tls.astppbilling.org:7777 EXPORTING[export_vars] [presence_data]=[x|||sahil(4585185001)|||^12344.* // // 0.02000 // trunk_id=1|||YourTrunk // ^12344.* // // 0.01000 // trunk_id=1|||STD|||117.247.91.162] to event 2021-07-29 07:17:40.889556 [DEBUG] switch_ivr_originate.c:2242 Parsing global variables 2021-07-29 07:17:40.889556 [DEBUG] switch_ivr_originate.c:2804 Parsing session specific variables 2021-07-29 07:17:40.889556 [NOTICE] switch_channel.c:1118 New Channel sofia/default/12344 [79893841-d2ad-4df7-a9ad-7d897f5adb85] 2021-07-29 07:17:40.889556 [DEBUG] mod_sofia.c:5089 (sofia/default/12344) State Change CS_NEW -> CS_INIT 2021-07-29 07:17:40.889556 [DEBUG] switch_ivr_originate.c:3111 sofia/default/12344 Setting leg timeout to 30 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_INIT (Cur 2 Tot 11) 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:628 (sofia/default/12344) State INIT 2021-07-29 07:17:40.889556 [DEBUG] mod_sofia.c:93 sofia/default/12344 SOFIA INIT 2021-07-29 07:17:40.889556 [DEBUG] sofia_glue.c:1618 sofia/default/12344 sending invite version: 1.10.5 -release-17-25569c1631 64bit Local SDP: v=0 o=FreeSWITCH 1627517048 1627517049 IN IP4 13.232.140.73 s=FreeSWITCH c=IN IP4 13.232.140.73 t=0 0 m=audio 26012 RTP/AVP 8 18 101 a=rtpmap:8 PCMA/8000 a=rtpmap:18 G729/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 a=sendrecv 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:40 sofia/default/12344 Standard INIT 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:48 (sofia/default/12344) State Change CS_INIT -> CS_ROUTING 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:628 (sofia/default/12344) State INIT going to sleep 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_ROUTING (Cur 2 Tot 11) 2021-07-29 07:17:40.889556 [DEBUG] sofia.c:7326 Channel sofia/default/12344 entering state [calling][0] 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:644 (sofia/default/12344) State ROUTING 2021-07-29 07:17:40.889556 [DEBUG] mod_sofia.c:154 sofia/default/12344 SOFIA ROUTING 2021-07-29 07:17:40.889556 [DEBUG] switch_ivr_originate.c:67 (sofia/default/12344) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:644 (sofia/default/12344) State ROUTING going to sleep 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 11) 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:663 (sofia/default/12344) State CONSUME_MEDIA 2021-07-29 07:17:40.889556 [DEBUG] switch_core_state_machine.c:663 (sofia/default/12344) State CONSUME_MEDIA going to sleep 2021-07-29 07:17:41.629576 [DEBUG] sofia.c:7326 Channel sofia/default/12344 entering state [proceeding][180] 2021-07-29 07:17:41.629576 [NOTICE] sofia.c:7437 Ring-Ready sofia/default/12344! 2021-07-29 07:17:41.629576 [DEBUG] switch_channel.c:3437 (sofia/default/12344) Callstate Change DOWN -> RINGING 2021-07-29 07:17:41.629576 [NOTICE] mod_sofia.c:2498 Ring-Ready sofia/default/505@test-tls.astppbilling.org:7777! 2021-07-29 07:17:41.649555 [DEBUG] sofia.c:7326 Channel sofia/default/505@test-tls.astppbilling.org:7777 entering state [early][180] 2021-07-29 07:17:41.649555 [NOTICE] switch_ivr_originate.c:556 Ring Ready sofia/default/505@test-tls.astppbilling.org:7777! 2021-07-29 07:17:45.289577 [DEBUG] sofia.c:7326 Channel sofia/default/12344 entering state [completing][200] 2021-07-29 07:17:45.289577 [DEBUG] sofia.c:7336 Remote SDP: v=0 o=root 117860649 117860649 IN IP4 159.203.131.36 s=Asterisk PBX 16.4.0 c=IN IP4 159.203.131.36 t=0 0 m=audio 17514 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=maxptime:150 2021-07-29 07:17:45.289577 [DEBUG] sofia.c:7326 Channel sofia/default/12344 entering state [ready][200] 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[PCMA:8:8000:20:64000:1] 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:150:64000:1]/[G729:18:8000:20:8000:1] 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/12344 PCMA/8000 20 ms 160 samples 64000 bits 1 channels 2021-07-29 07:17:45.289577 [DEBUG] switch_core_codec.c:111 sofia/default/12344 Original read codec set to PCMA:8 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:5911 sofia/default/12344 Set 2833 dtmf send payload to 101 recv payload to 101 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/12344] 172.31.5.221 port 26012 -> 159.203.131.36 port 17514 codec: 8 ms: 20 2021-07-29 07:17:45.289577 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:8977 sofia/default/12344 Set 2833 dtmf send payload to 101 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:8984 sofia/default/12344 Set 2833 dtmf receive payload to 101 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:9007 sofia/default/12344 Set rtp dtmf delay to 40 2021-07-29 07:17:45.289577 [NOTICE] sofia.c:8504 Channel [sofia/default/12344] has been answered 2021-07-29 07:17:45.289577 [DEBUG] switch_channel.c:3865 (sofia/default/12344) Callstate Change RINGING -> ACTIVE 2021-07-29 07:17:45.289577 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/505@test-tls.astppbilling.org:7777] 172.31.5.221 port 27664 -> 117.247.91.162 port 8000 codec: 8 ms: 20 2021-07-29 07:17:45.289577 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms 2021-07-29 07:17:45.309560 [DEBUG] switch_core_media.c:8977 sofia/default/505@test-tls.astppbilling.org:7777 Set 2833 dtmf send payload to 101 2021-07-29 07:17:45.309560 [DEBUG] switch_core_media.c:8984 sofia/default/505@test-tls.astppbilling.org:7777 Set 2833 dtmf receive payload to 101 2021-07-29 07:17:45.309560 [DEBUG] switch_core_media.c:9007 sofia/default/505@test-tls.astppbilling.org:7777 Set rtp dtmf delay to 40 2021-07-29 07:17:45.309560 [DEBUG] mod_sofia.c:898 Local SDP sofia/default/505@test-tls.astppbilling.org:7777: v=0 o=FreeSWITCH 1627515401 1627515402 IN IP4 13.232.140.73 s=FreeSWITCH c=IN IP4 13.232.140.73 t=0 0 m=audio 27664 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 2021-07-29 07:17:45.309560 [DEBUG] sofia.c:7326 Channel sofia/default/505@test-tls.astppbilling.org:7777 entering state [completed][200] 2021-07-29 07:17:45.309560 [NOTICE] switch_ivr_originate.c:3794 Channel [sofia/default/505@test-tls.astppbilling.org:7777] has been answered 2021-07-29 07:17:45.309560 [DEBUG] switch_channel.c:3865 (sofia/default/505@test-tls.astppbilling.org:7777) Callstate Change RINGING -> ACTIVE 2021-07-29 07:17:45.309560 [DEBUG] switch_ivr_originate.c:3852 Originate Resulted in Success: [sofia/default/12344] 2021-07-29 07:17:45.309560 [DEBUG] switch_ivr_bridge.c:1793 (sofia/default/12344) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA 2021-07-29 07:17:45.309560 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 11) 2021-07-29 07:17:45.309560 [DEBUG] switch_core_state_machine.c:654 (sofia/default/12344) State EXCHANGE_MEDIA 2021-07-29 07:17:45.309560 [DEBUG] mod_sofia.c:656 SOFIA EXCHANGE_MEDIA 2021-07-29 07:17:45.329555 [DEBUG] sofia.c:7326 Channel sofia/default/505@test-tls.astppbilling.org:7777 entering state [ready][200] 2021-07-29 07:17:45.429577 [DEBUG] switch_rtp.c:7759 Correct audio ip/port confirmed. 2021-07-29 07:17:45.489578 [DEBUG] switch_ivr_bridge.c:655 sofia/default/12344 Bridge execute app sched_hangup(+6000 normal_clearing) 2021-07-29 07:17:45.509581 [DEBUG] switch_ivr.c:632 sofia/default/12344 Command Execute [depth=0] sched_hangup(+6000 normal_clearing) EXECUTE [depth=0] sofia/default/12344 sched_hangup(+6000 normal_clearing) 2021-07-29 07:17:45.509581 [DEBUG] switch_scheduler.c:252 Added task 5 switch_ivr_schedule_hangup (79893841-d2ad-4df7-a9ad-7d897f5adb85) to run at 1627549065 2021-07-29 07:17:45.589557 [DEBUG] switch_rtp.c:7759 Correct audio ip/port confirmed. 2021-07-29 07:17:57.069556 [DEBUG] switch_rtp.c:8004 RTP RECV DTMF *:1440 2021-07-29 07:17:57.069556 [INFO] switch_channel.c:522 RECV DTMF *:1440 2021-07-29 07:17:57.069556 [DEBUG] switch_rtp.c:5585 Send start packet for [*] ts=2446668600 dur=160/160/1440 seq=11253 lw=2446668600 2021-07-29 07:17:57.089559 [DEBUG] switch_rtp.c:5484 Send middle packet for [*] ts=2446668600 dur=320/320/1440 seq=11254 lw=2446668760 2021-07-29 07:17:57.109561 [DEBUG] switch_rtp.c:5484 Send middle packet for [*] ts=2446668600 dur=480/480/1440 seq=11255 lw=2446668920 2021-07-29 07:17:57.129558 [DEBUG] switch_rtp.c:5484 Send middle packet for [*] ts=2446668600 dur=640/640/1440 seq=11256 lw=2446669080 2021-07-29 07:17:57.149559 [DEBUG] switch_rtp.c:5484 Send middle packet for [*] ts=2446668600 dur=800/800/1440 seq=11257 lw=2446669240 2021-07-29 07:17:57.169570 [DEBUG] switch_rtp.c:5484 Send middle packet for [*] ts=2446668600 dur=960/960/1440 seq=11258 lw=2446669400 2021-07-29 07:17:57.189558 [DEBUG] switch_rtp.c:5484 Send middle packet for [*] ts=2446668600 dur=1120/1120/1440 seq=11259 lw=2446669560 2021-07-29 07:17:57.209558 [DEBUG] switch_rtp.c:5484 Send middle packet for [*] ts=2446668600 dur=1280/1280/1440 seq=11260 lw=2446669720 2021-07-29 07:17:57.229556 [DEBUG] switch_rtp.c:5484 Send end packet for [*] ts=2446668600 dur=1440/1440/1440 seq=11261 lw=2446669720 2021-07-29 07:17:57.229556 [DEBUG] switch_rtp.c:5484 Send end packet for [*] ts=2446668600 dur=1440/1440/1440 seq=11262 lw=2446669720 2021-07-29 07:17:57.229556 [DEBUG] switch_rtp.c:5484 Send end packet for [*] ts=2446668600 dur=1440/1440/1440 seq=11263 lw=2446669720 2021-07-29 07:17:57.229556 [DEBUG] switch_rtp.c:5432 Queue digit delay of 40ms 2021-07-29 07:17:58.209557 [DEBUG] switch_rtp.c:8004 RTP RECV DTMF 2:1280 2021-07-29 07:17:58.209557 [INFO] switch_channel.c:522 RECV DTMF 2:1280 2021-07-29 07:17:58.209557 [DEBUG] switch_rtp.c:5585 Send start packet for [2] ts=2446677720 dur=160/160/1280 seq=11305 lw=2446677720 2021-07-29 07:17:58.229603 [DEBUG] switch_rtp.c:5484 Send middle packet for [2] ts=2446677720 dur=320/320/1280 seq=11306 lw=2446677880 2021-07-29 07:17:58.249559 [DEBUG] switch_rtp.c:5484 Send middle packet for [2] ts=2446677720 dur=480/480/1280 seq=11307 lw=2446678040 2021-07-29 07:17:58.269540 [DEBUG] switch_rtp.c:5484 Send middle packet for [2] ts=2446677720 dur=640/640/1280 seq=11308 lw=2446678200 2021-07-29 07:17:58.289559 [DEBUG] switch_rtp.c:5484 Send middle packet for [2] ts=2446677720 dur=800/800/1280 seq=11309 lw=2446678360 2021-07-29 07:17:58.309559 [DEBUG] switch_rtp.c:5484 Send middle packet for [2] ts=2446677720 dur=960/960/1280 seq=11310 lw=2446678520 2021-07-29 07:17:58.329576 [DEBUG] switch_rtp.c:5484 Send middle packet for [2] ts=2446677720 dur=1120/1120/1280 seq=11311 lw=2446678680 2021-07-29 07:17:58.349559 [DEBUG] switch_rtp.c:5484 Send end packet for [2] ts=2446677720 dur=1280/1280/1280 seq=11312 lw=2446678680 2021-07-29 07:17:58.349559 [DEBUG] switch_rtp.c:5484 Send end packet for [2] ts=2446677720 dur=1280/1280/1280 seq=11313 lw=2446678680 2021-07-29 07:17:58.349559 [DEBUG] switch_rtp.c:5484 Send end packet for [2] ts=2446677720 dur=1280/1280/1280 seq=11314 lw=2446678680 2021-07-29 07:17:58.349559 [DEBUG] switch_rtp.c:5432 Queue digit delay of 40ms 2021-07-29 07:18:03.249576 [NOTICE] sofia.c:1089 Hangup sofia/default/505@test-tls.astppbilling.org:7777 [CS_EXECUTE] [NORMAL_CLEARING] 2021-07-29 07:18:03.269564 [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/505@test-tls.astppbilling.org:7777] 2021-07-29 07:18:03.269564 [DEBUG] switch_ivr_bridge.c:820 sofia/default/505@test-tls.astppbilling.org:7777 ending bridge by request from write function 2021-07-29 07:18:03.269564 [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/12344] 2021-07-29 07:18:03.269564 [NOTICE] switch_ivr_bridge.c:1029 Hangup sofia/default/12344 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING] 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:654 (sofia/default/12344) State EXCHANGE_MEDIA going to sleep 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_HANGUP (Cur 2 Tot 11) 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:848 (sofia/default/12344) Callstate Change ACTIVE -> HANGUP 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:850 (sofia/default/12344) State HANGUP 2021-07-29 07:18:03.269564 [DEBUG] mod_sofia.c:447 sofia/default/12344 Overriding SIP cause 480 with 200 from the other leg 2021-07-29 07:18:03.269564 [DEBUG] mod_sofia.c:453 Channel sofia/default/12344 hanging up, cause: NORMAL_CLEARING 2021-07-29 07:18:03.269564 [DEBUG] mod_sofia.c:507 Sending BYE to sofia/default/12344 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:60 sofia/default/12344 Standard HANGUP, cause: NORMAL_CLEARING 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:850 (sofia/default/12344) State HANGUP going to sleep 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:620 (sofia/default/12344) State Change CS_HANGUP -> CS_REPORTING 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:585 (sofia/default/12344) Running State Change CS_REPORTING (Cur 2 Tot 11) 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:936 (sofia/default/12344) State REPORTING 2021-07-29 07:18:03.269564 [INFO] mod_json_cdr.c:271 Process [79893841-d2ad-4df7-a9ad-7d897f5adb85.cdr.json] 2021-07-29 07:18:03.269564 [DEBUG] switch_ivr_bridge.c:1892 sofia/default/12344 skip receive message [UNBRIDGE] (channel is hungup already) 2021-07-29 07:18:03.269564 [DEBUG] switch_ivr_bridge.c:1895 sofia/default/505@test-tls.astppbilling.org:7777 skip receive message [UNBRIDGE] (channel is hungup already) 2021-07-29 07:18:03.269564 [DEBUG] switch_core_session.c:2905 sofia/default/505@test-tls.astppbilling.org:7777 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already) 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:651 (sofia/default/505@test-tls.astppbilling.org:7777) State EXECUTE going to sleep 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_HANGUP (Cur 2 Tot 11) 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:848 (sofia/default/505@test-tls.astppbilling.org:7777) Callstate Change ACTIVE -> HANGUP 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:850 (sofia/default/505@test-tls.astppbilling.org:7777) State HANGUP 2021-07-29 07:18:03.269564 [DEBUG] mod_sofia.c:453 Channel sofia/default/505@test-tls.astppbilling.org:7777 hanging up, cause: NORMAL_CLEARING 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:60 sofia/default/505@test-tls.astppbilling.org:7777 Standard HANGUP, cause: NORMAL_CLEARING 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:850 (sofia/default/505@test-tls.astppbilling.org:7777) State HANGUP going to sleep 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:620 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_HANGUP -> CS_REPORTING 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:585 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_REPORTING (Cur 2 Tot 11) 2021-07-29 07:18:03.269564 [DEBUG] switch_core_state_machine.c:936 (sofia/default/505@test-tls.astppbilling.org:7777) State REPORTING 2021-07-29 07:18:03.269564 [INFO] mod_json_cdr.c:271 Process [ccc25279-92cd-46d3-8948-83978d373529.cdr.json] 2021-07-29 07:18:03.289559 [DEBUG] switch_core_state_machine.c:174 sofia/default/12344 Standard REPORTING, cause: NORMAL_CLEARING 2021-07-29 07:18:03.289559 [DEBUG] switch_core_state_machine.c:936 (sofia/default/12344) State REPORTING going to sleep 2021-07-29 07:18:03.289559 [DEBUG] switch_core_state_machine.c:611 (sofia/default/12344) State Change CS_REPORTING -> CS_DESTROY 2021-07-29 07:18:03.289559 [DEBUG] switch_core_session.c:1726 Session 11 (sofia/default/12344) Locked, Waiting on external entities 2021-07-29 07:18:03.289559 [NOTICE] switch_core_session.c:1744 Session 11 (sofia/default/12344) Ended 2021-07-29 07:18:03.289559 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/12344 [CS_DESTROY] 2021-07-29 07:18:03.289559 [DEBUG] switch_core_state_machine.c:739 (sofia/default/12344) Running State Change CS_DESTROY (Cur 1 Tot 11) 2021-07-29 07:18:03.289559 [DEBUG] switch_core_state_machine.c:749 (sofia/default/12344) State DESTROY 2021-07-29 07:18:03.289559 [DEBUG] mod_sofia.c:364 sofia/default/12344 SOFIA DESTROY 2021-07-29 07:18:03.289559 [DEBUG] switch_core_state_machine.c:181 sofia/default/12344 Standard DESTROY 2021-07-29 07:18:03.289559 [DEBUG] switch_core_state_machine.c:749 (sofia/default/12344) State DESTROY going to sleep 2021-07-29 07:18:03.309561 [DEBUG] switch_core_state_machine.c:174 sofia/default/505@test-tls.astppbilling.org:7777 Standard REPORTING, cause: NORMAL_CLEARING 2021-07-29 07:18:03.309561 [DEBUG] switch_core_state_machine.c:936 (sofia/default/505@test-tls.astppbilling.org:7777) State REPORTING going to sleep 2021-07-29 07:18:03.309561 [DEBUG] switch_core_state_machine.c:611 (sofia/default/505@test-tls.astppbilling.org:7777) State Change CS_REPORTING -> CS_DESTROY 2021-07-29 07:18:03.309561 [DEBUG] switch_core_session.c:1726 Session 10 (sofia/default/505@test-tls.astppbilling.org:7777) Locked, Waiting on external entities 2021-07-29 07:18:03.309561 [NOTICE] switch_core_session.c:1744 Session 10 (sofia/default/505@test-tls.astppbilling.org:7777) Ended 2021-07-29 07:18:03.309561 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/505@test-tls.astppbilling.org:7777 [CS_DESTROY] 2021-07-29 07:18:03.309561 [DEBUG] switch_core_state_machine.c:739 (sofia/default/505@test-tls.astppbilling.org:7777) Running State Change CS_DESTROY (Cur 0 Tot 11) 2021-07-29 07:18:03.309561 [DEBUG] switch_core_state_machine.c:749 (sofia/default/505@test-tls.astppbilling.org:7777) State DESTROY 2021-07-29 07:18:03.309561 [DEBUG] mod_sofia.c:364 sofia/default/505@test-tls.astppbilling.org:7777 SOFIA DESTROY 2021-07-29 07:18:03.309561 [DEBUG] switch_core_state_machine.c:181 sofia/default/505@test-tls.astppbilling.org:7777 Standard DESTROY 2021-07-29 07:18:03.309561 [DEBUG] switch_core_state_machine.c:749 (sofia/default/505@test-tls.astppbilling.org:7777) State DESTROY going to sleep 2021-07-29 07:18:03.509564 [DEBUG] switch_scheduler.c:147 Deleting task 5 switch_ivr_schedule_hangup (79893841-d2ad-4df7-a9ad-7d897f5adb85)