From Prashant Kumar, 1 Year ago, written in FreeSWITCH.
- view diff
Embed
  1. 2023-05-16 10:26:20.424435 86.73% [WARNING] switch_core_file.c:463 File has 2 channels, muxing to 1 channel will occur.
  2. 2023-05-16 10:26:25.124409 85.17% [NOTICE] switch_channel.c:1123 New Channel sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [29ecc06d-dd73-48ad-807f-66e92689e28d]
  3. 2023-05-16 10:26:25.124409 85.17% [DEBUG] switch_core_state_machine.c:581 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Running State Change CS_NEW (Cur 1 Tot 200)
  4. 2023-05-16 10:26:25.124409 85.17% [INFO] sofia.c:10453 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 receiving invite from 103.240.35.46:48026 version: 1.10.9-release git a615e85 2023-02-03 20:07:30Z 64bit call-id: MjkyNDNiYWNlMzc2MTljOWJjODhjYmQ3MGVlMjQwNTc.
  5. 2023-05-16 10:26:25.124409 85.17% [DEBUG] sofia.c:10547 verifying acl "alphaPKsipPROFILE" for ip/port 103.240.35.46:0.
  6. 2023-05-16 10:26:25.124409 85.17% [WARNING] sofia_reg.c:1846 SIP auth challenge (INVITE) on sofia profile 'alphaPKsipPROFILE' for [9030030@alpha7.astppbilling.org] from ip 103.240.35.46
  7. 2023-05-16 10:26:25.124409 85.17% [DEBUG] sofia.c:2419 detaching session 29ecc06d-dd73-48ad-807f-66e92689e28d
  8. 2023-05-16 10:26:25.124409 85.17% [DEBUG] switch_core_state_machine.c:600 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State NEW
  9. 2023-05-16 10:26:25.864416 84.87% [DEBUG] sofia.c:2532 Re-attaching to session 29ecc06d-dd73-48ad-807f-66e92689e28d
  10. 2023-05-16 10:26:25.884434 84.87% [INFO] sofia.c:10453 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 receiving invite from 103.240.35.46:48026 version: 1.10.9-release git a615e85 2023-02-03 20:07:30Z 64bit call-id: MjkyNDNiYWNlMzc2MTljOWJjODhjYmQ3MGVlMjQwNTc.
  11. 2023-05-16 10:26:25.884434 84.87% [DEBUG] sofia.c:10547 verifying acl "alphaPKsipPROFILE" for ip/port 103.240.35.46:0.
  12. 2023-05-16 10:26:25.904424 84.87% [DEBUG] sofia.c:11668 Setting NAT mode based on via received
  13. 2023-05-16 10:26:25.904424 84.87% [DEBUG] sofia.c:7487 Channel sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 entering state [received][100]
  14. 2023-05-16 10:26:25.904424 84.87% [DEBUG] sofia.c:7497 Remote SDP:
  15. v=0
  16. o=Z 0 0 IN IP4 103.240.35.46
  17. s=Z
  18. c=IN IP4 103.240.35.46
  19. t=0 0
  20. m=audio 8000 RTP/AVP 3 110 8 0 98 101
  21. a=rtpmap:110 speex/8000
  22. a=rtpmap:98 iLBC/8000
  23. a=fmtp:98 mode=20
  24. a=rtpmap:101 telephone-event/8000
  25. a=fmtp:101 0-15
  26.  
  27. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  28. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  29. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [GSM:3:8000:20:13200:1]/[G729:18:8000:20:8000:1]
  30. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  31. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  32. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [speex:110:8000:20:0:1]/[G729:18:8000:20:8000:1]
  33. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  34. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  35. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5582 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  36. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  37. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  38. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5582 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  39. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  40. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  41. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  42. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [iLBC:98:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  43. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5527 Audio Codec Compare [iLBC:98:8000:30:0:1]/[G729:18:8000:20:8000:1]
  44. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5443 Set telephone-event payload to 101@8000
  45. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:3750 Set Codec sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  46. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_codec.c:111 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Original read codec set to PCMA:8
  47. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5792 Set telephone-event payload to 101@8000
  48. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_media.c:5850 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Set 2833 dtmf send payload to 101 recv payload to 101
  49. 2023-05-16 10:26:25.904424 84.87% [DEBUG] sofia.c:7921 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State Change CS_NEW -> CS_INIT
  50. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_state_machine.c:581 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Running State Change CS_INIT (Cur 1 Tot 200)
  51. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_state_machine.c:624 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State INIT
  52. 2023-05-16 10:26:25.904424 84.87% [DEBUG] mod_sofia.c:97 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 SOFIA INIT
  53. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_state_machine.c:40 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Standard INIT
  54. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_state_machine.c:48 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State Change CS_INIT -> CS_ROUTING
  55. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_state_machine.c:624 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State INIT going to sleep
  56. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_state_machine.c:581 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Running State Change CS_ROUTING (Cur 1 Tot 200)
  57. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_channel.c:2380 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Callstate Change DOWN -> RINGING
  58. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_state_machine.c:640 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State ROUTING
  59. 2023-05-16 10:26:25.904424 84.87% [DEBUG] mod_sofia.c:158 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 SOFIA ROUTING
  60. 2023-05-16 10:26:25.904424 84.87% [DEBUG] switch_core_state_machine.c:230 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Standard ROUTING
  61. 2023-05-16 10:26:25.904424 84.87% [INFO] mod_dialplan_xml.c:639 Processing 887134 <887134>->9030030 in context default
  62. 2023-05-16 10:26:25.924409 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] USING CACHE
  63. 2023-05-16 10:26:25.924409 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  64. 2023-05-16 10:26:25.924409 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_SYSTEM]1.0
  65. 2023-05-16 10:26:25.924409 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  66. 2023-05-16 10:26:25.924409 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  67. 2023-05-16 10:26:25.924409 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 9030030
  68. 2023-05-16 10:26:25.924409 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '9030030' limit 1
  69. 2023-05-16 10:26:25.924409 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_ACCESS_NUMBER]1.0
  70. 2023-05-16 10:26:25.924409 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '9030030' and status=0 LIMIT 1
  71. 2023-05-16 10:26:25.924409 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] SOURCE NUMBER887134
  72. 2023-05-16 10:26:25.924409 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  73. 2023-05-16 10:26:25.944397 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION LOCAL SOURCE] Query :SELECT accountid FROM sip_devices WHERE username = '9030030' limit 1
  74. 2023-05-16 10:26:25.944397 84.87% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FAXER] Custom Caller ID
  75. 2023-05-16 10:26:25.944397 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number  : 887134 / 887134
  76. 2023-05-16 10:26:25.944397 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Interconnect code destination number 0
  77. 2023-05-16 10:26:25.944397 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_interconnectcode_info] Query :SELECT * FROM interconnectcode WHERE interconnectcode = 903003 AND status=0 limit 1
  78. 2023-05-16 10:26:25.944397 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  79. 2023-05-16 10:26:25.944397 84.87% [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="9030030"  AND domains.domain="alpha7.astppbilling.org" limit 1
  80. 2023-05-16 10:26:25.944397 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : outbound
  81. 2023-05-16 10:26:25.944397 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [OPENSIP_FROM_IP] from_ip : 103.240.35.46
  82. 2023-05-16 10:26:25.944397 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 887134]
  83. 2023-05-16 10:26:25.944397 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =9030030
  84. 2023-05-16 10:26:25.944397 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== local number ===================
  85. 2023-05-16 10:26:25.944397 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =9030030
  86. 2023-05-16 10:26:25.944397 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] destination number : 9030030
  87. 2023-05-16 10:26:25.944397 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] caller id name : 887134
  88. 2023-05-16 10:26:25.944397 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] caller id number : 887134
  89. 2023-05-16 10:26:25.944397 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [get_ani] Query :SELECT * FROM ani_map WHERE number = 887134
  90. 2023-05-16 10:26:25.944397 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "887134" AND deleted = 0 limit 1
  91. 2023-05-16 10:26:25.944397 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_BLOCKED_PREFIX] Query :SELECT * FROM block_patterns WHERE (blocked_patterns = '^9030030.*' OR blocked_patterns = '^903003.*' OR blocked_patterns = '^90300.*' OR blocked_patterns = '^9030.*' OR blocked_patterns = '^903.*' OR blocked_patterns = '^90.*' OR blocked_patterns = '^9.*' OR blocked_patterns ='--') AND accountid = 170 limit 1
  92. 2023-05-16 10:26:25.944397 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DID]0
  93. 2023-05-16 10:26:25.944397 84.87% [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 = '^9030030.*' OR patterns = '^903003.*' OR patterns = '^90300.*' OR patterns = '^9030.*' OR patterns = '^903.*' OR patterns = '^90.*' OR patterns = '^9.*' OR patterns ='--') AND accountid = 170 ORDER BY LENGTH(PKGPTR.patterns) DESC
  94. 2023-05-16 10:26:25.944397 84.87% [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 ="9030030" AND A.accountid = '170' limit 1
  95. 2023-05-16 10:26:25.944397 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 9030030
  96. 2023-05-16 10:26:25.944397 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_DIRECTION]0.0
  97. 2023-05-16 10:26:25.944397 84.87% [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="9030030"  AND domains.domain="alpha7.astppbilling.org" limit 1
  98. 2023-05-16 10:26:25.944397 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call Direction : outbound
  99. 2023-05-16 10:26:25.944397 84.87% [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 = '9030030' OR number = '903003' OR number = '90300' OR number = '9030' OR number = '903' OR number = '90' OR number = '9' OR number ='--') OR (number = '9030030*' OR number = '903003*' OR number = '90300*' OR number = '9030*' OR number = '903*' OR number = '90*' OR number = '9*' OR number ='--') OR (number = '887134' OR number = '88713' OR number = '8871' OR number = '887' OR number = '88' OR number = '8' OR number ='--') OR (number = '887134*' OR number = '88713*' OR number = '8871*' OR number = '887*' OR number = '88*' OR number = '8*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  100. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Call Barring Status : -1
  101. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '9030030' OR routing_prefix = '903003' OR routing_prefix = '90300' OR routing_prefix = '9030' OR routing_prefix = '903' OR routing_prefix = '90' OR routing_prefix = '9' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  102. 2023-05-16 10:26:25.964392 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
  103. 2023-05-16 10:26:25.964392 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 170
  104. 2023-05-16 10:26:25.964392 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 887134
  105. 2023-05-16 10:26:25.964392 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 23973.34
  106. 2023-05-16 10:26:25.964392 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 1 [0:prepaid,1:postpaid]
  107. 2023-05-16 10:26:25.964392 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 23
  108. 2023-05-16 10:26:25.964392 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] CID Pool : 0
  109. 2023-05-16 10:26:25.964392 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
  110. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  111. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::23
  112. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
  113. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.0
  114. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CACHING_DEBUG_PRICELIST]1.1:CACHING ID:::23
  115. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^9030030.*' OR pattern = '^903003.*' OR pattern = '^90300.*' OR pattern = '^9030.*' OR pattern = '^903.*' OR pattern = '^90.*' OR pattern = '^9.*' OR pattern ='--') AND (caller_id_pattern = '^887134.*' OR caller_id_pattern = '^88713.*' OR caller_id_pattern = '^8871.*' OR caller_id_pattern = '^887.*' OR caller_id_pattern = '^88.*' OR caller_id_pattern = '^8.*' OR caller_id_pattern ='^.*') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 23 OR accountid=170)  ORDER BY accountid DESC,LENGTH(pattern) DESC,LENGTH(caller_id_pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  116. 2023-05-16 10:26:25.964392 84.87% [INFO] switch_cpp.cpp:1465 [ASTPP]  Call Direction : outbound
  117. 2023-05-16 10:26:25.964392 84.87% [WARNING] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Rates Not Found :
  118. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP]  Post Cdrs : 0
  119. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 170
  120. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_cpp.cpp:1465 [ASTPP] Generated XML:
  121. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  122. <document type="freeswitch/xml">
  123. <section name="dialplan" description="ASTPP Dialplan">
  124. <context name="default">
  125. <extension name="9030030">
  126. <condition field="destination_number" expression="9030030">
  127. <action application="log" data="WARNING Accountcode 887134. Dialed number (9030030)  origination rates not found!!"/>
  128. <action application="playback" data="/usr/local/freeswitch/sounds/en/us/callie/astpp-badphone.wav"/>
  129. <action application="set" data="original_caller_id_name=887134"/>
  130. <action application="set" data="original_caller_id_number=887134"/>
  131. <action application="set" data="error_cdr=1"/>
  132. <action application="set" data="callstart=2023-05-16 10:26:25"/>
  133. <action application="set" data="account_id=170"/>
  134. <action application="set" data="parent_id=0"/>
  135. <action application="set" data="call_direction=outbound"/>
  136. <action application="set" data="sip_ignore_remote_cause=true"/>
  137. <action application="set" data="call_processed=internal"/>
  138. <action application="set" data="effective_destination_number=9030030"/>
  139. <action application="set" data="last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND"/>
  140. <action application="hangup" data="ORIGINATION_RATE_NOT_FOUND"/>
  141. </condition>
  142. </extension>
  143. </context>
  144. </section>
  145. </document>
  146. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 parsing [default->9030030] continue=false
  147. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Regex (PASS) [9030030] destination_number(9030030) =~ /9030030/ break=on-false
  148. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action log(WARNING Accountcode 887134. Dialed number (9030030)  origination rates not found!!)
  149. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action playback(/usr/local/freeswitch/sounds/en/us/callie/astpp-badphone.wav)
  150. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(original_caller_id_name=887134)
  151. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(original_caller_id_number=887134)
  152. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(error_cdr=1)
  153. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(callstart=2023-05-16 10:26:25)
  154. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(account_id=170)
  155. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(parent_id=0)
  156. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(call_direction=outbound)
  157. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(sip_ignore_remote_cause=true)
  158. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(call_processed=internal)
  159. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(effective_destination_number=9030030)
  160. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action set(last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND)
  161. Dialplan: sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Action hangup(ORIGINATION_RATE_NOT_FOUND)
  162. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_core_state_machine.c:281 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State Change CS_ROUTING -> CS_EXECUTE
  163. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_core_state_machine.c:640 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State ROUTING going to sleep
  164. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_core_state_machine.c:581 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Running State Change CS_EXECUTE (Cur 1 Tot 200)
  165. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_core_state_machine.c:647 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State EXECUTE
  166. 2023-05-16 10:26:25.964392 84.87% [DEBUG] mod_sofia.c:213 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 SOFIA EXECUTE
  167. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_core_state_machine.c:323 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Standard EXECUTE
  168. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 log(WARNING Accountcode 887134. Dialed number (9030030)  origination rates not found!!)
  169. 2023-05-16 10:26:25.964392 84.87% [WARNING] mod_dptools.c:1867 Accountcode 887134. Dialed number (9030030)  origination rates not found!!
  170. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_core_session.c:2785 Application playback Requires media! pre_answering channel sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075
  171. 2023-05-16 10:26:25.964392 84.87% [INFO] switch_core_session.c:2787 Sending early media
  172. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_core_media.c:8651 AUDIO RTP [sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075] 95.217.238.195 port 28324 -> 103.240.35.46 port 8000 codec: 8 ms: 20
  173. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_rtp.c:4377 Starting timer [soft] 160 bytes per 20ms
  174. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_core_media.c:8963 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Set 2833 dtmf send payload to 101
  175. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_core_media.c:8970 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Set 2833 dtmf receive payload to 101
  176. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_core_media.c:8993 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Set rtp dtmf delay to 40
  177. 2023-05-16 10:26:25.964392 84.87% [DEBUG] mod_sofia.c:2609 Ring SDP:
  178. v=0
  179. o=FreeSWITCH 1684204461 1684204462 IN IP4 95.217.238.195
  180. s=FreeSWITCH
  181. c=IN IP4 95.217.238.195
  182. t=0 0
  183. m=audio 28324 RTP/AVP 8 101
  184. a=rtpmap:8 PCMA/8000
  185. a=rtpmap:101 telephone-event/8000
  186. a=fmtp:101 0-15
  187. a=ptime:20
  188. a=sendrecv
  189.  
  190. 2023-05-16 10:26:25.964392 84.87% [NOTICE] mod_sofia.c:2612 Pre-Answer sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075!
  191. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_channel.c:3566 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Callstate Change RINGING -> EARLY
  192. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 playback(/usr/local/freeswitch/sounds/en/us/callie/astpp-badphone.wav)
  193. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_core_file.c:444 File /usr/local/freeswitch/sounds/en/us/callie/astpp-badphone.wav sample rate 16000 doesn't match requested rate 8000
  194. 2023-05-16 10:26:25.964392 84.87% [DEBUG] switch_ivr_play_say.c:1566 Codec Activated L16@8000hz 1 channels 20ms
  195. 2023-05-16 10:26:25.964392 84.87% [DEBUG] sofia.c:7487 Channel sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 entering state [early][183]
  196. 2023-05-16 10:26:26.304395 84.87% [DEBUG] switch_rtp.c:7511 Correct audio ip/port confirmed.
  197. 2023-05-16 10:26:27.404432 83.70% [DEBUG] switch_ivr_play_say.c:2015 done playing file /usr/local/freeswitch/sounds/en/us/callie/astpp-badphone.wav
  198. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(original_caller_id_name=887134)
  199. 2023-05-16 10:26:27.404432 83.70% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [original_caller_id_name]=[887134]
  200. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(original_caller_id_number=887134)
  201. 2023-05-16 10:26:27.404432 83.70% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [original_caller_id_number]=[887134]
  202. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(error_cdr=1)
  203. 2023-05-16 10:26:27.404432 83.70% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [error_cdr]=[1]
  204. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(callstart=2023-05-16 10:26:25)
  205. 2023-05-16 10:26:27.404432 83.70% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [callstart]=[2023-05-16 10:26:25]
  206. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(account_id=170)
  207. 2023-05-16 10:26:27.404432 83.70% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [account_id]=[170]
  208. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(parent_id=0)
  209. 2023-05-16 10:26:27.404432 83.70% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [parent_id]=[0]
  210. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(call_direction=outbound)
  211. 2023-05-16 10:26:27.404432 83.70% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [call_direction]=[outbound]
  212. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(sip_ignore_remote_cause=true)
  213. 2023-05-16 10:26:27.404432 83.70% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [sip_ignore_remote_cause]=[true]
  214. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(call_processed=internal)
  215. 2023-05-16 10:26:27.404432 83.70% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [call_processed]=[internal]
  216. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(effective_destination_number=9030030)
  217. 2023-05-16 10:26:27.404432 83.70% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [effective_destination_number]=[9030030]
  218. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 set(last_bridge_hangup_cause=ORIGINATION_RATE_NOT_FOUND)
  219. 2023-05-16 10:26:27.404432 83.70% [DEBUG] mod_dptools.c:1673 SET sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [last_bridge_hangup_cause]=[ORIGINATION_RATE_NOT_FOUND]
  220. EXECUTE [depth=0] sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 hangup(ORIGINATION_RATE_NOT_FOUND)
  221. 2023-05-16 10:26:27.404432 83.70% [NOTICE] mod_dptools.c:1376 Hangup sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [CS_EXECUTE] [NORMAL_CLEARING]
  222. 2023-05-16 10:26:27.404432 83.70% [DEBUG] switch_core_session.c:2973 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 skip receive message [PHONE_EVENT] (channel is hungup already)
  223. 2023-05-16 10:26:27.404432 83.70% [DEBUG] switch_core_state_machine.c:647 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State EXECUTE going to sleep
  224. 2023-05-16 10:26:27.404432 83.70% [DEBUG] switch_core_state_machine.c:581 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Running State Change CS_HANGUP (Cur 1 Tot 200)
  225. 2023-05-16 10:26:27.404432 83.70% [DEBUG] switch_core_state_machine.c:844 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Callstate Change EARLY -> HANGUP
  226. 2023-05-16 10:26:27.404432 83.70% [DEBUG] switch_core_state_machine.c:846 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State HANGUP
  227. 2023-05-16 10:26:27.404432 83.70% [DEBUG] mod_sofia.c:468 Channel sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 hanging up, cause: NORMAL_CLEARING
  228. 2023-05-16 10:26:27.404432 83.70% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 480
  229. 2023-05-16 10:26:27.404432 83.70% [DEBUG] switch_core_state_machine.c:59 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Standard HANGUP, cause: NORMAL_CLEARING
  230. 2023-05-16 10:26:27.404432 83.70% [DEBUG] switch_core_state_machine.c:846 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State HANGUP going to sleep
  231. 2023-05-16 10:26:27.404432 83.70% [DEBUG] switch_core_state_machine.c:616 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State Change CS_HANGUP -> CS_REPORTING
  232. 2023-05-16 10:26:27.404432 83.70% [DEBUG] switch_core_state_machine.c:581 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Running State Change CS_REPORTING (Cur 1 Tot 200)
  233. 2023-05-16 10:26:27.404432 83.70% [DEBUG] switch_core_state_machine.c:932 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State REPORTING
  234. 2023-05-16 10:26:27.424397 83.70% [INFO] mod_json_cdr.c:272 Process [29ecc06d-dd73-48ad-807f-66e92689e28d.cdr.json]
  235. 2023-05-16 10:26:27.444397 83.70% [DEBUG] switch_core_state_machine.c:168 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Standard REPORTING, cause: NORMAL_CLEARING
  236. 2023-05-16 10:26:27.444397 83.70% [DEBUG] switch_core_state_machine.c:932 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State REPORTING going to sleep
  237. 2023-05-16 10:26:27.444397 83.70% [DEBUG] switch_core_state_machine.c:607 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State Change CS_REPORTING -> CS_DESTROY
  238. 2023-05-16 10:26:27.444397 83.70% [DEBUG] switch_core_session.c:1743 Session 200 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Locked, Waiting on external entities
  239. 2023-05-16 10:26:27.444397 83.70% [NOTICE] switch_core_session.c:1761 Session 200 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Ended
  240. 2023-05-16 10:26:27.444397 83.70% [NOTICE] switch_core_session.c:1765 Close Channel sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 [CS_DESTROY]
  241. 2023-05-16 10:26:27.444397 83.70% [DEBUG] switch_core_state_machine.c:735 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) Running State Change CS_DESTROY (Cur 0 Tot 200)
  242. 2023-05-16 10:26:27.444397 83.70% [DEBUG] switch_core_state_machine.c:745 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State DESTROY
  243. 2023-05-16 10:26:27.444397 83.70% [DEBUG] mod_sofia.c:379 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 SOFIA DESTROY
  244. 2023-05-16 10:26:27.444397 83.70% [DEBUG] switch_core_state_machine.c:175 sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075 Standard DESTROY
  245. 2023-05-16 10:26:27.444397 83.70% [DEBUG] switch_core_state_machine.c:745 (sofia/alphaPKsipPROFILE/887134@alpha7.astppbilling.org:5075) State DESTROY going to sleep