[Freeswitch-users] Caller id number in dialplan

Michael S Collins msc at freeswitch.org
Sat Aug 16 10:43:00 PDT 2008


Also there are several extensions in conf/dialplan/default.xml that  
have multiple conditions. Check out "local extension" for a good  
example of how to have multiple conditions for a single extension.

-MC

Sent from my iPhone

On Aug 16, 2008, at 10:32 AM, Brian West <brian at freeswitch.org> wrote:

> 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
>
>
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org




More information about the FreeSWITCH-users mailing list