[Asterisk-Dev] Conditional Goto and GoSub use 'n'?

Kevin P. Fleming kpfleming at digium.com
Fri Nov 25 10:59:09 MST 2005


Rushowr wrote:

> exten=test,1,Gotoif($["${DIALSTATUS}" = "${BUSY}")?n+3:n) 
> 

No, this is not supported. You need to use labels, as such:

exten => test,1,GotoIf(...?case1:case2)
exten => test,n(case2),...
exten => ...
exten => test,n(case1)...
exten => ...

(and this most definitely not a -dev question)



More information about the asterisk-dev mailing list