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

2008-05-24 Thread Barry Miller
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 =_1NXXNXX,n,Set( CALLERID(num) = ${IF ( $[${CALLERID(num)} 140] ? ${MAINSTUB}${CALLERID(num)} : ${MAINNUMBER} )})

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

2008-05-24 Thread sean darcy
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 =_1NXXNXX,n,Set( CALLERID(num) = ${IF ( $[${CALLERID(num)} 140] ? ${MAINSTUB}${CALLERID(num)} :

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

2008-05-23 Thread sean darcy
I'm trying to set the outgoing caller id to the DID number, but only if the extension is greater than 140. MAINSTUB is simply the first 7 digits of the main number. sip.conf sets the CALLERID(num) to the extension. exten =_1NXXNXX,n,Set(CALLERID(num)=${MAINSTUB}${CALLERID(num)}) works. But

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

2008-05-23 Thread Barry Miller
On Fri, May 23, 2008 at 05:08:28PM -0400, sean darcy wrote: This doesn't work: exten =_1NXXNXX,n,Set( CALLERID(num) = ${IF ( $[${CALLERID(num)} 140] ? ${MAINSTUB}${CALLERID(num)} : ${MAINNUMBER} )}) Change IF ( to IF(. ___ -- Bandwidth and

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

2008-05-23 Thread sean darcy
Barry Miller wrote: On Fri, May 23, 2008 at 05:08:28PM -0400, sean darcy wrote: This doesn't work: exten =_1NXXNXX,n,Set( CALLERID(num) = ${IF ( $[${CALLERID(num)} 140] ? ${MAINSTUB}${CALLERID(num)} : ${MAINNUMBER} )}) Change IF ( to IF(. Thanks for the response. Tried it this