From Unique Rhinoceros, 4 Years ago, written in FreeSWITCH.
This paste is a reply to Re: Untitled from Crimson Earthworm
- view diff
Embed
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <document type="freeswitch/xml">
  3. <section name="dialplan" description="ASTPP Dialplan">
  4. <context name="default">
  5. <extension name="919426223273">
  6. <condition field="destination_number" expression="919426223273">
  7. <action application="set" data="effective_destination_number=919426223273"/>
  8. <action application="set" data="bridge_pre_execute_bleg_app=sched_hangup"/>
  9. <action application="set" data="bridge_pre_execute_bleg_data=+570 normal_clearing"/>
  10. <action application="set" data="callstart=2020-07-09 05:28:29"/>
  11. <action application="set" data="hangup_after_bridge=true"/>
  12. <action application="set" data="continue_on_fail=TRUE"/>
  13. <action application="set" data="account_id=2"/>
  14. <action application="set" data="parent_id=0"/>
  15. <action application="set" data="entity_id=0"/>
  16. <action application="set" data="call_processed=internal"/>
  17. <action application="set" data="call_direction=outbound"/>
  18. <action application="set" data="accountname=default"/>
  19. <action application="set" data="origination_rates=ID:2|CODE:^91.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|CT:|COST:0.20000|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|CI:0|ACCID:2"/>
  20. <action application="set" data="original_caller_id_name=7971992256"/>
  21. <action application="set" data="original_caller_id_number=7971992256"/>
  22. <action application="limit" data="db 4727985745 user_4727985745 1 !SWITCH_CONGESTION"/>
  23.  
  24. <action application="export" data="is_recording=1"/>
  25. <action application="export" data="media_bug_answer_req=true"/>
  26. <action application="export" data="record_sample_rate=8000"/>
  27. <action application="export" data="execute_on_answer=record_session $${recordings_dir}/${uuid}.wav"/>
  28. <action application="curl" data="https://109.68.167.154/truecname/check_score?source_main=7971992256&destination=919426223273" inline="true" />
  29. <action application="sleep" data="5000"/>
  30. <action application="set" data="truecname_response=$${curl_response_data}"/>
  31. <action application="set" data="truecname=TRUE"/>
  32. <anti-action application="set" data="truecname=FALSE"/>
  33. <anti-action application="hangup" data="TRUCNAME_SPAM_DESTINATION"/>
  34. <action application="set" data="effective_caller_id_name=7971992256"/>
  35. <action application="set" data="effective_caller_id_number=7971992256"/>
  36. <action application="set" data="calltype=STANDARD"/>
  37. <action application="set" data="termination_rates=ID:2|CODE:^91.*|DESTINATION:|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:0|INITIALBLOCK:0|TRUNK:1|PROVIDER:3"/>
  38. <action application="set" data="trunk_id=1"/>
  39. <action application="set" data="provider_id=3"/>
  40. <action application="set" data="gateway_routing_type=0"/>
  41. <action application="set" data="gateway_id=1"/>
  42. <action application="set" data="rate_flag=0"/>
  43. <action application="set" data="force_trunk_flag=0"/>
  44. <action application="export" data="presence_data=trunk_id=1"/>
  45. <action application="set" data="intcall=0"/>
  46. <action application="export" data="presence_data=x|||default(4727985745)|||^91.* //  // 0.20000 // trunk_id=|||YourProvider // ^91.* //  // 0.00000 // trunk_id=1|||STD|||103.85.10.190"/>
  47. <action application="bridge" data="[leg_timeout=30,absolute_codec_string=^^:PCMA:G729:PCMA]sofia/gateway/YourProvider/919426223273"/>
  48. </condition>
  49. </extension>
  50. </context>
  51. </section>
  52. </document>
captcha