span style="color: cornflowerblue; font-weight: bold;"> 2022-05-31 05:48:29.577528 96.10% [NOTICE] switch_channel.c:1123 New Channel sofia/default/103969@astppqa601.astppbilling.org:5064 [d403780a-3be3-49f0-b791-a64d0f3d2e93]
2022-05-31 05:48:29.577528 96.10% [DEBUG] switch_core_state_machine.c:581 (sofia/default/103969@astppqa601.astppbilling.org:5064) Running State Change CS_NEW (Cur 4 Tot 3874)
2022-05-31 05:48:29.577528 96.10% [INFO] sofia.c:10462 sofia/default/103969@astppqa601.astppbilling.org:5064 receiving invite from 103.240.35.46:49298 version: 1.10.7 -release 64bit call-id: OWFmM2VlODQzYzMyZWU1MTVhMDY2ZjQwY2UwY2ExYmY.
2022-05-31 05:48:29.577528 96.10% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
2022-05-31 05:48:29.577528 96.10% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [103967@astppqa601.astppbilling.org] from ip 103.240.35.46
2022-05-31 05:48:29.577528 96.10% [DEBUG] switch_core_state_machine.c:600 (sofia/default/103969@astppqa601.astppbilling.org:5064) State NEW
2022-05-31 05:48:29.577528 96.10% [DEBUG] sofia.c:2419 detaching session d403780a-3be3-49f0-b791-a64d0f3d2e93
2022-05-31 05:48:29.617530 96.10% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [8863@142.132.184.134] from ip 91.211.91.234
2022-05-31 05:48:29.637526 96.10% [WARNING] sofia_reg.c:3223 Can't find user [8863@142.132.184.134] from 91.211.91.234
You must define a domain called '142.132.184.134' in your directory and add a user with the id="8863" attribute
and you must configure your device to use the proper domain in its authentication credentials.
2022-05-31 05:48:29.637526 96.10% [WARNING] sofia_reg.c:1806 SIP auth failure (REGISTER) on sofia profile 'default' for [8863@142.132.184.134] from ip 91.211.91.234
2022-05-31 05:48:29.837523 96.10% [DEBUG] sofia.c:2532 Re-attaching to session d403780a-3be3-49f0-b791-a64d0f3d2e93
2022-05-31 05:48:29.837523 96.10% [INFO] sofia.c:10462 sofia/default/103969@astppqa601.astppbilling.org:5064 receiving invite from 103.240.35.46:49298 version: 1.10.7 -release 64bit call-id: OWFmM2VlODQzYzMyZWU1MTVhMDY2ZjQwY2UwY2ExYmY.
2022-05-31 05:48:29.837523 96.10% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
2022-05-31 05:48:29.837523 96.10% [DEBUG] sofia.c:11672 Setting NAT mode based on via received
2022-05-31 05:48:29.837523 96.10% [DEBUG] sofia.c:7499 Channel sofia/default/103969@astppqa601.astppbilling.org:5064 entering state [received][100]
2022-05-31 05:48:29.837523 96.10% [DEBUG] sofia.c:7509 Remote SDP:
v=0
o=3cxVCE 185866320 163213245 IN IP4 192.168.1.13
s=3cxVCE Audio Call
c=IN IP4 192.168.1.13
t=0 0
m=audio 40012 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
m=video 40010 RTP/AVP 34
c=IN IP4 192.168.1.13
a=rtpmap:34 H263/90000
a=fmtp:34 QCIF=1;CIF=1;SQCIF=1;CIF4=1
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/103969@astppqa601.astppbilling.org:5064 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_codec.c:111 sofia/default/103969@astppqa601.astppbilling.org:5064 Original read codec set to PCMU:0
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_media.c:5973 sofia/default/103969@astppqa601.astppbilling.org:5064 Set 2833 dtmf send payload to 101 recv payload to 101
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_media.c:6301 No matches with FTMP, fallback to ignoring FMTP
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_media.c:6309 No matches with inherit_codec, fallback to ignoring PT
2022-05-31 05:48:29.837523 96.10% [DEBUG] sofia.c:7933 (sofia/default/103969@astppqa601.astppbilling.org:5064) State Change CS_NEW -> CS_INIT
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_state_machine.c:581 (sofia/default/103969@astppqa601.astppbilling.org:5064) Running State Change CS_INIT (Cur 4 Tot 3874)
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_state_machine.c:624 (sofia/default/103969@astppqa601.astppbilling.org:5064) State INIT
2022-05-31 05:48:29.837523 96.10% [DEBUG] mod_sofia.c:97 sofia/default/103969@astppqa601.astppbilling.org:5064 SOFIA INIT
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_state_machine.c:40 sofia/default/103969@astppqa601.astppbilling.org:5064 Standard INIT
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_state_machine.c:48 (sofia/default/103969@astppqa601.astppbilling.org:5064) State Change CS_INIT -> CS_ROUTING
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_state_machine.c:624 (sofia/default/103969@astppqa601.astppbilling.org:5064) State INIT going to sleep
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_state_machine.c:581 (sofia/default/103969@astppqa601.astppbilling.org:5064) Running State Change CS_ROUTING (Cur 4 Tot 3874)
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_channel.c:2380 (sofia/default/103969@astppqa601.astppbilling.org:5064) Callstate Change DOWN -> RINGING
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_state_machine.c:640 (sofia/default/103969@astppqa601.astppbilling.org:5064) State ROUTING
2022-05-31 05:48:29.837523 96.10% [DEBUG] mod_sofia.c:158 sofia/default/103969@astppqa601.astppbilling.org:5064 SOFIA ROUTING
2022-05-31 05:48:29.837523 96.10% [DEBUG] switch_core_state_machine.c:230 sofia/default/103969@astppqa601.astppbilling.org:5064 Standard ROUTING
2022-05-31 05:48:29.837523 96.10% [INFO] mod_dialplan_xml.c:639 Processing 103969 <103969>->103967 in context default
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 103967
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER103969
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '103967' limit 1
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '38' and username = '103967' limit 1
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL] Query :SELECT local_effective_caller_id_name,local_effective_caller_id_number FROM sip_devices WHERE username = '103969' limit 1
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan COMINNG] Caller Id name / number : 103969 / 103969
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : /
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation,sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="103967" limit 1
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : local
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 103967]
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "103967" AND deleted = 0 limit 1
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
2022-05-31 05:48:29.857517 96.10% [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 = '^103967.*' OR patterns = '^10396.*' OR patterns = '^1039.*' OR patterns = '^103.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 38 ORDER BY LENGTH(PKGPTR.patterns) DESC
2022-05-31 05:48:29.857517 96.10% [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 ="103967" AND A.accountid = '38' limit 1
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 103967
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation,sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="103967" limit 1
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : local
2022-05-31 05:48:29.857517 96.10% [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 = '103967' OR number = '10396' OR number = '1039' OR number = '103' OR number = '10' OR number = '1' OR number ='--') OR (number = '103967*' OR number = '10396*' OR number = '1039*' OR number = '103*' OR number = '10*' OR number = '1*' OR number ='--') OR (number ='--') OR (number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '103967' OR routing_prefix = '10396' OR routing_prefix = '1039' OR routing_prefix = '103' OR routing_prefix = '10' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 38
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 103967
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 100
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 16
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
2022-05-31 05:48:29.857517 96.10% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::16
2022-05-31 05:48:29.857517 96.10% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Free Inbound : 1
2022-05-31 05:48:29.857517 96.10% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Charge Per Min : 0
2022-05-31 05:48:29.857517 96.10% [ERR] mod_lua.cpp:202 ...eswitch/scripts/astpp/lib/addons/astpp.shadowbilling.lua:4: attempt to concatenate local 'rates_shadow_billing_id' (a nil value)
stack traceback:
...eswitch/scripts/astpp/lib/addons/astpp.shadowbilling.lua:4: in function 'shadow_billing_outbound'
/usr/local/freeswitch/scripts/astpp/lib/astpp.functions.lua:724: in function 'get_call_maxlength'
...ocal/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:523: in main chunk
[C]: in function 'dofile'
/usr/local/freeswitch/scripts/astpp/astpp.lua:138: in main chunk
2022-05-31 05:48:29.857517 96.10% [ERR] mod_lua.cpp:270 LUA script parse/execute error!
2022-05-31 05:48:29.857517 96.10% [WARNING] mod_dialplan_xml.c:669 Context default not found
2022-05-31 05:48:29.857517 96.10% [INFO] switch_core_state_machine.c:306 No Route, Aborting
2022-05-31 05:48:29.857517 96.10% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/103969@astppqa601.astppbilling.org:5064 [CS_ROUTING] [NO_ROUTE_DESTINATION]
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_core_state_machine.c:640 (sofia/default/103969@astppqa601.astppbilling.org:5064) State ROUTING going to sleep
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_core_state_machine.c:581 (sofia/default/103969@astppqa601.astppbilling.org:5064) Running State Change CS_HANGUP (Cur 4 Tot 3874)
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_core_state_machine.c:844 (sofia/default/103969@astppqa601.astppbilling.org:5064) Callstate Change RINGING -> HANGUP
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_core_state_machine.c:846 (sofia/default/103969@astppqa601.astppbilling.org:5064) State HANGUP
2022-05-31 05:48:29.857517 96.10% [DEBUG] mod_sofia.c:468 Channel sofia/default/103969@astppqa601.astppbilling.org:5064 hanging up, cause: NO_ROUTE_DESTINATION
2022-05-31 05:48:29.857517 96.10% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_core_state_machine.c:59 sofia/default/103969@astppqa601.astppbilling.org:5064 Standard HANGUP, cause: NO_ROUTE_DESTINATION
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_core_state_machine.c:846 (sofia/default/103969@astppqa601.astppbilling.org:5064) State HANGUP going to sleep
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_core_state_machine.c:616 (sofia/default/103969@astppqa601.astppbilling.org:5064) State Change CS_HANGUP -> CS_REPORTING
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_core_state_machine.c:581 (sofia/default/103969@astppqa601.astppbilling.org:5064) Running State Change CS_REPORTING (Cur 4 Tot 3874)
2022-05-31 05:48:29.857517 96.10% [DEBUG] switch_core_state_machine.c:932 (sofia/default/103969@astppqa601.astppbilling.org:5064) State REPORTING
2022-05-31 05:48:29.857517 96.10% [INFO] mod_json_cdr.c:271 Process [d403780a-3be3-49f0-b791-a64d0f3d2e93.cdr.json]
2022-05-31 05:48:29.877512 96.10% [DEBUG] switch_core_state_machine.c:168 sofia/default/103969@astppqa601.astppbilling.org:5064 Standard REPORTING, cause: NO_ROUTE_DESTINATION
2022-05-31 05:48:29.877512 96.10% [DEBUG] switch_core_state_machine.c:932 (sofia/default/103969@astppqa601.astppbilling.org:5064) State REPORTING going to sleep
2022-05-31 05:48:29.877512 96.10% [DEBUG] switch_core_state_machine.c:607 (sofia/default/103969@astppqa601.astppbilling.org:5064) State Change CS_REPORTING -> CS_DESTROY
2022-05-31 05:48:29.877512 96.10% [DEBUG] switch_core_session.c:1753 Session 3874 (sofia/default/103969@astppqa601.astppbilling.org:5064) Locked, Waiting on external entities
2022-05-31 05:48:29.877512 96.10% [NOTICE] switch_core_session.c:1771 Session 3874 (sofia/default/103969@astppqa601.astppbilling.org:5064) Ended
2022-05-31 05:48:29.877512 96.10% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/103969@astppqa601.astppbilling.org:5064 [CS_DESTROY]
2022-05-31 05:48:29.877512 96.10% [DEBUG] switch_core_state_machine.c:735 (sofia/default/103969@astppqa601.astppbilling.org:5064) Running State Change CS_DESTROY (Cur 3 Tot 3874)
2022-05-31 05:48:29.877512 96.10% [DEBUG] switch_core_state_machine.c:745 (sofia/default/103969@astppqa601.astppbilling.org:5064) State DESTROY
2022-05-31 05:48:29.877512 96.10% [DEBUG] mod_sofia.c:379 sofia/default/103969@astppqa601.astppbilling.org:5064 SOFIA DESTROY
2022-05-31 05:48:29.877512 96.10% [DEBUG] switch_core_state_machine.c:175 sofia/default/103969@astppqa601.astppbilling.org:5064 Standard DESTROY
2022-05-31 05:48:29.877512 96.10% [DEBUG] switch_core_state_machine.c:745 (sofia/default/103969@astppqa601.astppbilling.org:5064) State DESTROY going to sleep