In article <e31f701f427b0d2f49c266511b01abca.squir...@webmail.harte-lyne.ca>,
James B. Byrne <byrn...@harte-lyne.ca> wrote:
> I have thsi code in a dial plan.  The purpose of which is to set
> distinctive ring tones for internal and transferred calls.
> 
> 
> exten => _.,1,Noop(CALLERID_ALL=${CALLERID(all)})
> 
> exten => _.,n,Set(CallerIDNum=${CALLERID(num)})

I believe _. is frowned upon because it can potentially match h, i, and so on.
Use _X. instead, or just the full pattern of _417XX

> 
> exten => _417XX,n,GotoIf(
>   $[$["${CallerIDNum}" > "41799"] |
>     $["${CallerIDNum}" < "41700"]]?notfromlocal:)
> 
> But I am getting a message say there is no variable to check.  So what
> I have done that is wrong?

Is that step split into three lines in your dialplan? I think you might
need to put it all on a single line.

Cheers
Tony
-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to