Hi all, I need a goto If statement syntax that check if a variable is not null then go to dialplan 1 else go to dialplan2 Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090928/dad77200/attachment.htm
michel freiha wrote:> Hi all, > > I need a goto If statement syntax that check if a variable is not > null then go to dialplan 1 else go to dialplan2 >exten => s,n,GotoIf($["${conference.room}" != ""]?s-process,1:s-notexist,1) Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
michel freiha escribi?:> Hi all, > > I need a goto If statement syntax that check if a variable is not > null then go to dialplan 1 else go to dialplan2 > > RegardsHi, Use the function EXISTS() inside your GotoIf. http://www.voip-info.org/wiki/index.php?page=Asterisk+func+exists Cheers, -- Ing. Miguel Molina Grupo de Tecnolog?a Millenium Phone Center
extension.ael: if (0!=${MYVARIABLE}) { ... } or test for empty/unset variables, use: ${EXISTS()} or ${ISNULL()} regards klaus michel freiha schrieb:> Hi all, > > I need a goto If statement syntax that check if a variable is not null > then go to dialplan 1 else go to dialplan2 > > Regards > > > ------------------------------------------------------------------------ > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2009 - October 13 - 15 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users