Brian West-3 wrote:
> 
> Actually try this:
> 
> <extension name="ext1">
>    <condition field="${caller_id_number}" expression="^32484120169$">
>      <action application="transfer" data="1000 XML default"/>
>    </condition>
> </extension>
> 
> <extension name="ext2">
>    <condition field="${caller_id_number}" expression="^4732803429$">
>      <action application="transfer" data="terje XML default"/>
>    </condition>
> </extension>
> 
> <extension name="ext3">
>    <condition field="${caller_id_number}" expression="^32476378561$">
>      <action application="transfer" data="henk_gsm_disa XML default"/>
>    </condition>
> </extension>
> 
> .....
> .....
> 

The above works.   :jumping:


===========================================================

But I'm still puzzling with this:

<extension name="2020">
      <condition field="destination_number" expression="^2020$"/>
      <condition field="${caller_id_number}"  expression="2000">
        <action application="bridge" data="sofia/internal/[EMAIL PROTECTED]"/>
      </condition> 
      <condition field="${caller_id_number}"  expression="2002">
        <action application="bridge" data="sofia/internal/[EMAIL PROTECTED]"/>
      </condition> 
    </extension>

When I call 2020 from 2000 it's ok.
When I call 2020 from 2002 i't NOT ok.   (Call failed: 404 Not found) 

Is my syntax wrong?



However this works:

<extension name="2020">
      <condition field="destination_number" expression="^2020$"/> 
      <condition field="${caller_id_number}"  expression="2000">
        <action application="bridge" data="sofia/internal/[EMAIL PROTECTED]"/>
      </condition> 
</extension>

    <extension name="2020">
      <condition field="destination_number" expression="^2020$"/> 
      <condition field="${caller_id_number}"  expression="2002">
        <action application="bridge" data="sofia/internal/[EMAIL PROTECTED]"/>
      </condition> 
</extension>

Isn't it possible to combine the two extension name="2020"  into one
extension 2020

Henk

-- 
View this message in context: 
http://www.nabble.com/GotoIf-tp19793170p19794894.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to