[Freeswitch-dev] condition check...
hi, all asterisk setup: exten => _X.,1,GotoIf($[${status1}=on]?n1:n2) exten => _X.,n(n1),GotoIf($[${status2}=off]?n3:n4) exten => _X.,(n2),GotoIf($[${status3}=X]?n5:n6) ... ... How do i implement in Freeswitch... Regards, -- Bhrugu Mehta Sr. S/W Engineer VOIP,Telephony Team (Asterisk, Opensips, Zaptel etc.) India
Bhrugu, Did you ever figure this out? Most likely you need to take a step back and look at the big picture. In FreeSWITCH you don't normally need to have a bunch of if-then type structures. What is the problem you are trying to solve? Chances are there is a much more elegant solution than trying to emulate these crude GotoIf statements. -MC On Thu, Nov 24, 2011 at 4:57 AM, Bhrugu Mehta <bhrugumehta@gmail.com> wrote:
hi, all
asterisk setup: exten => _X.,1,GotoIf($[${status1}=on]?n1:n2) exten => _X.,n(n1),GotoIf($[${status2}=off]?n3:n4) exten => _X.,(n2),GotoIf($[${status3}=X]?n5:n6) ... ...
How do i implement in Freeswitch...
Regards,
-- Bhrugu Mehta Sr. S/W Engineer VOIP,Telephony Team (Asterisk, Opensips, Zaptel etc.) India
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Ha, guess who wrote the gotoif app....? =p its unnecessary in the FreeSWITCH paradigm you can just the XML dialplan. On Thu, Nov 24, 2011 at 6:57 AM, Bhrugu Mehta <bhrugumehta@gmail.com> wrote:
hi, all
asterisk setup: exten => _X.,1,GotoIf($[${status1}=on]?n1:n2) exten => _X.,n(n1),GotoIf($[${status2}=off]?n3:n4) exten => _X.,(n2),GotoIf($[${status3}=X]?n5:n6) ... ...
How do i implement in Freeswitch...
Regards,
-- Bhrugu Mehta Sr. S/W Engineer VOIP,Telephony Team (Asterisk, Opensips, Zaptel etc.) India
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
On Tue, Nov 29, 2011 at 2:01 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
Ha, guess who wrote the gotoif app....? =p
I guess we need to add that one to http://cluecon.com/anthm.html. :) -MC
participants (3)
-
Anthony Minessale
-
Bhrugu Mehta
-
Michael Collins