From TWS, 6 Years ago, written in Plain Text.
- 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.                 <action application="set" data="effective_caller_id_name=${domain_caller_id_name}"/>
  4.                 <action application="set" data="effective_caller_id_number=${domain_caller_id_number}"/>
  5.         </condition>
  6.         <condition field="${outbound_caller_id_number}" expression="^\d+$" break="never">
  7.                 <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
  8.         </condition>
  9.         <condition field="${outbound_caller_id_name}" expression="^.+$" break="never">
  10.                 <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
  11.         </condition>
  12.         <condition field="destination_number" expression="^((?:\+?1)?(?:(?:[2-9]\d{2})?(?:[2-9]\d{6}))|(?:[2-9]11))$">
  13.                 <action application="set" data="sip_h_X-accountcode=${accountcode}"/>
  14.                 <action application="export" data="call_direction=outbound"/>
  15.                 <action application="unset" data="call_timeout"/>
  16.                 <action application="set" data="hangup_after_bridge=true"/>
  17.                 <action application="set" data="inherit_codec=true"/>
  18.                 <action application="set" data="ignore_display_updates=true"/>
  19.                 <action application="set" data="callee_id_number=$1"/>
  20.                 <action application="set" data="continue_on_fail=true"/>
  21.                 <action application="bridge" data="sofia/gateway/ea3f3fee-e67f-4eb7-83fc-ba4d8d2584b1/$1"/>
  22.         </condition>
  23. </extension>