From Prashant kumar, 2 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. freeswitch@gibfibre>
  2. freeswitch@gibfibre>
  3. freeswitch@gibfibre>
  4. 2021-09-21 11:22:27.674957 [NOTICE] switch_channel.c:1118 New Channel sofia/default/3348757062@gibfibre.astppbilling.org:5077 [e31b5eea-be5e-485d-9ae5-85f415d060c6]
  5. 2021-09-21 11:22:27.674957 [DEBUG] switch_core_state_machine.c:585 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) Running State Change CS_NEW (Cur 1 Tot 45)
  6. 2021-09-21 11:22:27.674957 [DEBUG] sofia.c:10280 sofia/default/3348757062@gibfibre.astppbilling.org:5077 receiving invite from 117.247.91.162:65522 version: 1.10.5 -release-17-25569c1631 64bit
  7. 2021-09-21 11:22:27.674957 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 117.247.91.162:0.
  8. 2021-09-21 11:22:27.674957 [DEBUG] sofia.c:2434 detaching session e31b5eea-be5e-485d-9ae5-85f415d060c6
  9. 2021-09-21 11:22:27.674957 [WARNING] sofia_reg.c:1794 SIP auth challenge (INVITE) on sofia profile 'default' for [990740@gibfibre.astppbilling.org] from ip 117.247.91.162
  10. 2021-09-21 11:22:27.674957 [DEBUG] switch_core_state_machine.c:604 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State NEW
  11. 2021-09-21 11:22:27.974833 [DEBUG] sofia.c:2544 Re-attaching to session e31b5eea-be5e-485d-9ae5-85f415d060c6
  12. 2021-09-21 11:22:27.994809 [DEBUG] sofia.c:10280 sofia/default/3348757062@gibfibre.astppbilling.org:5077 receiving invite from 117.247.91.162:65522 version: 1.10.5 -release-17-25569c1631 64bit
  13. 2021-09-21 11:22:27.994809 [DEBUG] sofia.c:10374 verifying acl "default" for ip/port 117.247.91.162:0.
  14. 2021-09-21 11:22:27.994809 [DEBUG] sofia.c:11477 Setting NAT mode based on via port
  15. 2021-09-21 11:22:27.994809 [DEBUG] sofia.c:7326 Channel sofia/default/3348757062@gibfibre.astppbilling.org:5077 entering state [received][100]
  16. 2021-09-21 11:22:27.994809 [DEBUG] sofia.c:7336 Remote SDP:
  17. v=0
  18. o=Z 0 0 IN IP4 117.247.91.162
  19. s=Z
  20. c=IN IP4 117.247.91.162
  21. t=0 0
  22. m=audio 8000 RTP/AVP 3 110 8 0 97 101
  23. a=rtpmap:110 speex/8000
  24. a=rtpmap:97 iLBC/8000
  25. a=fmtp:97 mode=30
  26. a=rtpmap:101 telephone-event/8000
  27. a=fmtp:101 0-16
  28.  
  29. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  30. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  31. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  32. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [speex:110:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  33. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  34. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  35. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  36. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  37. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  38. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  39. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:97:8000:30:0:1]/[PCMA:8:8000:20:64000:1]
  40. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [iLBC:97:8000:30:0:1]/[PCMU:0:8000:20:64000:1]
  41. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  42. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/3348757062@gibfibre.astppbilling.org:5077 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  43. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_codec.c:111 sofia/default/3348757062@gibfibre.astppbilling.org:5077 Original read codec set to PCMA:8
  44. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  45. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_media.c:5911 sofia/default/3348757062@gibfibre.astppbilling.org:5077 Set 2833 dtmf send payload to 101 recv payload to 101
  46. 2021-09-21 11:22:27.994809 [DEBUG] sofia.c:7760 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State Change CS_NEW -> CS_INIT
  47. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_state_machine.c:585 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) Running State Change CS_INIT (Cur 1 Tot 45)
  48. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_state_machine.c:628 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State INIT
  49. 2021-09-21 11:22:27.994809 [DEBUG] mod_sofia.c:93 sofia/default/3348757062@gibfibre.astppbilling.org:5077 SOFIA INIT
  50. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_state_machine.c:40 sofia/default/3348757062@gibfibre.astppbilling.org:5077 Standard INIT
  51. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_state_machine.c:48 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State Change CS_INIT -> CS_ROUTING
  52. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_state_machine.c:628 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State INIT going to sleep
  53. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_state_machine.c:585 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) Running State Change CS_ROUTING (Cur 1 Tot 45)
  54. 2021-09-21 11:22:27.994809 [DEBUG] switch_channel.c:2332 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) Callstate Change DOWN -> RINGING
  55. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_state_machine.c:644 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State ROUTING
  56. 2021-09-21 11:22:27.994809 [DEBUG] mod_sofia.c:154 sofia/default/3348757062@gibfibre.astppbilling.org:5077 SOFIA ROUTING
  57. 2021-09-21 11:22:27.994809 [DEBUG] switch_core_state_machine.c:236 sofia/default/3348757062@gibfibre.astppbilling.org:5077 Standard ROUTING
  58. 2021-09-21 11:22:27.994809 [INFO] mod_dialplan_xml.c:637 Processing 3348757062 <3348757062>->990740 in context default
  59. 2021-09-21 11:22:27.994809 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  60. 2021-09-21 11:22:27.994809 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  61. 2021-09-21 11:22:28.014782 [INFO] switch_cpp.cpp:1447 [ASTPP] [feature_code_call_transfer] Blind Call Flag: 0
  62. 2021-09-21 11:22:28.014782 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Dialed number : 990740
  63. 2021-09-21 11:22:28.014782 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_FEATURE_CODE] Query :SELECT id,feature_action,feature_code from feature_code where feature_code = '990740' limit 1
  64. 2021-09-21 11:22:28.014782 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '990740' AND status=0 limit 1
  65. 2021-09-21 11:22:28.014782 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Functions] [Fifo Condition Check] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = '990740' and status=0 LIMIT 1
  66. 2021-09-21 11:22:28.014782 [WARNING] switch_cpp.cpp:1447 [ASTPP] [FAXER] Custom Caller ID
  67. 2021-09-21 11:22:28.014782 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Caller Id name / number  : 3348757062 / 3348757062
  68. 2021-09-21 11:22:28.014782 [DEBUG] switch_cpp.cpp:1447 [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 ="990740" LIMIT 1
  69. 2021-09-21 11:22:28.014782 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Call direction : inbound
  70. 2021-09-21 11:22:28.014782 [INFO] switch_cpp.cpp:1447 [ASTPP] [Accountcode : 3348757062]
  71. 2021-09-21 11:22:28.014782 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET get_acc_info] Query :SELECT count(id) as id FROM local_number WHERE number =990740
  72. 2021-09-21 11:22:28.014782 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "3348757062" AND deleted = 0 limit 1
  73. 2021-09-21 11:22:28.034793 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="990740" AND (accountid = 0 OR status = 1) LIMIT 1
  74. 2021-09-21 11:22:28.034793 [NOTICE] switch_cpp.cpp:1447 [ASTPP] Localization Id: 1
  75. 2021-09-21 11:22:28.034793 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate,dst_base_cid FROM localization WHERE id = 1 AND status=0 limit 1
  76. 2021-09-21 11:22:28.034793 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] Call Direction : inbound
  77. 2021-09-21 11:22:28.034793 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PACKAGE_INFO] DID ACCOUNT ID : 11
  78. 2021-09-21 11:22:28.034793 [DEBUG] switch_cpp.cpp:1447 [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 = '^990740.*' OR patterns = '^99074.*' OR patterns = '^9907.*' OR patterns = '^990.*' OR patterns = '^99.*' OR patterns = '^9.*' OR patterns ='--') AND accountid = 11 ORDER BY LENGTH(PKGPTR.patterns) DESC
  79. 2021-09-21 11:22:28.034793 [DEBUG] switch_cpp.cpp:1447 [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 ="990740" AND A.accountid = '11' limit 1
  80. 2021-09-21 11:22:28.034793 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 990740
  81. 2021-09-21 11:22:28.034793 [DEBUG] switch_cpp.cpp:1447 [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 ="990740" LIMIT 1
  82. 2021-09-21 11:22:28.034793 [INFO] switch_cpp.cpp:1447 [ASTPP] [Dialplan] New Call Direction : inbound
  83. 2021-09-21 11:22:28.034793 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [CHECK_CALL_BARRING] Query :SELECT number,RIGHT(number,1) as lastchar,type as status_type,number_type FROM call_barring WHERE ((number = '990740' OR number = '99074' OR number = '9907' OR number = '990' OR number = '99' OR number = '9' OR number ='--') OR (number = '990740*' OR number = '99074*' OR number = '9907*' OR number = '990*' OR number = '99*' OR number = '9*' OR number ='--') OR (number = '3348757062' OR number = '334875706' OR number = '33487570' OR number = '3348757' OR number = '334875' OR number = '33487' OR number = '3348' OR number = '334' OR number = '33' OR number = '3' OR number ='--') OR (number = '3348757062*' OR number = '334875706*' OR number = '33487570*' OR number = '3348757*' OR number = '334875*' OR number = '33487*' OR number = '3348*' OR number = '334*' OR number = '33*' OR number = '3*' OR number ='--')) AND status=0 order by LENGTH(number) DESC,lastchar DESC, modified_date DESC
  84. 2021-09-21 11:22:28.034793 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Call Barring Status : -1
  85. 2021-09-21 11:22:28.034793 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '990740' OR routing_prefix = '99074' OR routing_prefix = '9907' OR routing_prefix = '990' OR routing_prefix = '99' OR routing_prefix = '9' OR routing_prefix ='--') AND status = 0 and reseller_id = 0 limit 1
  86. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Account Information ===================
  87. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] User id : 11
  88. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Account code : 3348757062
  89. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Balance : 9745.5
  90. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  91. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Ratecard id : 10
  92. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] CID Pool : 0
  93. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] ========================================================
  94. 2021-09-21 11:22:28.054822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 10 AND status = 0
  95. 2021-09-21 11:22:28.054822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :inbound
  96. 2021-09-21 11:22:28.054822 [DEBUG] switch_cpp.cpp:1447 [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 ="990740" LIMIT 1
  97. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP]  Call Direction : inbound
  98. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information ===================
  99. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 57
  100. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000
  101. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0
  102. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 0.00000
  103. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Comment : 990740
  104. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 85
  105. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 11
  106. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================
  107. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your9745.5 balance Accountid 11 !!!
  108. 2021-09-21 11:22:28.054822 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Call Is Free - Assigning Max Length  :: 0
  109. 2021-09-21 11:22:28.054822 [DEBUG] switch_cpp.cpp:1447 [ASTPP]  Post Cdrs : 0
  110. 2021-09-21 11:22:28.054822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET RESELLERID] Query :SELECT reseller_id FROM accounts WHERE id = 11
  111. 2021-09-21 11:22:28.054822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] Generated XML:
  112. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  113. <document type="freeswitch/xml">
  114. <section name="dialplan" description="ASTPP Dialplan">
  115. <context name="default">
  116. <extension name="990740">
  117. <condition field="destination_number" expression="990740">
  118. <action application="log" data="WARNING Accountcode 3348757062 doesn't have sufficiant fund!!"/>
  119. <action application="set" data="original_caller_id_name=3348757062"/>
  120. <action application="set" data="original_caller_id_number=3348757062"/>
  121. <action application="set" data="error_cdr=1"/>
  122. <action application="set" data="callstart=2021-09-21 11:22:28"/>
  123. <action application="set" data="account_id=11"/>
  124. <action application="set" data="parent_id=0"/>
  125. <action application="set" data="call_direction=inbound"/>
  126. <action application="set" data="calltype=DID"/>
  127. <action application="set" data="sip_ignore_remote_cause=true"/>
  128. <action application="set" data="call_processed=internal"/>
  129. <action application="set" data="effective_destination_number=990740"/>
  130. <action application="set" data="last_bridge_hangup_cause=NO_SUFFICIENT_FUND"/>
  131. <action application="hangup" data="NO_SUFFICIENT_FUND"/>
  132. </condition>
  133. </extension>
  134. </context>
  135. </section>
  136. </document>
  137. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Call Max Length Duration : 0 minutes
  138. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] INB_FREE:TRUE
  139. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] free_inbound:0
  140. 2021-09-21 11:22:28.054822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 11 AND status=0 LIMIT 1
  141. 2021-09-21 11:22:28.054822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "11" AND deleted = 0 limit 1
  142. 2021-09-21 11:22:28.054822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 10 AND status = 0
  143. 2021-09-21 11:22:28.054822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] call_direction :outbound
  144. 2021-09-21 11:22:28.054822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 10 AND status = 0
  145. 2021-09-21 11:22:28.054822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = '^990740.*' OR pattern = '^99074.*' OR pattern = '^9907.*' OR pattern = '^990.*' OR pattern = '^99.*' OR pattern = '^9.*' OR pattern ='--') AND status = 0 AND effective_date <= UTC_TIMESTAMP() AND (pricelist_id = 10 OR accountid=11)  ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC,effective_date DESC LIMIT 1
  146. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP]  Call Direction : outbound
  147. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] =============== Rates Information ===================
  148. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] ID : 259630
  149. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Connectcost : 0.00000
  150. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Includedseconds : 0
  151. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Cost : 3.00000
  152. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Comment :
  153. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Country Id : 45
  154. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Accid : 11
  155. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Trunk ID:
  156. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] Routing type:
  157. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] ================================================================
  158. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Your9745.5 balance Accountid 11 !!!
  159. 2021-09-21 11:22:28.054822 [NOTICE] switch_cpp.cpp:1447 [ASTPP] [FIND_MAXLENGTH] Limiting Call To Config Max Length 100 mins!
  160. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Actual CustomerInfo XML:11
  161. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Userinfo XML:11
  162. 2021-09-21 11:22:28.054822 [INFO] switch_cpp.cpp:1447 [ASTPP] [userinfo] Actual CustomerInfo XML : 11
  163. 2021-09-21 11:22:28.054822 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 11 limit 1
  164. 2021-09-21 11:22:28.074809 [WARNING] switch_cpp.cpp:1447 [ASTPP] [user_domain] User Domain : gibfibre.astppbilling.org
  165. 2021-09-21 11:22:28.074809 [INFO] switch_cpp.cpp:1447 [ASTPP]  Maxlength : 0
  166. 2021-09-21 11:22:28.074809 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  167. 2021-09-21 11:22:28.074809 [INFO] switch_cpp.cpp:1447 [ASTPP] [XML] Customer Recording Flag : 1
  168. 2021-09-21 11:22:28.074809 [INFO] switch_cpp.cpp:1447 [ASTPP] [PBX] Call Direction : inbound
  169. 2021-09-21 11:22:28.074809 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [GET get_record_info] Query :SELECT sip_device_routing.is_recording FROM sip_devices AS sip_devices, accounts AS accounts ,sip_device_routing AS sip_device_routing  WHERE sip_devices.accountid = accounts.id AND sip_devices.id = sip_device_routing.sip_device_id AND sip_devices.username = "990666@18.220.27.122:5077" AND accounts.status = 0
  170. 2021-09-21 11:22:28.074809 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_domain_info] Query :SELECT * FROM domains WHERE accountid = 11 limit 1
  171. 2021-09-21 11:22:28.074809 [WARNING] switch_cpp.cpp:1447 [ASTPP] [XML] User Domain : gibfibre.astppbilling.org
  172. 2021-09-21 11:22:28.074809 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [get_accounts_info] Query :SELECT * FROM accounts WHERE id = 11  and status = 0 limit 1
  173. 2021-09-21 11:22:28.074809 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [XML] Custom Function Name :: custom_inbound_1
  174. 2021-09-21 11:22:28.074809 [DEBUG] switch_cpp.cpp:1447 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  175. <document type="freeswitch/xml">
  176. <section name="dialplan" description="ASTPP Dialplan">
  177. <context name="default">
  178. <extension name="990740">
  179. <condition field="destination_number" expression="990740">
  180. <action application="set" data="effective_destination_number=990740"/>
  181. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  182. <action application="set" data="bridge_pre_execute_bleg_data=+0 normal_clearing"/>
  183. <action application="set" data="callstart=2021-09-21 11:22:28"/>
  184. <action application="set" data="hangup_after_bridge=true"/>
  185. <action application="set" data="continue_on_fail=TRUE"/>
  186. <action application="set" data="account_id=11"/>
  187. <action application="set" data="parent_id=0"/>
  188. <action application="set" data="entity_id=0"/>
  189. <action application="set" data="call_processed=internal"/>
  190. <action application="set" data="call_direction=inbound"/>
  191. <action application="set" data="accountname=default"/>
  192. <action application="set" data="filename1=astpp.pbx.lua"/>
  193. <action application="set" data="origination_rates_did=ID:57|CODE:^990740.*|DESTINATION:990740|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:1|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:85|ACCID:11"/>
  194. <action application="set" data="origination_rates=ID:259630|CODE:^99.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.00000|INC:60|INITIALBLOCK:60|RATEGROUP:10|MARKUP:0|CI:45|ACCID:11"/>
  195. <action application="set" data="original_caller_id_name=3348757062"/>
  196. <action application="set" data="original_caller_id_number=3348757062"/>
  197. <action application="set" data="effective_caller_id_name=3348757062"/>
  198. <action application="set" data="effective_caller_id_number=3348757062"/>
  199. <action application="set" data="receiver_accid=11"/>
  200. <action application="export" data="domain_name=gibfibre.astppbilling.org"/>
  201. <action application="export" data="sip_to_host=gibfibre.astppbilling.org"/>
  202. <action application="export" data="presence_data=x|||Pk_call_DID_hold(3348757062)|||||||||DID|||117.247.91.162"/>
  203. <action application="export" data="call_type=1"/>
  204. <action application="set" data="calltype=DID@IP"/>
  205. <action application="bridge" data="[leg_timeout=0]sofia/${sofia_profile_name}/990666@18.220.27.122:5077"/>
  206. </condition>
  207. </extension>
  208. </context>
  209. </section>
  210. </document>
  211. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 parsing [default->990740] continue=false
  212. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Regex (PASS) [990740] destination_number(990740) =~ /990740/ break=on-false
  213. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(effective_destination_number=990740)
  214. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  215. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(bridge_pre_execute_bleg_data=+0 normal_clearing)
  216. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(callstart=2021-09-21 11:22:28)
  217. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(hangup_after_bridge=true)
  218. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(continue_on_fail=TRUE)
  219. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(account_id=11)
  220. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(parent_id=0)
  221. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(entity_id=0)
  222. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(call_processed=internal)
  223. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(call_direction=inbound)
  224. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(accountname=default)
  225. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(filename1=astpp.pbx.lua)
  226. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(origination_rates_did=ID:57|CODE:^990740.*|DESTINATION:990740|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:1|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:85|ACCID:11)
  227. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(origination_rates=ID:259630|CODE:^99.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.00000|INC:60|INITIALBLOCK:60|RATEGROUP:10|MARKUP:0|CI:45|ACCID:11)
  228. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(original_caller_id_name=3348757062)
  229. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(original_caller_id_number=3348757062)
  230. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(effective_caller_id_name=3348757062)
  231. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(effective_caller_id_number=3348757062)
  232. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(receiver_accid=11)
  233. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action export(domain_name=gibfibre.astppbilling.org)
  234. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action export(sip_to_host=gibfibre.astppbilling.org)
  235. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action export(presence_data=x|||Pk_call_DID_hold(3348757062)|||||||||DID|||117.247.91.162)
  236. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action export(call_type=1)
  237. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action set(calltype=DID@IP)
  238. Dialplan: sofia/default/3348757062@gibfibre.astppbilling.org:5077 Action bridge([leg_timeout=0]sofia/${sofia_profile_name}/990666@18.220.27.122:5077)
  239. 2021-09-21 11:22:28.074809 [DEBUG] switch_core_state_machine.c:287 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State Change CS_ROUTING -> CS_EXECUTE
  240. 2021-09-21 11:22:28.074809 [DEBUG] switch_core_state_machine.c:644 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State ROUTING going to sleep
  241. 2021-09-21 11:22:28.074809 [DEBUG] switch_core_state_machine.c:585 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) Running State Change CS_EXECUTE (Cur 1 Tot 45)
  242. 2021-09-21 11:22:28.074809 [DEBUG] switch_core_state_machine.c:651 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State EXECUTE
  243. 2021-09-21 11:22:28.074809 [DEBUG] mod_sofia.c:209 sofia/default/3348757062@gibfibre.astppbilling.org:5077 SOFIA EXECUTE
  244. 2021-09-21 11:22:28.074809 [DEBUG] switch_core_state_machine.c:329 sofia/default/3348757062@gibfibre.astppbilling.org:5077 Standard EXECUTE
  245. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(effective_destination_number=990740)
  246. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [effective_destination_number]=[990740]
  247. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(bridge_pre_execute_bleg_app=sched_hangup)
  248. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [bridge_pre_execute_bleg_app]=[sched_hangup]
  249. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(bridge_pre_execute_bleg_data=+0 normal_clearing)
  250. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [bridge_pre_execute_bleg_data]=[+0 normal_clearing]
  251. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(callstart=2021-09-21 11:22:28)
  252. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [callstart]=[2021-09-21 11:22:28]
  253. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(hangup_after_bridge=true)
  254. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [hangup_after_bridge]=[true]
  255. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(continue_on_fail=TRUE)
  256. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [continue_on_fail]=[TRUE]
  257. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(account_id=11)
  258. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [account_id]=[11]
  259. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(parent_id=0)
  260. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [parent_id]=[0]
  261. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(entity_id=0)
  262. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [entity_id]=[0]
  263. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(call_processed=internal)
  264. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [call_processed]=[internal]
  265. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(call_direction=inbound)
  266. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [call_direction]=[inbound]
  267. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(accountname=default)
  268. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [accountname]=[default]
  269. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(filename1=astpp.pbx.lua)
  270. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [filename1]=[astpp.pbx.lua]
  271. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(origination_rates_did=ID:57|CODE:^990740.*|DESTINATION:990740|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:1|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:85|ACCID:11)
  272. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [origination_rates_did]=[ID:57|CODE:^990740.*|DESTINATION:990740|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:1|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:85|ACCID:11]
  273. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(origination_rates=ID:259630|CODE:^99.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.00000|INC:60|INITIALBLOCK:60|RATEGROUP:10|MARKUP:0|CI:45|ACCID:11)
  274. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [origination_rates]=[ID:259630|CODE:^99.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:3.00000|INC:60|INITIALBLOCK:60|RATEGROUP:10|MARKUP:0|CI:45|ACCID:11]
  275. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(original_caller_id_name=3348757062)
  276. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [original_caller_id_name]=[3348757062]
  277. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(original_caller_id_number=3348757062)
  278. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [original_caller_id_number]=[3348757062]
  279. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(effective_caller_id_name=3348757062)
  280. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [effective_caller_id_name]=[3348757062]
  281. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(effective_caller_id_number=3348757062)
  282. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [effective_caller_id_number]=[3348757062]
  283. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(receiver_accid=11)
  284. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [receiver_accid]=[11]
  285. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 export(domain_name=gibfibre.astppbilling.org)
  286. 2021-09-21 11:22:28.074809 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [domain_name]=[gibfibre.astppbilling.org]
  287. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 export(sip_to_host=gibfibre.astppbilling.org)
  288. 2021-09-21 11:22:28.074809 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_to_host]=[gibfibre.astppbilling.org]
  289. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 export(presence_data=x|||Pk_call_DID_hold(3348757062)|||||||||DID|||117.247.91.162)
  290. 2021-09-21 11:22:28.074809 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [presence_data]=[x|||Pk_call_DID_hold(3348757062)|||||||||DID|||117.247.91.162]
  291. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 export(call_type=1)
  292. 2021-09-21 11:22:28.074809 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_type]=[1]
  293. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 set(calltype=DID@IP)
  294. 2021-09-21 11:22:28.074809 [DEBUG] mod_dptools.c:1672 SET sofia/default/3348757062@gibfibre.astppbilling.org:5077 [calltype]=[DID@IP]
  295. EXECUTE [depth=0] sofia/default/3348757062@gibfibre.astppbilling.org:5077 bridge([leg_timeout=0]sofia/default/990666@18.220.27.122:5077)
  296. 2021-09-21 11:22:28.074809 [DEBUG] switch_channel.c:1264 sofia/default/3348757062@gibfibre.astppbilling.org:5077 EXPORTING[export_vars] [domain_name]=[gibfibre.astppbilling.org] to event
  297. 2021-09-21 11:22:28.074809 [DEBUG] switch_channel.c:1264 sofia/default/3348757062@gibfibre.astppbilling.org:5077 EXPORTING[export_vars] [sip_to_host]=[gibfibre.astppbilling.org] to event
  298. 2021-09-21 11:22:28.074809 [DEBUG] switch_channel.c:1264 sofia/default/3348757062@gibfibre.astppbilling.org:5077 EXPORTING[export_vars] [presence_data]=[x|||Pk_call_DID_hold(3348757062)|||||||||DID|||117.247.91.162] to event
  299. 2021-09-21 11:22:28.074809 [DEBUG] switch_channel.c:1264 sofia/default/3348757062@gibfibre.astppbilling.org:5077 EXPORTING[export_vars] [call_type]=[1] to event
  300. 2021-09-21 11:22:28.074809 [DEBUG] switch_ivr_originate.c:2242 Parsing global variables
  301. 2021-09-21 11:22:28.074809 [DEBUG] switch_ivr_originate.c:2804 Parsing session specific variables
  302. 2021-09-21 11:22:28.074809 [NOTICE] switch_channel.c:1118 New Channel sofia/default/990666@18.220.27.122:5077 [51ef4f4e-a3e7-46d0-b1d6-15dac1bfb727]
  303. 2021-09-21 11:22:28.074809 [DEBUG] mod_sofia.c:5089 (sofia/default/990666@18.220.27.122:5077) State Change CS_NEW -> CS_INIT
  304. 2021-09-21 11:22:28.094791 [DEBUG] switch_core_state_machine.c:585 (sofia/default/990666@18.220.27.122:5077) Running State Change CS_INIT (Cur 2 Tot 46)
  305. 2021-09-21 11:22:28.094791 [DEBUG] switch_core_state_machine.c:628 (sofia/default/990666@18.220.27.122:5077) State INIT
  306. 2021-09-21 11:22:28.094791 [DEBUG] mod_sofia.c:93 sofia/default/990666@18.220.27.122:5077 SOFIA INIT
  307. 2021-09-21 11:22:28.094791 [DEBUG] sofia_glue.c:1618 sofia/default/990666@18.220.27.122:5077 sending invite version: 1.10.5 -release-17-25569c1631 64bit
  308. Local SDP:
  309. v=0
  310. o=FreeSWITCH 1632212790 1632212791 IN IP4 46.101.114.158
  311. s=FreeSWITCH
  312. c=IN IP4 46.101.114.158
  313. t=0 0
  314. m=audio 10558 RTP/AVP 8 101
  315. a=rtpmap:8 PCMA/8000
  316. a=rtpmap:101 telephone-event/8000
  317. a=fmtp:101 0-16
  318. a=ptime:20
  319. a=sendrecv
  320.  
  321. 2021-09-21 11:22:28.094791 [DEBUG] switch_core_state_machine.c:40 sofia/default/990666@18.220.27.122:5077 Standard INIT
  322. 2021-09-21 11:22:28.094791 [DEBUG] switch_core_state_machine.c:48 (sofia/default/990666@18.220.27.122:5077) State Change CS_INIT -> CS_ROUTING
  323. 2021-09-21 11:22:28.094791 [DEBUG] switch_core_state_machine.c:628 (sofia/default/990666@18.220.27.122:5077) State INIT going to sleep
  324. 2021-09-21 11:22:28.094791 [DEBUG] switch_core_state_machine.c:585 (sofia/default/990666@18.220.27.122:5077) Running State Change CS_ROUTING (Cur 2 Tot 46)
  325. 2021-09-21 11:22:28.094791 [DEBUG] sofia.c:7326 Channel sofia/default/990666@18.220.27.122:5077 entering state [calling][0]
  326. 2021-09-21 11:22:28.094791 [DEBUG] switch_core_state_machine.c:644 (sofia/default/990666@18.220.27.122:5077) State ROUTING
  327. 2021-09-21 11:22:28.094791 [DEBUG] mod_sofia.c:154 sofia/default/990666@18.220.27.122:5077 SOFIA ROUTING
  328. 2021-09-21 11:22:28.094791 [DEBUG] switch_ivr_originate.c:67 (sofia/default/990666@18.220.27.122:5077) State Change CS_ROUTING -> CS_CONSUME_MEDIA
  329. 2021-09-21 11:22:28.094791 [DEBUG] switch_core_state_machine.c:644 (sofia/default/990666@18.220.27.122:5077) State ROUTING going to sleep
  330. 2021-09-21 11:22:28.094791 [DEBUG] switch_core_state_machine.c:585 (sofia/default/990666@18.220.27.122:5077) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 46)
  331. 2021-09-21 11:22:28.094791 [DEBUG] switch_core_state_machine.c:663 (sofia/default/990666@18.220.27.122:5077) State CONSUME_MEDIA
  332. 2021-09-21 11:22:28.094791 [DEBUG] switch_core_state_machine.c:663 (sofia/default/990666@18.220.27.122:5077) State CONSUME_MEDIA going to sleep
  333. 2021-09-21 11:22:29.014816 [DEBUG] sofia.c:7326 Channel sofia/default/990666@18.220.27.122:5077 entering state [proceeding][180]
  334. 2021-09-21 11:22:29.014816 [NOTICE] sofia.c:7437 Ring-Ready sofia/default/990666@18.220.27.122:5077!
  335. 2021-09-21 11:22:29.014816 [DEBUG] switch_channel.c:3437 (sofia/default/990666@18.220.27.122:5077) Callstate Change DOWN -> RINGING
  336. 2021-09-21 11:22:29.014816 [NOTICE] mod_sofia.c:2498 Ring-Ready sofia/default/3348757062@gibfibre.astppbilling.org:5077!
  337. 2021-09-21 11:22:29.014816 [DEBUG] sofia.c:7326 Channel sofia/default/3348757062@gibfibre.astppbilling.org:5077 entering state [early][180]
  338. 2021-09-21 11:22:29.014816 [NOTICE] switch_ivr_originate.c:556 Ring Ready sofia/default/3348757062@gibfibre.astppbilling.org:5077!
  339. 2021-09-21 11:22:31.374806 [DEBUG] sofia.c:7326 Channel sofia/default/990666@18.220.27.122:5077 entering state [completing][200]
  340. 2021-09-21 11:22:31.374806 [DEBUG] sofia.c:7336 Remote SDP:
  341. v=0
  342. o=FreeSWITCH 1632197989 1632197990 IN IP4 18.220.27.122
  343. s=FreeSWITCH
  344. c=IN IP4 18.220.27.122
  345. t=0 0
  346. m=audio 25362 RTP/AVP 8 101
  347. a=rtpmap:8 PCMA/8000
  348. a=rtpmap:101 telephone-event/8000
  349. a=fmtp:101 0-16
  350. a=ptime:20
  351.  
  352. 2021-09-21 11:22:31.374806 [DEBUG] sofia.c:7326 Channel sofia/default/990666@18.220.27.122:5077 entering state [ready][200]
  353. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  354. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  355. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
  356. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_media.c:3839 Set Codec sofia/default/990666@18.220.27.122:5077 PCMA/8000 20 ms 160 samples 64000 bits 1 channels
  357. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_codec.c:111 sofia/default/990666@18.220.27.122:5077 Original read codec set to PCMA:8
  358. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
  359. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_media.c:5911 sofia/default/990666@18.220.27.122:5077 Set 2833 dtmf send payload to 101 recv payload to 101
  360. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/990666@18.220.27.122:5077] 46.101.114.158 port 10558 -> 18.220.27.122 port 25362 codec: 8 ms: 20
  361. 2021-09-21 11:22:31.374806 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms
  362. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_media.c:8977 sofia/default/990666@18.220.27.122:5077 Set 2833 dtmf send payload to 101
  363. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_media.c:8984 sofia/default/990666@18.220.27.122:5077 Set 2833 dtmf receive payload to 101
  364. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_media.c:9007 sofia/default/990666@18.220.27.122:5077 Set rtp dtmf delay to 40
  365. 2021-09-21 11:22:31.374806 [NOTICE] sofia.c:8504 Channel [sofia/default/990666@18.220.27.122:5077] has been answered
  366. 2021-09-21 11:22:31.374806 [DEBUG] switch_channel.c:3865 (sofia/default/990666@18.220.27.122:5077) Callstate Change RINGING -> ACTIVE
  367. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_media.c:8663 AUDIO RTP [sofia/default/3348757062@gibfibre.astppbilling.org:5077] 46.101.114.158 port 29614 -> 117.247.91.162 port 8000 codec: 8 ms: 20
  368. 2021-09-21 11:22:31.374806 [DEBUG] switch_rtp.c:4450 Starting timer [soft] 160 bytes per 20ms
  369. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_media.c:8977 sofia/default/3348757062@gibfibre.astppbilling.org:5077 Set 2833 dtmf send payload to 101
  370. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_media.c:8984 sofia/default/3348757062@gibfibre.astppbilling.org:5077 Set 2833 dtmf receive payload to 101
  371. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_media.c:9007 sofia/default/3348757062@gibfibre.astppbilling.org:5077 Set rtp dtmf delay to 40
  372. 2021-09-21 11:22:31.374806 [DEBUG] mod_sofia.c:898 Local SDP sofia/default/3348757062@gibfibre.astppbilling.org:5077:
  373. v=0
  374. o=FreeSWITCH 1632193737 1632193738 IN IP4 46.101.114.158
  375. s=FreeSWITCH
  376. c=IN IP4 46.101.114.158
  377. t=0 0
  378. m=audio 29614 RTP/AVP 8 101
  379. a=rtpmap:8 PCMA/8000
  380. a=rtpmap:101 telephone-event/8000
  381. a=fmtp:101 0-16
  382. a=ptime:20
  383. a=sendrecv
  384.  
  385. 2021-09-21 11:22:31.374806 [DEBUG] sofia.c:7326 Channel sofia/default/3348757062@gibfibre.astppbilling.org:5077 entering state [completed][200]
  386. 2021-09-21 11:22:31.374806 [NOTICE] switch_ivr_originate.c:3794 Channel [sofia/default/3348757062@gibfibre.astppbilling.org:5077] has been answered
  387. 2021-09-21 11:22:31.374806 [DEBUG] switch_channel.c:3865 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) Callstate Change RINGING -> ACTIVE
  388. 2021-09-21 11:22:31.374806 [DEBUG] switch_ivr_originate.c:3852 Originate Resulted in Success: [sofia/default/990666@18.220.27.122:5077]
  389. 2021-09-21 11:22:31.374806 [DEBUG] switch_ivr_bridge.c:1793 (sofia/default/990666@18.220.27.122:5077) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
  390. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_state_machine.c:585 (sofia/default/990666@18.220.27.122:5077) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 46)
  391. 2021-09-21 11:22:31.374806 [DEBUG] switch_core_state_machine.c:654 (sofia/default/990666@18.220.27.122:5077) State EXCHANGE_MEDIA
  392. 2021-09-21 11:22:31.374806 [DEBUG] mod_sofia.c:656 SOFIA EXCHANGE_MEDIA
  393. 2021-09-21 11:22:31.454793 [DEBUG] switch_rtp.c:7759 Correct audio ip/port confirmed.
  394. 2021-09-21 11:22:31.534798 [DEBUG] sofia.c:7326 Channel sofia/default/3348757062@gibfibre.astppbilling.org:5077 entering state [ready][200]
  395. 2021-09-21 11:22:31.574792 [DEBUG] switch_ivr_bridge.c:655 sofia/default/990666@18.220.27.122:5077 Bridge execute app sched_hangup(+0 normal_clearing)
  396. 2021-09-21 11:22:31.594812 [DEBUG] switch_ivr.c:632 sofia/default/990666@18.220.27.122:5077 Command Execute [depth=0] sched_hangup(+0 normal_clearing)
  397. EXECUTE [depth=0] sofia/default/990666@18.220.27.122:5077 sched_hangup(+0 normal_clearing)
  398. 2021-09-21 11:22:31.594812 [NOTICE] mod_dptools.c:1282 Hangup sofia/default/990666@18.220.27.122:5077 [CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]
  399. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_session.c:2905 sofia/default/990666@18.220.27.122:5077 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  400. 2021-09-21 11:22:31.594812 [DEBUG] switch_ivr_bridge.c:568 sofia/default/990666@18.220.27.122:5077 skip receive message [BRIDGE] (channel is hungup already)
  401. 2021-09-21 11:22:31.594812 [DEBUG] switch_ivr.c:679 sofia/default/990666@18.220.27.122:5077 skip receive message [AUDIO_SYNC] (channel is hungup already)
  402. 2021-09-21 11:22:31.594812 [DEBUG] switch_ivr_bridge.c:826 sofia/default/990666@18.220.27.122:5077 ending bridge by request from read function
  403. 2021-09-21 11:22:31.594812 [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/990666@18.220.27.122:5077]
  404. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:654 (sofia/default/990666@18.220.27.122:5077) State EXCHANGE_MEDIA going to sleep
  405. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:585 (sofia/default/990666@18.220.27.122:5077) Running State Change CS_HANGUP (Cur 2 Tot 46)
  406. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:848 (sofia/default/990666@18.220.27.122:5077) Callstate Change ACTIVE -> HANGUP
  407. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:850 (sofia/default/990666@18.220.27.122:5077) State HANGUP
  408. 2021-09-21 11:22:31.594812 [DEBUG] mod_sofia.c:453 Channel sofia/default/990666@18.220.27.122:5077 hanging up, cause: NORMAL_CLEARING
  409. 2021-09-21 11:22:31.594812 [DEBUG] mod_sofia.c:507 Sending BYE to sofia/default/990666@18.220.27.122:5077
  410. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:60 sofia/default/990666@18.220.27.122:5077 Standard HANGUP, cause: NORMAL_CLEARING
  411. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:850 (sofia/default/990666@18.220.27.122:5077) State HANGUP going to sleep
  412. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:620 (sofia/default/990666@18.220.27.122:5077) State Change CS_HANGUP -> CS_REPORTING
  413. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:585 (sofia/default/990666@18.220.27.122:5077) Running State Change CS_REPORTING (Cur 2 Tot 46)
  414. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:936 (sofia/default/990666@18.220.27.122:5077) State REPORTING
  415. 2021-09-21 11:22:31.594812 [INFO] mod_json_cdr.c:271 Process [51ef4f4e-a3e7-46d0-b1d6-15dac1bfb727.cdr.json]
  416. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:174 sofia/default/990666@18.220.27.122:5077 Standard REPORTING, cause: NORMAL_CLEARING
  417. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:936 (sofia/default/990666@18.220.27.122:5077) State REPORTING going to sleep
  418. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:611 (sofia/default/990666@18.220.27.122:5077) State Change CS_REPORTING -> CS_DESTROY
  419. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_session.c:1726 Session 46 (sofia/default/990666@18.220.27.122:5077) Locked, Waiting on external entities
  420. 2021-09-21 11:22:31.594812 [DEBUG] switch_ivr_bridge.c:912 BRIDGE THREAD DONE [sofia/default/3348757062@gibfibre.astppbilling.org:5077]
  421. 2021-09-21 11:22:31.594812 [NOTICE] switch_ivr_bridge.c:1944 Hangup sofia/default/3348757062@gibfibre.astppbilling.org:5077 [CS_EXECUTE] [NORMAL_CLEARING]
  422. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_session.c:2905 sofia/default/3348757062@gibfibre.astppbilling.org:5077 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  423. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:651 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State EXECUTE going to sleep
  424. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:585 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) Running State Change CS_HANGUP (Cur 2 Tot 46)
  425. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:848 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) Callstate Change ACTIVE -> HANGUP
  426. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:850 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State HANGUP
  427. 2021-09-21 11:22:31.594812 [DEBUG] mod_sofia.c:453 Channel sofia/default/3348757062@gibfibre.astppbilling.org:5077 hanging up, cause: NORMAL_CLEARING
  428. 2021-09-21 11:22:31.594812 [DEBUG] mod_sofia.c:507 Sending BYE to sofia/default/3348757062@gibfibre.astppbilling.org:5077
  429. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:60 sofia/default/3348757062@gibfibre.astppbilling.org:5077 Standard HANGUP, cause: NORMAL_CLEARING
  430. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:850 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State HANGUP going to sleep
  431. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:620 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State Change CS_HANGUP -> CS_REPORTING
  432. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:585 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) Running State Change CS_REPORTING (Cur 2 Tot 46)
  433. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:936 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State REPORTING
  434. 2021-09-21 11:22:31.594812 [INFO] mod_json_cdr.c:271 Process [e31b5eea-be5e-485d-9ae5-85f415d060c6.cdr.json]
  435. 2021-09-21 11:22:31.594812 [NOTICE] switch_core_session.c:1744 Session 46 (sofia/default/990666@18.220.27.122:5077) Ended
  436. 2021-09-21 11:22:31.594812 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/990666@18.220.27.122:5077 [CS_DESTROY]
  437. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:739 (sofia/default/990666@18.220.27.122:5077) Running State Change CS_DESTROY (Cur 1 Tot 46)
  438. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:749 (sofia/default/990666@18.220.27.122:5077) State DESTROY
  439. 2021-09-21 11:22:31.594812 [DEBUG] mod_sofia.c:364 sofia/default/990666@18.220.27.122:5077 SOFIA DESTROY
  440. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:181 sofia/default/990666@18.220.27.122:5077 Standard DESTROY
  441. 2021-09-21 11:22:31.594812 [DEBUG] switch_core_state_machine.c:749 (sofia/default/990666@18.220.27.122:5077) State DESTROY going to sleep
  442. 2021-09-21 11:22:31.614792 [DEBUG] switch_core_state_machine.c:174 sofia/default/3348757062@gibfibre.astppbilling.org:5077 Standard REPORTING, cause: NORMAL_CLEARING
  443. 2021-09-21 11:22:31.614792 [DEBUG] switch_core_state_machine.c:936 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State REPORTING going to sleep
  444. 2021-09-21 11:22:31.614792 [DEBUG] switch_core_state_machine.c:611 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State Change CS_REPORTING -> CS_DESTROY
  445. 2021-09-21 11:22:31.614792 [DEBUG] switch_core_session.c:1726 Session 45 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) Locked, Waiting on external entities
  446. 2021-09-21 11:22:31.614792 [NOTICE] switch_core_session.c:1744 Session 45 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) Ended
  447. 2021-09-21 11:22:31.614792 [NOTICE] switch_core_session.c:1748 Close Channel sofia/default/3348757062@gibfibre.astppbilling.org:5077 [CS_DESTROY]
  448. 2021-09-21 11:22:31.614792 [DEBUG] switch_core_state_machine.c:739 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) Running State Change CS_DESTROY (Cur 0 Tot 46)
  449. 2021-09-21 11:22:31.614792 [DEBUG] switch_core_state_machine.c:749 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State DESTROY
  450. 2021-09-21 11:22:31.614792 [DEBUG] mod_sofia.c:364 sofia/default/3348757062@gibfibre.astppbilling.org:5077 SOFIA DESTROY
  451. 2021-09-21 11:22:31.614792 [DEBUG] switch_core_state_machine.c:181 sofia/default/3348757062@gibfibre.astppbilling.org:5077 Standard DESTROY
  452. 2021-09-21 11:22:31.614792 [DEBUG] switch_core_state_machine.c:749 (sofia/default/3348757062@gibfibre.astppbilling.org:5077) State DESTROY going to sleep
  453. freeswitch@gibfibre>
  454.