freeswitch@gibfibre> 2022-03-11 07:14:51.832441 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [1515028@entdemo.astppbilling.org] from ip 117.247.91.162 freeswitch@gibfibre> freeswitch@gibfibre> freeswitch@gibfibre> freeswitch@gibfibre> freeswitch@gibfibre> freeswitch@gibfibre> freeswitch@gibfibre> freeswitch@gibfibre> freeswitch@gibfibre> freeswitch@gibfibre> freeswitch@gibfibre> freeswitch@gibfibre> 2022-03-11 07:14:59.832469 [NOTICE] sofia_reg.c:454 Registering SIPPDD 2022-03-11 07:14:59.832469 [ERR] sofia_reg.c:2470 SIPPDD Failed Registration with status DNS Error [503]. failure #4 2022-03-11 07:15:00.452461 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [1515028@entdemo.astppbilling.org] from ip 117.247.91.162 2022-03-11 07:15:00.832430 [WARNING] sofia_reg.c:511 SIPPDD Failed Registration [503], setting retry to 30 seconds. freeswitch@gibfibre> freeswitch@gibfibre> freeswitch@gibfibre> freeswitch@gibfibre> 2022-03-11 07:15:09.852451 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [1515028@entdemo.astppbilling.org] from ip 117.247.91.162 2022-03-11 07:15:10.912440 [WARNING] sofia_reg.c:1794 SIP auth challenge (REGISTER) on sofia profile 'default' for [1515028@entdemo.astppbilling.org] from ip 117.247.91.162 2022-03-11 07:15:14.632440 [NOTICE] switch_channel.c:1118 New Channel sofia/default/1515028@entdemo.astppbilling.org:5077 [e69f6320-c0bd-486b-b372-5c9d2c874ac0] 2022-03-11 07:15:14.632440 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1515028@entdemo.astppbilling.org:5077) Running State Change CS_NEW (Cur 1 Tot 15) 2022-03-11 07:15:14.632440 [DEBUG] sofia.c:10280 sofia/default/1515028@entdemo.astppbilling.org:5077 receiving invite from 117.247.91.162:34188 version: 1.10.5 -release-17-25569c1631 64bit 2022-03-11 07:15:14.632440 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 117.247.91.162:0. 2022-03-11 07:15:14.632440 [DEBUG] sofia.c:2434 detaching session e69f6320-c0bd-486b-b372-5c9d2c874ac0 2022-03-11 07:15:14.632440 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [1010000@entdemo.astppbilling.org] from ip 117.247.91.162 2022-03-11 07:15:14.632440 [DEBUG] switch_core_state_machine.c:604 (sofia/default/1515028@entdemo.astppbilling.org:5077) State NEW 2022-03-11 07:15:15.012440 [DEBUG] sofia.c:2544 Re-attaching to session e69f6320-c0bd-486b-b372-5c9d2c874ac0 2022-03-11 07:15:15.012440 [DEBUG] sofia.c:10280 sofia/default/1515028@entdemo.astppbilling.org:5077 receiving invite from 117.247.91.162:34188 version: 1.10.5 -release-17-25569c1631 64bit 2022-03-11 07:15:15.012440 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 117.247.91.162:0. 2022-03-11 07:15:15.032502 [DEBUG] sofia.c:11477 Setting NAT mode based on via received 2022-03-11 07:15:15.032502 [DEBUG] sofia.c:7326 Channel sofia/default/1515028@entdemo.astppbilling.org:5077 entering state [received][100] 2022-03-11 07:15:15.032502 [DEBUG] sofia.c:7336 Remote SDP: v=0 o=- 6694235034713989997 2 IN IP4 127.0.0.1 s=- t=0 0 a=group:BUNDLE 0 a=extmap-allow-mixed a=msid-semantic: WMS 9iw3ZgPmlbtI067q9MvIuRyIjkCv2dK1P9he m=audio 36002 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126 c=IN IP4 117.247.91.162 a=rtpmap:111 opus/48000/2 a=fmtp:111 minptime=10;useinbandfec=1 a=rtpmap:103 ISAC/16000 a=rtpmap:104 ISAC/32000 a=rtpmap:9 G722/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:106 CN/32000 a=rtpmap:105 CN/16000 a=rtpmap:13 CN/8000 a=rtpmap:110 telephone-event/48000 a=rtpmap:112 telephone-event/32000 a=rtpmap:113 telephone-event/16000 a=rtpmap:126 telephone-event/8000 a=rtcp:9 IN IP4 0.0.0.0 a=candidate:2313719679 1 udp 2122260223 192.168.1.54 36002 typ host generation 0 network-id 1 network-cost 10 a=candidate:2147022507 1 udp 1686052607 117.247.91.162 36002 typ srflx raddr 192.168.1.54 rport 36002 generation 0 network-id 1 network-cost 10 a=candidate:3345707919 1 tcp 1518280447 192.168.1.54 9 typ host tcptype active generation 0 network-id 1 network-cost 10 a=ice-ufrag:TG+4 a=ice-pwd:V8eMR3QzrA/Ujyzz5+CfOabI a=ice-options:trickle a=fingerprint:sha-256 82:B0:23:AA:20:F9:5A:17:C7:D3:03:5C:B5:93:CA:C4:AC:EC:56:85:9C:DE:6B:2A:A0:BF:B9:E1:E5:44:B2:00 a=setup:actpass a=mid:0 a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id a=extmap:6 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id a=msid:9iw3ZgPmlbtI067q9MvIuRyIjkCv2dK1P9he bb90f4d2-2435-47dc-83d1-e6855b8e4954 a=rtcp-mux a=rtcp-fb:111 transport-cc a=ssrc:2843634981 cname:S/9b6HH1ZArWiCnN a=ssrc:2843634981 msid:9iw3ZgPmlbtI067q9MvIuRyIjkCv2dK1P9he bb90f4d2-2435-47dc-83d1-e6855b8e4954 a=ssrc:2843634981 mslabel:9iw3ZgPmlbtI067q9MvIuRyIjkCv2dK1P9he a=ssrc:2843634981 label:bb90f4d2-2435-47dc-83d1-e6855b8e4954 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [opus:111:48000:20:0:2]/[PCMA:8:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [opus:111:48000:20:0:2]/[PCMU:0:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [ISAC:103:16000:30:32000:1]/[PCMA:8:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [ISAC:103:16000:30:32000:1]/[PCMU:0:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [ISAC:104:32000:30:32000:1]/[PCMA:8:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [ISAC:104:32000:30:32000:1]/[PCMU:0:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [CN:105:16000:20:0:1]/[PCMA:8:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [CN:105:16000:20:0:1]/[PCMU:0:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [CN:13:8000:20:0:1]/[PCMA:8:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [CN:13:8000:20:0:1]/[PCMU:0:8000:20:64000:1] 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 110@48000 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/1515028@entdemo.astppbilling.org:5077 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2022-03-11 07:15:15.032502 [DEBUG] switch_core_codec.c:111 sofia/default/1515028@entdemo.astppbilling.org:5077 Original read codec set to PCMU:0 2022-03-11 07:15:15.032502 [WARNING] switch_core_media.c:4254 NO candidate ACL defined, Defaulting to wan.auto 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:4284 Save audio Candidate cid: 1 proto: udp type: host addr: 192.168.1.54:36002 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:4284 Save audio Candidate cid: 1 proto: udp type: srflx addr: 117.247.91.162:36002 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:4329 Searching for rtp candidate. 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:4338 Choose rtp candidate, index 1, 117.247.91.162:36002 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:4104 sofia/default/1515028@entdemo.astppbilling.org:5077 choosing family v4 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:4349 Choose same candidate, index 0, for rtcp based on rtcp-mux attribute 117.247.91.162:36002 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:4401 setting remote audio ice addr to index 1 117.247.91.162:36002 based on candidate 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:4436 Setting remote rtcp audio addr to 117.247.91.162:36002 based on candidate 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 126@8000 2022-03-11 07:15:15.032502 [DEBUG] switch_core_media.c:5911 sofia/default/1515028@entdemo.astppbilling.org:5077 Set 2833 dtmf send payload to 126 recv payload to 126 2022-03-11 07:15:15.032502 [DEBUG] sofia.c:7760 (sofia/default/1515028@entdemo.astppbilling.org:5077) State Change CS_NEW -> CS_INIT 2022-03-11 07:15:15.032502 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1515028@entdemo.astppbilling.org:5077) Running State Change CS_INIT (Cur 1 Tot 15) 2022-03-11 07:15:15.032502 [DEBUG] switch_core_state_machine.c:628 (sofia/default/1515028@entdemo.astppbilling.org:5077) State INIT 2022-03-11 07:15:15.032502 [DEBUG] mod_sofia.c:93 sofia/default/1515028@entdemo.astppbilling.org:5077 SOFIA INIT 2022-03-11 07:15:15.032502 [DEBUG] switch_core_state_machine.c:40 sofia/default/1515028@entdemo.astppbilling.org:5077 Standard INIT 2022-03-11 07:15:15.032502 [DEBUG] switch_core_state_machine.c:48 (sofia/default/1515028@entdemo.astppbilling.org:5077) State Change CS_INIT -> CS_ROUTING 2022-03-11 07:15:15.032502 [DEBUG] switch_core_state_machine.c:628 (sofia/default/1515028@entdemo.astppbilling.org:5077) State INIT going to sleep 2022-03-11 07:15:15.032502 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1515028@entdemo.astppbilling.org:5077) Running State Change CS_ROUTING (Cur 1 Tot 15) 2022-03-11 07:15:15.032502 [DEBUG] switch_channel.c:2332 (sofia/default/1515028@entdemo.astppbilling.org:5077) Callstate Change DOWN -> RINGING 2022-03-11 07:15:15.032502 [DEBUG] switch_core_state_machine.c:644 (sofia/default/1515028@entdemo.astppbilling.org:5077) State ROUTING 2022-03-11 07:15:15.032502 [DEBUG] mod_sofia.c:154 sofia/default/1515028@entdemo.astppbilling.org:5077 SOFIA ROUTING 2022-03-11 07:15:15.032502 [DEBUG] switch_core_state_machine.c:236 sofia/default/1515028@entdemo.astppbilling.org:5077 Standard ROUTING 2022-03-11 07:15:15.032502 [INFO] mod_dialplan_xml.c:637 Processing 1515028 <1515028>->1010000 in context default 2022-03-11 07:15:15.032502 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes') 2022-03-11 07:15:15.032502 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-03-11 07:15:15.032502 [INFO] switch_cpp.cpp:1447 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0 2022-03-11 07:15:15.032502 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 1010000 2022-03-11 07:15:15.032502 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '1010000' limit 1 2022-03-11 07:15:15.052458 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '1010000' AND status=0 limit 1 2022-03-11 07:15:15.052458 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '1010000' and status=0 LIMIT 1 2022-03-11 07:15:15.052458 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FAXER] Custom Caller ID 2022-03-11 07:15:15.052458 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number : / 1515028 2022-03-11 07:15:15.052458 [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 ="1010000" LIMIT 1 2022-03-11 07:15:15.052458 [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="1010000" AND domains.domain="entdemo.astppbilling.org" limit 1 2022-03-11 07:15:15.052458 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : outbound 2022-03-11 07:15:15.052458 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 1111025] 2022-03-11 07:15:15.052458 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "1111025" AND deleted = 0 limit 1 2022-03-11 07:15:15.052458 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^1010000.*' OR blocked_patterns = '^101000.*' OR blocked_patterns = '^10100.*' OR blocked_patterns = '^1010.*' OR blocked_patterns = '^101.*' OR blocked_patterns = '^10.*' OR blocked_patterns = '^1.*' OR blocked_patterns ='--') AND accountid = 2450 limit 1 2022-03-11 07:15:15.072428 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="1010000" AND (accountid = 0 OR status = 1) LIMIT 1 2022-03-11 07:15:15.072428 [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 P.is_terminated = 0 AND (patterns = '^1010000.*' OR patterns = '^101000.*' OR patterns = '^10100.*' OR patterns = '^1010.*' OR patterns = '^101.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 2450 ORDER BY LENGTH(PKGPTR.patterns) DESC 2022-03-11 07:15:15.072428 [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 ="1010000" AND A.accountid = '2450' limit 1 2022-03-11 07:15:15.072428 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 1010000 2022-03-11 07:15:15.072428 [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 ="1010000" LIMIT 1 2022-03-11 07:15:15.072428 [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="1010000" AND domains.domain="entdemo.astppbilling.org" limit 1 2022-03-11 07:15:15.072428 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call Direction : outbound 2022-03-11 07:15:15.072428 [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 = '1010000' OR number = '101000' OR number = '10100' OR number = '1010' OR number = '101' OR number = '10' OR number = '1' OR number ='--') OR (number = '1010000*' OR number = '101000*' OR number = '10100*' OR number = '1010*' OR number = '101*' OR number = '10*' OR number = '1*' OR number ='--') OR (number = '1515028' OR number = '151502' OR number = '15150' OR number = '1515' OR number = '151' OR number = '15' OR number = '1' OR number ='--') OR (number = '1515028*' OR number = '151502*' OR number = '15150*' OR number = '1515*' OR number = '151*' OR number = '15*' OR number = '1*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC 2022-03-11 07:15:15.072428 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1 2022-03-11 07:15:15.072428 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '1010000' OR routing_prefix = '101000' OR routing_prefix = '10100' OR routing_prefix = '1010' OR routing_prefix = '101' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information =================== 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 2450 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 1111025 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 5000 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid] 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 1139 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] ======================================================== 2022-03-11 07:15:15.092449 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1139 AND status = 0 2022-03-11 07:15:15.092449 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :outbound 2022-03-11 07:15:15.092449 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1139 AND status = 0 2022-03-11 07:15:15.092449 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^1010000.*' OR pattern = '^101000.*' OR pattern = '^10100.*' OR pattern = '^1010.*' OR pattern = '^101.*' OR pattern = '^10.*' OR pattern = '^1.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 1139 OR accountid=2450) ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Direction : outbound 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information =================== 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 260616 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 60.00000 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] Comment : India 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 88 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 2450 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk ID: 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] Routing type: 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================ 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your5000 balance Accountid 2450 !!! 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] NIBBLE ID 2450 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] NIBBLE RATE 60.00000 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] NIBBLE CONNECT COST 0.00000 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] NIBBLE INITIAL INC 30 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] NIBBLE INC 60 2022-03-11 07:15:15.092449 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max Length Duration : 83.333333333333 minutes 2022-03-11 07:15:15.092449 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES] Query Rate Carrier Id : 2022-03-11 07:15:15.092449 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_CARRIER_RATES_TRUNKS] Query :SELECT GROUP_CONCAT(trunk_id) as ids FROM routing WHERE pricelist_id=1139 ORDER by id asc 2022-03-11 07:15:15.092449 [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 = '^1010000.*' OR pattern = '^101000.*' OR pattern = '^10100.*' OR pattern = '^1010.*' OR pattern = '^101.*' OR pattern = '^10.*' OR pattern = '^1.*' OR pattern ='--') AND TR.status = 0 AND TR.trunk_id IN (761) AND TR.effective_date <= UTC_TIMESTAMP() ORDER by LENGTH (pattern) DESC,TR.cost ASC,TR.precedence ASC, TK.precedence,TR.effective_date DESC 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Termination Rates Information =================== 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 2456 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] Code : ^10.* 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] Destination : India 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] Free Seconds : 0 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] Prefix : ^10.* 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] Strip : 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] Prepend : 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] Carrier id : 761 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] carrier_name : IVRHybird 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] dialplan_variable : 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] Failover gateway : 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] Vendor id : 2449 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] Max channels : 0 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk Name : IVRHybrid 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================END OF TERMINATION RATES======================= 2022-03-11 07:15:15.112439 [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 = 2450 AND status=0 LIMIT 1 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] Maxlength : 83.333333333333 2022-03-11 07:15:15.112439 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] [XML] Customer Recording Flag : 1 2022-03-11 07:15:15.112439 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] Call Direction : outbound 2022-03-11 07:15:15.112439 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1139 AND status = 0 2022-03-11 07:15:15.112439 [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 = 2449) AND status=0 limit 1 2022-03-11 07:15:15.112439 [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 trunks where id = 761) AND status=0 limit 1 2022-03-11 07:15:15.112439 [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 ="1010000" LIMIT 1 2022-03-11 07:15:15.112439 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:
Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 parsing [default->1010000] continue=false Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Regex (PASS) [1010000] destination_number(1010000) =~ /1010000/ break=on-false Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(effective_destination_number=1010000) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(bridge_pre_execute_bleg_app=sched_hangup) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(bridge_pre_execute_bleg_data=+5000 normal_clearing) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(nibble_account=2450) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(nibble_rate=60.00000) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(nibble_minimum=0.00000) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(nibble_increment=20) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action nibblebill(heartbeat 20) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(callstart=2022-03-11 07:15:15) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(hangup_after_bridge=true) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(continue_on_fail=TRUE) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(account_id=2450) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(parent_id=0) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(entity_id=0) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(call_processed=internal) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(call_direction=outbound) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(accountname=default) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(filename1=astpp.pbx.lua) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(origination_rates=ID:260616|CODE:^10.*|DESTINATION:India|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:113|COST:60.00000|INC:60|INITIALBLOCK:30|RATEGROUP:1139|MARKUP:0|CI:88|ACCID:2450) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(original_caller_id_number=1515028) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(effective_caller_id_number=1515028) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(calltype=STANDARD) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(termination_rates=ID:2456|CODE:^10.*|DESTINATION:India|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:1.00000|INC:0|INITIALBLOCK:0|TRUNK:761|PROVIDER:2449) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(trunk_id=761) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(provider_id=2449) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(rate_flag=0) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(force_trunk_flag=0) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action export(presence_data=trunk_id=761) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action set(intcall=0) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action export(presence_id=1010000) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action export(presence_data=x|||IVRHybrid_FIRST_CUSTOMER(1111025)|||^10.* // India // 60.00000 |||IVRHybrid // ^10.* // India // 1.00000 // trunk_id=761|||STD|||117.247.91.162) Dialplan: sofia/default/1515028@entdemo.astppbilling.org:5077 Action bridge([leg_timeout=0]sofia/gateway/IVRHybird/1010000) 2022-03-11 07:15:15.112439 [DEBUG] switch_core_state_machine.c:287 (sofia/default/1515028@entdemo.astppbilling.org:5077) State Change CS_ROUTING -> CS_EXECUTE 2022-03-11 07:15:15.112439 [DEBUG] switch_core_state_machine.c:644 (sofia/default/1515028@entdemo.astppbilling.org:5077) State ROUTING going to sleep 2022-03-11 07:15:15.112439 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1515028@entdemo.astppbilling.org:5077) Running State Change CS_EXECUTE (Cur 1 Tot 15) 2022-03-11 07:15:15.112439 [DEBUG] switch_core_state_machine.c:651 (sofia/default/1515028@entdemo.astppbilling.org:5077) State EXECUTE 2022-03-11 07:15:15.112439 [DEBUG] mod_sofia.c:209 sofia/default/1515028@entdemo.astppbilling.org:5077 SOFIA EXECUTE 2022-03-11 07:15:15.112439 [DEBUG] switch_core_state_machine.c:329 sofia/default/1515028@entdemo.astppbilling.org:5077 Standard EXECUTE EXECUTE [depth=0] sofia/default/1515028@entdemo.astppbilling.org:5077 set(effective_destination_number=1010000) 2022-03-11 07:15:15.112439 [DEBUG] mod_dptools.c:1672 SET sofia/default/1515028@entdemo.astppbilling.org:5077 [effective_destination_number]=[1010000] EXECUTE [depth=0] sofia/default/1515028@entdemo.astppbilling.org:5077 set(bridge_pre_execute_bleg_app=sched_hangup) 2022-03-11 07:15:15.112439 [DEBUG] mod_dptools.c:1672 SET sofia/default/1515028@entdemo.astppbilling.org:5077 [bridge_pre_execute_bleg_app]=[sched_hangup] EXECUTE [depth=0] sofia/default/1515028@entdemo.astppbilling.org:5077 set(bridge_pre_execute_bleg_data=+5000 normal_clearing) 2022-03-11 07:15:15.112439 [DEBUG] mod_dptools.c:1672 SET sofia/default/1515028@entdemo.astppbilling.org:5077 [bridge_pre_execute_bleg_data]=[+5000 normal_clearing] EXECUTE [depth=0] sofia/default/1515028@entdemo.astppbilling.org:5077 set(nibble_account=2450) 2022-03-11 07:15:15.112439 [DEBUG] mod_dptools.c:1672 SET sofia/default/1515028@entdemo.astppbilling.org:5077 [nibble_account]=[2450] EXECUTE [depth=0] sofia/default/1515028@entdemo.astppbilling.org:5077 set(nibble_rate=60.00000) 2022-03-11 07:15:15.112439 [DEBUG] mod_dptools.c:1672 SET sofia/default/1515028@entdemo.astppbilling.org:5077 [nibble_rate]=[60.00000] EXECUTE [depth=0] sofia/default/1515028@entdemo.astppbilling.org:5077 set(nibble_minimum=0.00000) 2022-03-11 07:15:15.112439 [DEBUG] mod_dptools.c:1672 SET sofia/default/1515028@entdemo.astppbilling.org:5077 [nibble_minimum]=[0.00000] EXECUTE [depth=0] sofia/default/1515028@entdemo.astppbilling.org:5077 set(nibble_increment=20) 2022-03-11 07:15:15.112439 [DEBUG] mod_dptools.c:1672 SET sofia/default/1515028@entdemo.astppbilling.org:5077 [nibble_increment]=[20] 2022-03-11 07:15:15.112439 [ERR] switch_core_session.c:2697 Invalid Application nibblebill 2022-03-11 07:15:15.112439 [NOTICE] switch_core_session.c:2698 Hangup sofia/default/1515028@entdemo.astppbilling.org:5077 [CS_EXECUTE] [DESTINATION_OUT_OF_ORDER] 2022-03-11 07:15:15.112439 [DEBUG] switch_core_state_machine.c:651 (sofia/default/1515028@entdemo.astppbilling.org:5077) State EXECUTE going to sleep 2022-03-11 07:15:15.112439 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1515028@entdemo.astppbilling.org:5077) Running State Change CS_HANGUP (Cur 1 Tot 15) 2022-03-11 07:15:15.112439 [DEBUG] switch_core_state_machine.c:848 (sofia/default/1515028@entdemo.astppbilling.org:5077) Callstate Change RINGING -> HANGUP 2022-03-11 07:15:15.112439 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1515028@entdemo.astppbilling.org:5077) State HANGUP 2022-03-11 07:15:15.112439 [DEBUG] mod_sofia.c:453 Channel sofia/default/1515028@entdemo.astppbilling.org:5077 hanging up, cause: DESTINATION_OUT_OF_ORDER 2022-03-11 07:15:15.112439 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 502 2022-03-11 07:15:15.112439 [DEBUG] switch_core_state_machine.c:60 sofia/default/1515028@entdemo.astppbilling.org:5077 Standard HANGUP, cause: DESTINATION_OUT_OF_ORDER 2022-03-11 07:15:15.112439 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1515028@entdemo.astppbilling.org:5077) State HANGUP going to sleep 2022-03-11 07:15:15.112439 [DEBUG] switch_core_state_machine.c:620 (sofia/default/1515028@entdemo.astppbilling.org:5077) State Change CS_HANGUP -> CS_REPORTING 2022-03-11 07:15:15.112439 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1515028@entdemo.astppbilling.org:5077) Running State Change CS_REPORTING (Cur 1 Tot 15) 2022-03-11 07:15:15.112439 [DEBUG] switch_core_state_machine.c:936 (sofia/default/1515028@entdemo.astppbilling.org:5077) State REPORTING 2022-03-11 07:15:15.112439 [INFO] mod_json_cdr.c:271 Process [e69f6320-c0bd-486b-b372-5c9d2c874ac0.cdr.json] 2022-03-11 07:15:15.132427 [DEBUG] switch_core_state_machine.c:174 sofia/default/1515028@entdemo.astppbilling.org:5077 Standard REPORTING, cause: DESTINATION_OUT_OF_ORDER 2022-03-11 07:15:15.132427 [DEBUG] switch_core_state_machine.c:936 (sofia/default/1515028@entdemo.astppbilling.org:5077) State REPORTING going to sleep 2022-03-11 07:15:15.132427 [DEBUG] switch_core_state_machine.c:611 (sofia/default/1515028@entdemo.astppbilling.org:5077) State Change CS_REPORTING -> CS_DESTROY 2022-03-11 07:15:15.132427 [DEBUG] switch_core_session.c:1726 Session 15 (sofia/default/1515028@entdemo.astppbilling.org:5077) Locked, Waiting on external entities 2022-03-11 07:15:15.132427 [NOTICE] switch_core_session.c:1744 Session 15 (sofia/default/1515028@entdemo.astppbilling.org:5077) Ended 2022-03-11 07:15:15.132427 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/1515028@entdemo.astppbilling.org:5077 [CS_DESTROY] 2022-03-11 07:15:15.132427 [DEBUG] switch_core_state_machine.c:739 (sofia/default/1515028@entdemo.astppbilling.org:5077) Running State Change CS_DESTROY (Cur 0 Tot 15) 2022-03-11 07:15:15.132427 [DEBUG] switch_core_state_machine.c:749 (sofia/default/1515028@entdemo.astppbilling.org:5077) State DESTROY 2022-03-11 07:15:15.132427 [DEBUG] mod_sofia.c:364 sofia/default/1515028@entdemo.astppbilling.org:5077 SOFIA DESTROY 2022-03-11 07:15:15.132427 [DEBUG] switch_core_state_machine.c:181 sofia/default/1515028@entdemo.astppbilling.org:5077 Standard DESTROY 2022-03-11 07:15:15.132427 [DEBUG] switch_core_state_machine.c:749 (sofia/default/1515028@entdemo.astppbilling.org:5077) State DESTROY going to sleep freeswitch@gibfibre> freeswitch@gibfibre> freeswitch@gibfibre>