From Akash, 5 Years ago, written in FreeSWITCH.
- go back
Embed
Viewing differences between and Dialplan of SIP-DID
  1. <document type="freeswitch/xml">
  2. <section name="dialplan" description="ASTPP Dialplan">
  3. <context name="default">
  4. <extension name="78126292721">
  5. <condition field="destination_number" expression="78126292721">
  6. <action application="set" data="effective_destination_number=78126292721"/>
  7. <action application="sched_hangup" data="+6000 normal_clearing"/>
  8. <action application="set" data="callstart=2019-07-17 10:56:05"/>
  9. <action application="set" data="hangup_after_bridge=true"/>
  10. <action application="set" data="continue_on_fail=!USER_BUSY"/>
  11. <action application="set" data="account_id=25"/>
  12. <action application="set" data="parent_id=0"/>
  13. <action application="set" data="entity_id=3"/>
  14. <action application="set" data="call_processed=internal"/>
  15. <action application="set" data="call_direction=inbound"/>
  16. <action application="set" data="accountname=default"/>
  17. <action application="export" data="t38_passthru=true"/>
  18. <action application="set" data="fax_enable_t38=true"/>
  19. <action application="set" data="fax_enable_t38_request=true"/>
  20. <action application="set" data="origination_rates_did=ID:15|CODE:^.78126292721.*|DESTINATION:78126292721|CONNECTIONCOST:0.00000|INCLUDEDSECONDS:0|COST:0.00000|INC:1|INITIALBLOCK:1|RATEGROUP:0|MARKUP:0|ACCID:57"/>
  21. <action application="set" data="origination_rates=ID:0|CODE:78126292721|DESTINATION:Local|CONNECTIONCOST:0|INCLUDEDSECONDS:0|COST:0|INC:60|INITIALBLOCK:60|RATEGROUP:1|MARKUP:0|ACCID:25"/>
  22. <action application="export" data="is_recording=0"/>
  23. <action application="export" data="media_bug_answer_req=true"/>
  24. <action application="export" data="RECORD_STEREO=true"/>
  25. <action application="export" data="record_sample_rate=8000"/>
  26. <action application="export" data="execute_on_answer=record_session $${base_dir}/recordings/f21ea244-1b2a-4c60-8195-7c40f2891785.mp3"/>
  27. <action application="set" data="receiver_accid=57"/>
  28. <action application="set" data="calltype=SIP-DID"/>
  29. <action application="bridge" data="{sip_invite_params=user=LOCAL,sip_from_uri=9371322020@${domain_name}}[leg_timeout=0]sofia/${sofia_profile_name}/9371322020@51.75.232.75"/>
  30. <condition field="${cond(${user_data 9371322020@${domain_name} param vm-enabled} == true ? YES : NO)}" expression="^YES$">
  31. <action application="answer"/>
  32. <action application="export" data="voicemail_alternate_greet_id=78126292721"/>
  33. <action application="voicemail" data="default $${domain_name} 9371322020"/>
  34. <anti-action application="hangup" data="${originate_disposition}"/>
  35. </condition>
  36. </condition>
  37. </extension>
  38. </context>
  39. </section>
  40. </document>