From Torrid Parrot, 6 Years ago, written in Plain Text.
This paste is a reply to Untitled from Buff Dove
- view diff
Embed
  1. <extension name="outbound.substitute.did" continue="false" uuid="44e6ff4b-b59d-4306-a5c4-f83154e53918">
  2.         <condition field="destination_number" expression="^\+?1?((214|972|817|682|469)\d{7})$"" break="on-true">
  3.                 <action application="set" data="sip_h_X-accountcode=${accountcode}"/>
  4.                 <action application="set" data="call_direction=outbound"/>
  5.                 <action application="unset" data="call_timeout"/>
  6.                 <action application="set" data="hangup_after_bridge=true"/>
  7.                 <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
  8.                 <action application="set" data="effective_caller_id_number=214XXXXXXX"/>
  9.                 <action application="set" data="inherit_codec=true"/>
  10.                 <action application="set" data="ignore_display_updates=true"/>
  11.                 <action application="set" data="callee_id_number=$1"/>
  12.                 <action application="set" data="continue_on_fail=true"/>
  13.                 <action application="bridge" data="sofia/gateway/cdd01212-7d61-4c99-8fc5-f3c5078eb277/1$1"/>
  14.         </condition>
  15.         <condition field="destination_number" expression="^\+?1?((212|917|718)\d{7})$"" break="on-true">
  16.                 <action application="set" data="sip_h_X-accountcode=${accountcode}"/>
  17.                 <action application="set" data="call_direction=outbound"/>
  18.                 <action application="unset" data="call_timeout"/>
  19.                 <action application="set" data="hangup_after_bridge=true"/>
  20.                 <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
  21.                 <action application="set" data="effective_caller_id_number=212XXXXXX"/>
  22.                 <action application="set" data="inherit_codec=true"/>
  23.                 <action application="set" data="ignore_display_updates=true"/>
  24.                 <action application="set" data="callee_id_number=$1"/>
  25.                 <action application="set" data="continue_on_fail=true"/>
  26.                 <action application="bridge" data="sofia/gateway/cdd01212-7d61-4c99-8fc5-f3c5078eb277/1$1"/>
  27.         </condition>
  28.         <condition field="destination_number" expression="^\+?1?((561|954|305)\d{7})$"" break="on-true">
  29.                 <action application="set" data="sip_h_X-accountcode=${accountcode}"/>
  30.                 <action application="set" data="call_direction=outbound"/>
  31.                 <action application="unset" data="call_timeout"/>
  32.                 <action application="set" data="hangup_after_bridge=true"/>
  33.                 <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
  34.                 <action application="set" data="effective_caller_id_number=561XXXXXXX"/>
  35.                 <action application="set" data="inherit_codec=true"/>
  36.                 <action application="set" data="ignore_display_updates=true"/>
  37.                 <action application="set" data="callee_id_number=$1"/>
  38.                 <action application="set" data="continue_on_fail=true"/>
  39.                 <action application="bridge" data="sofia/gateway/cdd01212-7d61-4c99-8fc5-f3c5078eb277/1$1"/>
  40.         </condition>
  41.         <condition field="destination_number" expression="^\+?1?(\d{10})$">
  42.                 <action application="set" data="sip_h_X-accountcode=${accountcode}"/>
  43.                 <action application="set" data="call_direction=outbound"/>
  44.                 <action application="unset" data="call_timeout"/>
  45.                 <action application="set" data="hangup_after_bridge=true"/>
  46.                 <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
  47.                 <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
  48.                 <action application="set" data="inherit_codec=true"/>
  49.                 <action application="set" data="ignore_display_updates=true"/>
  50.                 <action application="set" data="callee_id_number=$1"/>
  51.                 <action application="set" data="continue_on_fail=true"/>
  52.                 <action application="bridge" data="sofia/gateway/cdd01212-7d61-4c99-8fc5-f3c5078eb277/1$1"/>
  53.         </condition>
  54. </extension>