freeswitch@entdemo-gibfibre>
2022-10-10 12:54:53.713740 97.80% [NOTICE] switch_channel.c:1123 New Channel sofia/default/1001@46.101.114.158 [905bd660-934d-4be5-865f-f6c2e841d01e]
2022-10-10 12:54:53.713740 97.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1001@46.101.114.158) Running State Change CS_NEW (Cur 1 Tot 67)
2022-10-10 12:54:53.713740 97.80% [INFO] sofia.c:10462 sofia/default/1001@46.101.114.158 receiving invite from 178.33.32.221:51755 version: 1.10.7 -release-19-883d2cb662 64bit call-id: 2114722264-544791177-1812127649
2022-10-10 12:54:53.713740 97.80% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 178.33.32.221:0.
2022-10-10 12:54:53.713740 97.80% [DEBUG] sofia.c:2419 detaching session 905bd660-934d-4be5-865f-f6c2e841d01e
2022-10-10 12:54:53.713740 97.80% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [110146812112263@46.101.114.158] from ip 178.33.32.221
2022-10-10 12:54:53.713740 97.80% [DEBUG] switch_core_state_machine.c:600 (sofia/default/1001@46.101.114.158) State NEW
2022-10-10 12:54:53.773753 97.80% [DEBUG] sofia.c:2532 Re-attaching to session 905bd660-934d-4be5-865f-f6c2e841d01e
2022-10-10 12:54:53.793739 97.80% [INFO] sofia.c:10462 sofia/default/1001@46.101.114.158 receiving invite from 178.33.32.221:51755 version: 1.10.7 -release-19-883d2cb662 64bit call-id: 2114722264-544791177-1812127649
2022-10-10 12:54:53.793739 97.80% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 178.33.32.221:0.
2022-10-10 12:54:53.793739 97.80% [WARNING] sofia_reg.c:3223 Can't find user [1001@46.101.114.158] from 178.33.32.221
You must define a domain called '46.101.114.158' in your directory and add a user with the id="1001" attribute
and you must configure your device to use the proper domain in its authentication credentials.
2022-10-10 12:54:53.793739 97.80% [NOTICE] sofia.c:2417 Hangup sofia/default/1001@46.101.114.158 [CS_NEW] [CALL_REJECTED]
2022-10-10 12:54:53.793739 97.80% [WARNING] sofia_reg.c:1806 SIP auth failure (INVITE) on sofia profile 'default' for [110146812112263@46.101.114.158] from ip 178.33.32.221
2022-10-10 12:54:53.793739 97.80% [DEBUG] sofia.c:1527 Channel is already hungup.
2022-10-10 12:54:53.793739 97.80% [DEBUG] sofia.c:1527 Channel is already hungup.
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1001@46.101.114.158) Running State Change CS_HANGUP (Cur 1 Tot 67)
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:844 (sofia/default/1001@46.101.114.158) Callstate Change DOWN -> HANGUP
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:846 (sofia/default/1001@46.101.114.158) State HANGUP
2022-10-10 12:54:53.793739 97.80% [DEBUG] mod_sofia.c:468 Channel sofia/default/1001@46.101.114.158 hanging up, cause: CALL_REJECTED
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:59 sofia/default/1001@46.101.114.158 Standard HANGUP, cause: CALL_REJECTED
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:846 (sofia/default/1001@46.101.114.158) State HANGUP going to sleep
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:616 (sofia/default/1001@46.101.114.158) State Change CS_HANGUP -> CS_REPORTING
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1001@46.101.114.158) Running State Change CS_REPORTING (Cur 1 Tot 67)
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:932 (sofia/default/1001@46.101.114.158) State REPORTING
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:168 sofia/default/1001@46.101.114.158 Standard REPORTING, cause: CALL_REJECTED
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:932 (sofia/default/1001@46.101.114.158) State REPORTING going to sleep
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:607 (sofia/default/1001@46.101.114.158) State Change CS_REPORTING -> CS_DESTROY
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_session.c:1753 Session 67 (sofia/default/1001@46.101.114.158) Locked, Waiting on external entities
2022-10-10 12:54:53.793739 97.80% [NOTICE] switch_core_session.c:1771 Session 67 (sofia/default/1001@46.101.114.158) Ended
2022-10-10 12:54:53.793739 97.80% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/1001@46.101.114.158 [CS_DESTROY]
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:735 (sofia/default/1001@46.101.114.158) Running State Change CS_DESTROY (Cur 0 Tot 67)
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:745 (sofia/default/1001@46.101.114.158) State DESTROY
2022-10-10 12:54:53.793739 97.80% [DEBUG] mod_sofia.c:379 sofia/default/1001@46.101.114.158 SOFIA DESTROY
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:175 sofia/default/1001@46.101.114.158 Standard DESTROY
2022-10-10 12:54:53.793739 97.80% [DEBUG] switch_core_state_machine.c:745 (sofia/default/1001@46.101.114.158) State DESTROY going to sleep
2022-10-10 12:54:56.613754 98.77% [NOTICE] switch_channel.c:1123 New Channel sofia/default/2637536173@entdemo.astppbilling.org [ac13557d-9a5d-4a60-a4c9-fc21f153bff6]
2022-10-10 12:54:56.613754 98.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/2637536173@entdemo.astppbilling.org) Running State Change CS_NEW (Cur 1 Tot 68)
2022-10-10 12:54:56.613754 98.77% [INFO] sofia.c:10462 sofia/default/2637536173@entdemo.astppbilling.org receiving invite from 103.240.35.46:5078 version: 1.10.7 -release-19-883d2cb662 64bit call-id: ynyxqgdumypxwbg@pk-qa
2022-10-10 12:54:56.613754 98.77% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
2022-10-10 12:54:56.613754 98.77% [DEBUG] sofia.c:2419 detaching session ac13557d-9a5d-4a60-a4c9-fc21f153bff6
2022-10-10 12:54:56.613754 98.77% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [200020@entdemo.astppbilling.org] from ip 103.240.35.46
2022-10-10 12:54:56.613754 98.77% [DEBUG] switch_core_state_machine.c:600 (sofia/default/2637536173@entdemo.astppbilling.org) State NEW
2022-10-10 12:54:56.753745 98.77% [NOTICE] switch_channel.c:1123 New Channel sofia/default/1012@46.101.114.158 [9d9f7f55-6fad-4946-b7bb-02d577c6bc91]
2022-10-10 12:54:56.753745 98.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1012@46.101.114.158) Running State Change CS_NEW (Cur 2 Tot 69)
2022-10-10 12:54:56.753745 98.77% [INFO] sofia.c:10462 sofia/default/1012@46.101.114.158 receiving invite from 178.33.32.221:53727 version: 1.10.7 -release-19-883d2cb662 64bit call-id: 1134905129-2138762923-363346040
2022-10-10 12:54:56.753745 98.77% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 178.33.32.221:0.
2022-10-10 12:54:56.753745 98.77% [DEBUG] sofia.c:2419 detaching session 9d9f7f55-6fad-4946-b7bb-02d577c6bc91
2022-10-10 12:54:56.753745 98.77% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [000420539002889@46.101.114.158] from ip 178.33.32.221
2022-10-10 12:54:56.753745 98.77% [DEBUG] switch_core_state_machine.c:600 (sofia/default/1012@46.101.114.158) State NEW
2022-10-10 12:54:56.793748 98.77% [DEBUG] sofia.c:2532 Re-attaching to session ac13557d-9a5d-4a60-a4c9-fc21f153bff6
2022-10-10 12:54:56.793748 98.77% [INFO] sofia.c:10462 sofia/default/2637536173@entdemo.astppbilling.org receiving invite from 103.240.35.46:5078 version: 1.10.7 -release-19-883d2cb662 64bit call-id: ynyxqgdumypxwbg@pk-qa
2022-10-10 12:54:56.793748 98.77% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
2022-10-10 12:54:56.813759 98.77% [DEBUG] sofia.c:7499 Channel sofia/default/2637536173@entdemo.astppbilling.org entering state [received][100]
2022-10-10 12:54:56.813759 98.77% [DEBUG] sofia.c:7509 Remote SDP:
v=0
o=twinkle 1626012469 2025011452 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-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:98:16000:20:0:1]/[PCMA:8:8000:20:64000:1]
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:98:16000:20:0:1]/[PCMU:0:8000:20:64000:1]
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:97:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:97:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/2637536173@entdemo.astppbilling.org PCMA/8000 20 ms 160 samples 64000 bits 1 channels
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_codec.c:111 sofia/default/2637536173@entdemo.astppbilling.org Original read codec set to PCMA:8
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_media.c:5973 sofia/default/2637536173@entdemo.astppbilling.org Set 2833 dtmf send payload to 101 recv payload to 101
2022-10-10 12:54:56.813759 98.77% [DEBUG] sofia.c:7933 (sofia/default/2637536173@entdemo.astppbilling.org) State Change CS_NEW -> CS_INIT
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/2637536173@entdemo.astppbilling.org) Running State Change CS_INIT (Cur 2 Tot 69)
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_state_machine.c:624 (sofia/default/2637536173@entdemo.astppbilling.org) State INIT
2022-10-10 12:54:56.813759 98.77% [DEBUG] mod_sofia.c:97 sofia/default/2637536173@entdemo.astppbilling.org SOFIA INIT
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_state_machine.c:40 sofia/default/2637536173@entdemo.astppbilling.org Standard INIT
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_state_machine.c:48 (sofia/default/2637536173@entdemo.astppbilling.org) State Change CS_INIT -> CS_ROUTING
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_state_machine.c:624 (sofia/default/2637536173@entdemo.astppbilling.org) State INIT going to sleep
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/2637536173@entdemo.astppbilling.org) Running State Change CS_ROUTING (Cur 2 Tot 69)
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_channel.c:2380 (sofia/default/2637536173@entdemo.astppbilling.org) Callstate Change DOWN -> RINGING
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/2637536173@entdemo.astppbilling.org) State ROUTING
2022-10-10 12:54:56.813759 98.77% [DEBUG] mod_sofia.c:158 sofia/default/2637536173@entdemo.astppbilling.org SOFIA ROUTING
2022-10-10 12:54:56.813759 98.77% [DEBUG] switch_core_state_machine.c:230 sofia/default/2637536173@entdemo.astppbilling.org Standard ROUTING
2022-10-10 12:54:56.813759 98.77% [INFO] mod_dialplan_xml.c:639 Processing 2637536173 <2637536173>->200020 in context default
2022-10-10 12:54:56.833748 98.77% [DEBUG] sofia.c:2532 Re-attaching to session 9d9f7f55-6fad-4946-b7bb-02d577c6bc91
2022-10-10 12:54:56.833748 98.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
2022-10-10 12:54:56.833748 98.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2022-10-10 12:54:56.833748 98.77% [INFO] sofia.c:10462 sofia/default/1012@46.101.114.158 receiving invite from 178.33.32.221:53727 version: 1.10.7 -release-19-883d2cb662 64bit call-id: 1134905129-2138762923-363346040
2022-10-10 12:54:56.833748 98.77% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 178.33.32.221:0.
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 200020
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '200020' AND status=0 limit 1
2022-10-10 12:54:56.853736 98.77% [WARNING] sofia_reg.c:3223 Can't find user [1012@46.101.114.158] from 178.33.32.221
You must define a domain called '46.101.114.158' in your directory and add a user with the id="1012" attribute
and you must configure your device to use the proper domain in its authentication credentials.
2022-10-10 12:54:56.853736 98.77% [NOTICE] sofia.c:2417 Hangup sofia/default/1012@46.101.114.158 [CS_NEW] [CALL_REJECTED]
2022-10-10 12:54:56.853736 98.77% [WARNING] sofia_reg.c:1806 SIP auth failure (INVITE) on sofia profile 'default' for [000420539002889@46.101.114.158] from ip 178.33.32.221
2022-10-10 12:54:56.853736 98.77% [DEBUG] sofia.c:1527 Channel is already hungup.
2022-10-10 12:54:56.853736 98.77% [DEBUG] sofia.c:1527 Channel is already hungup.
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1012@46.101.114.158) Running State Change CS_HANGUP (Cur 2 Tot 69)
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:844 (sofia/default/1012@46.101.114.158) Callstate Change DOWN -> HANGUP
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:846 (sofia/default/1012@46.101.114.158) State HANGUP
2022-10-10 12:54:56.853736 98.77% [DEBUG] mod_sofia.c:468 Channel sofia/default/1012@46.101.114.158 hanging up, cause: CALL_REJECTED
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:59 sofia/default/1012@46.101.114.158 Standard HANGUP, cause: CALL_REJECTED
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:846 (sofia/default/1012@46.101.114.158) State HANGUP going to sleep
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:616 (sofia/default/1012@46.101.114.158) State Change CS_HANGUP -> CS_REPORTING
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1012@46.101.114.158) Running State Change CS_REPORTING (Cur 2 Tot 69)
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:932 (sofia/default/1012@46.101.114.158) State REPORTING
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:168 sofia/default/1012@46.101.114.158 Standard REPORTING, cause: CALL_REJECTED
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:932 (sofia/default/1012@46.101.114.158) State REPORTING going to sleep
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:607 (sofia/default/1012@46.101.114.158) State Change CS_REPORTING -> CS_DESTROY
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_session.c:1753 Session 69 (sofia/default/1012@46.101.114.158) Locked, Waiting on external entities
2022-10-10 12:54:56.853736 98.77% [NOTICE] switch_core_session.c:1771 Session 69 (sofia/default/1012@46.101.114.158) Ended
2022-10-10 12:54:56.853736 98.77% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/1012@46.101.114.158 [CS_DESTROY]
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:735 (sofia/default/1012@46.101.114.158) Running State Change CS_DESTROY (Cur 1 Tot 69)
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:745 (sofia/default/1012@46.101.114.158) State DESTROY
2022-10-10 12:54:56.853736 98.77% [DEBUG] mod_sofia.c:379 sofia/default/1012@46.101.114.158 SOFIA DESTROY
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:175 sofia/default/1012@46.101.114.158 Standard DESTROY
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_core_state_machine.c:745 (sofia/default/1012@46.101.114.158) State DESTROY going to sleep
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : 2637536173 / 2637536173
2022-10-10 12:54:56.853736 98.77% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="200020" LIMIT 1
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 9846029962]
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9846029962" AND deleted = 0 limit 1
2022-10-10 12:54:56.853736 98.77% [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 ="200020" AND A.accountid = '13' limit 1
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 200020
2022-10-10 12:54:56.853736 98.77% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="200020" LIMIT 1
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call direction : inbound
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="200020" AND (accountid = 0 OR status = 1) LIMIT 1
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] call_direction :inbound
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID_ACCOUNTID :15
2022-10-10 12:54:56.853736 98.77% [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 (patterns = '^200020.*' OR patterns = '^20002.*' OR patterns = '^2000.*' OR patterns = '^200.*' OR patterns = '^20.*' OR patterns = '^2.*' OR patterns ='--') AND accountid = 15 ORDER BY LENGTH(PKGPTR.patterns) DESC
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 13
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 9846029962
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 998.9
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
2022-10-10 12:54:56.853736 98.77% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="200020" LIMIT 1
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] call_direction:::::: inbound
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 1
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00000
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] comment : 200020
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 85
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 13
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your998.9 balance Accountid 13 !!!
2022-10-10 12:54:56.853736 98.77% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max length duration : 100 minutes
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
2022-10-10 12:54:56.853736 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:1
2022-10-10 12:54:56.853736 98.77% [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 = 13 AND status=0 LIMIT 1
2022-10-10 12:54:56.853736 98.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "15" AND deleted = 0 limit 1
2022-10-10 12:54:56.873734 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:13
2022-10-10 12:54:56.873734 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:13
2022-10-10 12:54:56.873734 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 13
2022-10-10 12:54:56.873734 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] maxlength::::::::: 100
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_cpp.cpp:1465 [ASTPP] custom_function_name:::::::::::::::::::::::::custom_inbound_7
2022-10-10 12:54:56.873734 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [RINGGROUP] Call Type : 7
2022-10-10 12:54:56.873734 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] [RINGGROUP] Call Type : Ring Group
2022-10-10 12:54:56.873734 98.77% [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,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
2022-10-10 12:54:56.873734 98.77% [INFO] switch_cpp.cpp:1465 [ASTPP] Final Count : 0===
2022-10-10 12:54:56.873734 98.77% [ERR] mod_lua.cpp:202 .../freeswitch/scripts/astpp/lib/addons/astpp.ringgroup.lua:193: attempt to concatenate a nil value
stack traceback:
.../freeswitch/scripts/astpp/lib/addons/astpp.ringgroup.lua:193: in function 'did_pbx_info'
.../freeswitch/scripts/astpp/lib/addons/astpp.ringgroup.lua:2: in function '?'
/usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:305: in function 'freeswitch_xml_inbound'
...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:455: in main chunk
[C]: in function 'dofile'
/usr/share/freeswitch/scripts/astpp/astpp.lua:85: in main chunk
2022-10-10 12:54:56.873734 98.77% [ERR] mod_lua.cpp:270 LUA script parse/execute error!
2022-10-10 12:54:56.873734 98.77% [WARNING] mod_dialplan_xml.c:669 Context default not found
2022-10-10 12:54:56.873734 98.77% [INFO] switch_core_state_machine.c:306 No Route, Aborting
2022-10-10 12:54:56.873734 98.77% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/2637536173@entdemo.astppbilling.org [CS_ROUTING] [NO_ROUTE_DESTINATION]
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:640 (sofia/default/2637536173@entdemo.astppbilling.org) State ROUTING going to sleep
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/2637536173@entdemo.astppbilling.org) Running State Change CS_HANGUP (Cur 1 Tot 69)
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:844 (sofia/default/2637536173@entdemo.astppbilling.org) Callstate Change RINGING -> HANGUP
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:846 (sofia/default/2637536173@entdemo.astppbilling.org) State HANGUP
2022-10-10 12:54:56.873734 98.77% [DEBUG] mod_sofia.c:468 Channel sofia/default/2637536173@entdemo.astppbilling.org hanging up, cause: NO_ROUTE_DESTINATION
2022-10-10 12:54:56.873734 98.77% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:59 sofia/default/2637536173@entdemo.astppbilling.org Standard HANGUP, cause: NO_ROUTE_DESTINATION
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:846 (sofia/default/2637536173@entdemo.astppbilling.org) State HANGUP going to sleep
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:616 (sofia/default/2637536173@entdemo.astppbilling.org) State Change CS_HANGUP -> CS_REPORTING
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:581 (sofia/default/2637536173@entdemo.astppbilling.org) Running State Change CS_REPORTING (Cur 1 Tot 69)
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:932 (sofia/default/2637536173@entdemo.astppbilling.org) State REPORTING
2022-10-10 12:54:56.873734 98.77% [INFO] mod_json_cdr.c:271 Process [ac13557d-9a5d-4a60-a4c9-fc21f153bff6.cdr.json]
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:168 sofia/default/2637536173@entdemo.astppbilling.org Standard REPORTING, cause: NO_ROUTE_DESTINATION
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:932 (sofia/default/2637536173@entdemo.astppbilling.org) State REPORTING going to sleep
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:607 (sofia/default/2637536173@entdemo.astppbilling.org) State Change CS_REPORTING -> CS_DESTROY
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_session.c:1753 Session 68 (sofia/default/2637536173@entdemo.astppbilling.org) Locked, Waiting on external entities
2022-10-10 12:54:56.873734 98.77% [NOTICE] switch_core_session.c:1771 Session 68 (sofia/default/2637536173@entdemo.astppbilling.org) Ended
2022-10-10 12:54:56.873734 98.77% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/2637536173@entdemo.astppbilling.org [CS_DESTROY]
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:735 (sofia/default/2637536173@entdemo.astppbilling.org) Running State Change CS_DESTROY (Cur 0 Tot 69)
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:745 (sofia/default/2637536173@entdemo.astppbilling.org) State DESTROY
2022-10-10 12:54:56.873734 98.77% [DEBUG] mod_sofia.c:379 sofia/default/2637536173@entdemo.astppbilling.org SOFIA DESTROY
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:175 sofia/default/2637536173@entdemo.astppbilling.org Standard DESTROY
2022-10-10 12:54:56.873734 98.77% [DEBUG] switch_core_state_machine.c:745 (sofia/default/2637536173@entdemo.astppbilling.org) State DESTROY going to sleep
2022-10-10 12:55:01.693772 98.50% [NOTICE] switch_channel.c:1123 New Channel sofia/default/1001@46.101.114.158 [59353b0d-e1e9-4bcf-801b-2ca395f23214]
2022-10-10 12:55:01.693772 98.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1001@46.101.114.158) Running State Change CS_NEW (Cur 1 Tot 70)
2022-10-10 12:55:01.693772 98.50% [INFO] sofia.c:10462 sofia/default/1001@46.101.114.158 receiving invite from 178.33.32.221:56962 version: 1.10.7 -release-19-883d2cb662 64bit call-id: 538203001-733534299-2134233445
2022-10-10 12:55:01.693772 98.50% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 178.33.32.221:0.
2022-10-10 12:55:01.693772 98.50% [DEBUG] sofia.c:2419 detaching session 59353b0d-e1e9-4bcf-801b-2ca395f23214
2022-10-10 12:55:01.693772 98.50% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [220246812112263@46.101.114.158] from ip 178.33.32.221
2022-10-10 12:55:01.693772 98.50% [DEBUG] switch_core_state_machine.c:600 (sofia/default/1001@46.101.114.158) State NEW
2022-10-10 12:55:01.733761 98.50% [DEBUG] sofia.c:2532 Re-attaching to session 59353b0d-e1e9-4bcf-801b-2ca395f23214
2022-10-10 12:55:01.753763 98.50% [INFO] sofia.c:10462 sofia/default/1001@46.101.114.158 receiving invite from 178.33.32.221:56962 version: 1.10.7 -release-19-883d2cb662 64bit call-id: 538203001-733534299-2134233445
2022-10-10 12:55:01.753763 98.50% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 178.33.32.221:0.