[Freeswitch-users] GotoIf
Anthony Minessale
anthony.minessale at gmail.com
Fri Oct 3 06:17:02 PDT 2008
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 <pabx_freeswitch at telenet.be>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
> 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
>
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081003/2b90e671/attachment-0002.html
More information about the FreeSWITCH-users
mailing list