[Asterisk-Users] Re: Proposed solution for exit code priorityjumps
Adam Hart
adam at teragen.com.au
Wed Jan 14 21:30:34 MST 2004
Why don't we just go to a script, all this numbering and jumps everywhere
makes it too confusing. Hence why goto's shouldn't be used in programming.
my proposal:
[default]
1:
$ret = EnumLookup(${EXTEN})
if($ret == 2)
dial(blah)
else if($ret == 4)
answer()
Playback(sorry-no-enum-information)
else
dial(Zap/g1/${ENUM})
hangup()
s:
Playback(blah)
hangup()
-Adam
More information about the asterisk-users
mailing list