From Prashant kumar, 2 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. freeswitch@ip-172-31-14-218>
  2. freeswitch@ip-172-31-14-218>
  3. 2022-03-14 10:05:19.853625 94.70% [NOTICE] switch_channel.c:1123 New Channel sofia/default/2848053114@46.101.114.158 [d92c3de8-e244-4d84-85e9-d36e8eac3c4c]
  4. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_state_machine.c:581 (sofia/default/2848053114@46.101.114.158) Running State Change CS_NEW (Cur 1 Tot 7)
  5. 2022-03-14 10:05:19.853625 94.70% [INFO] sofia.c:10462 sofia/default/2848053114@46.101.114.158 receiving invite from 172.31.14.218:5066 version: 1.10.7 -release-19-883d2cb662 64bit call-id: 18a4399b-1e21-123b-ee8b-ba05d31eb9f9
  6. 2022-03-14 10:05:19.853625 94.70% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 172.31.14.218:0.
  7. 2022-03-14 10:05:19.853625 94.70% [DEBUG] sofia.c:10585 IP 172.31.14.218 Approved by acl "default[]". Access Granted.
  8. 2022-03-14 10:05:19.853625 94.70% [DEBUG] sofia.c:11672 Setting NAT mode based on via received
  9. 2022-03-14 10:05:19.853625 94.70% [DEBUG] sofia.c:7499 Channel sofia/default/2848053114@46.101.114.158 entering state [received][100]
  10. 2022-03-14 10:05:19.853625 94.70% [DEBUG] sofia.c:7509 Remote SDP:
  11. v=0
  12. o=FreeSWITCH 1647235111 1647235112 IN IP4 46.101.114.158
  13. s=FreeSWITCH
  14. c=IN IP4 46.101.114.158
  15. t=0 0
  16. m=audio 17208 RTP/AVP 0 101
  17. a=rtpmap:0 PCMU/8000
  18. a=rtpmap:101 telephone-event/8000
  19. a=fmtp:101 0-16
  20. a=ptime:20
  21.  
  22. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  23. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  24. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  25. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  26. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/2848053114@46.101.114.158 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  27. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_codec.c:111 sofia/default/2848053114@46.101.114.158 Original read codec set to PCMU:0
  28. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  29. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_media.c:5973 sofia/default/2848053114@46.101.114.158 Set 2833 dtmf send payload to 101 recv payload to 101
  30. 2022-03-14 10:05:19.853625 94.70% [DEBUG] sofia.c:7933 (sofia/default/2848053114@46.101.114.158) State Change CS_NEW -> CS_INIT
  31. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_state_machine.c:600 (sofia/default/2848053114@46.101.114.158) State NEW
  32. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_state_machine.c:581 (sofia/default/2848053114@46.101.114.158) Running State Change CS_INIT (Cur 1 Tot 7)
  33. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_state_machine.c:624 (sofia/default/2848053114@46.101.114.158) State INIT
  34. 2022-03-14 10:05:19.853625 94.70% [DEBUG] mod_sofia.c:97 sofia/default/2848053114@46.101.114.158 SOFIA INIT
  35. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_state_machine.c:40 sofia/default/2848053114@46.101.114.158 Standard INIT
  36. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_state_machine.c:48 (sofia/default/2848053114@46.101.114.158) State Change CS_INIT -> CS_ROUTING
  37. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_state_machine.c:624 (sofia/default/2848053114@46.101.114.158) State INIT going to sleep
  38. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_state_machine.c:581 (sofia/default/2848053114@46.101.114.158) Running State Change CS_ROUTING (Cur 1 Tot 7)
  39. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_channel.c:2380 (sofia/default/2848053114@46.101.114.158) Callstate Change DOWN -> RINGING
  40. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_state_machine.c:640 (sofia/default/2848053114@46.101.114.158) State ROUTING
  41. 2022-03-14 10:05:19.853625 94.70% [DEBUG] mod_sofia.c:158 sofia/default/2848053114@46.101.114.158 SOFIA ROUTING
  42. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_core_state_machine.c:230 sofia/default/2848053114@46.101.114.158 Standard ROUTING
  43. 2022-03-14 10:05:19.853625 94.70% [INFO] mod_dialplan_xml.c:639 Processing 2848053114 <2848053114>->770150 in context default
  44. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','international_prefixes','interconnect_code')
  45. 2022-03-14 10:05:19.853625 94.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  46. 2022-03-14 10:05:19.873672 94.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  47. 2022-03-14 10:05:19.873672 94.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 770150
  48. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '770150' limit 1
  49. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '770150' AND status=0 limit 1
  50. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '770150' and status=0 LIMIT 1
  51. 2022-03-14 10:05:19.873672 94.70% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBERgw+PKGatewaysDefault
  52. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  53. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = '3.7.66.233' limit 1
  54. 2022-03-14 10:05:19.873672 94.70% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
  55. 2022-03-14 10:05:19.873672 94.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 2848053114 / <null>
  56. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number
  57. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 770150 AND status=0 limit 1
  58. 2022-03-14 10:05:19.873672 94.70% [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 FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="770150" LIMIT 1
  59. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  60. 2022-03-14 10:05:19.873672 94.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
  61. 2022-03-14 10:05:19.873672 94.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [OPENSIP_FROM_IP] from_ip : 46.101.114.158
  62. 2022-03-14 10:05:19.873672 94.70% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 3673942894]
  63. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3673942894" AND deleted = 0 limit 1
  64. 2022-03-14 10:05:19.873672 94.70% [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/astpp/lib/astpp.functions.lua:356: attempt to concatenate global 'provider_id' (a nil value)
  65. stack traceback:
  66.         /usr/share/freeswitch/scripts/astpp/lib/astpp.functions.lua:356: in function 'get_balance'
  67.         /usr/share/freeswitch/scripts/astpp/lib/astpp.functions.lua:303: in function 'doauthorization'
  68.         ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:299: in main chunk
  69.         [C]: in function 'dofile'
  70.         /usr/share/freeswitch/scripts/astpp/astpp.lua:94: in main chunk
  71. 2022-03-14 10:05:19.873672 94.70% [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  72. 2022-03-14 10:05:19.873672 94.70% [WARNING] mod_dialplan_xml.c:669 Context default not found
  73. 2022-03-14 10:05:19.873672 94.70% [INFO] switch_core_state_machine.c:306 No Route, Aborting
  74. 2022-03-14 10:05:19.873672 94.70% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/2848053114@46.101.114.158 [CS_ROUTING] [NO_ROUTE_DESTINATION]
  75. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_core_state_machine.c:640 (sofia/default/2848053114@46.101.114.158) State ROUTING going to sleep
  76. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_core_state_machine.c:581 (sofia/default/2848053114@46.101.114.158) Running State Change CS_HANGUP (Cur 1 Tot 7)
  77. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_core_state_machine.c:844 (sofia/default/2848053114@46.101.114.158) Callstate Change RINGING -> HANGUP
  78. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_core_state_machine.c:846 (sofia/default/2848053114@46.101.114.158) State HANGUP
  79. 2022-03-14 10:05:19.873672 94.70% [DEBUG] mod_sofia.c:468 Channel sofia/default/2848053114@46.101.114.158 hanging up, cause: NO_ROUTE_DESTINATION
  80. 2022-03-14 10:05:19.873672 94.70% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
  81. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_core_state_machine.c:59 sofia/default/2848053114@46.101.114.158 Standard HANGUP, cause: NO_ROUTE_DESTINATION
  82. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_core_state_machine.c:846 (sofia/default/2848053114@46.101.114.158) State HANGUP going to sleep
  83. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_core_state_machine.c:616 (sofia/default/2848053114@46.101.114.158) State Change CS_HANGUP -> CS_REPORTING
  84. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_core_state_machine.c:581 (sofia/default/2848053114@46.101.114.158) Running State Change CS_REPORTING (Cur 1 Tot 7)
  85. 2022-03-14 10:05:19.873672 94.70% [DEBUG] switch_core_state_machine.c:932 (sofia/default/2848053114@46.101.114.158) State REPORTING
  86. 2022-03-14 10:05:19.873672 94.70% [INFO] mod_json_cdr.c:271 Process [d92c3de8-e244-4d84-85e9-d36e8eac3c4c.cdr.json]
  87. 2022-03-14 10:05:19.913612 94.70% [DEBUG] switch_core_state_machine.c:168 sofia/default/2848053114@46.101.114.158 Standard REPORTING, cause: NO_ROUTE_DESTINATION
  88. 2022-03-14 10:05:19.913612 94.70% [DEBUG] switch_core_state_machine.c:932 (sofia/default/2848053114@46.101.114.158) State REPORTING going to sleep
  89. 2022-03-14 10:05:19.913612 94.70% [DEBUG] switch_core_state_machine.c:607 (sofia/default/2848053114@46.101.114.158) State Change CS_REPORTING -> CS_DESTROY
  90. 2022-03-14 10:05:19.913612 94.70% [DEBUG] switch_core_session.c:1753 Session 7 (sofia/default/2848053114@46.101.114.158) Locked, Waiting on external entities
  91. 2022-03-14 10:05:19.913612 94.70% [NOTICE] switch_core_session.c:1771 Session 7 (sofia/default/2848053114@46.101.114.158) Ended
  92. 2022-03-14 10:05:19.913612 94.70% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/2848053114@46.101.114.158 [CS_DESTROY]
  93. 2022-03-14 10:05:19.913612 94.70% [DEBUG] switch_core_state_machine.c:735 (sofia/default/2848053114@46.101.114.158) Running State Change CS_DESTROY (Cur 0 Tot 7)
  94. 2022-03-14 10:05:19.913612 94.70% [DEBUG] switch_core_state_machine.c:745 (sofia/default/2848053114@46.101.114.158) State DESTROY
  95. 2022-03-14 10:05:19.913612 94.70% [DEBUG] mod_sofia.c:379 sofia/default/2848053114@46.101.114.158 SOFIA DESTROY
  96. 2022-03-14 10:05:19.913612 94.70% [DEBUG] switch_core_state_machine.c:175 sofia/default/2848053114@46.101.114.158 Standard DESTROY
  97. 2022-03-14 10:05:19.913612 94.70% [DEBUG] switch_core_state_machine.c:745 (sofia/default/2848053114@46.101.114.158) State DESTROY going to sleep
  98. freeswitch@ip-172-31-14-218>
  99. freeswitch@ip-172-31-14-218>
  100. freeswitch@ip-172-31-14-218>
  101. freeswitch@ip-172-31-14-218>
  102.