On Thu, 19 Mar 2009 19:20:42 -0500 "Cary Fitch" <[email protected]> wrote: > The only conditional command I know of in Asterisk is "GotoIF".
There is also GosubIf and ExecIf.. full list here: http://www.voip-info.org/wiki-Asterisk+-+documentation+of+application+commands#Alphabeticallist > Is there a simple "IF" that doesn't have to goto anywhere? > It is the "IF" construct I am looking for, don't worry about the rest > of the syntax, or what A or B is. Now please take note, I'm very new to this and have never written a dialplan, but based on my understanding you could fudge the logic: exten _713NXXXXXX,GosubIf($A = $B?labelc:nextpriority) exten _512NXXXXXX,GosubIf($A = $B?labeld:nextpriority) labelc: Set($C="Houston Call") Return() labeld: Set($C="Austin Call") Return() etc... -- Spiro Harvey Knossos Networks Ltd 021-295-1923 www.knossos.net.nz
signature.asc
Description: PGP signature
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
