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

sean darcy seandarcy2 at gmail.com
Fri May 23 23:01:50 CDT 2008


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(".
> 

Thanks for the response.

Tried it this way:

exten =>_1NXXNXXXXXX,n,Set(CALLERID(num) = ${IF($[ ${CALLERID(num)} > 
140] ? $
{MAINSTUB}${CALLERID(num)} : ${MAINNUMBER})})

Same result.

sean




More information about the asterisk-users mailing list