[Asterisk-Dev] Re: dialplan eval problem?

Brian West brian.west at mac.com
Tue Jun 7 22:02:30 MST 2005

>> exten => _9.,1,GotoIf($[${CALLERIDNUM} : 3091|3144]?cscid:ncid)
> I think you need "quotes" around ${CALLERIDNUM} if it could be empty.
> Ext 3030 may be currently doing: GotoIf($[ : 3091|3144]?cscid:ncid)

exten => _9.,1,GotoIf($[(${CALLERIDNUM}) : 3091|3144]?cscid:ncid)

Wrapping any var with () will cause it to work properly if the  
variable is NULL/EMPTY.

Anyway the syntax you are trying isn't valid.  I see no where in the  
help text or code of GotoIf that would imply this very logical way of  
doing it.

Then again why are you trying so hard this is simple:

exten => 9/_3091.,1,Goto(cscid)
exten => 9/_3144.,1,Goto(cscid)
exten => 9,1,Goto(ncid)

NEXT!!! :P

And yes that will work.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20050608/da242b38/attachment.htm

More information about the asterisk-dev mailing list