[asterisk-users] dialplan syntax error: need new eyes

sean darcy seandarcy2 at gmail.com
Sat May 24 07:49:24 CDT 2008


Barry Miller wrote:
> On Sat, May 24, 2008 at 12:01:50AM -0400, sean darcy wrote:
>> Barry Miller wrote:
>>> On Fri, May 23, 2008 at 05:08:28PM -0400, sean darcy wrote:
>>>> This doesn't work:
>>>>
>>>> exten =>_1NXXNXXXXXX,n,Set( CALLERID(num) = ${IF ( $[${CALLERID(num)} > 
>>>> 140] ? ${MAINSTUB}${CALLERID(num)} : ${MAINNUMBER} )})
>>> Change "IF (" to "IF(".
>> Same result.
> 
> Sorry.  This time I actually tested it.  *After* de-spacing the " = ",
> 
> exten => test,n,Set(CALLERID(num)=${IF( $[${CALLERID(num)} > 140] ? ${MAINSTUB}${CALLERID(num)} : ${MAINNUMBER} )})
> exten => test,n,NoOp(${CALLERID(num)})
> 
> behaved properly.  At least with 1.4.19.1. 

I cut and pasted that, and got the same error. I'm still at 1.4.13. I'm 
also testing with a blank callerid. If you could test with a blank 
callerid, I'd appreciate it, but it looks like I need to upgrade.

  FWIW, every time I try to use
> whitespace to make a dialplan more readable, it jumps up and bites me.
> 
> Again, sorry for jumping in with an untested response.
> 
If you hadn't responded, tested or not, I'd still be going crazy staring 
at this.

Thanks for all your help.

sean




More information about the asterisk-users mailing list