[Freeswitch-users] Caller id number in dialplan
Brian West
brian at freeswitch.org
Sat Aug 16 10:32:16 PDT 2008
That example you have is nested... here is an example that isn't.
<extension name="Outbound_ip24">
<condition field="destination_number" expression="^(.+)$"
break="on-false"/> <-- notice the closing tag. You can stack but you
can't nest.
<condition field="caller_id_number" expression="^(100)$">
<action application="bridge" data="sofia/$${domain}/
140%imyrvold.dyndns.org"/>
</condition>
<condition field="caller_id_number" expression="^(140)$">
<action application="bridge" data="sofia/$${domain}/
100%imyrvold.dyndns.org"/>
</condition>
</extension>
On Aug 16, 2008, at 11:59 AM, Ivan C Myrvold wrote:
> <extension name="Outbound_ip24">
> <condition field="destination_number" expression="^(.+)$"
> break="on-false">
> <condition field="caller_id_number" expression="^(100)$">
> <action application="bridge" data="sofia/$${domain}/
> 140%imyrvold.dyndns.org"/>
> </condition>
> <condition field="caller_id_number" expression="^(140)$">
> <action application="bridge" data="sofia/$${domain}/
> 100%imyrvold.dyndns.org"/>
> </condition>
> </condition>
> </extension>
Brian West
sip:brian at freeswitch.org
More information about the FreeSWITCH-users
mailing list