freeswitch@AlphaQA>
freeswitch@AlphaQA>
freeswitch@AlphaQA>
2022-10-14 08:19:41.113901 24.93% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [857524@alpha4.astppbilling.org] from ip 103.240.35.46
2022-10-14 08:19:41.293903 24.97% [CONSOLE] mod_voicemail.c:4065 Event Thread Started
2022-10-14 08:19:41.313895 24.97% [CONSOLE] sofia_presence.c:1620 Event Thread Started
2022-10-14 08:19:41.573898 24.97% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [857524@alpha4.astppbilling.org] from ip 103.240.35.46
2022-10-14 08:19:41.653895 24.97% [WARNING] sofia_reg.c:1861 SIP auth challenge (REGISTER) on sofia profile 'default' for [857524@alpha4.astppbilling.org] from ip 103.240.35.46
2022-10-14 08:19:42.293890 24.97% [WARNING] sofia_reg.c:3223 Can't find user [857524@alpha4.astppbilling.org] from 103.240.35.46
You must define a domain called 'alpha4.astppbilling.org' in your directory and add a user with the id="857524" attribute
and you must configure your device to use the proper domain in its authentication credentials.
2022-10-14 08:19:42.293890 24.97% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [857524@alpha4.astppbilling.org] from ip 103.240.35.46
2022-10-14 08:19:42.393894 24.97% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [857524@alpha4.astppbilling.org] from ip 103.240.35.46
2022-10-14 08:24:02.773912 39.40% [NOTICE] switch_channel.c:1123 New Channel sofia/default/10302222@46.101.114.158 [846319ec-77b4-45e8-842b-64adb537458c]
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10302222@46.101.114.158) Running State Change CS_NEW (Cur 1 Tot 1)
2022-10-14 08:24:02.773912 39.40% [INFO] sofia.c:10462 sofia/default/10302222@46.101.114.158 receiving invite from 46.101.114.158:5064 version: 1.10.7 -release 64bit call-id: 66dab056-c63c-123b-3793-ba05d31eb9f9
2022-10-14 08:24:02.773912 39.40% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 46.101.114.158:0.
2022-10-14 08:24:02.773912 39.40% [DEBUG] sofia.c:10585 IP 46.101.114.158 Approved by acl "default[]". Access Granted.
2022-10-14 08:24:02.773912 39.40% [DEBUG] sofia.c:7499 Channel sofia/default/10302222@46.101.114.158 entering state [received][100]
2022-10-14 08:24:02.773912 39.40% [DEBUG] sofia.c:7509 Remote SDP:
v=0
o=FreeSWITCH 1665703268 1665703269 IN IP4 46.101.114.158
s=FreeSWITCH
c=IN IP4 46.101.114.158
t=0 0
m=audio 32574 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/10302222@46.101.114.158 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_codec.c:111 sofia/default/10302222@46.101.114.158 Original read codec set to PCMA:8
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_media.c:5973 sofia/default/10302222@46.101.114.158 Set 2833 dtmf send payload to 101 recv payload to 101
2022-10-14 08:24:02.773912 39.40% [DEBUG] sofia.c:7933 (sofia/default/10302222@46.101.114.158) State Change CS_NEW -> CS_INIT
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_state_machine.c:600 (sofia/default/10302222@46.101.114.158) State NEW
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10302222@46.101.114.158) Running State Change CS_INIT (Cur 1 Tot 1)
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_state_machine.c:624 (sofia/default/10302222@46.101.114.158) State INIT
2022-10-14 08:24:02.773912 39.40% [DEBUG] mod_sofia.c:97 sofia/default/10302222@46.101.114.158 SOFIA INIT
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_state_machine.c:40 sofia/default/10302222@46.101.114.158 Standard INIT
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_state_machine.c:48 (sofia/default/10302222@46.101.114.158) State Change CS_INIT -> CS_ROUTING
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_state_machine.c:624 (sofia/default/10302222@46.101.114.158) State INIT going to sleep
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10302222@46.101.114.158) Running State Change CS_ROUTING (Cur 1 Tot 1)
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_channel.c:2380 (sofia/default/10302222@46.101.114.158) Callstate Change DOWN -> RINGING
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_state_machine.c:640 (sofia/default/10302222@46.101.114.158) State ROUTING
2022-10-14 08:24:02.773912 39.40% [DEBUG] mod_sofia.c:158 sofia/default/10302222@46.101.114.158 SOFIA ROUTING
2022-10-14 08:24:02.773912 39.40% [DEBUG] switch_core_state_machine.c:230 sofia/default/10302222@46.101.114.158 Standard ROUTING
2022-10-14 08:24:02.773912 39.40% [INFO] mod_dialplan_xml.c:639 Processing 9869754093 <10302222>->10302222 in context default
2022-10-14 08:24:02.793906 39.40% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2022-10-14 08:24:02.793906 39.40% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
2022-10-14 08:24:02.793906 39.40% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 10302222
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '10302222' limit 1
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '10302222' and status=0 LIMIT 1
2022-10-14 08:24:02.793906 39.40% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERgw+BetaServer
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '10302222' limit 1
2022-10-14 08:24:02.793906 39.40% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
2022-10-14 08:24:02.793906 39.40% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : 9869754093 / 10302222
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 22
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 103022 AND status=0 limit 1
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]1.1 :: CALL IS DID
2022-10-14 08:24:02.793906 39.40% [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 ="10302222" LIMIT 1
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID_CALL_TRANSFER] Query :SELECT A.id as id,A.provider_id as provider_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.transfer_status,A.busy_status,A.no_answer_status,A.always_status,A.transfer_call_type,A.transfer_extensions FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="10302222" LIMIT 1
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID12] Query :SELECT call_type,extensions from inbound_routes where accountid ="19103" and did_id ="29" and number ="10302222" and status = '0' LIMIT 1
2022-10-14 08:24:02.793906 39.40% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("46.101.114.158") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 - SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1)) AND "10302222" LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
2022-10-14 08:24:02.793906 39.40% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 3673942894]
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =10302222
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Ashish account call balance :SELECT * FROM accounts WHERE id =19103
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]1
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 19103
2022-10-14 08:24:02.793906 39.40% [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 = '^10302222.*' OR patterns = '^1030222.*' OR patterns = '^103022.*' OR patterns = '^10302.*' OR patterns = '^1030.*' OR patterns = '^103.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 19103 ORDER BY LENGTH(PKGPTR.patterns) DESC
2022-10-14 08:24:02.793906 39.40% [ERR] switch_core_sqldb.c:1310 ERR: [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 = '^10302222.*' OR patterns = '^1030222.*' OR patterns = '^103022.*' OR patterns = '^10302.*' OR patterns = '^1030.*' OR patterns = '^103.*' OR patterns = '^10.*' OR patterns = '^1.*' OR patterns ='--') AND accountid = 19103 ORDER BY LENGTH(PKGPTR.patterns) DESC]
[STATE: HY000 CODE 1525 ERROR: [MySQL][ODBC 8.0(a) Driver][mysqld-8.0.30]Incorrect DATETIME value: '0000-00-00 00:00:00'
]
2022-10-14 08:24:02.793906 39.40% [ERR] mod_lua.cpp:202 ./astpp/lib/astpp.functions.lua:1297: assertion failed!
stack traceback:
[C]: in function 'assert'
./astpp/lib/astpp.functions.lua:1297: in function 'package_calculation'
./astpp/scripts/astpp.dialplan.lua:363: in main chunk
[C]: in function 'dofile'
./astpp/astpp_deb9.lua:138: in main chunk
2022-10-14 08:24:02.793906 39.40% [ERR] mod_lua.cpp:270 LUA script parse/execute error!
2022-10-14 08:24:02.793906 39.40% [WARNING] mod_dialplan_xml.c:669 Context default not found
2022-10-14 08:24:02.793906 39.40% [INFO] switch_core_state_machine.c:306 No Route, Aborting
2022-10-14 08:24:02.793906 39.40% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/10302222@46.101.114.158 [CS_ROUTING] [NO_ROUTE_DESTINATION]
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_core_state_machine.c:640 (sofia/default/10302222@46.101.114.158) State ROUTING going to sleep
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10302222@46.101.114.158) Running State Change CS_HANGUP (Cur 1 Tot 1)
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_core_state_machine.c:844 (sofia/default/10302222@46.101.114.158) Callstate Change RINGING -> HANGUP
2022-10-14 08:24:02.793906 39.40% [DEBUG] switch_core_state_machine.c:846 (sofia/default/10302222@46.101.114.158) State HANGUP
2022-10-14 08:24:02.793906 39.40% [DEBUG] mod_sofia.c:468 Channel sofia/default/10302222@46.101.114.158 hanging up, cause: NO_ROUTE_DESTINATION
2022-10-14 08:24:02.813898 39.40% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
2022-10-14 08:24:02.813898 39.40% [DEBUG] switch_core_state_machine.c:59 sofia/default/10302222@46.101.114.158 Standard HANGUP, cause: NO_ROUTE_DESTINATION
2022-10-14 08:24:02.813898 39.40% [DEBUG] switch_core_state_machine.c:846 (sofia/default/10302222@46.101.114.158) State HANGUP going to sleep
2022-10-14 08:24:02.813898 39.40% [DEBUG] switch_core_state_machine.c:616 (sofia/default/10302222@46.101.114.158) State Change CS_HANGUP -> CS_REPORTING
2022-10-14 08:24:02.813898 39.40% [DEBUG] switch_core_state_machine.c:581 (sofia/default/10302222@46.101.114.158) Running State Change CS_REPORTING (Cur 1 Tot 1)
2022-10-14 08:24:02.813898 39.40% [DEBUG] switch_core_state_machine.c:932 (sofia/default/10302222@46.101.114.158) State REPORTING
2022-10-14 08:24:02.813898 39.40% [INFO] mod_json_cdr.c:271 Process [846319ec-77b4-45e8-842b-64adb537458c.cdr.json]
2022-10-14 08:24:02.813898 39.40% [DEBUG] switch_core_state_machine.c:168 sofia/default/10302222@46.101.114.158 Standard REPORTING, cause: NO_ROUTE_DESTINATION
2022-10-14 08:24:02.813898 39.40% [DEBUG] switch_core_state_machine.c:932 (sofia/default/10302222@46.101.114.158) State REPORTING going to sleep
2022-10-14 08:24:02.813898 39.40% [DEBUG] switch_core_state_machine.c:607 (sofia/default/10302222@46.101.114.158) State Change CS_REPORTING -> CS_DESTROY
2022-10-14 08:24:02.813898 39.40% [DEBUG] switch_core_session.c:1753 Session 1 (sofia/default/10302222@46.101.114.158) Locked, Waiting on external entities
2022-10-14 08:24:02.813898 39.40% [NOTICE] switch_core_session.c:1771 Session 1 (sofia/default/10302222@46.101.114.158) Ended
2022-10-14 08:24:02.813898 39.40% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/10302222@46.101.114.158 [CS_DESTROY]
2022-10-14 08:24:02.813898 39.40% [DEBUG] switch_core_state_machine.c:735 (sofia/default/10302222@46.101.114.158) Running State Change CS_DESTROY (Cur 0 Tot 1)
2022-10-14 08:24:02.813898 39.40% [DEBUG] switch_core_state_machine.c:745 (sofia/default/10302222@46.101.114.158) State DESTROY
2022-10-14 08:24:02.813898 39.40% [DEBUG] mod_sofia.c:379 sofia/default/10302222@46.101.114.158 SOFIA DESTROY
2022-10-14 08:24:02.813898 39.40% [DEBUG] switch_core_state_machine.c:175 sofia/default/10302222@46.101.114.158 Standard DESTROY
2022-10-14 08:24:02.813898 39.40% [DEBUG] switch_core_state_machine.c:745 (sofia/default/10302222@46.101.114.158) State DESTROY going to sleep
freeswitch@AlphaQA>