we also have the cond fsapi <action application="transfer" data="${cond(${caller_id_number}==1234 ? ${ext1} : ${ext2})}"/> On Sat, Oct 4, 2008 at 5:45 AM, Arnaldo de Moraes Pereira < ap@arnaldopereira.com> wrote:
On Sat, Oct 4, 2008 at 5:21 AM, henkoegema <pabx_freeswitch@telenet.be>wrote:
I discovered some small errors in previous threads concerning this item. (transfer i.s.o bridge)
To conclude:
Asterisk: ----------- exten => s,n,GotoIf($[${CALLERID(num)}=32476478861]?default,1000,1)
FS: ---- <extension name="Henk GSM"> <condition field="caller_id_number" expression="^32476378861$"> <action application="bridge" data="sofia/internal/1000%$${domain}"/> </condition> </extension>
Remember that this analogy is wrong. Asterisk's dialplan runs a goto when the expression is true, while FS' originates a call and bridge the two parties.
Henk -- View this message in context: http://www.nabble.com/GotoIf-tp19793170p19810038.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
-- Arnaldo M Pereira ap@arnaldopereira.com http://www.arnaldopereira.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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400