freeswitch@ip-172-31-23-227> freeswitch@ip-172-31-23-227> freeswitch@ip-172-31-23-227> 2021-02-22 10:18:39.304987 [NOTICE] switch_channel.c:1118 New Channel sofia/default/4000@13.127.159.248 [6aa87d48-d0be-4439-88a6-aa89e09dbe0c] 2021-02-22 10:18:39.304987 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4000@13.127.159.248) Running State Change CS_NEW (Cur 1 Tot 385) 2021-02-22 10:18:39.304987 [DEBUG] sofia.c:10280 sofia/default/4000@13.127.159.248 receiving invite from 13.127.159.248:5060 version: 1.10.5 -release-17-25569c1631 64bit 2021-02-22 10:18:39.324966 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 13.127.159.248:0. 2021-02-22 10:18:39.324966 [DEBUG] sofia.c:10403 IP 13.127.159.248 Approved by acl "default[]". Access Granted. 2021-02-22 10:18:39.324966 [DEBUG] sofia.c:7326 Channel sofia/default/4000@13.127.159.248 entering state [received][100] 2021-02-22 10:18:39.324966 [DEBUG] sofia.c:7336 Remote SDP: v=0 o=FreeSWITCH 1613965557 1613965558 IN IP4 13.127.159.248 s=FreeSWITCH c=IN IP4 13.127.159.248 t=0 0 m=audio 23562 RTP/AVP 8 0 18 101 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:18 G729/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20 2021-02-22 10:18:39.324966 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2021-02-22 10:18:39.324966 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2021-02-22 10:18:39.324966 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2021-02-22 10:18:39.324966 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2021-02-22 10:18:39.324966 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2021-02-22 10:18:39.324966 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2021-02-22 10:18:39.324966 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1] 2021-02-22 10:18:39.324966 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1] 2021-02-22 10:18:39.324966 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000 2021-02-22 10:18:39.324966 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/4000@13.127.159.248 PCMA/8000 20 ms 160 samples 64000 bits 1 channels 2021-02-22 10:18:39.324966 [DEBUG] switch_core_codec.c:111 sofia/default/4000@13.127.159.248 Original read codec set to PCMA:8 2021-02-22 10:18:39.324966 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000 2021-02-22 10:18:39.324966 [DEBUG] switch_core_media.c:5911 sofia/default/4000@13.127.159.248 Set 2833 dtmf send payload to 101 recv payload to 101 2021-02-22 10:18:39.324966 [DEBUG] sofia.c:7760 (sofia/default/4000@13.127.159.248) State Change CS_NEW -> CS_INIT 2021-02-22 10:18:39.324966 [DEBUG] switch_core_state_machine.c:604 (sofia/default/4000@13.127.159.248) State NEW 2021-02-22 10:18:39.324966 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4000@13.127.159.248) Running State Change CS_INIT (Cur 1 Tot 385) 2021-02-22 10:18:39.324966 [DEBUG] switch_core_state_machine.c:628 (sofia/default/4000@13.127.159.248) State INIT 2021-02-22 10:18:39.324966 [DEBUG] mod_sofia.c:93 sofia/default/4000@13.127.159.248 SOFIA INIT 2021-02-22 10:18:39.324966 [DEBUG] switch_core_state_machine.c:40 sofia/default/4000@13.127.159.248 Standard INIT 2021-02-22 10:18:39.324966 [DEBUG] switch_core_state_machine.c:48 (sofia/default/4000@13.127.159.248) State Change CS_INIT -> CS_ROUTING 2021-02-22 10:18:39.324966 [DEBUG] switch_core_state_machine.c:628 (sofia/default/4000@13.127.159.248) State INIT going to sleep 2021-02-22 10:18:39.324966 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4000@13.127.159.248) Running State Change CS_ROUTING (Cur 1 Tot 385) 2021-02-22 10:18:39.324966 [DEBUG] switch_channel.c:2332 (sofia/default/4000@13.127.159.248) Callstate Change DOWN -> RINGING 2021-02-22 10:18:39.324966 [DEBUG] switch_core_state_machine.c:644 (sofia/default/4000@13.127.159.248) State ROUTING 2021-02-22 10:18:39.324966 [DEBUG] mod_sofia.c:154 sofia/default/4000@13.127.159.248 SOFIA ROUTING 2021-02-22 10:18:39.324966 [DEBUG] switch_core_state_machine.c:236 sofia/default/4000@13.127.159.248 Standard ROUTING 2021-02-22 10:18:39.324966 [INFO] mod_dialplan_xml.c:637 Processing 4000 <4000>->123456 in context default 2021-02-22 10:18:39.364967 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes') 2021-02-22 10:18:39.364967 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2021-02-22 10:18:39.384964 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [xml_handler] Params: Event-Name: REQUEST_PARAMS Core-UUID: 22268e51-3187-474a-b82e-9ed977c04631 FreeSWITCH-Hostname: ip-172-31-23-227 FreeSWITCH-Switchname: ip-172-31-23-227 FreeSWITCH-IPv4: 172.31.23.227 FreeSWITCH-IPv6: %3A%3A1 Event-Date-Local: 2021-02-22%2010%3A18%3A39 Event-Date-GMT: Mon,%2022%20Feb%202021%2010%3A18%3A39%20GMT Event-Date-Timestamp: 1613989119324966 Event-Calling-File: mod_dialplan_xml.c Event-Calling-Function: dialplan_xml_locate Event-Calling-Line-Number: 608 Event-Sequence: 357714 Channel-State: CS_ROUTING Channel-Call-State: RINGING Channel-State-Number: 2 Channel-Name: sofia/default/4000%4013.127.159.248 Unique-ID: 6aa87d48-d0be-4439-88a6-aa89e09dbe0c Call-Direction: inbound Presence-Call-Direction: inbound Channel-HIT-Dialplan: true Channel-Presence-ID: 4000%4013.127.159.248 Channel-Call-UUID: 6aa87d48-d0be-4439-88a6-aa89e09dbe0c 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: 4000 Caller-Dialplan: XML Caller-Caller-ID-Name: 4000 Caller-Caller-ID-Number: 4000 Caller-Orig-Caller-ID-Name: 4000 Caller-Orig-Caller-ID-Number: 4000 Caller-Network-Addr: 13.127.159.248 Caller-ANI: 4000 Caller-Destination-Number: 123456 Caller-Unique-ID: 6aa87d48-d0be-4439-88a6-aa89e09dbe0c Caller-Source: mod_sofia Caller-Context: default Caller-Channel-Name: sofia/default/4000%4013.127.159.248 Caller-Profile-Index: 1 Caller-Profile-Created-Time: 1613989119324966 Caller-Channel-Created-Time: 1613989119324966 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: 6aa87d48-d0be-4439-88a6-aa89e09dbe0c variable_session_id: 385 variable_sip_from_user: 4000 variable_sip_from_uri: 4000%4013.127.159.248 variable_sip_from_host: 13.127.159.248 variable_video_media_flow: disabled variable_text_media_flow: disabled variable_channel_name: sofia/default/4000%4013.127.159.248 variable_sip_call_id: 2c185857-ef9a-1239-f6ab-029485f1bd1c variable_sip_local_network_addr: 18.221.51.90 variable_sip_network_ip: 13.127.159.248 variable_sip_network_port: 5060 variable_sip_invite_stamp: 1613989119304987 variable_sip_received_ip: 13.127.159.248 variable_sip_received_port: 5060 variable_sip_via_protocol: udp variable_sip_authorized: true variable_sip_acl_authed_by: default variable_sip_from_user_stripped: 4000 variable_sip_from_tag: U4rBN5B6gUpNc variable_sofia_profile_name: default variable_sofia_profile_url: sip%3Amod_sofia%4018.221.51.90%3A7777 variable_recovery_profile_name: default variable_sip_Remote-Party-ID: %224000%22%20%3Csip%3A4000%4013.127.159.248%3E%3Bparty%3Dcalling%3Bscreen%3Dyes%3Bprivacy%3Doff variable_sip_cid_type: rpid variable_sip_full_via: SIP/2.0/UDP%2013.127.159.248%3Brport%3D5060%3Bbranch%3Dz9hG4bK09gH20cD63XBH variable_sip_from_display: 4000 variable_sip_full_from: %224000%22%20%3Csip%3A4000%4013.127.159.248%3E%3Btag%3DU4rBN5B6gUpNc variable_sip_full_to: %3Csip%3A123456%4018.221.51.90%3A7777%3E variable_sip_allow: INVITE,%20ACK,%20BYE,%20CANCEL,%20OPTIONS,%20MESSAGE,%20INFO,%20UPDATE,%20REGISTER,%20REFER,%20NOTIFY,%20PUBLISH,%20SUBSCRIBE variable_sip_req_user: 123456 variable_sip_req_port: 7777 variable_sip_req_uri: 123456%4018.221.51.90%3A7777 variable_sip_req_host: 18.221.51.90 variable_sip_to_user: 123456 variable_sip_to_port: 7777 variable_sip_to_uri: 123456%4018.221.51.90%3A7777 variable_sip_to_host: 18.221.51.90 variable_sip_contact_params: transport%3Dudp%3Bgw%3DDhaval_gt variable_sip_contact_user: gw%2BDhaval_gt variable_sip_contact_port: 5060 variable_sip_contact_uri: gw%2BDhaval_gt%4013.127.159.248%3A5060 variable_sip_contact_host: 13.127.159.248 variable_sip_user_agent: ASTPP variable_sip_via_host: 13.127.159.248 variable_sip_via_rport: 5060 variable_max_forwards: 69 variable_presence_id: 4000%4013.127.159.248 variable_switch_r_sdp: v%3D0%0D%0Ao%3DFreeSWITCH%201613965557%201613965558%20IN%20IP4%2013.127.159.248%0D%0As%3DFreeSWITCH%0D%0Ac%3DIN%20IP4%2013.127.159.248%0D%0At%3D0%200%0D%0Am%3Daudio%2023562%20RTP/AVP%208%200%2018%20101%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%0D%0Aa%3Drtpmap%3A0%20PCMU/8000%0D%0Aa%3Drtpmap%3A18%20G729/8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-16%0D%0Aa%3Dptime%3A20%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: 13.127.159.248 variable_remote_media_port: 23562 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: 6aa87d48-d0be-4439-88a6-aa89e09dbe0c Hunt-Direction: inbound Hunt-Logical-Direction: inbound Hunt-Username: 4000 Hunt-Dialplan: XML Hunt-Caller-ID-Name: 4000 Hunt-Caller-ID-Number: 4000 Hunt-Orig-Caller-ID-Name: 4000 Hunt-Orig-Caller-ID-Number: 4000 Hunt-Network-Addr: 13.127.159.248 Hunt-ANI: 4000 Hunt-Destination-Number: 123456 Hunt-Unique-ID: 6aa87d48-d0be-4439-88a6-aa89e09dbe0c Hunt-Source: mod_sofia Hunt-Context: default Hunt-Channel-Name: sofia/default/4000%4013.127.159.248 Hunt-Profile-Index: 1 Hunt-Profile-Created-Time: 1613989119324966 Hunt-Channel-Created-Time: 1613989119324966 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-02-22 10:18:39.384964 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] key_value: 2021-02-22 10:18:39.384964 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] section: dialplan 2021-02-22 10:18:39.384964 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] tag_name: 2021-02-22 10:18:39.384964 [INFO] switch_cpp.cpp:1447 [ASTPP] [xml_REQUEST] key_name: 2021-02-22 10:18:39.384964 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] blind_flag: 0 2021-02-22 10:18:39.384964 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 123456 2021-02-22 10:18:39.384964 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '123456' limit 1 2021-02-22 10:18:39.384964 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '123456' AND status=0 limit 1 2021-02-22 10:18:39.384964 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '123456' and status=0 LIMIT 1 2021-02-22 10:18:39.384964 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number : 4000 / 4000 2021-02-22 10:18:39.384964 [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 ="123456" LIMIT 1 2021-02-22 10:18:39.384964 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : inbound 2021-02-22 10:18:39.384964 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("13.127.159.248") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 - SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1)) AND "123456" LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1 2021-02-22 10:18:39.384964 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 3673942894] 2021-02-22 10:18:39.384964 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1 2021-02-22 10:18:39.404965 [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 ="123456" AND A.accountid = '3' limit 1 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 123456 2021-02-22 10:18:39.404965 [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 ="123456" LIMIT 1 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call direction : inbound 2021-02-22 10:18:39.404965 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="123456" AND (accountid = 0 OR status = 1) LIMIT 1 2021-02-22 10:18:39.404965 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] call_direction :inbound 2021-02-22 10:18:39.404965 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] DID_ACCOUNTID :4 2021-02-22 10:18:39.404965 [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 = '^123456.*' OR patterns = '^12345.*' OR patterns = '^1234.*' OR patterns = '^123.*' OR patterns = '^12.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 4 ORDER BY LENGTH(PKGPTR.patterns) DESC 2021-02-22 10:18:39.404965 [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 = '123456' OR number = '12345' OR number = '1234' OR number = '123' OR number = '12' OR number = '1' OR number ='--') OR (number = '123456*' OR number = '12345*' OR number = '1234*' OR number = '123*' OR number = '12*' OR number = '1*' OR number ='--') OR (number = '4000' OR number = '400' OR number = '40' OR number = '4' OR number ='--') OR (number = '4000*' OR number = '400*' OR number = '40*' OR number = '4*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2021-02-22 10:18:39.404965 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1 2021-02-22 10:18:39.404965 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '123456' OR routing_prefix = '12345' OR routing_prefix = '1234' OR routing_prefix = '123' OR routing_prefix = '12' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information =================== 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 3 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 3673942894 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 10000 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid] 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] ======================================================== 2021-02-22 10:18:39.404965 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0 2021-02-22 10:18:39.404965 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :inbound 2021-02-22 10:18:39.404965 [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 ="123456" LIMIT 1 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] call_direction:::::: inbound 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information =================== 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 5 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 0.00000 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] comment : 123456 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 85 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 3 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================ 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 3 !!! 2021-02-22 10:18:39.404965 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max length duration : 100 minutes 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] INB_FREE:TRUE 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] free_inbound:1 2021-02-22 10:18:39.404965 [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 = 3 AND status=0 LIMIT 1 2021-02-22 10:18:39.404965 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "4" AND deleted = 0 limit 1 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Actual CustomerInfo XML:3 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Userinfo XML:3 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Actual CustomerInfo XML : 3 2021-02-22 10:18:39.404965 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 4 limit 1 2021-02-22 10:18:39.404965 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] user_domaindhaval.dhaval.astppbilling.org 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] maxlength::::::::: 100 2021-02-22 10:18:39.404965 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] customer_userinfo['is_recording'] : 1 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] call_direction : inbound 2021-02-22 10:18:39.404965 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET get_record_info] Query :SELECT sip_device_routing.is_recording FROM sip_devices AS sip_devices, accounts AS accounts ,sip_device_routing AS sip_device_routing WHERE sip_devices.accountid = accounts.id AND sip_devices.id = sip_device_routing.sip_device_id AND sip_devices.username = "1" AND accounts.status = 0 2021-02-22 10:18:39.404965 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET domains] Query :SELECT * FROM domains WHERE accountid = 4 limit 1 2021-02-22 10:18:39.404965 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] user_domaindhaval.dhaval.astppbilling.org 2021-02-22 10:18:39.404965 [DEBUG] switch_cpp.cpp:1447 [ASTPP] custom_function_name:::::::::::::::::::::::::custom_inbound_7 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] call_type : 7 2021-02-22 10:18:39.404965 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] call_type : Ring group 2021-02-22 10:18:39.404965 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_RING_GROUP_INFO] Query :SELECT id as ringgroup_id,name as ringgroup_name,strategy as ringgroup_strategy,destinations as ringgroup_destinations,description as ringgroup_description,announcementid as ringgroup_announcementid,call_record as ringgroup_call_record,skip_busy as ringgroup_skip_busy,ringbackid as ringgroup_ringbackid,calleridname as ringgroup_calleridname,calleridnumber as ringgroup_calleridnumber,no_answer as ringgroup_no_answer,no_answer_call_type as no_answer_call_type,no_answer_call_type_value from pbx_ringgroup WHERE id = 1 and status = 0 LIMIT 1 2021-02-22 10:18:39.424966 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== ringgroup_dlr_str h========Count==========={"destination_1":"91234355#","delay_1":"0","time_out_1":"5","Promptdropdown_1":"1"} 2021-02-22 10:18:39.424966 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== announcement====Count===============4 2021-02-22 10:18:39.424966 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== announcement===================0 2021-02-22 10:18:39.424966 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== final_count========final_count===========0=== 2021-02-22 10:18:39.424966 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== ring_group_recording===================0 2021-02-22 10:18:39.424966 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== ringgroup_dlr_str===================[sip_h_p-call_type='custom_forward',sip_h_P-Accountcode=3,call_timeout=5,confirm=false,announcement=no_file,dialed_user=91234355#,leg_timeout=5,leg_delay_start=0]sofia/${sofia_profile_name}/91234355@dhaval.dhaval.astppbilling.org, 2021-02-22 10:18:39.424966 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [GET_RING_GROUP_INFO] Query :SELECT file_name from pbx_recording WHERE id = '' LIMIT 1 2021-02-22 10:18:39.424966 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:
Dialplan: sofia/default/4000@13.127.159.248 parsing [default->123456] continue=false Dialplan: sofia/default/4000@13.127.159.248 Regex (PASS) [123456] destination_number(123456) =~ /123456/ break=on-false Dialplan: sofia/default/4000@13.127.159.248 Action set(effective_destination_number=123456) Dialplan: sofia/default/4000@13.127.159.248 Action set(bridge_pre_execute_bleg_app=sched_hangup) Dialplan: sofia/default/4000@13.127.159.248 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing) Dialplan: sofia/default/4000@13.127.159.248 Action set(callstart=2021-02-22 10:18:39) Dialplan: sofia/default/4000@13.127.159.248 Action set(hangup_after_bridge=true) Dialplan: sofia/default/4000@13.127.159.248 Action set(continue_on_fail=TRUE) Dialplan: sofia/default/4000@13.127.159.248 Action set(account_id=3) Dialplan: sofia/default/4000@13.127.159.248 Action set(parent_id=0) Dialplan: sofia/default/4000@13.127.159.248 Action set(entity_id=3) Dialplan: sofia/default/4000@13.127.159.248 Action set(call_processed=internal) Dialplan: sofia/default/4000@13.127.159.248 Action set(call_direction=inbound) Dialplan: sofia/default/4000@13.127.159.248 Action set(accountname=Tinku bhai) Dialplan: sofia/default/4000@13.127.159.248 Action set(origination_rates_did=ID:5|CODE:^123456.*|DESTINATION:123456|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:7|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:85|ACCID:4) Dialplan: sofia/default/4000@13.127.159.248 Action set(origination_rates=0) Dialplan: sofia/default/4000@13.127.159.248 Action set(original_caller_id_name=4000) Dialplan: sofia/default/4000@13.127.159.248 Action set(original_caller_id_number=4000) Dialplan: sofia/default/4000@13.127.159.248 Action set(effective_caller_id_name=4000) Dialplan: sofia/default/4000@13.127.159.248 Action set(effective_caller_id_number=4000) Dialplan: sofia/default/4000@13.127.159.248 Action set(receiver_accid=4) Dialplan: sofia/default/4000@13.127.159.248 Action export(domain_name=dhaval.dhaval.astppbilling.org) Dialplan: sofia/default/4000@13.127.159.248 Action export(sip_to_host=dhaval.dhaval.astppbilling.org) Dialplan: sofia/default/4000@13.127.159.248 Action export(presence_data=x|||default(3673942894)|||^123456.* // 123456 // 0.00000||||||DID|||13.127.159.248) Dialplan: sofia/default/4000@13.127.159.248 Action export(call_type=7) Dialplan: sofia/default/4000@13.127.159.248 Action set(did_calltype=7) Dialplan: sofia/default/4000@13.127.159.248 Action set(did_extensions=1) Dialplan: sofia/default/4000@13.127.159.248 Action set(group_confirm_key=exec) Dialplan: sofia/default/4000@13.127.159.248 Action set(group_confirm_file=lua /usr/share/freeswitch/scripts/astpp/lib/pbx/astpp.confirm.lua) Dialplan: sofia/default/4000@13.127.159.248 Action export(is_recording=1) Dialplan: sofia/default/4000@13.127.159.248 Action export(media_bug_answer_req=true) Dialplan: sofia/default/4000@13.127.159.248 Action export(RECORD_STEREO=true) Dialplan: sofia/default/4000@13.127.159.248 Action export(record_sample_rate=8000) Dialplan: sofia/default/4000@13.127.159.248 Action export(execute_on_answer=record_session $${recordings_dir}/${uuid}.wav) Dialplan: sofia/default/4000@13.127.159.248 Action set(ringback=) Dialplan: sofia/default/4000@13.127.159.248 Action set(module_name=pbx) Dialplan: sofia/default/4000@13.127.159.248 Action bridge({sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=3}[sip_h_p-call_type='custom_forward',sip_h_P-Accountcode=3,call_timeout=5,confirm=false,announcement=no_file,dialed_user=91234355#,leg_timeout=5,leg_delay_start=0]sofia/${sofia_profile_name}/91234355@dhaval.dhaval.astppbilling.org,) Dialplan: sofia/default/4000@13.127.159.248 Action set(original_did_number=123456) 2021-02-22 10:18:39.424966 [DEBUG] switch_core_state_machine.c:287 (sofia/default/4000@13.127.159.248) State Change CS_ROUTING -> CS_EXECUTE 2021-02-22 10:18:39.424966 [DEBUG] switch_core_state_machine.c:644 (sofia/default/4000@13.127.159.248) State ROUTING going to sleep 2021-02-22 10:18:39.424966 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4000@13.127.159.248) Running State Change CS_EXECUTE (Cur 1 Tot 385) 2021-02-22 10:18:39.424966 [DEBUG] switch_core_state_machine.c:651 (sofia/default/4000@13.127.159.248) State EXECUTE 2021-02-22 10:18:39.424966 [DEBUG] mod_sofia.c:209 sofia/default/4000@13.127.159.248 SOFIA EXECUTE 2021-02-22 10:18:39.424966 [DEBUG] switch_core_state_machine.c:329 sofia/default/4000@13.127.159.248 Standard EXECUTE EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(effective_destination_number=123456) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [effective_destination_number]=[123456] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(bridge_pre_execute_bleg_app=sched_hangup) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [bridge_pre_execute_bleg_app]=[sched_hangup] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(bridge_pre_execute_bleg_data=+6000 normal_clearing) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(callstart=2021-02-22 10:18:39) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [callstart]=[2021-02-22 10:18:39] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(hangup_after_bridge=true) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [hangup_after_bridge]=[true] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(continue_on_fail=TRUE) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [continue_on_fail]=[TRUE] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(account_id=3) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [account_id]=[3] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(parent_id=0) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [parent_id]=[0] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(entity_id=3) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [entity_id]=[3] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(call_processed=internal) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [call_processed]=[internal] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(call_direction=inbound) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [call_direction]=[inbound] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(accountname=Tinku bhai) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [accountname]=[Tinku bhai] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(origination_rates_did=ID:5|CODE:^123456.*|DESTINATION:123456|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:7|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:85|ACCID:4) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [origination_rates_did]=[ID:5|CODE:^123456.*|DESTINATION:123456|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:7|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:85|ACCID:4] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(origination_rates=0) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [origination_rates]=[0] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(original_caller_id_name=4000) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [original_caller_id_name]=[4000] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(original_caller_id_number=4000) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [original_caller_id_number]=[4000] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(effective_caller_id_name=4000) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [effective_caller_id_name]=[4000] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(effective_caller_id_number=4000) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [effective_caller_id_number]=[4000] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(receiver_accid=4) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [receiver_accid]=[4] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 export(domain_name=dhaval.dhaval.astppbilling.org) 2021-02-22 10:18:39.424966 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [domain_name]=[dhaval.dhaval.astppbilling.org] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 export(sip_to_host=dhaval.dhaval.astppbilling.org) 2021-02-22 10:18:39.424966 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_to_host]=[dhaval.dhaval.astppbilling.org] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 export(presence_data=x|||default(3673942894)|||^123456.* // 123456 // 0.00000||||||DID|||13.127.159.248) 2021-02-22 10:18:39.424966 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[x|||default(3673942894)|||^123456.* // 123456 // 0.00000||||||DID|||13.127.159.248] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 export(call_type=7) 2021-02-22 10:18:39.424966 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_type]=[7] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(did_calltype=7) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [did_calltype]=[7] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(did_extensions=1) 2021-02-22 10:18:39.424966 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [did_extensions]=[1] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(group_confirm_key=exec) 2021-02-22 10:18:39.444962 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [group_confirm_key]=[exec] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(group_confirm_file=lua /usr/share/freeswitch/scripts/astpp/lib/pbx/astpp.confirm.lua) 2021-02-22 10:18:39.444962 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [group_confirm_file]=[lua /usr/share/freeswitch/scripts/astpp/lib/pbx/astpp.confirm.lua] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 export(is_recording=1) 2021-02-22 10:18:39.444962 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [is_recording]=[1] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 export(media_bug_answer_req=true) 2021-02-22 10:18:39.444962 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [media_bug_answer_req]=[true] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 export(RECORD_STEREO=true) 2021-02-22 10:18:39.444962 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [RECORD_STEREO]=[true] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 export(record_sample_rate=8000) 2021-02-22 10:18:39.444962 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [record_sample_rate]=[8000] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 export(execute_on_answer=record_session /var/lib/freeswitch/recordings/6aa87d48-d0be-4439-88a6-aa89e09dbe0c.wav) 2021-02-22 10:18:39.444962 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [execute_on_answer]=[record_session /var/lib/freeswitch/recordings/6aa87d48-d0be-4439-88a6-aa89e09dbe0c.wav] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(ringback=) 2021-02-22 10:18:39.444962 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [ringback]=[UNDEF] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(module_name=pbx) 2021-02-22 10:18:39.444962 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [module_name]=[pbx] EXECUTE [depth=0] sofia/default/4000@13.127.159.248 bridge({sip_h_P-call_type='custom_forward',sip_h_P-Accountcode=3}[sip_h_p-call_type='custom_forward',sip_h_P-Accountcode=3,call_timeout=5,confirm=false,announcement=no_file,dialed_user=91234355#,leg_timeout=5,leg_delay_start=0]sofia/default/91234355@dhaval.dhaval.astppbilling.org,) 2021-02-22 10:18:39.444962 [DEBUG] switch_channel.c:1264 sofia/default/4000@13.127.159.248 EXPORTING[export_vars] [domain_name]=[dhaval.dhaval.astppbilling.org] to event 2021-02-22 10:18:39.444962 [DEBUG] switch_channel.c:1264 sofia/default/4000@13.127.159.248 EXPORTING[export_vars] [sip_to_host]=[dhaval.dhaval.astppbilling.org] to event 2021-02-22 10:18:39.444962 [DEBUG] switch_channel.c:1264 sofia/default/4000@13.127.159.248 EXPORTING[export_vars] [presence_data]=[x|||default(3673942894)|||^123456.* // 123456 // 0.00000||||||DID|||13.127.159.248] to event 2021-02-22 10:18:39.444962 [DEBUG] switch_channel.c:1264 sofia/default/4000@13.127.159.248 EXPORTING[export_vars] [call_type]=[7] to event 2021-02-22 10:18:39.444962 [DEBUG] switch_channel.c:1264 sofia/default/4000@13.127.159.248 EXPORTING[export_vars] [is_recording]=[1] to event 2021-02-22 10:18:39.444962 [DEBUG] switch_channel.c:1264 sofia/default/4000@13.127.159.248 EXPORTING[export_vars] [media_bug_answer_req]=[true] to event 2021-02-22 10:18:39.444962 [DEBUG] switch_channel.c:1264 sofia/default/4000@13.127.159.248 EXPORTING[export_vars] [RECORD_STEREO]=[true] to event 2021-02-22 10:18:39.444962 [DEBUG] switch_channel.c:1264 sofia/default/4000@13.127.159.248 EXPORTING[export_vars] [record_sample_rate]=[8000] to event 2021-02-22 10:18:39.444962 [DEBUG] switch_channel.c:1264 sofia/default/4000@13.127.159.248 EXPORTING[export_vars] [execute_on_answer]=[record_session /var/lib/freeswitch/recordings/6aa87d48-d0be-4439-88a6-aa89e09dbe0c.wav] to event 2021-02-22 10:18:39.444962 [DEBUG] switch_ivr_originate.c:2242 Parsing global variables 2021-02-22 10:18:39.444962 [DEBUG] switch_ivr_originate.c:2804 Parsing session specific variables 2021-02-22 10:18:39.444962 [NOTICE] switch_channel.c:1118 New Channel sofia/default/91234355@dhaval.dhaval.astppbilling.org [d083a1e4-0d73-4108-a230-e2324ad8b285] 2021-02-22 10:18:39.444962 [DEBUG] mod_sofia.c:5089 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State Change CS_NEW -> CS_INIT 2021-02-22 10:18:39.444962 [DEBUG] switch_ivr_originate.c:3111 sofia/default/91234355@dhaval.dhaval.astppbilling.org Setting leg timeout to 5 2021-02-22 10:18:39.444962 [DEBUG] switch_core_state_machine.c:585 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) Running State Change CS_INIT (Cur 2 Tot 386) 2021-02-22 10:18:39.444962 [DEBUG] switch_core_state_machine.c:628 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State INIT 2021-02-22 10:18:39.444962 [DEBUG] mod_sofia.c:93 sofia/default/91234355@dhaval.dhaval.astppbilling.org SOFIA INIT 2021-02-22 10:18:39.444962 [DEBUG] sofia_glue.c:1618 sofia/default/91234355@dhaval.dhaval.astppbilling.org sending invite version: 1.10.5 -release-17-25569c1631 64bit Local SDP: v=0 o=FreeSWITCH 1613966853 1613966854 IN IP4 18.221.51.90 s=FreeSWITCH c=IN IP4 18.221.51.90 t=0 0 m=audio 22266 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-02-22 10:18:39.444962 [DEBUG] switch_core_state_machine.c:40 sofia/default/91234355@dhaval.dhaval.astppbilling.org Standard INIT 2021-02-22 10:18:39.444962 [DEBUG] switch_core_state_machine.c:48 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State Change CS_INIT -> CS_ROUTING 2021-02-22 10:18:39.444962 [DEBUG] switch_core_state_machine.c:628 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State INIT going to sleep 2021-02-22 10:18:39.444962 [DEBUG] switch_core_state_machine.c:585 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) Running State Change CS_ROUTING (Cur 2 Tot 386) 2021-02-22 10:18:39.444962 [DEBUG] switch_core_state_machine.c:644 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State ROUTING 2021-02-22 10:18:39.444962 [DEBUG] mod_sofia.c:154 sofia/default/91234355@dhaval.dhaval.astppbilling.org SOFIA ROUTING 2021-02-22 10:18:39.444962 [DEBUG] switch_ivr_originate.c:67 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2021-02-22 10:18:39.444962 [DEBUG] switch_core_state_machine.c:644 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State ROUTING going to sleep 2021-02-22 10:18:39.444962 [DEBUG] switch_core_state_machine.c:585 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 386) 2021-02-22 10:18:39.444962 [DEBUG] switch_core_state_machine.c:663 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State CONSUME_MEDIA 2021-02-22 10:18:39.444962 [DEBUG] switch_core_state_machine.c:663 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State CONSUME_MEDIA going to sleep 2021-02-22 10:18:39.444962 [DEBUG] sofia.c:7326 Channel sofia/default/91234355@dhaval.dhaval.astppbilling.org entering state [calling][0] 2021-02-22 10:18:42.084967 [DEBUG] sofia.c:7326 Channel sofia/default/91234355@dhaval.dhaval.astppbilling.org entering state [terminated][483] 2021-02-22 10:18:42.084967 [NOTICE] sofia.c:8559 Hangup sofia/default/91234355@dhaval.dhaval.astppbilling.org [CS_CONSUME_MEDIA] [EXCHANGE_ROUTING_ERROR] 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:585 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) Running State Change CS_HANGUP (Cur 2 Tot 386) 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:848 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) Callstate Change DOWN -> HANGUP 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:850 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State HANGUP 2021-02-22 10:18:42.084967 [DEBUG] mod_sofia.c:453 Channel sofia/default/91234355@dhaval.dhaval.astppbilling.org hanging up, cause: EXCHANGE_ROUTING_ERROR 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:60 sofia/default/91234355@dhaval.dhaval.astppbilling.org Standard HANGUP, cause: EXCHANGE_ROUTING_ERROR 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:850 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State HANGUP going to sleep 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:620 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State Change CS_HANGUP -> CS_REPORTING 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:585 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) Running State Change CS_REPORTING (Cur 2 Tot 386) 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:936 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State REPORTING 2021-02-22 10:18:42.084967 [INFO] mod_json_cdr.c:271 Process [d083a1e4-0d73-4108-a230-e2324ad8b285.cdr.json] 2021-02-22 10:18:42.084967 [DEBUG] switch_ivr_originate.c:3995 Originate Resulted in Error Cause: 25 [EXCHANGE_ROUTING_ERROR] 2021-02-22 10:18:42.084967 [INFO] mod_dptools.c:3631 Originate Failed. Cause: EXCHANGE_ROUTING_ERROR EXECUTE [depth=0] sofia/default/4000@13.127.159.248 set(original_did_number=123456) 2021-02-22 10:18:42.084967 [DEBUG] mod_dptools.c:1672 SET sofia/default/4000@13.127.159.248 [original_did_number]=[123456] 2021-02-22 10:18:42.084967 [NOTICE] switch_core_state_machine.c:386 sofia/default/4000@13.127.159.248 has executed the last dialplan instruction, hanging up. 2021-02-22 10:18:42.084967 [NOTICE] switch_core_state_machine.c:388 Hangup sofia/default/4000@13.127.159.248 [CS_EXECUTE] [NORMAL_CLEARING] 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:651 (sofia/default/4000@13.127.159.248) State EXECUTE going to sleep 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4000@13.127.159.248) Running State Change CS_HANGUP (Cur 2 Tot 386) 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:848 (sofia/default/4000@13.127.159.248) Callstate Change RINGING -> HANGUP 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:850 (sofia/default/4000@13.127.159.248) State HANGUP 2021-02-22 10:18:42.084967 [DEBUG] mod_sofia.c:447 sofia/default/4000@13.127.159.248 Overriding SIP cause 480 with 483 from the other leg 2021-02-22 10:18:42.084967 [DEBUG] mod_sofia.c:453 Channel sofia/default/4000@13.127.159.248 hanging up, cause: NORMAL_CLEARING 2021-02-22 10:18:42.084967 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 483 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:60 sofia/default/4000@13.127.159.248 Standard HANGUP, cause: NORMAL_CLEARING 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:850 (sofia/default/4000@13.127.159.248) State HANGUP going to sleep 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:620 (sofia/default/4000@13.127.159.248) State Change CS_HANGUP -> CS_REPORTING 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:585 (sofia/default/4000@13.127.159.248) Running State Change CS_REPORTING (Cur 2 Tot 386) 2021-02-22 10:18:42.084967 [DEBUG] switch_core_state_machine.c:936 (sofia/default/4000@13.127.159.248) State REPORTING 2021-02-22 10:18:42.084967 [INFO] mod_json_cdr.c:271 Process [6aa87d48-d0be-4439-88a6-aa89e09dbe0c.cdr.json] 2021-02-22 10:18:42.104965 [DEBUG] switch_core_state_machine.c:174 sofia/default/91234355@dhaval.dhaval.astppbilling.org Standard REPORTING, cause: EXCHANGE_ROUTING_ERROR 2021-02-22 10:18:42.104965 [DEBUG] switch_core_state_machine.c:936 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State REPORTING going to sleep 2021-02-22 10:18:42.104965 [DEBUG] switch_core_state_machine.c:611 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State Change CS_REPORTING -> CS_DESTROY 2021-02-22 10:18:42.104965 [DEBUG] switch_core_session.c:1726 Session 386 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) Locked, Waiting on external entities 2021-02-22 10:18:42.104965 [NOTICE] switch_core_session.c:1744 Session 386 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) Ended 2021-02-22 10:18:42.104965 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/91234355@dhaval.dhaval.astppbilling.org [CS_DESTROY] 2021-02-22 10:18:42.104965 [DEBUG] switch_core_state_machine.c:739 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) Running State Change CS_DESTROY (Cur 1 Tot 386) 2021-02-22 10:18:42.104965 [DEBUG] switch_core_state_machine.c:749 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State DESTROY 2021-02-22 10:18:42.104965 [DEBUG] mod_sofia.c:364 sofia/default/91234355@dhaval.dhaval.astppbilling.org SOFIA DESTROY 2021-02-22 10:18:42.104965 [DEBUG] switch_core_state_machine.c:181 sofia/default/91234355@dhaval.dhaval.astppbilling.org Standard DESTROY 2021-02-22 10:18:42.104965 [DEBUG] switch_core_state_machine.c:749 (sofia/default/91234355@dhaval.dhaval.astppbilling.org) State DESTROY going to sleep 2021-02-22 10:18:42.124965 [DEBUG] switch_core_state_machine.c:174 sofia/default/4000@13.127.159.248 Standard REPORTING, cause: NORMAL_CLEARING 2021-02-22 10:18:42.124965 [DEBUG] switch_core_state_machine.c:936 (sofia/default/4000@13.127.159.248) State REPORTING going to sleep 2021-02-22 10:18:42.124965 [DEBUG] switch_core_state_machine.c:611 (sofia/default/4000@13.127.159.248) State Change CS_REPORTING -> CS_DESTROY 2021-02-22 10:18:42.124965 [DEBUG] switch_core_session.c:1726 Session 385 (sofia/default/4000@13.127.159.248) Locked, Waiting on external entities 2021-02-22 10:18:42.124965 [NOTICE] switch_core_session.c:1744 Session 385 (sofia/default/4000@13.127.159.248) Ended 2021-02-22 10:18:42.124965 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/4000@13.127.159.248 [CS_DESTROY] 2021-02-22 10:18:42.124965 [DEBUG] switch_core_state_machine.c:739 (sofia/default/4000@13.127.159.248) Running State Change CS_DESTROY (Cur 0 Tot 386) 2021-02-22 10:18:42.124965 [DEBUG] switch_core_state_machine.c:749 (sofia/default/4000@13.127.159.248) State DESTROY 2021-02-22 10:18:42.124965 [DEBUG] mod_sofia.c:364 sofia/default/4000@13.127.159.248 SOFIA DESTROY 2021-02-22 10:18:42.124965 [DEBUG] switch_core_state_machine.c:181 sofia/default/4000@13.127.159.248 Standard DESTROY 2021-02-22 10:18:42.124965 [DEBUG] switch_core_state_machine.c:749 (sofia/default/4000@13.127.159.248) State DESTROY going to sleep freeswitch@ip-172-31-23-227> /exit