freeswitch@devangnewdeb11>
2022-07-12 07:45:29.796097 95.30% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [9999999440@alpha3.astppbilling.org] from ip 103.240.35.46
freeswitch@devangnewdeb11>
freeswitch@devangnewdeb11>
freeswitch@devangnewdeb11>
2022-07-12 07:45:57.256115 97.07% [NOTICE] switch_channel.c:1123 New Channel sofia/default/4010463821@alpha.astppbilling.org [dc509e38-02fa-4b56-a8d1-b7a3f72679ac]
2022-07-12 07:45:57.256115 97.07% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4010463821@alpha.astppbilling.org) Running State Change CS_NEW (Cur 1 Tot 312)
2022-07-12 07:45:57.256115 97.07% [INFO] sofia.c:10462 sofia/default/4010463821@alpha.astppbilling.org receiving invite from 103.240.35.46:5060 version: 1.10.7 -release 64bit call-id: pjyrojvenpwvcps@pk-qa
2022-07-12 07:45:57.256115 97.07% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
2022-07-12 07:45:57.256115 97.07% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [107770@alpha.astppbilling.org] from ip 103.240.35.46
2022-07-12 07:45:57.256115 97.07% [DEBUG] switch_core_state_machine.c:600 (sofia/default/4010463821@alpha.astppbilling.org) State NEW
2022-07-12 07:45:57.256115 97.07% [DEBUG] sofia.c:2419 detaching session dc509e38-02fa-4b56-a8d1-b7a3f72679ac
2022-07-12 07:45:57.436093 97.03% [DEBUG] sofia.c:2532 Re-attaching to session dc509e38-02fa-4b56-a8d1-b7a3f72679ac
2022-07-12 07:45:57.436093 97.03% [INFO] sofia.c:10462 sofia/default/4010463821@alpha.astppbilling.org receiving invite from 103.240.35.46:5060 version: 1.10.7 -release 64bit call-id: pjyrojvenpwvcps@pk-qa
2022-07-12 07:45:57.436093 97.03% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
2022-07-12 07:45:57.436093 97.03% [DEBUG] sofia.c:7499 Channel sofia/default/4010463821@alpha.astppbilling.org entering state [received][100]
2022-07-12 07:45:57.436093 97.03% [DEBUG] sofia.c:7509 Remote SDP:
v=0
o=twinkle 1292942848 861660070 IN IP4 103.240.35.46
s=-
c=IN IP4 103.240.35.46
t=0 0
m=audio 8000 RTP/AVP 98 97 8 0 3 101
a=rtpmap:98 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:98:16000:20:0:1]/[PCMA:8:8000:20:64000:1]
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:98:16000:20:0:1]/[PCMU:0:8000:20:64000:1]
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:97:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:97:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/4010463821@alpha.astppbilling.org PCMA/8000 20 ms 160 samples 64000 bits 1 channels
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_codec.c:111 sofia/default/4010463821@alpha.astppbilling.org Original read codec set to PCMA:8
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_media.c:5973 sofia/default/4010463821@alpha.astppbilling.org Set 2833 dtmf send payload to 101 recv payload to 101
2022-07-12 07:45:57.436093 97.03% [DEBUG] sofia.c:7933 (sofia/default/4010463821@alpha.astppbilling.org) State Change CS_NEW -> CS_INIT
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4010463821@alpha.astppbilling.org) Running State Change CS_INIT (Cur 1 Tot 312)
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_state_machine.c:624 (sofia/default/4010463821@alpha.astppbilling.org) State INIT
2022-07-12 07:45:57.436093 97.03% [DEBUG] mod_sofia.c:97 sofia/default/4010463821@alpha.astppbilling.org SOFIA INIT
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_state_machine.c:40 sofia/default/4010463821@alpha.astppbilling.org Standard INIT
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_state_machine.c:48 (sofia/default/4010463821@alpha.astppbilling.org) State Change CS_INIT -> CS_ROUTING
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_state_machine.c:624 (sofia/default/4010463821@alpha.astppbilling.org) State INIT going to sleep
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4010463821@alpha.astppbilling.org) Running State Change CS_ROUTING (Cur 1 Tot 312)
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_channel.c:2380 (sofia/default/4010463821@alpha.astppbilling.org) Callstate Change DOWN -> RINGING
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_state_machine.c:640 (sofia/default/4010463821@alpha.astppbilling.org) State ROUTING
2022-07-12 07:45:57.436093 97.03% [DEBUG] mod_sofia.c:158 sofia/default/4010463821@alpha.astppbilling.org SOFIA ROUTING
2022-07-12 07:45:57.436093 97.03% [DEBUG] switch_core_state_machine.c:230 sofia/default/4010463821@alpha.astppbilling.org Standard ROUTING
2022-07-12 07:45:57.436093 97.03% [INFO] mod_dialplan_xml.c:639 Processing 4010463821 <4010463821>->107770 in context default
2022-07-12 07:45:57.456087 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2022-07-12 07:45:57.456087 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
2022-07-12 07:45:57.456087 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 107770
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '107770' limit 1
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '107770' and status=0 LIMIT 1
2022-07-12 07:45:57.456087 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER4010463821
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '107770' limit 1
2022-07-12 07:45:57.456087 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : 4010463821 / 4010463821
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 107770 AND status=0 limit 1
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="107770" LIMIT 1
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2022-07-12 07:45:57.456087 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
2022-07-12 07:45:57.456087 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 4010463821]
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "4010463821" AND deleted = 0 limit 1
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT * FROM accounts WHERE id =49
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [update_first_used_account] Query :update accounts SET first_used = '2022-07-12 07:45:57' where id = '49'
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]1
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 49
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [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 = '^107770.*' OR patterns = '^10777.*' OR patterns = '^1077.*' OR patterns = '^107.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 49 ORDER BY LENGTH(PKGPTR.patterns) DESC
2022-07-12 07:45:57.456087 97.03% [DEBUG] switch_cpp.cpp:1465 [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 ="107770" AND A.accountid = '49' limit 1
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 107770
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="107770" LIMIT 1
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : inbound
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type,accountid FROM call_barring WHERE ((number = '107770' OR number = '10777' OR number = '1077' OR number = '107' OR number = '10' OR number = '1' OR number ='--') OR (number = '107770*' OR number = '10777*' OR number = '1077*' OR number = '107*' OR number = '10*' OR number = '1*' OR number ='--') OR (number = '4010463821' OR number = '401046382' OR number = '40104638' OR number = '4010463' OR number = '401046' OR number = '40104' OR number = '4010' OR number = '401' OR number = '40' OR number = '4' OR number ='--') OR (number = '4010463821*' OR number = '401046382*' OR number = '40104638*' OR number = '4010463*' OR number = '401046*' OR number = '40104*' OR number = '4010*' OR number = '401*' OR number = '40*' OR number = '4*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '107770' OR routing_prefix = '10777' OR routing_prefix = '1077' OR routing_prefix = '107' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 48 limit 1
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 49
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 4010463821
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT * FROM accounts WHERE id =49
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 39999.999
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 15
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::15
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="107770" LIMIT 1
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Direction : inbound
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 15
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 107770
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 49
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT * FROM accounts WHERE id =49
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your39999.999 balance Accountid 49 !!!
2022-07-12 07:45:57.476081 97.03% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2022-07-12 07:45:57.476081 97.03% [NOTICE] switch_cpp.cpp:1465 [ASTPP] FINDING LIMIT FOR RESELLER: 48
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "48" AND deleted = 0 limit 1
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT * FROM accounts WHERE id =49
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [update_first_used_account] Query :update accounts SET first_used = '2022-07-12 07:45:57' where id = '48'
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Reseller Information ===================
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 48
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 9924732339
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT * FROM accounts WHERE id =49
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 39999.999
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::1
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [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, A.codec as did_codec,A.provider_id as provider_id FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="107770" LIMIT 1
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Direction : inbound
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 15
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Comment : 107770
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 88
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 48
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT * FROM accounts WHERE id =49
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your39999.999 balance Accountid 48 !!!
2022-07-12 07:45:57.476081 97.03% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length :: 100
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Reseller xml_user_rates : ID:15|CODE:^107770.*|DESTINATION:107770|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:7|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:49||ID:15|CODE:^107770.*|DESTINATION:107770|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:7|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:88|ACCID:49
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Lossless Routing Status : 1
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max Length Duration : 100 minutes
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
2022-07-12 07:45:57.476081 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 49 AND status=0 LIMIT 1
2022-07-12 07:45:57.476081 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "49" AND deleted = 0 limit 1
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT * FROM accounts WHERE id =49
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:49
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:49
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 49
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 49 limit 1
2022-07-12 07:45:57.496083 97.03% [WARNING] switch_cpp.cpp:1465 [ASTPP] [user_domain] User Domain : alpha.astppbilling.org
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Maxlength : 100
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [XML] Customer Recording Flag : 1
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 49 limit 1
2022-07-12 07:45:57.496083 97.03% [WARNING] switch_cpp.cpp:1465 [ASTPP] [XML] User Domain : alpha.astppbilling.org
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 49 and status = 0 limit 1
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [XML] Custom Function Name :: custom_inbound_7
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Type : 7
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Call Type : Ring Group
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [PBX] did_pbx_info : Query - SELECT call_screening from accounts WHERE id = '49' LIMIT 1
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] did_pbx_info : Screening Option - 1
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] did_pbx_info : is_intro_recorded - false
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] did_pbx_info : introduction_recording_name -
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [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,greetingid as ringgroup_greetingid,calleridnumber as ringgroup_calleridnumber,no_answer as ringgroup_no_answer,no_answer_call_type as no_answer_call_type,voicemail_set,no_answer_call_type_value, greetingid as ringgroup_greetingid, music_on_hold_type,music_on_hold from pbx_ringgroup WHERE id = 1 and status = 0 LIMIT 1
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [PBX] Conference greetingid::1
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [GET_RING_GROUP_INFO] Query :SELECT file_name from pbx_recording WHERE id = '1' LIMIT 1
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== music_file_name=File name==================taunt_.wav
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET MOH] Query :SELECT name FROM pbx_music_on_hold WHERE id = 1 ORDER BY RAND() LIMIT 1
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] music on hold name :- MusicOnHold
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 49 limit 1
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== announcement===================0
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Final Count : 0===
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [SIP_CODEC1]
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT sip_devices.codec as sip_codec 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="4010463821" AND domains.domain="alpha.astppbilling.org" limit 1
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_extensions_forwarding] Query :select sip_devices.id,sip_device_routing.call_forwarding_flag,sip_device_routing.call_forwarding_destination from sip_devices JOIN sip_device_routing ON sip_devices.id = sip_device_routing.sip_device_id where sip_devices.username = "4010463821"
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [SIP_CODEC3]
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT sip_devices.codec as sip_codec 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="4010463821" AND domains.domain="alpha.astppbilling.org" limit 1
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Final Count : 0===
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [SIP_CODEC1]
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT sip_devices.codec as sip_codec 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="1246167409" AND domains.domain="alpha.astppbilling.org" limit 1
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_extensions_forwarding] Query :select sip_devices.id,sip_device_routing.call_forwarding_flag,sip_device_routing.call_forwarding_destination from sip_devices JOIN sip_device_routing ON sip_devices.id = sip_device_routing.sip_device_id where sip_devices.username = "1246167409"
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [SIP_CODEC3]
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT sip_devices.codec as sip_codec 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="1246167409" AND domains.domain="alpha.astppbilling.org" limit 1
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Final Count : 0===
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [SIP_CODEC1]
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT sip_devices.codec as sip_codec 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="3937482392" AND domains.domain="alpha.astppbilling.org" limit 1
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_extensions_forwarding] Query :select sip_devices.id,sip_device_routing.call_forwarding_flag,sip_device_routing.call_forwarding_destination from sip_devices JOIN sip_device_routing ON sip_devices.id = sip_device_routing.sip_device_id where sip_devices.username = "3937482392"
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] [SIP_CODEC3]
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT sip_devices.codec as sip_codec 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="3937482392" AND domains.domain="alpha.astppbilling.org" limit 1
2022-07-12 07:45:57.496083 97.03% [INFO] switch_cpp.cpp:1465 [ASTPP] Final Count : 0===
2022-07-12 07:45:57.496083 97.03% [ERR] mod_lua.cpp:202 ...ip_pbx/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:250: attempt to concatenate a nil value
stack traceback:
...ip_pbx/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:250: in function 'did_pbx_info'
...ip_pbx/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua:2095: in function '?'
./astpp/scripts/astpp.xml.lua:481: in function 'freeswitch_xml_inbound'
./astpp/scripts/astpp.dialplan.lua:792: in main chunk
[C]: in function 'dofile'
./astpp/astpp_deb9.lua:138: in main chunk
2022-07-12 07:45:57.496083 97.03% [ERR] mod_lua.cpp:270 LUA script parse/execute error!
2022-07-12 07:45:57.496083 97.03% [WARNING] mod_dialplan_xml.c:669 Context default not found
2022-07-12 07:45:57.496083 97.03% [INFO] switch_core_state_machine.c:306 No Route, Aborting
2022-07-12 07:45:57.496083 97.03% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/4010463821@alpha.astppbilling.org [CS_ROUTING] [NO_ROUTE_DESTINATION]
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_core_state_machine.c:640 (sofia/default/4010463821@alpha.astppbilling.org) State ROUTING going to sleep
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4010463821@alpha.astppbilling.org) Running State Change CS_HANGUP (Cur 1 Tot 312)
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_core_state_machine.c:844 (sofia/default/4010463821@alpha.astppbilling.org) Callstate Change RINGING -> HANGUP
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_core_state_machine.c:846 (sofia/default/4010463821@alpha.astppbilling.org) State HANGUP
2022-07-12 07:45:57.496083 97.03% [DEBUG] mod_sofia.c:468 Channel sofia/default/4010463821@alpha.astppbilling.org hanging up, cause: NO_ROUTE_DESTINATION
2022-07-12 07:45:57.496083 97.03% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_core_state_machine.c:59 sofia/default/4010463821@alpha.astppbilling.org Standard HANGUP, cause: NO_ROUTE_DESTINATION
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_core_state_machine.c:846 (sofia/default/4010463821@alpha.astppbilling.org) State HANGUP going to sleep
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_core_state_machine.c:616 (sofia/default/4010463821@alpha.astppbilling.org) State Change CS_HANGUP -> CS_REPORTING
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_core_state_machine.c:581 (sofia/default/4010463821@alpha.astppbilling.org) Running State Change CS_REPORTING (Cur 1 Tot 312)
2022-07-12 07:45:57.496083 97.03% [DEBUG] switch_core_state_machine.c:932 (sofia/default/4010463821@alpha.astppbilling.org) State REPORTING
2022-07-12 07:45:57.496083 97.03% [INFO] mod_json_cdr.c:271 Process [dc509e38-02fa-4b56-a8d1-b7a3f72679ac.cdr.json]
2022-07-12 07:45:57.516084 97.03% [DEBUG] switch_core_state_machine.c:168 sofia/default/4010463821@alpha.astppbilling.org Standard REPORTING, cause: NO_ROUTE_DESTINATION
2022-07-12 07:45:57.516084 97.03% [DEBUG] switch_core_state_machine.c:932 (sofia/default/4010463821@alpha.astppbilling.org) State REPORTING going to sleep
2022-07-12 07:45:57.516084 97.03% [DEBUG] switch_core_state_machine.c:607 (sofia/default/4010463821@alpha.astppbilling.org) State Change CS_REPORTING -> CS_DESTROY
2022-07-12 07:45:57.516084 97.03% [DEBUG] switch_core_session.c:1753 Session 312 (sofia/default/4010463821@alpha.astppbilling.org) Locked, Waiting on external entities
2022-07-12 07:45:57.516084 97.03% [NOTICE] switch_core_session.c:1771 Session 312 (sofia/default/4010463821@alpha.astppbilling.org) Ended
2022-07-12 07:45:57.516084 97.03% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/4010463821@alpha.astppbilling.org [CS_DESTROY]
2022-07-12 07:45:57.516084 97.03% [DEBUG] switch_core_state_machine.c:735 (sofia/default/4010463821@alpha.astppbilling.org) Running State Change CS_DESTROY (Cur 0 Tot 312)
2022-07-12 07:45:57.516084 97.03% [DEBUG] switch_core_state_machine.c:745 (sofia/default/4010463821@alpha.astppbilling.org) State DESTROY
2022-07-12 07:45:57.516084 97.03% [DEBUG] mod_sofia.c:379 sofia/default/4010463821@alpha.astppbilling.org SOFIA DESTROY
2022-07-12 07:45:57.516084 97.03% [DEBUG] switch_core_state_machine.c:175 sofia/default/4010463821@alpha.astppbilling.org Standard DESTROY
2022-07-12 07:45:57.516084 97.03% [DEBUG] switch_core_state_machine.c:745 (sofia/default/4010463821@alpha.astppbilling.org) State DESTROY going to sleep
freeswitch@devangnewdeb11> /exit
root@devangnewdeb11: