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} )})
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)} :
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
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
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