Hey!, I remember gotoif one of the many things in asterisk that I added
before I started FS. ;)
On Fri, Oct 3, 2008 at 4:57 AM, henkoegema <[EMAIL PROTECTED]>wrote:
>
>
> 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.
>
>
> _______________________________________________
> Freeswitch-users mailing list
> [email protected]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:[EMAIL PROTECTED] <[EMAIL PROTECTED]>
GTALK/JABBER/PAYPAL:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:[EMAIL PROTECTED] <[EMAIL PROTECTED]>
iax:[EMAIL PROTECTED]/888
googletalk:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
pstn:213-799-1400
_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org