From Prashant Kumar, 2 Years ago, written in FreeSWITCH.
- go back
Embed
Viewing differences between and interconnect code consider as Outbound call
  1. freeswitch@Debian-1101-bullseye-amd64-base>
  2. freeswitch@Debian-1101-bullseye-amd64-base>
  3. 2022-07-15 09:59:16.731205 97.87% [NOTICE] switch_channel.c:1123 New Channel sofia/default/999998@muscle607.astppbilling.org:5078 [57375daf-3824-4b30-b431-7190700f657f]
  4. 2022-07-15 09:59:16.731205 97.87% [DEBUG] switch_core_state_machine.c:581 (sofia/default/999998@muscle607.astppbilling.org:5078) Running State Change CS_NEW (Cur 1 Tot 29)
  5. 2022-07-15 09:59:16.731205 97.87% [INFO] sofia.c:10462 sofia/default/999998@muscle607.astppbilling.org:5078 receiving invite from 103.240.35.46:47490 version: 1.10.7 -release 64bit call-id: ZjM5NDdmZjZlOWI3NDdkYTE0NzU1MTEwZTAzNDlkODU.
  6. 2022-07-15 09:59:16.731205 97.87% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
  7. 2022-07-15 09:59:16.731205 97.87% [WARNING] sofia_reg.c:1861 SIP auth challenge (INVITE) on sofia profile 'default' for [2200226908998052@muscle607.astppbilling.org] from ip 103.240.35.46
  8. 2022-07-15 09:59:16.731205 97.87% [DEBUG] switch_core_state_machine.c:600 (sofia/default/999998@muscle607.astppbilling.org:5078) State NEW
  9. 2022-07-15 09:59:16.731205 97.87% [DEBUG] sofia.c:2419 detaching session 57375daf-3824-4b30-b431-7190700f657f
  10. 2022-07-15 09:59:17.131310 97.90% [DEBUG] sofia.c:2532 Re-attaching to session 57375daf-3824-4b30-b431-7190700f657f
  11. 2022-07-15 09:59:17.131310 97.90% [INFO] sofia.c:10462 sofia/default/999998@muscle607.astppbilling.org:5078 receiving invite from 103.240.35.46:47490 version: 1.10.7 -release 64bit call-id: ZjM5NDdmZjZlOWI3NDdkYTE0NzU1MTEwZTAzNDlkODU.
  12. 2022-07-15 09:59:17.131310 97.90% [DEBUG] sofia.c:10556 verifying acl "default" for ip/port 103.240.35.46:0.
  13. 2022-07-15 09:59:17.131310 97.90% [DEBUG] sofia.c:11672 Setting NAT mode based on via received
  14. 2022-07-15 09:59:17.131310 97.90% [DEBUG] sofia.c:7499 Channel sofia/default/999998@muscle607.astppbilling.org:5078 entering state [received][100]
  15. 2022-07-15 09:59:17.131310 97.90% [DEBUG] sofia.c:7509 Remote SDP:
  16. v=0
  17. o=Z 0 0 IN IP4 103.240.35.46
  18. s=Z
  19. c=IN IP4 103.240.35.46
  20. t=0 0
  21. m=audio 8000 RTP/AVP 3 110 8 0 98 101
  22. a=rtpmap:110 speex/8000
  23. a=rtpmap:98 iLBC/8000
  24. a=fmtp:98 mode=20
  25. a=rtpmap:101 telephone-event/8000
  26. a=fmtp:101 0-15
  27.  
  28. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  29. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  30. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  31. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  32. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  33. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  34. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  35. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  36. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  37. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  38. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  39. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  40. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
  41. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:3870 Set Codec sofia/default/999998@muscle607.astppbilling.org:5078 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  42. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_codec.c:111 sofia/default/999998@muscle607.astppbilling.org:5078 Original read codec set to PCMA:8
  43. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
  44. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_media.c:5973 sofia/default/999998@muscle607.astppbilling.org:5078 Set 2833 dtmf send payload to 101 recv payload to 101
  45. 2022-07-15 09:59:17.131310 97.90% [DEBUG] sofia.c:7933 (sofia/default/999998@muscle607.astppbilling.org:5078) State Change CS_NEW -> CS_INIT
  46. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/999998@muscle607.astppbilling.org:5078) Running State Change CS_INIT (Cur 1 Tot 29)
  47. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_state_machine.c:624 (sofia/default/999998@muscle607.astppbilling.org:5078) State INIT
  48. 2022-07-15 09:59:17.131310 97.90% [DEBUG] mod_sofia.c:97 sofia/default/999998@muscle607.astppbilling.org:5078 SOFIA INIT
  49. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_state_machine.c:40 sofia/default/999998@muscle607.astppbilling.org:5078 Standard INIT
  50. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_state_machine.c:48 (sofia/default/999998@muscle607.astppbilling.org:5078) State Change CS_INIT -> CS_ROUTING
  51. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_state_machine.c:624 (sofia/default/999998@muscle607.astppbilling.org:5078) State INIT going to sleep
  52. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/999998@muscle607.astppbilling.org:5078) Running State Change CS_ROUTING (Cur 1 Tot 29)
  53. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_channel.c:2380 (sofia/default/999998@muscle607.astppbilling.org:5078) Callstate Change DOWN -> RINGING
  54. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_state_machine.c:640 (sofia/default/999998@muscle607.astppbilling.org:5078) State ROUTING
  55. 2022-07-15 09:59:17.131310 97.90% [DEBUG] mod_sofia.c:158 sofia/default/999998@muscle607.astppbilling.org:5078 SOFIA ROUTING
  56. 2022-07-15 09:59:17.131310 97.90% [DEBUG] switch_core_state_machine.c:230 sofia/default/999998@muscle607.astppbilling.org:5078 Standard ROUTING
  57. 2022-07-15 09:59:17.131310 97.90% [INFO] mod_dialplan_xml.c:639 Processing 999998 <999998>->2200226908998052 in context default
  58. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  59. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  60. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  61. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  62. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  63. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 2200226908998052
  64. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '2200226908998052' limit 1
  65. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
  66. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '2200226908998052' and status=0 LIMIT 1
  67. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER999998
  68. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  69. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '2200226908998052' limit 1
  70. 2022-07-15 09:59:17.151187 97.90% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
  71. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 999998 / 999998
  72. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 6908998052
  73. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 220022 AND status=0 limit 1
  74. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_domain_per_accountid_info] Query :SELECT domain FROM domains WHERE accountid = 43 limit 1
  75. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  76. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation,sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="2200226908998052"  AND domains.domain="muscle607.astppbilling.org" limit 1
  77. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  78. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 999998]
  79. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "999998" AND deleted = 0 limit 1
  80. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^2200226908998052.*' OR blocked_patterns = '^220022690899805.*' OR blocked_patterns = '^22002269089980.*' OR blocked_patterns = '^2200226908998.*' OR blocked_patterns = '^220022690899.*' OR blocked_patterns = '^22002269089.*' OR blocked_patterns = '^2200226908.*' OR blocked_patterns = '^220022690.*' OR blocked_patterns = '^22002269.*' OR blocked_patterns = '^2200226.*' OR blocked_patterns = '^220022.*' OR blocked_patterns = '^22002.*' OR blocked_patterns = '^2200.*' OR blocked_patterns = '^220.*' OR blocked_patterns = '^22.*' OR blocked_patterns = '^2.*' OR blocked_patterns ='--') AND accountid = 39 limit 1
  81. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
  82. 2022-07-15 09:59:17.151187 97.90% [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 = '^2200226908998052.*' OR patterns = '^220022690899805.*' OR patterns = '^22002269089980.*' OR patterns = '^2200226908998.*' OR patterns = '^220022690899.*' OR patterns = '^22002269089.*' OR patterns = '^2200226908.*' OR patterns = '^220022690.*' OR patterns = '^22002269.*' OR patterns = '^2200226.*' OR patterns = '^220022.*' OR patterns = '^22002.*' OR patterns = '^2200.*' OR patterns = '^220.*' OR patterns = '^22.*' OR patterns = '^2.*' OR patterns ='--') AND accountid = 39 ORDER BY LENGTH(PKGPTR.patterns) DESC
  83. 2022-07-15 09:59:17.151187 97.90% [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 ="2200226908998052" AND A.accountid = '39' limit 1
  84. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 2200226908998052
  85. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  86. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_LOCAL_CALL] Query :SELECT sip_devices.id as sip_id,sip_devices.username as username,accounts.number as accountcode,sip_devices.accountid as accountid,accounts.did_cid_translation as did_cid_translation,sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as  accounts ,domains WHERE accounts.id=domains.accountid AND accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="2200226908998052"  AND domains.domain="muscle607.astppbilling.org" limit 1
  87. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  88. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type,accountid FROM call_barring WHERE ((number = '2200226908998052' OR number = '220022690899805' OR number = '22002269089980' OR number = '2200226908998' OR number = '220022690899' OR number = '22002269089' OR number = '2200226908' OR number = '220022690' OR number = '22002269' OR number = '2200226' OR number = '220022' OR number = '22002' OR number = '2200' OR number = '220' OR number = '22' OR number = '2' OR number ='--') OR (number = '2200226908998052*' OR number = '220022690899805*' OR number = '22002269089980*' OR number = '2200226908998*' OR number = '220022690899*' OR number = '22002269089*' OR number = '2200226908*' OR number = '220022690*' OR number = '22002269*' OR number = '2200226*' OR number = '220022*' OR number = '22002*' OR number = '2200*' OR number = '220*' OR number = '22*' OR number = '2*' OR number ='--') OR (number = '999998' OR number = '99999' OR number = '9999' OR number = '999' OR number = '99' OR number = '9' OR number ='--') OR (number = '999998*' OR number = '99999*' OR number = '9999*' OR number = '999*' OR number = '99*' OR number = '9*' OR number ='--')) AND status=0 AND accountid = 0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  89. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  90. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '2200226908998052' OR routing_prefix = '220022690899805' OR routing_prefix = '22002269089980' OR routing_prefix = '2200226908998' OR routing_prefix = '220022690899' OR routing_prefix = '22002269089' OR routing_prefix = '2200226908' OR routing_prefix = '220022690' OR routing_prefix = '22002269' OR routing_prefix = '2200226' OR routing_prefix = '220022' OR routing_prefix = '22002' OR routing_prefix = '2200' OR routing_prefix = '220' OR routing_prefix = '22' OR routing_prefix = '2' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  91. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  92. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 39
  93. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 999998
  94. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 39996.7
  95. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  96. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
  97. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  98. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  99. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  100. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::1
  101. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  102. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  103. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::1
  104. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :my-rates-1
  105. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :my-rates-1
  106. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :my-rates-1
  107. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [ROUTES_CACHING]0 GOT___SUCCESS2022-07-15 09:59:17
  108. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [ROUTES_CACHING]1=GOT___SUCCESS=pattern::^44.*
  109. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [ROUTES_CACHING]1=GOT___SUCCESS=caller_id_pattern::^.*
  110. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [ROUTES_CACHING]0 GOT___SUCCESS2022-07-15 09:59:17
  111. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [ROUTES_CACHING]1=GOT___SUCCESS=pattern::^1.*
  112. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [ROUTES_CACHING]1=GOT___SUCCESS=caller_id_pattern::^.*
  113. 2022-07-15 09:59:17.151187 97.90% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  114. 2022-07-15 09:59:17.151187 97.90% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Rates Not Found :
  115. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP]  Post Cdrs : 0
  116. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 39
  117. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Generated XML:
  118. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  119. <document type="freeswitch/xml">
  120. <section name="dialplan" description="ASTPP Dialplan">
  121. <context name="default">
  122. <extension name="2200226908998052">
  123. <condition field="destination_number" expression="2200226908998052">
  124. <action application="log" data="WARNING Accountcode 999998. Dialed number (2200226908998052)  origination rates not found!!"/>
  125. <action application="set" data="original_caller_id_name=999998"/>
  126. <action application="set" data="original_caller_id_number=999998"/>
  127. <action application="set" data="error_cdr=1"/>
  128. <action application="set" data="callstart=2022-07-15 09:59:17"/>
  129. <action application="set" data="account_id=39"/>
  130. <action application="set" data="parent_id=0"/>
  131. <action application="set" data="call_direction=outbound"/>
  132. <action application="set" data="sip_ignore_remote_cause=true"/>
  133. <action application="set" data="call_processed=internal"/>
  134. <action application="set" data="effective_destination_number=2200226908998052"/>
  135. <action application="set" data="last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND"/>
  136. <action application="hangup" data="ORIGINATION_RATE_NOT_FOUND"/>
  137. </condition>
  138. </extension>
  139. </context>
  140. </section>
  141. </document>
  142. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 parsing [default->2200226908998052] continue=false
  143. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 Regex (PASS) [2200226908998052] destination_number(2200226908998052) =~ /2200226908998052/ break=on-false
  144. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 Action log(WARNING Accountcode 999998. Dialed number (2200226908998052)  origination rates not found!!)
  145. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 Action set(original_caller_id_name=999998)
  146. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 Action set(original_caller_id_number=999998)
  147. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 Action set(error_cdr=1)
  148. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 Action set(callstart=2022-07-15 09:59:17)
  149. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 Action set(account_id=39)
  150. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 Action set(parent_id=0)
  151. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 Action set(call_direction=outbound)
  152. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 Action set(sip_ignore_remote_cause=true)
  153. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 Action set(call_processed=internal)
  154. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 Action set(effective_destination_number=2200226908998052)
  155. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 Action set(last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND)
  156. Dialplan: sofia/default/999998@muscle607.astppbilling.org:5078 Action hangup(ORIGINATION_RATE_NOT_FOUND)
  157. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_state_machine.c:281 (sofia/default/999998@muscle607.astppbilling.org:5078) State Change CS_ROUTING -> CS_EXECUTE
  158. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_state_machine.c:640 (sofia/default/999998@muscle607.astppbilling.org:5078) State ROUTING going to sleep
  159. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/999998@muscle607.astppbilling.org:5078) Running State Change CS_EXECUTE (Cur 1 Tot 29)
  160. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_state_machine.c:647 (sofia/default/999998@muscle607.astppbilling.org:5078) State EXECUTE
  161. 2022-07-15 09:59:17.151187 97.90% [DEBUG] mod_sofia.c:213 sofia/default/999998@muscle607.astppbilling.org:5078 SOFIA EXECUTE
  162. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_state_machine.c:323 sofia/default/999998@muscle607.astppbilling.org:5078 Standard EXECUTE
  163. EXECUTE [depth=0] sofia/default/999998@muscle607.astppbilling.org:5078 log(WARNING Accountcode 999998. Dialed number (2200226908998052)  origination rates not found!!)
  164. 2022-07-15 09:59:17.151187 97.90% [WARNING] mod_dptools.c:1879 Accountcode 999998. Dialed number (2200226908998052)  origination rates not found!!
  165. EXECUTE [depth=0] sofia/default/999998@muscle607.astppbilling.org:5078 set(original_caller_id_name=999998)
  166. 2022-07-15 09:59:17.151187 97.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/999998@muscle607.astppbilling.org:5078 [original_caller_id_name]=[999998]
  167. EXECUTE [depth=0] sofia/default/999998@muscle607.astppbilling.org:5078 set(original_caller_id_number=999998)
  168. 2022-07-15 09:59:17.151187 97.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/999998@muscle607.astppbilling.org:5078 [original_caller_id_number]=[999998]
  169. EXECUTE [depth=0] sofia/default/999998@muscle607.astppbilling.org:5078 set(error_cdr=1)
  170. 2022-07-15 09:59:17.151187 97.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/999998@muscle607.astppbilling.org:5078 [error_cdr]=[1]
  171. EXECUTE [depth=0] sofia/default/999998@muscle607.astppbilling.org:5078 set(callstart=2022-07-15 09:59:17)
  172. 2022-07-15 09:59:17.151187 97.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/999998@muscle607.astppbilling.org:5078 [callstart]=[2022-07-15 09:59:17]
  173. EXECUTE [depth=0] sofia/default/999998@muscle607.astppbilling.org:5078 set(account_id=39)
  174. 2022-07-15 09:59:17.151187 97.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/999998@muscle607.astppbilling.org:5078 [account_id]=[39]
  175. EXECUTE [depth=0] sofia/default/999998@muscle607.astppbilling.org:5078 set(parent_id=0)
  176. 2022-07-15 09:59:17.151187 97.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/999998@muscle607.astppbilling.org:5078 [parent_id]=[0]
  177. EXECUTE [depth=0] sofia/default/999998@muscle607.astppbilling.org:5078 set(call_direction=outbound)
  178. 2022-07-15 09:59:17.151187 97.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/999998@muscle607.astppbilling.org:5078 [call_direction]=[outbound]
  179. EXECUTE [depth=0] sofia/default/999998@muscle607.astppbilling.org:5078 set(sip_ignore_remote_cause=true)
  180. 2022-07-15 09:59:17.151187 97.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/999998@muscle607.astppbilling.org:5078 [sip_ignore_remote_cause]=[true]
  181. EXECUTE [depth=0] sofia/default/999998@muscle607.astppbilling.org:5078 set(call_processed=internal)
  182. 2022-07-15 09:59:17.151187 97.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/999998@muscle607.astppbilling.org:5078 [call_processed]=[internal]
  183. EXECUTE [depth=0] sofia/default/999998@muscle607.astppbilling.org:5078 set(effective_destination_number=2200226908998052)
  184. 2022-07-15 09:59:17.151187 97.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/999998@muscle607.astppbilling.org:5078 [effective_destination_number]=[2200226908998052]
  185. EXECUTE [depth=0] sofia/default/999998@muscle607.astppbilling.org:5078 set(last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND)
  186. 2022-07-15 09:59:17.151187 97.90% [DEBUG] mod_dptools.c:1685 SET sofia/default/999998@muscle607.astppbilling.org:5078 [last_bridge_hangup_cause]=[ORIGINATION_RATE_NOT_FOUND]
  187. EXECUTE [depth=0] sofia/default/999998@muscle607.astppbilling.org:5078 hangup(ORIGINATION_RATE_NOT_FOUND)
  188. 2022-07-15 09:59:17.151187 97.90% [NOTICE] mod_dptools.c:1387 Hangup sofia/default/999998@muscle607.astppbilling.org:5078 [CS_EXECUTE] [NORMAL_CLEARING]
  189. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_session.c:2983 sofia/default/999998@muscle607.astppbilling.org:5078 skip receive message [PHONE_EVENT] (channel is hungup already)
  190. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_state_machine.c:647 (sofia/default/999998@muscle607.astppbilling.org:5078) State EXECUTE going to sleep
  191. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/999998@muscle607.astppbilling.org:5078) Running State Change CS_HANGUP (Cur 1 Tot 29)
  192. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_state_machine.c:844 (sofia/default/999998@muscle607.astppbilling.org:5078) Callstate Change RINGING -> HANGUP
  193. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_state_machine.c:846 (sofia/default/999998@muscle607.astppbilling.org:5078) State HANGUP
  194. 2022-07-15 09:59:17.151187 97.90% [DEBUG] mod_sofia.c:468 Channel sofia/default/999998@muscle607.astppbilling.org:5078 hanging up, cause: NORMAL_CLEARING
  195. 2022-07-15 09:59:17.151187 97.90% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 480
  196. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_state_machine.c:59 sofia/default/999998@muscle607.astppbilling.org:5078 Standard HANGUP, cause: NORMAL_CLEARING
  197. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_state_machine.c:846 (sofia/default/999998@muscle607.astppbilling.org:5078) State HANGUP going to sleep
  198. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_state_machine.c:616 (sofia/default/999998@muscle607.astppbilling.org:5078) State Change CS_HANGUP -> CS_REPORTING
  199. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_state_machine.c:581 (sofia/default/999998@muscle607.astppbilling.org:5078) Running State Change CS_REPORTING (Cur 1 Tot 29)
  200. 2022-07-15 09:59:17.151187 97.90% [DEBUG] switch_core_state_machine.c:932 (sofia/default/999998@muscle607.astppbilling.org:5078) State REPORTING
  201. 2022-07-15 09:59:17.151187 97.90% [INFO] mod_json_cdr.c:271 Process [57375daf-3824-4b30-b431-7190700f657f.cdr.json]
  202. 2022-07-15 09:59:17.191183 97.90% [DEBUG] switch_core_state_machine.c:168 sofia/default/999998@muscle607.astppbilling.org:5078 Standard REPORTING, cause: NORMAL_CLEARING
  203. 2022-07-15 09:59:17.191183 97.90% [DEBUG] switch_core_state_machine.c:932 (sofia/default/999998@muscle607.astppbilling.org:5078) State REPORTING going to sleep
  204. 2022-07-15 09:59:17.191183 97.90% [DEBUG] switch_core_state_machine.c:607 (sofia/default/999998@muscle607.astppbilling.org:5078) State Change CS_REPORTING -> CS_DESTROY
  205. 2022-07-15 09:59:17.191183 97.90% [DEBUG] switch_core_session.c:1753 Session 29 (sofia/default/999998@muscle607.astppbilling.org:5078) Locked, Waiting on external entities
  206. 2022-07-15 09:59:17.191183 97.90% [NOTICE] switch_core_session.c:1771 Session 29 (sofia/default/999998@muscle607.astppbilling.org:5078) Ended
  207. 2022-07-15 09:59:17.191183 97.90% [NOTICE] switch_core_session.c:1775 Close Channel sofia/default/999998@muscle607.astppbilling.org:5078 [CS_DESTROY]
  208. 2022-07-15 09:59:17.191183 97.90% [DEBUG] switch_core_state_machine.c:735 (sofia/default/999998@muscle607.astppbilling.org:5078) Running State Change CS_DESTROY (Cur 0 Tot 29)
  209. 2022-07-15 09:59:17.191183 97.90% [DEBUG] switch_core_state_machine.c:745 (sofia/default/999998@muscle607.astppbilling.org:5078) State DESTROY
  210. 2022-07-15 09:59:17.191183 97.90% [DEBUG] mod_sofia.c:379 sofia/default/999998@muscle607.astppbilling.org:5078 SOFIA DESTROY
  211. 2022-07-15 09:59:17.191183 97.90% [DEBUG] switch_core_state_machine.c:175 sofia/default/999998@muscle607.astppbilling.org:5078 Standard DESTROY
  212. 2022-07-15 09:59:17.191183 97.90% [DEBUG] switch_core_state_machine.c:745 (sofia/default/999998@muscle607.astppbilling.org:5078) State DESTROY going to sleep
  213. freeswitch@Debian-1101-bullseye-amd64-base>
  214. freeswitch@Debian-1101-bullseye-amd64-base>
  215. freeswitch@Debian-1101-bullseye-amd64-base>
  216. freeswitch@Debian-1101-bullseye-amd64-base> /exit
  217.  
  218. root@Debian-1101-bullseye-amd64-base /opt/ASTPP/freeswitch/scripts #
  219. root@Debian-1101-bullseye-amd64-base /opt/ASTPP/freeswitch/scripts #
  220. root@Debian-1101-bullseye-amd64-base /opt/ASTPP/freeswitch/scripts #
  221. root@Debian-1101-bullseye-amd64-base /opt/ASTPP/freeswitch/scripts # cd /
  222. root@Debian-1101-bullseye-amd64-base / #
  223. root@Debian-1101-bullseye-amd64-base / #
  224. root@Debian-1101-bullseye-amd64-base / #
  225. root@Debian-1101-bullseye-amd64-base / #
  226. root@Debian-1101-bullseye-amd64-base / # cd /opt/ASTPP/freeswitch/scripts/
  227. root@Debian-1101-bullseye-amd64-base /opt/ASTPP/freeswitch/scripts #
  228. root@Debian-1101-bullseye-amd64-base /opt/ASTPP/freeswitch/scripts #
  229. root@Debian-1101-bullseye-amd64-base /opt/ASTPP/freeswitch/scripts # cat addons.lua
  230. dofile("/usr/local/freeswitch/scripts/astpp/lib/addons/astpp.pbx.lua")
  231. dofile("/usr/local/freeswitch/scripts/astpp/lib/addons/astpp.apbx.lua")
  232. dofile("/usr/local/freeswitch/scripts/astpp/lib/addons/astpp.interconnectcode.lua")
  233. dofile("/usr/local/freeswitch/scripts/astpp/lib/addons/astpp.customcall.lua")
  234. dofile("/usr/local/freeswitch/scripts/astpp/lib/addons/astpp.timecondition.lua")
  235. root@Debian-1101-bullseye-amd64-base /opt/ASTPP/freeswitch/scripts #