From Test, 4 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: cornflowerblue; font-weight: bold;"> 2020-07-24 12:03:27.197030 [NOTICE] switch_channel.c:1118 New Channel sofia/default/1212121212@3.7.65.219 [2da41d77-da94-48b5-add6-eb7ad8eacad1]
  2. 2020-07-24 12:03:27.197030 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1212121212@3.7.65.219) Running State Change CS_NEW (Cur 1 Tot 3)
  3. 2020-07-24 12:03:27.197030 [DEBUG] sofia.c:10255 sofia/default/1212121212@3.7.65.219 receiving invite from 49.34.119.104:54384 version: 1.10.2 -release-14-f7bdd3845a 64bit
  4. 2020-07-24 12:03:27.197030 [DEBUG] sofia.c:10349 verifying acl "default" for ip/port 49.34.119.104:0.
  5. 2020-07-24 12:03:27.197030 [DEBUG] sofia.c:2434 detaching session 2da41d77-da94-48b5-add6-eb7ad8eacad1
  6. 2020-07-24 12:03:27.197030 [WARNING] sofia_reg.c:1793 SIP auth challenge (INVITE) on sofia profile 'default' for [91919494@3.7.65.219] from ip 49.34.119.104
  7. 2020-07-24 12:03:27.197030 [DEBUG] switch_core_state_machine.c:604 (sofia/default/1212121212@3.7.65.219) State NEW
  8. 2020-07-24 12:03:27.777031 [DEBUG] sofia.c:2544 Re-attaching to session 2da41d77-da94-48b5-add6-eb7ad8eacad1
  9. 2020-07-24 12:03:27.777031 [DEBUG] sofia.c:10255 sofia/default/1212121212@3.7.65.219 receiving invite from 49.34.119.104:54384 version: 1.10.2 -release-14-f7bdd3845a 64bit
  10. 2020-07-24 12:03:27.777031 [DEBUG] sofia.c:10349 verifying acl "default" for ip/port 49.34.119.104:0.
  11. 2020-07-24 12:03:27.777031 [DEBUG] sofia.c:11452 Setting NAT mode based on via received
  12. 2020-07-24 12:03:27.777031 [DEBUG] sofia.c:7301 Channel sofia/default/1212121212@3.7.65.219 entering state [received][100]
  13. 2020-07-24 12:03:27.777031 [DEBUG] sofia.c:7311 Remote SDP:
  14. v=0
  15. o=Z 0 0 IN IP4 192.168.43.40
  16. s=Z
  17. c=IN IP4 192.168.43.40
  18. t=0 0
  19. m=audio 8000 RTP/AVP 3 110 8 0 98 101
  20. a=rtpmap:110 speex/8000
  21. a=rtpmap:98 iLBC/8000
  22. a=fmtp:98 mode=20
  23. a=rtpmap:101 telephone-event/8000
  24. a=fmtp:101 0-15
  25.  
  26. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  27. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  28. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  29. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  30. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  31. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5647 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  32. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  33. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  34. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  35. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5647 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  36. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  37. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5592 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  38. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5508 Set telephone-event payload to 101@8000
  39. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:3837 Set Codec sofia/default/1212121212@3.7.65.219 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  40. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_codec.c:111 sofia/default/1212121212@3.7.65.219 Original read codec set to PCMA:8
  41. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5851 Set telephone-event payload to 101@8000
  42. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_media.c:5909 sofia/default/1212121212@3.7.65.219 Set 2833 dtmf send payload to 101 recv payload to 101
  43. 2020-07-24 12:03:27.777031 [DEBUG] sofia.c:7735 (sofia/default/1212121212@3.7.65.219) State Change CS_NEW -> CS_INIT
  44. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1212121212@3.7.65.219) Running State Change CS_INIT (Cur 1 Tot 3)
  45. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_state_machine.c:628 (sofia/default/1212121212@3.7.65.219) State INIT
  46. 2020-07-24 12:03:27.777031 [DEBUG] mod_sofia.c:93 sofia/default/1212121212@3.7.65.219 SOFIA INIT
  47. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_state_machine.c:40 sofia/default/1212121212@3.7.65.219 Standard INIT
  48. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_state_machine.c:48 (sofia/default/1212121212@3.7.65.219) State Change CS_INIT -> CS_ROUTING
  49. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_state_machine.c:628 (sofia/default/1212121212@3.7.65.219) State INIT going to sleep
  50. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1212121212@3.7.65.219) Running State Change CS_ROUTING (Cur 1 Tot 3)
  51. 2020-07-24 12:03:27.777031 [DEBUG] switch_channel.c:2332 (sofia/default/1212121212@3.7.65.219) Callstate Change DOWN -> RINGING
  52. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_state_machine.c:644 (sofia/default/1212121212@3.7.65.219) State ROUTING
  53. 2020-07-24 12:03:27.777031 [DEBUG] mod_sofia.c:154 sofia/default/1212121212@3.7.65.219 SOFIA ROUTING
  54. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_state_machine.c:236 sofia/default/1212121212@3.7.65.219 Standard ROUTING
  55. 2020-07-24 12:03:27.777031 [INFO] mod_dialplan_xml.c:637 Processing 1212121212 <1212121212>->91919494 in context default
  56. 2020-07-24 12:03:27.777031 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  57. 2020-07-24 12:03:27.777031 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  58. 2020-07-24 12:03:27.777031 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Dialed number : 91919494
  59. 2020-07-24 12:03:27.777031 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '91919494' AND status=0 limit 1
  60. 2020-07-24 12:03:27.777031 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Caller Id name / number  : 1212121212 / 1212121212
  61. 2020-07-24 12:03:27.777031 [DEBUG] switch_cpp.cpp:1443 [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 ="91919494" LIMIT 1
  62. 2020-07-24 12:03:27.777031 [DEBUG] switch_cpp.cpp:1443 [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 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="91919494" limit 1
  63. 2020-07-24 12:03:27.777031 [INFO] switch_cpp.cpp:1443 [ASTPP] [Dialplan] Call direction : outbound
  64. 2020-07-24 12:03:27.777031 [INFO] switch_cpp.cpp:1443 [ASTPP] [Accountcode : 9096470280]
  65. 2020-07-24 12:03:27.777031 [DEBUG] switch_cpp.cpp:1443 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9096470280" AND deleted = 0 limit 1
  66. 2020-07-24 12:03:27.777031 [WARNING] switch_cpp.cpp:1443 [ASTPP] [DOAUTHORIZATION] [9096470280] Account is either Deactive/Expire or deleted..!!
  67. 2020-07-24 12:03:27.777031 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/astpp/lib/astpp.functions.lua:50: attempt to concatenate local 'accountid' (a nil value)
  68. stack traceback:
  69.         /usr/share/freeswitch/scripts/astpp/lib/astpp.functions.lua:50: in function 'get_speeddial_number'
  70.         ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:213: in main chunk
  71.         [C]: in function 'dofile'
  72.         /usr/share/freeswitch/scripts/astpp/astpp.lua:86: in main chunk
  73. 2020-07-24 12:03:27.777031 [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  74. 2020-07-24 12:03:27.777031 [WARNING] mod_dialplan_xml.c:667 Context default not found
  75. 2020-07-24 12:03:27.777031 [INFO] switch_core_state_machine.c:312 No Route, Aborting
  76. 2020-07-24 12:03:27.777031 [NOTICE] switch_core_state_machine.c:313 Hangup sofia/default/1212121212@3.7.65.219 [CS_ROUTING] [NO_ROUTE_DESTINATION]
  77. 2020-07-24 12:03:27.777031 [DEBUG] switch_core_state_machine.c:644 (sofia/default/1212121212@3.7.65.219) State ROUTING going to sleep
  78. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1212121212@3.7.65.219) Running State Change CS_HANGUP (Cur 1 Tot 3)
  79. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:848 (sofia/default/1212121212@3.7.65.219) Callstate Change RINGING -> HANGUP
  80. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1212121212@3.7.65.219) State HANGUP
  81. 2020-07-24 12:03:27.817004 [DEBUG] mod_sofia.c:453 Channel sofia/default/1212121212@3.7.65.219 hanging up, cause: NO_ROUTE_DESTINATION
  82. 2020-07-24 12:03:27.817004 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 404
  83. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:60 sofia/default/1212121212@3.7.65.219 Standard HANGUP, cause: NO_ROUTE_DESTINATION
  84. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:850 (sofia/default/1212121212@3.7.65.219) State HANGUP going to sleep
  85. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:620 (sofia/default/1212121212@3.7.65.219) State Change CS_HANGUP -> CS_REPORTING
  86. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:585 (sofia/default/1212121212@3.7.65.219) Running State Change CS_REPORTING (Cur 1 Tot 3)
  87. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:936 (sofia/default/1212121212@3.7.65.219) State REPORTING
  88. 2020-07-24 12:03:27.817004 [INFO] mod_json_cdr.c:271 Process [2da41d77-da94-48b5-add6-eb7ad8eacad1.cdr.json]
  89. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:174 sofia/default/1212121212@3.7.65.219 Standard REPORTING, cause: NO_ROUTE_DESTINATION
  90. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:936 (sofia/default/1212121212@3.7.65.219) State REPORTING going to sleep
  91. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:611 (sofia/default/1212121212@3.7.65.219) State Change CS_REPORTING -> CS_DESTROY
  92. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_session.c:1726 Session 3 (sofia/default/1212121212@3.7.65.219) Locked, Waiting on external entities
  93. 2020-07-24 12:03:27.817004 [NOTICE] switch_core_session.c:1744 Session 3 (sofia/default/1212121212@3.7.65.219) Ended
  94. 2020-07-24 12:03:27.817004 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/1212121212@3.7.65.219 [CS_DESTROY]
  95. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:739 (sofia/default/1212121212@3.7.65.219) Running State Change CS_DESTROY (Cur 0 Tot 3)
  96. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:749 (sofia/default/1212121212@3.7.65.219) State DESTROY
  97. 2020-07-24 12:03:27.817004 [DEBUG] mod_sofia.c:364 sofia/default/1212121212@3.7.65.219 SOFIA DESTROY
  98. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:181 sofia/default/1212121212@3.7.65.219 Standard DESTROY
  99. 2020-07-24 12:03:27.817004 [DEBUG] switch_core_state_machine.c:749 (sofia/default/1212121212@3.7.65.219) State DESTROY going to sleep