From Craig Wilson, 3 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. Hi,
  2.  
  3. I am using ASTPP on top of FS. I am receiving an inbound DID. However, my SIP Trace shows
  4. error "User_Not_Registered" see (sip trace log below).
  5.  
  6. Running command list_user reveals nothing and sofia_contact reveals "User_Not_Registered".
  7.  
  8. Show Registrations - reveals:
  9. 9856937967,myrevbill.com,8vSSYnN7QcIRw5u3nfg5pA..,sofia/sip-ip/sip:9856937967@92.7.187.203:39706;transport=UDP;rinstance=ec30c6121794d08f,1615480452,92.7.187.203,39706,udp,astpp.myrevbill.com,
  10.  
  11. 1 total.
  12.  
  13. Then I ran command below:
  14. sofia status profile sip-ip  reg
  15.  
  16. Registrations:
  17. =================================================================================================
  18. Call-ID:        S3gXf-fjxpA9ws47L8bh9w..
  19. User:           9856937967@myrevbill.com
  20. Contact:        "" <sip:9856937967@92.7.187.203:62990;transport=UDP;rinstance=df94511808fbcf07>
  21. Agent:          Z 5.4.9 rv2.10.11.7
  22. Status:         Registered(UDP)(unknown) EXP(2021-03-11 11:03:29) EXPSECS(102)
  23. Ping-Status:    Reachable
  24. Ping-Time:      0.00
  25. Host:           astpp.myrevbill.com
  26. IP:             92.7.187.203
  27. Port:           62990
  28. Auth-User:      9856937967
  29. Auth-Realm:     myrevbill.com
  30. MWI-Account:    9856937967@myrevbill.com
  31.  
  32. Total items returned: 1
  33.  
  34.  
  35.  
  36. Sip Trace Log:
  37.  
  38. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_state_machine.c:584 (sofia/sip-ip/01226971834@10.0.1.29) Running State Change CS_NEW (Cur 1 Tot 1)
  39. 2021-03-10 12:20:17.534757 [DEBUG] sofia.c:9873 sofia/sip-ip/01226971834@10.0.1.29 receiving invite from 10.0.1.29:5060 version: 1.6.20  64bit
  40. 2021-03-10 12:20:17.534757 [DEBUG] sofia.c:9989 IP 10.0.1.29 Approved by acl "default[]". Access Granted.
  41. 2021-03-10 12:20:17.534757 [DEBUG] sofia.c:7084 Channel sofia/sip-ip/01226971834@10.0.1.29 entering state [received][100]
  42. 2021-03-10 12:20:17.534757 [DEBUG] sofia.c:7094 Remote SDP:
  43. v=0
  44. o=- 283383691 283383691 IN IP4 10.0.1.29
  45. s=Asterisk
  46. c=IN IP4 10.0.1.29
  47. t=0 0
  48. m=audio 11144 RTP/AVP 0 8 9 4 3 101
  49. a=rtpmap:0 PCMU/8000
  50. a=rtpmap:8 PCMA/8000
  51. a=rtpmap:9 G722/8000
  52. a=rtpmap:4 G723/8000
  53. a=rtpmap:3 GSM/8000
  54. a=rtpmap:101 telephone-event/8000
  55. a=fmtp:101 0-16
  56. a=ptime:20
  57. a=maxptime:150
  58.  
  59. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  60. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  61. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  62. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  63. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  64. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  65. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  66. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  67. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  68. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  69. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G722:9:8000:20:64000:1]/[G729:18:8000:20:8000:1]
  70. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMU:0:8000:20:64000:1]
  71. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[PCMA:8:8000:20:64000:1]
  72. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G723:4:8000:20:6300:1]/[G729:18:8000:20:8000:1]
  73. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  74. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  75. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [GSM:3:8000:20:13200:1]/[G729:18:8000:20:8000:1]
  76. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  77. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:3061 Set Codec sofia/sip-ip/01226971834@10.0.1.29 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  78. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_codec.c:111 sofia/sip-ip/01226971834@10.0.1.29 Original read codec set to PCMU:0
  79. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  80. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_media.c:4767 sofia/sip-ip/01226971834@10.0.1.29 Set 2833 dtmf send payload to 101 recv payload to 101
  81. 2021-03-10 12:20:17.534757 [DEBUG] sofia.c:7507 (sofia/sip-ip/01226971834@10.0.1.29) State Change CS_NEW -> CS_INIT
  82. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_state_machine.c:603 (sofia/sip-ip/01226971834@10.0.1.29) State NEW
  83. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_state_machine.c:584 (sofia/sip-ip/01226971834@10.0.1.29) Running State Change CS_INIT (Cur 1 Tot 1)
  84. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_state_machine.c:627 (sofia/sip-ip/01226971834@10.0.1.29) State INIT
  85. 2021-03-10 12:20:17.534757 [DEBUG] mod_sofia.c:90 sofia/sip-ip/01226971834@10.0.1.29 SOFIA INIT
  86. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_state_machine.c:40 sofia/sip-ip/01226971834@10.0.1.29 Standard INIT
  87. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_state_machine.c:48 (sofia/sip-ip/01226971834@10.0.1.29) State Change CS_INIT -> CS_ROUTING
  88. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_state_machine.c:627 (sofia/sip-ip/01226971834@10.0.1.29) State INIT going to sleep
  89. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_state_machine.c:584 (sofia/sip-ip/01226971834@10.0.1.29) Running State Change CS_ROUTING (Cur 1 Tot 1)
  90. 2021-03-10 12:20:17.534757 [DEBUG] switch_channel.c:2249 (sofia/sip-ip/01226971834@10.0.1.29) Callstate Change DOWN -> RINGING
  91. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_state_machine.c:643 (sofia/sip-ip/01226971834@10.0.1.29) State ROUTING
  92. 2021-03-10 12:20:17.534757 [DEBUG] mod_sofia.c:143 sofia/sip-ip/01226971834@10.0.1.29 SOFIA ROUTING
  93. 2021-03-10 12:20:17.534757 [DEBUG] switch_core_state_machine.c:236 sofia/sip-ip/01226971834@10.0.1.29 Standard ROUTING
  94. 2021-03-10 12:20:17.534757 [INFO] mod_dialplan_xml.c:637 Processing 01226971834 <01226971834>->03302290443 in context default
  95. 2021-03-10 12:20:17.596174 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f3ebc1cae70 Connected.
  96. 2021-03-10 12:20:17.596174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM `system` WHERE group_title IN ('global','opensips','callingcard','calls','InternationalPrefixes')
  97. 2021-03-10 12:20:17.596174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
  98. 2021-03-10 12:20:17.596174 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 03302290443
  99. 2021-03-10 12:20:17.596174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = '03302290443' AND status=0 limit 1
  100. 2021-03-10 12:20:17.596174 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 01226971834 / 01226971834
  101. 2021-03-10 12:20:17.596174 [DEBUG] switch_cpp.cpp:1365 [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 ="03302290443" LIMIT 1
  102. 2021-03-10 12:20:17.596174 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound
  103. 2021-03-10 12:20:17.596174 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.*, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON("10.0.1.29") BETWEEN(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) & 0xffffffff ^((0x1 <<(32 -  SUBSTRING_INDEX(`ip`, '/', -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(`ip`, '/', 1)) |((0x100000000 >> SUBSTRING_INDEX(`ip`,'/', -1)) -1))  AND "03302290443"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  104. 2021-03-10 12:20:17.634761 [INFO] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 9856937967]
  105. 2021-03-10 12:20:17.634761 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = "9856937967" AND deleted = 0 limit 1
  106. 2021-03-10 12:20:17.634761 [DEBUG] switch_cpp.cpp:1365 [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 ="03302290443" AND A.accountid = '13' limit 1
  107. 2021-03-10 12:20:17.634761 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 03302290443
  108. 2021-03-10 12:20:17.634761 [DEBUG] switch_cpp.cpp:1365 [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 ="03302290443" LIMIT 1
  109. 2021-03-10 12:20:17.634761 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] New Call direction : inbound
  110. 2021-03-10 12:20:17.634761 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number ="03302290443" AND (accountid = 0 OR status = 1) LIMIT 1
  111. 2021-03-10 12:20:17.634761 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] call_direction :inbound
  112. 2021-03-10 12:20:17.634761 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] DID_ACCOUNTID :2
  113. 2021-03-10 12:20:17.634761 [DEBUG] switch_cpp.cpp:1365 [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 (patterns = '^03302290443.*' OR patterns = '^0330229044.*' OR patterns = '^033022904.*' OR patterns = '^03302290.*' OR patterns = '^0330229.*' OR patterns = '^033022.*' OR patterns = '^03302.*' OR patterns = '^0330.*' OR patterns = '^033.*' OR patterns = '^03.*' OR patterns = '^0.*' OR patterns ='--') AND accountid = 2 ORDER BY LENGTH(PKGPTR.patterns) DESC
  114. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  115. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 13
  116. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 9856937967
  117. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] Balance : 10000
  118. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  119. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 1
  120. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  121. 2021-03-10 12:20:17.655679 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  122. 2021-03-10 12:20:17.655679 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_RATES] call_direction :inbound
  123. 2021-03-10 12:20:17.655679 [DEBUG] switch_cpp.cpp:1365 [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 ="03302290443" LIMIT 1
  124. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] call_direction:::::: inbound
  125. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  126. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 1
  127. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  128. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  129. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 1.30378
  130. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] comment : 03302290443
  131. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] Country Id : 200
  132. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 13
  133. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  134. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 13 !!!
  135. 2021-03-10 12:20:17.655679 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 100 mins!
  136. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max length duration : 100 minutes
  137. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] INB_FREE:TRUE
  138. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] free_inbound:1
  139. 2021-03-10 12:20:17.655679 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 13 AND status=0 LIMIT 1
  140. 2021-03-10 12:20:17.655679 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = "2" AND deleted = 0 limit 1
  141. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:13
  142. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:13
  143. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 13
  144. 2021-03-10 12:20:17.655679 [INFO] switch_cpp.cpp:1365 [ASTPP] maxlength::::::::: 100
  145. 2021-03-10 12:20:17.655679 [DEBUG] switch_cpp.cpp:1365 [ASTPP] custom_function_name:::::::::::::::::::::::::custom_inbound_0
  146. 2021-03-10 12:20:17.655679 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  147. <document type="freeswitch/xml">
  148. <section name="dialplan" description="ASTPP Dialplan">
  149. <context name="default">
  150. <extension name="03302290443">
  151. <condition field="destination_number" expression="03302290443">
  152. <action application="set" data="effective_destination_number=03302290443"/>
  153. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  154. <action application="set" data="bridge_pre_execute_bleg_data=+6000 normal_clearing"/>
  155. <action application="set" data="callstart=2021-03-10 12:20:17"/>
  156. <action application="set" data="hangup_after_bridge=true"/>
  157. <action application="set" data="continue_on_fail=TRUE"/>
  158. <action application="set" data="account_id=13"/>
  159. <action application="set" data="parent_id=0"/>
  160. <action application="set" data="entity_id=3"/>
  161. <action application="set" data="call_processed=internal"/>
  162. <action application="set" data="call_direction=inbound"/>
  163. <action application="set" data="accountname=FreePBX"/>
  164. <action application="set" data="origination_rates_did=ID:1|CODE:^03302290443.*|DESTINATION:03302290443|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:1.30378|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:200|ACCID:2"/>
  165. <action application="set" data="origination_rates=0"/>
  166. <action application="set" data="original_caller_id_name=01226971834"/>
  167. <action application="set" data="original_caller_id_number=01226971834"/>
  168. <action application="set" data="effective_caller_id_name=01226971834"/>
  169. <action application="set" data="effective_caller_id_number=01226971834"/>
  170. <action application="set" data="receiver_accid=2"/>
  171. <action application="export" data="presence_data=x|||Dial9(9856937967)|||^03302290443.* // 03302290443 // 1.30378||||||DID"/>
  172. <action application="export" data="call_type=0"/>
  173. <action application="set" data="calltype=DID-LOCAL"/>
  174. <action application="bridge" data="[leg_timeout=0]user/9856937967@${domain_name}"/>
  175. <condition field="${cond(${user_data 9856937967@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
  176. <action application="answer"/>
  177. <action application="export" data="voicemail_alternate_greet_id=03302290443"/>
  178. <action application="voicemail" data="default $${domain_name} 9856937967"/>
  179. <anti-action application="hangup" data="${originate_disposition}"/>
  180. </condition>
  181. </condition>
  182. </extension>
  183. </context>
  184. </section>
  185. </document>
  186. 2021-03-10 12:20:17.655679 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f3ebc1cae70 released.
  187. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 parsing [default->03302290443] continue=false
  188. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Regex (PASS) [03302290443] destination_number(03302290443) =~ /03302290443/ break=on-false
  189. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(effective_destination_number=03302290443)
  190. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(bridge_pre_execute_bleg_app=sched_hangup)
  191. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  192. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(callstart=2021-03-10 12:20:17)
  193. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(hangup_after_bridge=true)
  194. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(continue_on_fail=TRUE)
  195. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(account_id=13)
  196. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(parent_id=0)
  197. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(entity_id=3)
  198. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(call_processed=internal)
  199. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(call_direction=inbound)
  200. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(accountname=FreePBX)
  201. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(origination_rates_did=ID:1|CODE:^03302290443.*|DESTINATION:03302290443|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:1.30378|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:200|ACCID:2)
  202. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(origination_rates=0)
  203. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(original_caller_id_name=01226971834)
  204. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(original_caller_id_number=01226971834)
  205. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(effective_caller_id_name=01226971834)
  206. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(effective_caller_id_number=01226971834)
  207. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(receiver_accid=2)
  208. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action export(presence_data=x|||Dial9(9856937967)|||^03302290443.* // 03302290443 // 1.30378||||||DID)
  209. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action export(call_type=0)
  210. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action set(calltype=DID-LOCAL)
  211. Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action bridge([leg_timeout=0]user/9856937967@${domain_name})
  212. |--- Dialplan: Processing recursive conditions level:1 [03302290443_recur_1] require-nested=TRUE
  213. |--- Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Regex (PASS) [03302290443_recur_1] ${cond(${user_data 9856937967@${domain_name} param vm-enabled} == true ? YES : NO)}(YES) =~ /^YES$/ break=on-false
  214. |--- Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action answer()
  215. |--- Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action export(voicemail_alternate_greet_id=03302290443)
  216. |--- Dialplan: sofia/sip-ip/01226971834@10.0.1.29 Action voicemail(default $${domain_name} 9856937967)
  217. 2021-03-10 12:20:17.682238 [DEBUG] switch_core_state_machine.c:286 (sofia/sip-ip/01226971834@10.0.1.29) State Change CS_ROUTING -> CS_EXECUTE
  218. 2021-03-10 12:20:17.682238 [DEBUG] switch_core_state_machine.c:643 (sofia/sip-ip/01226971834@10.0.1.29) State ROUTING going to sleep
  219. 2021-03-10 12:20:17.682238 [DEBUG] switch_core_state_machine.c:584 (sofia/sip-ip/01226971834@10.0.1.29) Running State Change CS_EXECUTE (Cur 1 Tot 1)
  220. 2021-03-10 12:20:17.682238 [DEBUG] switch_core_state_machine.c:650 (sofia/sip-ip/01226971834@10.0.1.29) State EXECUTE
  221. 2021-03-10 12:20:17.682238 [DEBUG] mod_sofia.c:198 sofia/sip-ip/01226971834@10.0.1.29 SOFIA EXECUTE
  222. 2021-03-10 12:20:17.682238 [DEBUG] switch_core_state_machine.c:328 sofia/sip-ip/01226971834@10.0.1.29 Standard EXECUTE
  223. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(effective_destination_number=03302290443)
  224. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [effective_destination_number]=[03302290443]
  225. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(bridge_pre_execute_bleg_app=sched_hangup)
  226. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [bridge_pre_execute_bleg_app]=[sched_hangup]
  227. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(bridge_pre_execute_bleg_data=+6000 normal_clearing)
  228. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [bridge_pre_execute_bleg_data]=[+6000 normal_clearing]
  229. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(callstart=2021-03-10 12:20:17)
  230. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [callstart]=[2021-03-10 12:20:17]
  231. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(hangup_after_bridge=true)
  232. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [hangup_after_bridge]=[true]
  233. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(continue_on_fail=TRUE)
  234. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [continue_on_fail]=[TRUE]
  235. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(account_id=13)
  236. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [account_id]=[13]
  237. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(parent_id=0)
  238. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [parent_id]=[0]
  239. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(entity_id=3)
  240. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [entity_id]=[3]
  241. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(call_processed=internal)
  242. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [call_processed]=[internal]
  243. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(call_direction=inbound)
  244. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [call_direction]=[inbound]
  245. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(accountname=FreePBX)
  246. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [accountname]=[FreePBX]
  247. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(origination_rates_did=ID:1|CODE:^03302290443.*|DESTINATION:03302290443|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:1.30378|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:200|ACCID:2)
  248. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [origination_rates_did]=[ID:1|CODE:^03302290443.*|DESTINATION:03302290443|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:0|COST:1.30378|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|CI:200|ACCID:2]
  249. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(origination_rates=0)
  250. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [origination_rates]=[0]
  251. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(original_caller_id_name=01226971834)
  252. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [original_caller_id_name]=[01226971834]
  253. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(original_caller_id_number=01226971834)
  254. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [original_caller_id_number]=[01226971834]
  255. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(effective_caller_id_name=01226971834)
  256. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [effective_caller_id_name]=[01226971834]
  257. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(effective_caller_id_number=01226971834)
  258. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [effective_caller_id_number]=[01226971834]
  259. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(receiver_accid=2)
  260. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [receiver_accid]=[2]
  261. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 export(presence_data=x|||Dial9(9856937967)|||^03302290443.* // 03302290443 // 1.30378||||||DID)
  262. 2021-03-10 12:20:17.682238 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||Dial9(9856937967)|||^03302290443.* // 03302290443 // 1.30378||||||DID]
  263. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 export(call_type=0)
  264. 2021-03-10 12:20:17.682238 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [call_type]=[0]
  265. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 set(calltype=DID-LOCAL)
  266. 2021-03-10 12:20:17.682238 [DEBUG] mod_dptools.c:1548 SET sofia/sip-ip/01226971834@10.0.1.29 [calltype]=[DID-LOCAL]
  267. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 bridge([leg_timeout=0]user/9856937967@10.0.1.212)
  268. 2021-03-10 12:20:17.682238 [DEBUG] switch_channel.c:1250 sofia/sip-ip/01226971834@10.0.1.29 EXPORTING[export_vars] [presence_data]=[x|||Dial9(9856937967)|||^03302290443.* // 03302290443 // 1.30378||||||DID] to event
  269. 2021-03-10 12:20:17.682238 [DEBUG] switch_channel.c:1250 sofia/sip-ip/01226971834@10.0.1.29 EXPORTING[export_vars] [call_type]=[0] to event
  270. 2021-03-10 12:20:17.682238 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  271. 2021-03-10 12:20:17.682238 [DEBUG] switch_ivr_originate.c:2669 Parsing session specific variables
  272. 2021-03-10 12:20:17.682238 [DEBUG] switch_channel.c:1250 sofia/sip-ip/01226971834@10.0.1.29 EXPORTING[export_vars] [presence_data]=[x|||Dial9(9856937967)|||^03302290443.* // 03302290443 // 1.30378||||||DID] to event
  273. 2021-03-10 12:20:17.682238 [DEBUG] switch_channel.c:1250 sofia/sip-ip/01226971834@10.0.1.29 EXPORTING[export_vars] [call_type]=[0] to event
  274. 2021-03-10 12:20:17.682238 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
  275. 2021-03-10 12:20:17.682238 [NOTICE] switch_ivr_originate.c:2851 Cannot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED]
  276. 2021-03-10 12:20:17.682238 [DEBUG] switch_ivr_originate.c:3848 Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED]
  277. 2021-03-10 12:20:17.682238 [NOTICE] switch_ivr_originate.c:2851 Cannot create outgoing channel of type [user] cause: [USER_NOT_REGISTERED]
  278. 2021-03-10 12:20:17.682238 [DEBUG] switch_ivr_originate.c:3848 Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED]
  279. 2021-03-10 12:20:17.682238 [INFO] mod_dptools.c:3436 Originate Failed.  Cause: USER_NOT_REGISTERED
  280. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 answer()
  281. 2021-03-10 12:20:17.682238 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/sip-ip/01226971834@10.0.1.29] 10.0.1.212 port 16840 -> 10.0.1.29 port 11144 codec: 0 ms: 20
  282. 2021-03-10 12:20:17.682238 [DEBUG] switch_rtp.c:4159 Not using a timer
  283. 2021-03-10 12:20:17.682238 [DEBUG] switch_core_media.c:7180 sofia/sip-ip/01226971834@10.0.1.29 Set 2833 dtmf send payload to 101
  284. 2021-03-10 12:20:17.682238 [DEBUG] switch_core_media.c:7187 sofia/sip-ip/01226971834@10.0.1.29 Set 2833 dtmf receive payload to 101
  285. 2021-03-10 12:20:17.682238 [DEBUG] switch_core_media.c:7210 sofia/sip-ip/01226971834@10.0.1.29 Set rtp dtmf delay to 40
  286. 2021-03-10 12:20:17.682238 [DEBUG] mod_sofia.c:850 Local SDP sofia/sip-ip/01226971834@10.0.1.29:
  287. v=0
  288. o=FreeSWITCH 1615361977 1615361978 IN IP4 10.0.1.212
  289. s=FreeSWITCH
  290. c=IN IP4 10.0.1.212
  291. t=0 0
  292. m=audio 16840 RTP/AVP 0 101
  293. a=rtpmap:0 PCMU/8000
  294. a=rtpmap:101 telephone-event/8000
  295. a=fmtp:101 0-16
  296. a=ptime:20
  297. a=sendrecv
  298.  
  299. 2021-03-10 12:20:17.682238 [NOTICE] mod_dptools.c:1312 Channel [sofia/sip-ip/01226971834@10.0.1.29] has been answered
  300. 2021-03-10 12:20:17.682238 [DEBUG] switch_channel.c:3773 (sofia/sip-ip/01226971834@10.0.1.29) Callstate Change RINGING -> ACTIVE
  301. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 export(voicemail_alternate_greet_id=03302290443)
  302. 2021-03-10 12:20:17.682238 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [voicemail_alternate_greet_id]=[03302290443]
  303. EXECUTE sofia/sip-ip/01226971834@10.0.1.29 voicemail(default 10.0.1.212 9856937967)
  304. 2021-03-10 12:20:17.715099 [DEBUG] sofia.c:7084 Channel sofia/sip-ip/01226971834@10.0.1.29 entering state [completed][200]
  305. 2021-03-10 12:20:17.715099 [DEBUG] sofia.c:7084 Channel sofia/sip-ip/01226971834@10.0.1.29 entering state [ready][200]
  306. 2021-03-10 12:20:49.734765 [NOTICE] sofia.c:1012 Hangup sofia/sip-ip/01226971834@10.0.1.29 [CS_EXECUTE] [NORMAL_CLEARING]
  307. 2021-03-10 12:20:49.734765 [DEBUG] switch_ivr_play_say.c:70 No language specified - Using [en]
  308. 2021-03-10 12:20:49.734765 [DEBUG] switch_core_session.c:2815 sofia/sip-ip/01226971834@10.0.1.29 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
  309. 2021-03-10 12:20:49.734765 [DEBUG] switch_core_state_machine.c:650 (sofia/sip-ip/01226971834@10.0.1.29) State EXECUTE going to sleep
  310. 2021-03-10 12:20:49.734765 [DEBUG] switch_core_state_machine.c:584 (sofia/sip-ip/01226971834@10.0.1.29) Running State Change CS_HANGUP (Cur 1 Tot 1)
  311. 2021-03-10 12:20:49.734765 [DEBUG] switch_core_state_machine.c:850 (sofia/sip-ip/01226971834@10.0.1.29) Callstate Change ACTIVE -> HANGUP
  312. 2021-03-10 12:20:49.734765 [DEBUG] switch_core_state_machine.c:852 (sofia/sip-ip/01226971834@10.0.1.29) State HANGUP
  313. 2021-03-10 12:20:49.734765 [DEBUG] mod_sofia.c:438 Channel sofia/sip-ip/01226971834@10.0.1.29 hanging up, cause: NORMAL_CLEARING
  314. 2021-03-10 12:20:49.734765 [DEBUG] switch_core_state_machine.c:60 sofia/sip-ip/01226971834@10.0.1.29 Standard HANGUP, cause: NORMAL_CLEARING
  315. 2021-03-10 12:20:49.734765 [DEBUG] switch_core_state_machine.c:852 (sofia/sip-ip/01226971834@10.0.1.29) State HANGUP going to sleep
  316. 2021-03-10 12:20:49.734765 [DEBUG] switch_core_state_machine.c:619 (sofia/sip-ip/01226971834@10.0.1.29) State Change CS_HANGUP -> CS_REPORTING
  317. 2021-03-10 12:20:49.734765 [DEBUG] switch_core_state_machine.c:584 (sofia/sip-ip/01226971834@10.0.1.29) Running State Change CS_REPORTING (Cur 1 Tot 1)
  318. 2021-03-10 12:20:49.734765 [DEBUG] switch_core_state_machine.c:938 (sofia/sip-ip/01226971834@10.0.1.29) State REPORTING
  319. 2021-03-10 12:20:49.734765 [INFO] mod_json_cdr.c:271 Process [f9793c2e-819a-11eb-b65f-8914a0e01ab2.cdr.json]
  320. 2021-03-10 12:20:49.794754 [DEBUG] switch_core_state_machine.c:174 sofia/sip-ip/01226971834@10.0.1.29 Standard REPORTING, cause: NORMAL_CLEARING
  321. 2021-03-10 12:20:49.794754 [DEBUG] switch_core_state_machine.c:938 (sofia/sip-ip/01226971834@10.0.1.29) State REPORTING going to sleep
  322. 2021-03-10 12:20:49.794754 [DEBUG] switch_core_state_machine.c:610 (sofia/sip-ip/01226971834@10.0.1.29) State Change CS_REPORTING -> CS_DESTROY
  323. 2021-03-10 12:20:49.794754 [DEBUG] switch_core_session.c:1665 Session 1 (sofia/sip-ip/01226971834@10.0.1.29) Locked, Waiting on external entities
  324. 2021-03-10 12:20:49.794754 [NOTICE] switch_core_session.c:1683 Session 1 (sofia/sip-ip/01226971834@10.0.1.29) Ended
  325. 2021-03-10 12:20:49.794754 [NOTICE] switch_core_session.c:1687 Close Channel sofia/sip-ip/01226971834@10.0.1.29 [CS_DESTROY]
  326. 2021-03-10 12:20:49.794754 [DEBUG] switch_core_state_machine.c:741 (sofia/sip-ip/01226971834@10.0.1.29) Running State Change CS_DESTROY (Cur 0 Tot 1)
  327. 2021-03-10 12:20:49.794754 [DEBUG] switch_core_state_machine.c:751 (sofia/sip-ip/01226971834@10.0.1.29) State DESTROY
  328. 2021-03-10 12:20:49.794754 [DEBUG] mod_sofia.c:343 sofia/sip-ip/01226971834@10.0.1.29 SOFIA DESTROY
  329. 2021-03-10 12:20:49.794754 [DEBUG] switch_core_state_machine.c:181 sofia/sip-ip/01226971834@10.0.1.29 Standard DESTROY
  330. 2021-03-10 12:20:49.794754 [DEBUG] switch_core_state_machine.c:751 (sofia/sip-ip/01226971834@10.0.1.29) State DESTROY going to sleep
  331. freeswitch@astpp.myrevbill.com>
  332.  
  333. Thanks!!
  334.  
  335.