From TWS, 6 Years ago, written in XML.
- go back
Embed
Viewing differences between and Multi-tenant Outbound Route
  1. <extension name="Vitelity" continue="false" uuid="d42bc9a9-b849-4904-97d0-fef1a22a5549">
  2.     <condition field="${user_exists}" expression="false"/>
  3.     <condition field="destination_number" expression="^((?:\+?1)?(?:(?:[2-9]\d{2})?(?:[2-9]\d{6}))|(?:[2-9]11))$"/>
  4.         <action application="set" data="sip_h_X-accountcode=${accountcode}"/>
  5.         <action application="export" data="call_direction=outbound"/>
  6.         <action application="unset" data="call_timeout"/>
  7.         <action application="set" data="hangup_after_bridge=true"/>
  8.         <condition field="${outbound_caller_id_number}" expression="^\d+$">
  9.             <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
  10.             <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
  11.             <anti-action application="set" data="effective_caller_id_name=${domain_caller_id_name}"/>
  12.             <anti-action application="set" data="effective_caller_id_number=${domain_caller_id_number}"/>
  13.         </condition>
  14.         <action application="set" data="inherit_codec=true"/>
  15.         <action application="set" data="ignore_display_updates=true"/>
  16.         <action application="set" data="callee_id_number=$1"/>
  17.         <action application="set" data="continue_on_fail=true"/>
  18.         <action application="bridge" data="sofia/gateway/ea3f3fee-e67f-4eb7-83fc-ba4d8d2584b1/$1"/>
  19.     </condition>
  20. </extension>
  21.