[Freeswitch-users] GotoIf

henkoegema pabx_freeswitch at telenet.be
Fri Oct 3 02:57:10 PDT 2008



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/9999@$${domain}"/>
      </condition> 
      <condition field="${caller_id_number}"  expression="2002">
        <action application="bridge" data="sofia/internal/2004@$${domain}"/>
      </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/9999@$${domain}"/>
      </condition> 
</extension>

    <extension name="2020">
      <condition field="destination_number" expression="^2020$"/> 
      <condition field="${caller_id_number}"  expression="2002">
        <action application="bridge" data="sofia/internal/2004@$${domain}"/>
      </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.





More information about the FreeSWITCH-users mailing list