[Freeswitch-dev] condition check...

Michael Collins msc at freeswitch.org
Tue Nov 29 22:05:26 MSK 2011


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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20111129/0e2893f7/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list