From IVR-time, 6 Years ago, written in FreeSWITCH.
- view diff
Embed
  1. span style="color: cornflowerblue; font-weight: bold;"> 2018-12-19 08:04:21.490546 [NOTICE] switch_channel.c:1104 New Channel sofia/default/6617480240@117.247.91.162:5060 [b122c820-0364-11e9-a0b3-51646c3ac3f3]
  2. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6617480240@117.247.91.162:5060) Running State Change CS_NEW (Cur 1 Tot 1483)
  3. 2018-12-19 08:04:21.490546 [DEBUG] sofia.c:9873 sofia/default/6617480240@117.247.91.162:5060 receiving invite from 117.247.91.162:5060 version: 1.6.19 git 7a77e0b 2017-07-13 12:01:45Z 64bit
  4. 2018-12-19 08:04:21.490546 [DEBUG] sofia.c:9989 IP 117.247.91.162 Approved by acl "default[]". Access Granted.
  5. 2018-12-19 08:04:21.490546 [DEBUG] sofia.c:7084 Channel sofia/default/6617480240@117.247.91.162:5060 entering state [received][100]
  6. 2018-12-19 08:04:21.490546 [DEBUG] sofia.c:7094 Remote SDP:
  7. v=0
  8. o=root 726063361 726063361 IN IP4 117.247.91.162
  9. s=Asterisk PBX 14.3.0
  10. c=IN IP4 117.247.91.162
  11. t=0 0
  12. m=audio 22238 RTP/AVP 0 8 3 111 101
  13. a=rtpmap:0 PCMU/8000
  14. a=rtpmap:8 PCMA/8000
  15. a=rtpmap:3 GSM/8000
  16. a=rtpmap:111 G726-32/8000
  17. a=rtpmap:101 telephone-event/8000
  18. a=fmtp:101 0-16
  19. a=ptime:20
  20. a=maxptime:150
  21.  
  22. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  23. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  24. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
  25. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
  26. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_media.c:4504 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
  27. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
  28. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMA:8:8000:20:64000:1]
  29. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [GSM:3:8000:20:13200:1]/[PCMU:0:8000:20:64000:1]
  30. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:111:8000:20:0:1]/[PCMA:8:8000:20:64000:1]
  31. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [G726-32:111:8000:20:0:1]/[PCMU:0:8000:20:64000:1]
  32. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_media.c:4365 Set telephone-event payload to 101@8000
  33. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_media.c:3061 Set Codec sofia/default/6617480240@117.247.91.162:5060 PCMU/8000 20 ms 160 samples 64000 bits 1 channels
  34. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_codec.c:111 sofia/default/6617480240@117.247.91.162:5060 Original read codec set to PCMU:0
  35. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_media.c:4708 Set telephone-event payload to 101@8000
  36. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_media.c:4767 sofia/default/6617480240@117.247.91.162:5060 Set 2833 dtmf send payload to 101 recv payload to 101
  37. 2018-12-19 08:04:21.490546 [DEBUG] sofia.c:7507 (sofia/default/6617480240@117.247.91.162:5060) State Change CS_NEW -> CS_INIT
  38. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_state_machine.c:603 (sofia/default/6617480240@117.247.91.162:5060) State NEW
  39. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6617480240@117.247.91.162:5060) Running State Change CS_INIT (Cur 1 Tot 1483)
  40. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_state_machine.c:627 (sofia/default/6617480240@117.247.91.162:5060) State INIT
  41. 2018-12-19 08:04:21.490546 [DEBUG] mod_sofia.c:90 sofia/default/6617480240@117.247.91.162:5060 SOFIA INIT
  42. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_state_machine.c:40 sofia/default/6617480240@117.247.91.162:5060 Standard INIT
  43. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_state_machine.c:48 (sofia/default/6617480240@117.247.91.162:5060) State Change CS_INIT -> CS_ROUTING
  44. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_state_machine.c:627 (sofia/default/6617480240@117.247.91.162:5060) State INIT going to sleep
  45. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6617480240@117.247.91.162:5060) Running State Change CS_ROUTING (Cur 1 Tot 1483)
  46. 2018-12-19 08:04:21.490546 [DEBUG] switch_channel.c:2249 (sofia/default/6617480240@117.247.91.162:5060) Callstate Change DOWN -> RINGING
  47. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_state_machine.c:643 (sofia/default/6617480240@117.247.91.162:5060) State ROUTING
  48. 2018-12-19 08:04:21.490546 [DEBUG] mod_sofia.c:143 sofia/default/6617480240@117.247.91.162:5060 SOFIA ROUTING
  49. 2018-12-19 08:04:21.490546 [DEBUG] switch_core_state_machine.c:236 sofia/default/6617480240@117.247.91.162:5060 Standard ROUTING
  50. 2018-12-19 08:04:21.490546 [INFO] mod_dialplan_xml.c:637 Processing 6617480240 <6617480240>->13049314867 in context default
  51. 2018-12-19 08:04:21.490546 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f27542cfe60 Connected.
  52. 2018-12-19 08:04:21.490546 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM system WHERE group_title IN ('global','opensips','callingcard')
  53. 2018-12-19 08:04:21.510556 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 13049314867
  54. 2018-12-19 08:04:21.510556 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] in custom Caller ID
  55. 2018-12-19 08:04:21.510556 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 6617480240 / 6617480240
  56. 2018-12-19 08:04:21.510556 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,B.id as accountid,B.number as account_code,B.did_cid_translation as did_cid_translation,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 FROM dids AS A,accounts AS B WHERE A.status=0 AND B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="13049314867" LIMIT 1
  57. 2018-12-19 08:04:21.510556 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound
  58. 2018-12-19 08:04:21.510556 [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("117.247.91.162") 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 "13049314867"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  59. 2018-12-19 08:04:21.510556 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 9139839482]
  60. 2018-12-19 08:04:21.510556 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '13049314867' OR routing_prefix = '1304931486' OR routing_prefix = '130493148' OR routing_prefix = '13049314' OR routing_prefix = '1304931' OR routing_prefix = '130493' OR routing_prefix = '13049' OR routing_prefix = '1304' OR routing_prefix = '130' OR routing_prefix = '13' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 limit 1
  61. 2018-12-19 08:04:21.510556 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "9139839482" OR id="9139839482") AND status=0 AND deleted=0 AND (expiry >= '2018-12-19 08:04:21' OR expiry = '0000-00-00 00:00:00') limit 1
  62. 2018-12-19 08:04:21.510556 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [get_staus_fraud_detection] Query :select fraud_detection from fraud_UI_settings
  63. 2018-12-19 08:04:21.510556 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CALLERID_NUMBER] CALLERID :6617480240
  64. 2018-12-19 08:04:21.510556 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CUSTOMER_ID] USERID :11
  65. 2018-12-19 08:04:21.510556 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CIDPOOL] CIDPOOL :0
  66. 2018-12-19 08:04:21.510556 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [get_staus_fraud_detection] Query :select fraud_detection from fraud_UI_settings
  67. 2018-12-19 08:04:21.510556 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT * FROM packages  as P inner join package_patterns as PKGPTR on P.id = PKGPTR.package_id WHERE (patterns = '^13049314867.*' OR patterns = '^1304931486.*' OR patterns = '^130493148.*' OR patterns = '^13049314.*' OR patterns = '^1304931.*' OR patterns = '^130493.*' OR patterns = '^13049.*' OR patterns = '^1304.*' OR patterns = '^130.*' OR patterns = '^13.*' OR patterns = '^1.*' OR patterns ='--') AND status = 0 AND pricelist_id = 1 ORDER BY LENGTH(PKGPTR.patterns) DESC LIMIT 1
  68. 2018-12-19 08:04:21.510556 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  69. 2018-12-19 08:04:21.510556 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 11
  70. 2018-12-19 08:04:21.510556 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 9139839482
  71. 2018-12-19 08:04:21.510556 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  72. 2018-12-19 08:04:21.510556 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 1
  73. 2018-12-19 08:04:21.510556 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  74. 2018-12-19 08:04:21.510556 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  75. 2018-12-19 08:04:21.530548 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,B.id as accountid,B.number as account_code,B.did_cid_translation as did_cid_translation,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 FROM dids AS A,accounts AS B WHERE A.status=0 AND B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="13049314867" LIMIT 1
  76. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  77. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 7
  78. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  79. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  80. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  81. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] comment : 13049314867
  82. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 11
  83. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  84. 2018-12-19 08:04:21.530548 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [get_staus_fraud_detection] Query :select fraud_detection from fraud_UI_settings
  85. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100
  86. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max length duration : 100 minutes
  87. 2018-12-19 08:04:21.530548 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "11" OR id="11") AND status=0 AND deleted=0 AND (expiry >= '2018-12-19 08:04:21' OR expiry = '0000-00-00 00:00:00') limit 1
  88. 2018-12-19 08:04:21.530548 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [get_staus_fraud_detection] Query :select fraud_detection from fraud_UI_settings
  89. 2018-12-19 08:04:21.530548 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  90. 2018-12-19 08:04:21.530548 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [get_staus_fraud_detection] Query :select fraud_detection from fraud_UI_settings
  91. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100
  92. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:11
  93. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:11
  94. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 11
  95. 2018-12-19 08:04:21.530548 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 13049314867 and status=0 LIMIT 1
  96. 2018-12-19 08:04:21.530548 [WARNING] switch_cpp.cpp:1365 [ASTPP] [fifo_agent_flag] fifo_agent_flag0
  97. 2018-12-19 08:04:21.530548 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_TIME_CONDITION_ID] Query :SELECT timecondition_id from dids WHERE id = '7' LIMIT 1
  98. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] [TIME_COND] timecondition_id : 1
  99. 2018-12-19 08:04:21.530548 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '1' and status = 0 LIMIT 1
  100. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] [TIME_COND] timecondition : [{"hour":"17-23","minute":"00-59","wday":"4-7","mday":"1-31","mon":"1-12","year":"2018-2018","extensions":"9139839482","priority":"1"}]
  101. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] [TIME_COND] priority : 1
  102. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] [TIME_COND] condition_str :  time-of-day= "17:00-23:59"  wday= "4-7"  mday= "1-31"  mon= "1-12"  year= "2018-2018"
  103. 2018-12-19 08:04:21.530548 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FSXMLINBOUND] Caller ID Translation Starts
  104. 2018-12-19 08:04:21.530548 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FSXMLINBOUND] Caller ID Translation Ends
  105. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_type : 8
  106. 2018-12-19 08:04:21.530548 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_type : IVR
  107. 2018-12-19 08:04:21.530548 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_IVR_INFO] Query :SELECT * from tbl_ivr_specification WHERE id = 1 and status=0 LIMIT 1
  108. 2018-12-19 08:04:21.530548 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_RING_GROUP_INFO] Query :SELECT file_name from pbx_recording WHERE id = '0' LIMIT 1
  109. 2018-12-19 08:04:21.530548 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  110. <document type="freeswitch/xml">
  111. <section name="dialplan" description="ASTPP Dialplan">
  112. <context name="default">
  113. <extension name="TEST" continue="true">
  114. <condition  time-of-day= "17:00-23:59"  wday= "4-7"  mday= "1-31"  mon= "1-12"  year= "2018-2018"  break="never">
  115. <action application="set" data="office_status=open" inline="true"/>
  116. <action application="set" data="extensions=9139839482" inline="true"/>
  117. </condition>
  118. </extension>
  119. <extension name="tod route, x13049314867">
  120. <condition field="destination_number" expression="^(13049314867)$">
  121. <action application="execute_extension" data="13049314867_${office_status}"/>
  122. </condition>
  123. </extension>
  124. <extension name="office is open">
  125. <condition field="destination_number" expression="^(13049314867_open)$">
  126. <action application="set" data="domain_name=$${domain}"/>
  127. <action application="set" data="set_extensions=${extensions}"/>
  128. <action application="bridge" data="user/${extensions}@${domain_name}"/>
  129. </condition>
  130. </extension>
  131. <extension name="13049314867">
  132. <condition field="destination_number" expression="13049314867">
  133. <action application="set" data="effective_destination_number=13049314867"/>
  134. <action application="sched_hangup" data="+6000 normal_clearing"/>
  135. <action application="set" data="callstart=2018-12-19 08:04:21"/>
  136. <action application="set" data="hangup_after_bridge=true"/>
  137. <action application="set" data="continue_on_fail=TRUE"/>
  138. <action application="set" data="account_id=11"/>
  139. <action application="set" data="parent_id=0"/>
  140. <action application="set" data="entity_id=0"/>
  141. <action application="set" data="call_processed=internal"/>
  142. <action application="set" data="call_direction=inbound"/>
  143. <action application="set" data="accountname=DID testing"/>
  144. <action application="export" data="t38_passthru=true"/>
  145. <action application="set" data="fax_enable_t38=true"/>
  146. <action application="set" data="fax_enable_t38_request=true"/>
  147. <action application="set" data="origination_rates_did=ID:7|CODE:^13049314867.*|DESTINATION:13049314867|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|ACCID:11"/>
  148. <action application="set" data="origination_rates=ID:0|CODE:13049314867|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|COST:0|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|ACCID:11"/>
  149. <action application="set" data="original_caller_id_name=6617480240"/>
  150. <action application="set" data="original_caller_id_number=6617480240"/>
  151. <action application="set" data="effective_caller_id_name=6617480240"/>
  152. <action application="set" data="effective_caller_id_number=6617480240"/>
  153. <action application="set" data="receiver_accid=11"/>
  154. <action application="export" data="presence_data=x|||QA Test(9139839482)|||^13049314867.* // 13049314867 // 0.00000||||||DID"/>
  155. <action application="set" data="did_calltype=8"/>
  156. <action application="set" data="did_extensions=1"/>
  157. <action application="set" data="ringback=0"/>
  158. <action application="set" data="module_name=pbx"/>
  159. <action application="ivr" data="TESTING0"/>
  160. </condition>
  161. </extension>
  162. </context>
  163. </section>
  164. </document>
  165. 2018-12-19 08:04:21.530548 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f27542cfe60 released.
  166. Dialplan: sofia/default/6617480240@117.247.91.162:5060 parsing [default->TEST] continue=true
  167. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Date/TimeMatch (FAIL) [TEST] break=never
  168. Dialplan: sofia/default/6617480240@117.247.91.162:5060 parsing [default->tod route, x13049314867] continue=false
  169. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Regex (PASS) [tod route, x13049314867] destination_number(13049314867) =~ /^(13049314867)$/ break=on-false
  170. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action execute_extension(13049314867_${office_status})
  171. 2018-12-19 08:04:21.530548 [DEBUG] switch_core_state_machine.c:286 (sofia/default/6617480240@117.247.91.162:5060) State Change CS_ROUTING -> CS_EXECUTE
  172. 2018-12-19 08:04:21.530548 [DEBUG] switch_core_state_machine.c:643 (sofia/default/6617480240@117.247.91.162:5060) State ROUTING going to sleep
  173. 2018-12-19 08:04:21.530548 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6617480240@117.247.91.162:5060) Running State Change CS_EXECUTE (Cur 1 Tot 1483)
  174. 2018-12-19 08:04:21.530548 [DEBUG] switch_core_state_machine.c:650 (sofia/default/6617480240@117.247.91.162:5060) State EXECUTE
  175. 2018-12-19 08:04:21.530548 [DEBUG] mod_sofia.c:198 sofia/default/6617480240@117.247.91.162:5060 SOFIA EXECUTE
  176. 2018-12-19 08:04:21.530548 [DEBUG] switch_core_state_machine.c:328 sofia/default/6617480240@117.247.91.162:5060 Standard EXECUTE
  177. EXECUTE sofia/default/6617480240@117.247.91.162:5060 execute_extension(13049314867_)
  178. 2018-12-19 08:04:21.530548 [INFO] mod_dialplan_xml.c:637 Processing 6617480240 <6617480240>->13049314867_ in context default
  179. 2018-12-19 08:04:21.530548 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f27542cfe60 Connected.
  180. 2018-12-19 08:04:21.530548 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM system WHERE group_title IN ('global','opensips','callingcard')
  181. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Dialed number : 13049314867
  182. 2018-12-19 08:04:21.550604 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FAXER] in custom Caller ID
  183. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Caller Id name / number  : 6617480240 / 6617480240
  184. 2018-12-19 08:04:21.550604 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,B.id as accountid,B.number as account_code,B.did_cid_translation as did_cid_translation,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 FROM dids AS A,accounts AS B WHERE A.status=0 AND B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="13049314867" LIMIT 1
  185. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Call direction : inbound
  186. 2018-12-19 08:04:21.550604 [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("117.247.91.162") 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 "13049314867"  LIKE CONCAT(prefix,'%') ORDER BY LENGTH(prefix) DESC LIMIT 1
  187. 2018-12-19 08:04:21.550604 [NOTICE] switch_cpp.cpp:1365 [ASTPP] [Accountcode : 9139839482]
  188. 2018-12-19 08:04:21.550604 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_ROUTING_INFO] Query :select id,routing_prefix,pricelist_id_admin from pricelists WHERE (routing_prefix = '13049314867' OR routing_prefix = '1304931486' OR routing_prefix = '130493148' OR routing_prefix = '13049314' OR routing_prefix = '1304931' OR routing_prefix = '130493' OR routing_prefix = '13049' OR routing_prefix = '1304' OR routing_prefix = '130' OR routing_prefix = '13' OR routing_prefix = '1' OR routing_prefix ='--') AND status = 0 limit 1
  189. 2018-12-19 08:04:21.550604 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "9139839482" OR id="9139839482") AND status=0 AND deleted=0 AND (expiry >= '2018-12-19 08:04:21' OR expiry = '0000-00-00 00:00:00') limit 1
  190. 2018-12-19 08:04:21.550604 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [get_staus_fraud_detection] Query :select fraud_detection from fraud_UI_settings
  191. 2018-12-19 08:04:21.550604 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CALLERID_NUMBER] CALLERID :6617480240
  192. 2018-12-19 08:04:21.550604 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CUSTOMER_ID] USERID :11
  193. 2018-12-19 08:04:21.550604 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_CIDPOOL] CIDPOOL :0
  194. 2018-12-19 08:04:21.550604 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [get_staus_fraud_detection] Query :select fraud_detection from fraud_UI_settings
  195. 2018-12-19 08:04:21.550604 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT * FROM packages  as P inner join package_patterns as PKGPTR on P.id = PKGPTR.package_id WHERE (patterns = '^13049314867.*' OR patterns = '^1304931486.*' OR patterns = '^130493148.*' OR patterns = '^13049314.*' OR patterns = '^1304931.*' OR patterns = '^130493.*' OR patterns = '^13049.*' OR patterns = '^1304.*' OR patterns = '^130.*' OR patterns = '^13.*' OR patterns = '^1.*' OR patterns ='--') AND status = 0 AND pricelist_id = 1 ORDER BY LENGTH(PKGPTR.patterns) DESC LIMIT 1
  196. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Account Information ===================
  197. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] User id : 11
  198. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] Account code : 9139839482
  199. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
  200. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] Ratecard id : 1
  201. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] ========================================================
  202. 2018-12-19 08:04:21.550604 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  203. 2018-12-19 08:04:21.550604 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,B.id as accountid,B.number as account_code,B.did_cid_translation as did_cid_translation,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 FROM dids AS A,accounts AS B WHERE A.status=0 AND B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number ="13049314867" LIMIT 1
  204. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] =============== Rates Information ===================
  205. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] ID : 7
  206. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] Connectcost : 0.00000
  207. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] Includedseconds : 0
  208. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] Cost : 0.00000
  209. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] comment : 13049314867
  210. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] Accid : 11
  211. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] ================================================================
  212. 2018-12-19 08:04:21.550604 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [get_staus_fraud_detection] Query :select fraud_detection from fraud_UI_settings
  213. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100
  214. 2018-12-19 08:04:21.550604 [INFO] switch_cpp.cpp:1365 [ASTPP] Call Max length duration : 100 minutes
  215. 2018-12-19 08:04:21.550604 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE (number = "11" OR id="11") AND status=0 AND deleted=0 AND (expiry >= '2018-12-19 08:04:21' OR expiry = '0000-00-00 00:00:00') limit 1
  216. 2018-12-19 08:04:21.570560 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [get_staus_fraud_detection] Query :select fraud_detection from fraud_UI_settings
  217. 2018-12-19 08:04:21.570560 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
  218. 2018-12-19 08:04:21.570560 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [get_staus_fraud_detection] Query :select fraud_detection from fraud_UI_settings
  219. 2018-12-19 08:04:21.570560 [INFO] switch_cpp.cpp:1365 [ASTPP] [FIND_MAXLENGTH] Call is free - assigning max length!!! :: 100
  220. 2018-12-19 08:04:21.570560 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML:11
  221. 2018-12-19 08:04:21.570560 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Userinfo XML:11
  222. 2018-12-19 08:04:21.570560 [INFO] switch_cpp.cpp:1365 [ASTPP] [userinfo] Actual CustomerInfo XML : 11
  223. 2018-12-19 08:04:21.570560 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_queue_INFO] Query :SELECT id,destination_number,agent_hold_file from pbx_queue WHERE destination_number = 13049314867 and status=0 LIMIT 1
  224. 2018-12-19 08:04:21.570560 [WARNING] switch_cpp.cpp:1365 [ASTPP] [fifo_agent_flag] fifo_agent_flag0
  225. 2018-12-19 08:04:21.570560 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_TIME_CONDITION_ID] Query :SELECT timecondition_id from dids WHERE id = '7' LIMIT 1
  226. 2018-12-19 08:04:21.570560 [INFO] switch_cpp.cpp:1365 [ASTPP] [TIME_COND] timecondition_id : 1
  227. 2018-12-19 08:04:21.570560 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_TIME_CONDITION_QUERY] Query :SELECT * from time_condition WHERE id = '1' and status = 0 LIMIT 1
  228. 2018-12-19 08:04:21.570560 [INFO] switch_cpp.cpp:1365 [ASTPP] [TIME_COND] timecondition : [{"hour":"17-23","minute":"00-59","wday":"4-7","mday":"1-31","mon":"1-12","year":"2018-2018","extensions":"9139839482","priority":"1"}]
  229. 2018-12-19 08:04:21.570560 [INFO] switch_cpp.cpp:1365 [ASTPP] [TIME_COND] priority : 1
  230. 2018-12-19 08:04:21.570560 [INFO] switch_cpp.cpp:1365 [ASTPP] [TIME_COND] condition_str :  time-of-day= "17:00-23:59"  wday= "4-7"  mday= "1-31"  mon= "1-12"  year= "2018-2018"
  231. 2018-12-19 08:04:21.570560 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FSXMLINBOUND] Caller ID Translation Starts
  232. 2018-12-19 08:04:21.570560 [WARNING] switch_cpp.cpp:1365 [ASTPP] [FSXMLINBOUND] Caller ID Translation Ends
  233. 2018-12-19 08:04:21.570560 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_type : 8
  234. 2018-12-19 08:04:21.570560 [INFO] switch_cpp.cpp:1365 [ASTPP] [PBX] call_type : IVR
  235. 2018-12-19 08:04:21.570560 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_IVR_INFO] Query :SELECT * from tbl_ivr_specification WHERE id = 1 and status=0 LIMIT 1
  236. 2018-12-19 08:04:21.570560 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Functions] [GET_RING_GROUP_INFO] Query :SELECT file_name from pbx_recording WHERE id = '0' LIMIT 1
  237. 2018-12-19 08:04:21.570560 [DEBUG] switch_cpp.cpp:1365 [ASTPP] [Dialplan] Generated XML:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  238. <document type="freeswitch/xml">
  239. <section name="dialplan" description="ASTPP Dialplan">
  240. <context name="default">
  241. <extension name="TEST" continue="true">
  242. <condition  time-of-day= "17:00-23:59"  wday= "4-7"  mday= "1-31"  mon= "1-12"  year= "2018-2018"  break="never">
  243. <action application="set" data="office_status=open" inline="true"/>
  244. <action application="set" data="extensions=9139839482" inline="true"/>
  245. </condition>
  246. </extension>
  247. <extension name="tod route, x13049314867">
  248. <condition field="destination_number" expression="^(13049314867)$">
  249. <action application="execute_extension" data="13049314867_${office_status}"/>
  250. </condition>
  251. </extension>
  252. <extension name="office is open">
  253. <condition field="destination_number" expression="^(13049314867_open)$">
  254. <action application="set" data="domain_name=$${domain}"/>
  255. <action application="set" data="set_extensions=${extensions}"/>
  256. <action application="bridge" data="user/${extensions}@${domain_name}"/>
  257. </condition>
  258. </extension>
  259. <extension name="13049314867">
  260. <condition field="destination_number" expression="13049314867">
  261. <action application="set" data="effective_destination_number=13049314867"/>
  262. <action application="sched_hangup" data="+6000 normal_clearing"/>
  263. <action application="set" data="callstart=2018-12-19 08:04:21"/>
  264. <action application="set" data="hangup_after_bridge=true"/>
  265. <action application="set" data="continue_on_fail=TRUE"/>
  266. <action application="set" data="account_id=11"/>
  267. <action application="set" data="parent_id=0"/>
  268. <action application="set" data="entity_id=0"/>
  269. <action application="set" data="call_processed=internal"/>
  270. <action application="set" data="call_direction=inbound"/>
  271. <action application="set" data="accountname=DID testing"/>
  272. <action application="export" data="t38_passthru=true"/>
  273. <action application="set" data="fax_enable_t38=true"/>
  274. <action application="set" data="fax_enable_t38_request=true"/>
  275. <action application="set" data="origination_rates_did=ID:7|CODE:^13049314867.*|DESTINATION:13049314867|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|ACCID:11"/>
  276. <action application="set" data="origination_rates=ID:0|CODE:13049314867|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|COST:0|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|ACCID:11"/>
  277. <action application="set" data="original_caller_id_name=6617480240"/>
  278. <action application="set" data="original_caller_id_number=6617480240"/>
  279. <action application="set" data="effective_caller_id_name=6617480240"/>
  280. <action application="set" data="effective_caller_id_number=6617480240"/>
  281. <action application="set" data="receiver_accid=11"/>
  282. <action application="export" data="presence_data=x|||QA Test(9139839482)|||^13049314867.* // 13049314867 // 0.00000||||||DID"/>
  283. <action application="set" data="did_calltype=8"/>
  284. <action application="set" data="did_extensions=1"/>
  285. <action application="set" data="ringback=0"/>
  286. <action application="set" data="module_name=pbx"/>
  287. <action application="ivr" data="TESTING0"/>
  288. </condition>
  289. </extension>
  290. </context>
  291. </section>
  292. </document>
  293. 2018-12-19 08:04:21.570560 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f27542cfe60 released.
  294. Dialplan: sofia/default/6617480240@117.247.91.162:5060 parsing [default->TEST] continue=true
  295. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Date/TimeMatch (FAIL) [TEST] break=never
  296. Dialplan: sofia/default/6617480240@117.247.91.162:5060 parsing [default->tod route, x13049314867] continue=false
  297. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Regex (FAIL) [tod route, x13049314867] destination_number(13049314867_) =~ /^(13049314867)$/ break=on-false
  298. Dialplan: sofia/default/6617480240@117.247.91.162:5060 parsing [default->office is open] continue=false
  299. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Regex (FAIL) [office is open] destination_number(13049314867_) =~ /^(13049314867_open)$/ break=on-false
  300. Dialplan: sofia/default/6617480240@117.247.91.162:5060 parsing [default->13049314867] continue=false
  301. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Regex (PASS) [13049314867] destination_number(13049314867_) =~ /13049314867/ break=on-false
  302. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(effective_destination_number=13049314867)
  303. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action sched_hangup(+6000 normal_clearing)
  304. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(callstart=2018-12-19 08:04:21)
  305. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(hangup_after_bridge=true)
  306. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(continue_on_fail=TRUE)
  307. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(account_id=11)
  308. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(parent_id=0)
  309. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(entity_id=0)
  310. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(call_processed=internal)
  311. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(call_direction=inbound)
  312. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(accountname=DID testing)
  313. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action export(t38_passthru=true)
  314. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(fax_enable_t38=true)
  315. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(fax_enable_t38_request=true)
  316. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(origination_rates_did=ID:7|CODE:^13049314867.*|DESTINATION:13049314867|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|ACCID:11)
  317. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(origination_rates=ID:0|CODE:13049314867|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|COST:0|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|ACCID:11)
  318. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(original_caller_id_name=6617480240)
  319. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(original_caller_id_number=6617480240)
  320. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(effective_caller_id_name=6617480240)
  321. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(effective_caller_id_number=6617480240)
  322. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(receiver_accid=11)
  323. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action export(presence_data=x|||QA Test(9139839482)|||^13049314867.* // 13049314867 // 0.00000||||||DID)
  324. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(did_calltype=8)
  325. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(did_extensions=1)
  326. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(ringback=0)
  327. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action set(module_name=pbx)
  328. Dialplan: sofia/default/6617480240@117.247.91.162:5060 Action ivr(TESTING0)
  329. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(effective_destination_number=13049314867)
  330. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(effective_destination_number=13049314867)
  331. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [effective_destination_number]=[13049314867]
  332. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute sched_hangup(+6000 normal_clearing)
  333. EXECUTE sofia/default/6617480240@117.247.91.162:5060 sched_hangup(+6000 normal_clearing)
  334. 2018-12-19 08:04:21.570560 [DEBUG] switch_scheduler.c:249 Added task 98 switch_ivr_schedule_hangup (b122c820-0364-11e9-a0b3-51646c3ac3f3) to run at 1545212661
  335. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(callstart=2018-12-19 08:04:21)
  336. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(callstart=2018-12-19 08:04:21)
  337. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [callstart]=[2018-12-19 08:04:21]
  338. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(hangup_after_bridge=true)
  339. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(hangup_after_bridge=true)
  340. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [hangup_after_bridge]=[true]
  341. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(continue_on_fail=TRUE)
  342. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(continue_on_fail=TRUE)
  343. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [continue_on_fail]=[TRUE]
  344. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(account_id=11)
  345. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(account_id=11)
  346. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [account_id]=[11]
  347. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(parent_id=0)
  348. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(parent_id=0)
  349. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [parent_id]=[0]
  350. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(entity_id=0)
  351. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(entity_id=0)
  352. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [entity_id]=[0]
  353. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(call_processed=internal)
  354. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(call_processed=internal)
  355. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [call_processed]=[internal]
  356. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(call_direction=inbound)
  357. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(call_direction=inbound)
  358. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [call_direction]=[inbound]
  359. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(accountname=DID testing)
  360. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(accountname=DID testing)
  361. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [accountname]=[DID testing]
  362. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute export(t38_passthru=true)
  363. EXECUTE sofia/default/6617480240@117.247.91.162:5060 export(t38_passthru=true)
  364. 2018-12-19 08:04:21.570560 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [t38_passthru]=[true]
  365. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(fax_enable_t38=true)
  366. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(fax_enable_t38=true)
  367. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [fax_enable_t38]=[true]
  368. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(fax_enable_t38_request=true)
  369. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(fax_enable_t38_request=true)
  370. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [fax_enable_t38_request]=[true]
  371. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(origination_rates_did=ID:7|CODE:^13049314867.*|DESTINATION:13049314867|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|ACCID:11)
  372. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(origination_rates_did=ID:7|CODE:^13049314867.*|DESTINATION:13049314867|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|ACCID:11)
  373. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [origination_rates_did]=[ID:7|CODE:^13049314867.*|DESTINATION:13049314867|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:0|INITIALBLOCK:0|RATEGROUP:0|MARKUP:0|ACCID:11]
  374. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(origination_rates=ID:0|CODE:13049314867|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|COST:0|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|ACCID:11)
  375. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(origination_rates=ID:0|CODE:13049314867|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|COST:0|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|ACCID:11)
  376. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [origination_rates]=[ID:0|CODE:13049314867|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|COST:0|INC:60|INITIALBLOCK:0|RATEGROUP:1|MARKUP:0|ACCID:11]
  377. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(original_caller_id_name=6617480240)
  378. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(original_caller_id_name=6617480240)
  379. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [original_caller_id_name]=[6617480240]
  380. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(original_caller_id_number=6617480240)
  381. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(original_caller_id_number=6617480240)
  382. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [original_caller_id_number]=[6617480240]
  383. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(effective_caller_id_name=6617480240)
  384. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(effective_caller_id_name=6617480240)
  385. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [effective_caller_id_name]=[6617480240]
  386. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(effective_caller_id_number=6617480240)
  387. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(effective_caller_id_number=6617480240)
  388. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [effective_caller_id_number]=[6617480240]
  389. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(receiver_accid=11)
  390. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(receiver_accid=11)
  391. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [receiver_accid]=[11]
  392. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute export(presence_data=x|||QA Test(9139839482)|||^13049314867.* // 13049314867 // 0.00000||||||DID)
  393. EXECUTE sofia/default/6617480240@117.247.91.162:5060 export(presence_data=x|||QA Test(9139839482)|||^13049314867.* // 13049314867 // 0.00000||||||DID)
  394. 2018-12-19 08:04:21.570560 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [presence_data]=[x|||QA Test(9139839482)|||^13049314867.* // 13049314867 // 0.00000||||||DID]
  395. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(did_calltype=8)
  396. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(did_calltype=8)
  397. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [did_calltype]=[8]
  398. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(did_extensions=1)
  399. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(did_extensions=1)
  400. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [did_extensions]=[1]
  401. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(ringback=0)
  402. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(ringback=0)
  403. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [ringback]=[0]
  404. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute set(module_name=pbx)
  405. EXECUTE sofia/default/6617480240@117.247.91.162:5060 set(module_name=pbx)
  406. 2018-12-19 08:04:21.570560 [DEBUG] mod_dptools.c:1548 SET sofia/default/6617480240@117.247.91.162:5060 [module_name]=[pbx]
  407. 2018-12-19 08:04:21.570560 [NOTICE] switch_core_session.c:2914 Execute ivr(TESTING0)
  408. 2018-12-19 08:04:21.570560 [DEBUG] switch_core_session.c:2647 Application ivr Requires media! pre_answering channel sofia/default/6617480240@117.247.91.162:5060
  409. 2018-12-19 08:04:21.570560 [INFO] switch_core_session.c:2649 Sending early media
  410. 2018-12-19 08:04:21.570560 [DEBUG] switch_core_media.c:6878 AUDIO RTP [sofia/default/6617480240@117.247.91.162:5060] 139.162.54.235 port 21554 -> 117.247.91.162 port 22238 codec: 0 ms: 20
  411. 2018-12-19 08:04:21.570560 [DEBUG] switch_rtp.c:4111 Starting timer [soft] 160 bytes per 20ms
  412. 2018-12-19 08:04:21.570560 [DEBUG] switch_core_media.c:7179 sofia/default/6617480240@117.247.91.162:5060 Set 2833 dtmf send payload to 101
  413. 2018-12-19 08:04:21.570560 [DEBUG] switch_core_media.c:7186 sofia/default/6617480240@117.247.91.162:5060 Set 2833 dtmf receive payload to 101
  414. 2018-12-19 08:04:21.570560 [DEBUG] switch_core_media.c:7209 sofia/default/6617480240@117.247.91.162:5060 Set rtp dtmf delay to 40
  415. 2018-12-19 08:04:21.570560 [DEBUG] mod_sofia.c:2364 Ring SDP:
  416. v=0
  417. o=FreeSWITCH 1545185107 1545185108 IN IP4 139.162.54.235
  418. s=FreeSWITCH
  419. c=IN IP4 139.162.54.235
  420. t=0 0
  421. m=audio 21554 RTP/AVP 0 101
  422. a=rtpmap:0 PCMU/8000
  423. a=rtpmap:101 telephone-event/8000
  424. a=fmtp:101 0-16
  425. a=ptime:20
  426. a=sendrecv
  427.  
  428. 2018-12-19 08:04:21.570560 [NOTICE] mod_sofia.c:2367 Pre-Answer sofia/default/6617480240@117.247.91.162:5060!
  429. 2018-12-19 08:04:21.570560 [DEBUG] switch_channel.c:3474 (sofia/default/6617480240@117.247.91.162:5060) Callstate Change RINGING -> EARLY
  430. EXECUTE sofia/default/6617480240@117.247.91.162:5060 ivr(TESTING0)
  431. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exit'
  432. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-sub'
  433. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-exec-app'
  434. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-play-sound'
  435. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-back'
  436. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_menu.c:743 switch_ivr_menu_stack_xml_add binding 'menu-top'
  437. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_menu.c:880 building menu 'TESTING0'
  438. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_menu.c:964 binding menu action 'menu-exec-app' to '/^(\d{2,20})$/'
  439. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_menu.c:483 Executing IVR menu TESTING0
  440. 2018-12-19 08:04:21.590550 [DEBUG] sofia.c:7084 Channel sofia/default/6617480240@117.247.91.162:5060 entering state [early][183]
  441. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_menu.c:661 IVR menu 'TESTING0' no input detected
  442. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_menu.c:661 IVR menu 'TESTING0' no input detected
  443. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_menu.c:661 IVR menu 'TESTING0' no input detected
  444. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_menu.c:505 Maximum failures
  445. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_menu.c:673 exit-sound 'voicemail/vm-goodbye.wav'
  446. 2018-12-19 08:04:21.590550 [DEBUG] switch_ivr_play_say.c:1498 Codec Activated L16@8000hz 1 channels 20ms
  447. 2018-12-19 08:04:21.910540 [DEBUG] switch_rtp.c:7271 Correct audio ip/port confirmed.
  448. 2018-12-19 08:04:22.051308 [DEBUG] switch_ivr_play_say.c:1942 done playing file /usr/local/freeswitch/sounds/en/us/callie/voicemail/vm-goodbye.wav
  449. 2018-12-19 08:04:22.051308 [NOTICE] switch_core_state_machine.c:385 sofia/default/6617480240@117.247.91.162:5060 has executed the last dialplan instruction, hanging up.
  450. 2018-12-19 08:04:22.051308 [NOTICE] switch_core_state_machine.c:387 Hangup sofia/default/6617480240@117.247.91.162:5060 [CS_EXECUTE] [NORMAL_CLEARING]
  451. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:650 (sofia/default/6617480240@117.247.91.162:5060) State EXECUTE going to sleep
  452. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6617480240@117.247.91.162:5060) Running State Change CS_HANGUP (Cur 1 Tot 1483)
  453. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:850 (sofia/default/6617480240@117.247.91.162:5060) Callstate Change EARLY -> HANGUP
  454. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:852 (sofia/default/6617480240@117.247.91.162:5060) State HANGUP
  455. 2018-12-19 08:04:22.051308 [DEBUG] mod_sofia.c:438 Channel sofia/default/6617480240@117.247.91.162:5060 hanging up, cause: NORMAL_CLEARING
  456. 2018-12-19 08:04:22.051308 [DEBUG] mod_sofia.c:577 Responding to INVITE with: 480
  457. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:60 sofia/default/6617480240@117.247.91.162:5060 Standard HANGUP, cause: NORMAL_CLEARING
  458. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:852 (sofia/default/6617480240@117.247.91.162:5060) State HANGUP going to sleep
  459. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:619 (sofia/default/6617480240@117.247.91.162:5060) State Change CS_HANGUP -> CS_REPORTING
  460. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6617480240@117.247.91.162:5060) Running State Change CS_REPORTING (Cur 1 Tot 1483)
  461. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:938 (sofia/default/6617480240@117.247.91.162:5060) State REPORTING
  462. 2018-12-19 08:04:22.051308 [INFO] mod_json_cdr.c:271 Process [b122c820-0364-11e9-a0b3-51646c3ac3f3.cdr.json]
  463. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:174 sofia/default/6617480240@117.247.91.162:5060 Standard REPORTING, cause: NORMAL_CLEARING
  464. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:938 (sofia/default/6617480240@117.247.91.162:5060) State REPORTING going to sleep
  465. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:610 (sofia/default/6617480240@117.247.91.162:5060) State Change CS_REPORTING -> CS_DESTROY
  466. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_session.c:1665 Session 1483 (sofia/default/6617480240@117.247.91.162:5060) Locked, Waiting on external entities
  467. 2018-12-19 08:04:22.051308 [NOTICE] switch_core_session.c:1683 Session 1483 (sofia/default/6617480240@117.247.91.162:5060) Ended
  468. 2018-12-19 08:04:22.051308 [NOTICE] switch_core_session.c:1687 Close Channel sofia/default/6617480240@117.247.91.162:5060 [CS_DESTROY]
  469. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:741 (sofia/default/6617480240@117.247.91.162:5060) Running State Change CS_DESTROY (Cur 0 Tot 1483)
  470. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:751 (sofia/default/6617480240@117.247.91.162:5060) State DESTROY
  471. 2018-12-19 08:04:22.051308 [DEBUG] mod_sofia.c:343 sofia/default/6617480240@117.247.91.162:5060 SOFIA DESTROY
  472. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:181 sofia/default/6617480240@117.247.91.162:5060 Standard DESTROY
  473. 2018-12-19 08:04:22.051308 [DEBUG] switch_core_state_machine.c:751 (sofia/default/6617480240@117.247.91.162:5060) State DESTROY going to sleep
  474. 2018-12-19 08:04:22.570552 [DEBUG] switch_scheduler.c:144 Deleting task 98 switch_ivr_schedule_hangup (b122c820-0364-11e9-a0b3-51646c3ac3f3)
  475. 2018-12-19 08:04:23.090555 [NOTICE] switch_channel.c:1104 New Channel sofia/default/6617480240@117.247.91.162:5060 [b2173554-0364-11e9-a0d3-51646c3ac3f3]
  476. 2018-12-19 08:04:23.090555 [DEBUG] switch_core_state_machine.c:584 (sofia/default/6617480240@117.247.91.162:5060) Running State Change CS_NEW (Cur 1 Tot 1484)
  477. 2018-12-19 08:04:23.090555 [DEBUG] sofia.c:9873 sofia/default/6617480240@117.247.91.162:5060 receiving invite from 117.247.91.162:5060 version: 1.6.19 git 7a77e0b 2017-07-13 12:01:45Z 64bit
  478.