[asterisk-users] Problem with dialplan -> gotoif ?

Alex Samad alex at samad.com.au
Tue Sep 22 16:30:51 CDT 2009


On Tue, Sep 22, 2009 at 07:57:56AM -0400, Leif Madsen wrote:
> Alex Samad wrote:
> >                     4. GotoIf([${DIALSTATUS} = CHANUNAVAIL]?pt:ok) [pbx_config]
> 
> > i believe i have captured the relevant logging from the console. my problem is with  Gotoif statement
> > 
> >     -- Executing [s at dial-sipmnf-sippt-pstn:4] GotoIf("DAHDI/1-1", "[BUSY = CHANUNAVAIL]?pt:ok") in new stack
> >     -- Goto (dial-sipmnf-sippt-pstn,s,5)
> > 
> > 
> > from my understanding BUSY != CHANUNAVAIL, therefor it should have jumped to ok which is s,9.
> > 
> > What have I missed !
> 
> You have missed the leading $ in front of the $[...] portion.
> 
> Add the $, and things should start working as you expect.
thanks the bloody obvious :)

> 
> Leif Madsen.
> http://www.leifmadsen.com
> http://www.oreilly.com/catalog/asterisk
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20090923/6067ac9c/attachment.pgp 


More information about the asterisk-users mailing list