From Prashant kumar, 2 Years ago, written in FreeSWITCH.
- go back
Embed
Viewing differences between and when set interconnect code, In SIP2SIP call error
  1. freeswitch@ip-172-31-15-133> f
  2. -ERR f Command not found!
  3.  
  4. freeswitch@ip-172-31-15-133>
  5. 2022-02-11 06:59:04.381317 96.37% [NOTICE] switch_channel.c:1123 New Channel sofia/default/8741933851@w02version62.astppbilling.org:5074 [615113ce-b5cd-4a0f-aaba-70c7b13f865f]
  6. 2022-02-11 06:59:04.381317 96.37% [DEBUG] switch_core_state_machine.c:581 (sofia/default/8741933851@w02version62.astppbilling.org:5074) Running State Change CS_NEW (Cur 1 Tot 11)
  7. 2022-02-11 06:59:04.381317 96.37% [INFO] sofia.c:10462 sofia/default/8741933851@w02version62.astppbilling.org:5074 receiving invite from 150.129.107.251:53170 version: 1.10.7 -release-19-883d2cb662 64bit call-id: UAf0PMS1LUxzFpR9bXTumw..
  8. 2022-02-11 06:59:04.381317 96.37% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 150.129.107.251:0.
  9. 2022-02-11 06:59:04.381317 96.37% [DEBUG] sofia.c:2419 detaching session 615113ce-b5cd-4a0f-aaba-70c7b13f865f
  10. 2022-02-11 06:59:04.381317 96.37% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [1997940044@w02version62.astppbilling.org] from ip 150.129.107.251
  11. 2022-02-11 06:59:04.381317 96.37% [DEBUG] switch_core_state_machine.c:600 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State NEW
  12. 2022-02-11 06:59:04.461319 96.37% [DEBUG] sofia.c:2532 Re-attaching to session 615113ce-b5cd-4a0f-aaba-70c7b13f865f
  13. 2022-02-11 06:59:04.481299 96.37% [INFO] sofia.c:10462 sofia/default/8741933851@w02version62.astppbilling.org:5074 receiving invite from 150.129.107.251:53170 version: 1.10.7 -release-19-883d2cb662 64bit call-id: UAf0PMS1LUxzFpR9bXTumw..
  14. 2022-02-11 06:59:04.481299 96.37% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 150.129.107.251:0.
  15. 2022-02-11 06:59:04.481299 96.37% [DEBUG] sofia.c:11672 Setting NAT mode based on via port
  16. 2022-02-11 06:59:04.481299 96.37% [DEBUG] sofia.c:7499 Channel sofia/default/8741933851@w02version62.astppbilling.org:5074 entering state [received][100]
  17. 2022-02-11 06:59:04.481299 96.37% [DEBUG] sofia.c:7509 Remote SDP:
  18. v=0
  19. o=Z 0 0 IN IP4 150.129.107.251
  20. s=Z
  21. c=IN IP4 150.129.107.251
  22. t=0 0
  23. m=audio 8000 RTP/AVP 3 110 8 0 97 101
  24. a=rtpmap:110 speex/8000
  25. a=rtpmap:97 iLBC/8000
  26. a=fmtp:97 mode=30
  27. a=rtpmap:101 telephone-event/8000
  28. a=fmtp:101 0-16
  29.  
  30. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  31. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  32. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  33. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  34. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  35. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  36. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  37. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  38. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  39. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  40. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:97:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  41. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:97:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  42. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  43. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/8741933851@w02version62.astppbilling.org:5074 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  44. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_codec.c:111 sofia/default/8741933851@w02version62.astppbilling.org:5074 Original read codec set to PCMA:8
  45. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  46. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_media.c:5973 sofia/default/8741933851@w02version62.astppbilling.org:5074 Set 2833 dtmf send payload to 101 recv payload to 101
  47. 2022-02-11 06:59:04.481299 96.37% [DEBUG] sofia.c:7933 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State Change CS_NEW -> CS_INIT
  48. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_state_machine.c:581 (sofia/default/8741933851@w02version62.astppbilling.org:5074) Running State Change CS_INIT (Cur 1 Tot 11)
  49. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_state_machine.c:624 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State INIT
  50. 2022-02-11 06:59:04.481299 96.37% [DEBUG] mod_sofia.c:97 sofia/default/8741933851@w02version62.astppbilling.org:5074 SOFIA INIT
  51. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_state_machine.c:40 sofia/default/8741933851@w02version62.astppbilling.org:5074 Standard INIT
  52. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_state_machine.c:48 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State Change CS_INIT -> CS_ROUTING
  53. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_state_machine.c:624 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State INIT going to sleep
  54. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_state_machine.c:581 (sofia/default/8741933851@w02version62.astppbilling.org:5074) Running State Change CS_ROUTING (Cur 1 Tot 11)
  55. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_channel.c:2380 (sofia/default/8741933851@w02version62.astppbilling.org:5074) Callstate Change DOWN -> RINGING
  56. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_state_machine.c:640 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State ROUTING
  57. 2022-02-11 06:59:04.481299 96.37% [DEBUG] mod_sofia.c:158 sofia/default/8741933851@w02version62.astppbilling.org:5074 SOFIA ROUTING
  58. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_core_state_machine.c:230 sofia/default/8741933851@w02version62.astppbilling.org:5074 Standard ROUTING
  59. 2022-02-11 06:59:04.481299 96.37% [INFO] mod_dialplan_xml.c:639 Processing 8741933851 <8741933851>->1997940044 in context default
  60. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','international_prefixes')
  61. 2022-02-11 06:59:04.481299 96.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  62. 2022-02-11 06:59:04.501295 96.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  63. 2022-02-11 06:59:04.501295 96.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 1997940044
  64. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '1997940044' limit 1
  65. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '1997940044' AND status=0 limit 1
  66. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '1997940044' and status=0 LIMIT 1
  67. 2022-02-11 06:59:04.501295 96.37% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER8741933851
  68. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  69. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT domain,accountid FROM domains WHERE domain = 'w02version62.astppbilling.org' limit 1
  70. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL DOMAIN] Query :SELECT accountid from sip_devices where accountid = '4' and username = '1997940044' limit 1
  71. 2022-02-11 06:59:04.501295 96.37% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 8741933851 / 8741933851
  72. 2022-02-11 06:59:04.501295 96.37% [ERR] mod_lua.cpp:202 ...itch/scripts/astpp/lib/addons/astpp.interconnectcode.lua:6: attempt to perform arithmetic on global 'system_interconnectcode_length' (a nil value)
  73. stack traceback:
  74.         ...itch/scripts/astpp/lib/addons/astpp.interconnectcode.lua:6: in function 'get_interconnectcode_info'
  75.         ...hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:190: in main chunk
  76.         [C]: in function 'dofile'
  77.         /usr/share/freeswitch/scripts/astpp/astpp.lua:94: in main chunk
  78. 2022-02-11 06:59:04.501295 96.37% [ERR] mod_lua.cpp:270 LUA script parse/execute error!
  79. 2022-02-11 06:59:04.501295 96.37% [WARNING] mod_dialplan_xml.c:669 Context default not found
  80. 2022-02-11 06:59:04.501295 96.37% [INFO] switch_core_state_machine.c:306 No Route, Aborting
  81. 2022-02-11 06:59:04.501295 96.37% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/8741933851@w02version62.astppbilling.org:5074 [CS_ROUTING] [NO_ROUTE_DESTINATION]
  82. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_core_state_machine.c:640 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State ROUTING going to sleep
  83. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_core_state_machine.c:581 (sofia/default/8741933851@w02version62.astppbilling.org:5074) Running State Change CS_HANGUP (Cur 1 Tot 11)
  84. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_core_state_machine.c:844 (sofia/default/8741933851@w02version62.astppbilling.org:5074) Callstate Change RINGING -> HANGUP
  85. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_core_state_machine.c:846 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State HANGUP
  86. 2022-02-11 06:59:04.501295 96.37% [DEBUG] mod_sofia.c:468 Channel sofia/default/8741933851@w02version62.astppbilling.org:5074 hanging up, cause: NO_ROUTE_DESTINATION
  87. 2022-02-11 06:59:04.501295 96.37% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
  88. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_core_state_machine.c:59 sofia/default/8741933851@w02version62.astppbilling.org:5074 Standard HANGUP, cause: NO_ROUTE_DESTINATION
  89. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_core_state_machine.c:846 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State HANGUP going to sleep
  90. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_core_state_machine.c:616 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State Change CS_HANGUP -> CS_REPORTING
  91. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_core_state_machine.c:581 (sofia/default/8741933851@w02version62.astppbilling.org:5074) Running State Change CS_REPORTING (Cur 1 Tot 11)
  92. 2022-02-11 06:59:04.501295 96.37% [DEBUG] switch_core_state_machine.c:932 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State REPORTING
  93. 2022-02-11 06:59:04.501295 96.37% [INFO] mod_json_cdr.c:271 Process [615113ce-b5cd-4a0f-aaba-70c7b13f865f.cdr.json]
  94. 2022-02-11 06:59:04.521300 96.37% [DEBUG] switch_core_state_machine.c:168 sofia/default/8741933851@w02version62.astppbilling.org:5074 Standard REPORTING, cause: NO_ROUTE_DESTINATION
  95. 2022-02-11 06:59:04.521300 96.37% [DEBUG] switch_core_state_machine.c:932 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State REPORTING going to sleep
  96. 2022-02-11 06:59:04.521300 96.37% [DEBUG] switch_core_state_machine.c:607 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State Change CS_REPORTING -> CS_DESTROY
  97. 2022-02-11 06:59:04.521300 96.37% [DEBUG] switch_core_session.c:1753 Session 11 (sofia/default/8741933851@w02version62.astppbilling.org:5074) Locked, Waiting on external entities
  98. 2022-02-11 06:59:04.521300 96.37% [NOTICE] switch_core_session.c:1771 Session 11 (sofia/default/8741933851@w02version62.astppbilling.org:5074) Ended
  99. 2022-02-11 06:59:04.521300 96.37% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/8741933851@w02version62.astppbilling.org:5074 [CS_DESTROY]
  100. 2022-02-11 06:59:04.521300 96.37% [DEBUG] switch_core_state_machine.c:735 (sofia/default/8741933851@w02version62.astppbilling.org:5074) Running State Change CS_DESTROY (Cur 0 Tot 11)
  101. 2022-02-11 06:59:04.521300 96.37% [DEBUG] switch_core_state_machine.c:745 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State DESTROY
  102. 2022-02-11 06:59:04.521300 96.37% [DEBUG] mod_sofia.c:379 sofia/default/8741933851@w02version62.astppbilling.org:5074 SOFIA DESTROY
  103. 2022-02-11 06:59:04.521300 96.37% [DEBUG] switch_core_state_machine.c:175 sofia/default/8741933851@w02version62.astppbilling.org:5074 Standard DESTROY
  104. 2022-02-11 06:59:04.521300 96.37% [DEBUG] switch_core_state_machine.c:745 (sofia/default/8741933851@w02version62.astppbilling.org:5074) State DESTROY going to sleep
  105. freeswitch@ip-172-31-15-133>