- <extension name="outbound.substitute.did" continue="false" uuid="44e6ff4b-b59d-4306-a5c4-f83154e53918">
- <condition field="destination_number" expression="^\+?1?((214|972|817|682|469)\d{7})$"" break="on-true">
- <action application="set" data="sip_h_X-accountcode=${accountcode}"/>
- <action application="set" data="call_direction=outbound"/>
- <action application="unset" data="call_timeout"/>
- <action application="set" data="hangup_after_bridge=true"/>
- <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
- <action application="set" data="effective_caller_id_number=214XXXXXXX"/>
- <action application="set" data="inherit_codec=true"/>
- <action application="set" data="ignore_display_updates=true"/>
- <action application="set" data="callee_id_number=$1"/>
- <action application="set" data="continue_on_fail=true"/>
- <action application="bridge" data="sofia/gateway/cdd01212-7d61-4c99-8fc5-f3c5078eb277/1$1"/>
- </condition>
- <condition field="destination_number" expression="^\+?1?((212|917|718)\d{7})$"" break="on-true">
- <action application="set" data="sip_h_X-accountcode=${accountcode}"/>
- <action application="set" data="call_direction=outbound"/>
- <action application="unset" data="call_timeout"/>
- <action application="set" data="hangup_after_bridge=true"/>
- <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
- <action application="set" data="effective_caller_id_number=212XXXXXX"/>
- <action application="set" data="inherit_codec=true"/>
- <action application="set" data="ignore_display_updates=true"/>
- <action application="set" data="callee_id_number=$1"/>
- <action application="set" data="continue_on_fail=true"/>
- <action application="bridge" data="sofia/gateway/cdd01212-7d61-4c99-8fc5-f3c5078eb277/1$1"/>
- </condition>
- <condition field="destination_number" expression="^\+?1?((561|954|305)\d{7})$"" break="on-true">
- <action application="set" data="sip_h_X-accountcode=${accountcode}"/>
- <action application="set" data="call_direction=outbound"/>
- <action application="unset" data="call_timeout"/>
- <action application="set" data="hangup_after_bridge=true"/>
- <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
- <action application="set" data="effective_caller_id_number=561XXXXXXX"/>
- <action application="set" data="inherit_codec=true"/>
- <action application="set" data="ignore_display_updates=true"/>
- <action application="set" data="callee_id_number=$1"/>
- <action application="set" data="continue_on_fail=true"/>
- <action application="bridge" data="sofia/gateway/cdd01212-7d61-4c99-8fc5-f3c5078eb277/1$1"/>
- </condition>
- <condition field="destination_number" expression="^\+?1?(\d{10})$">
- <action application="set" data="sip_h_X-accountcode=${accountcode}"/>
- <action application="set" data="call_direction=outbound"/>
- <action application="unset" data="call_timeout"/>
- <action application="set" data="hangup_after_bridge=true"/>
- <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/>
- <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/>
- <action application="set" data="inherit_codec=true"/>
- <action application="set" data="ignore_display_updates=true"/>
- <action application="set" data="callee_id_number=$1"/>
- <action application="set" data="continue_on_fail=true"/>
- <action application="bridge" data="sofia/gateway/cdd01212-7d61-4c99-8fc5-f3c5078eb277/1$1"/>
- </condition>
- </extension>