[asterisk-users] What is my syntax error here?

Tony Mountifield tony at softins.co.uk
Wed Jul 24 09:28:35 CDT 2013


In article <e31f701f427b0d2f49c266511b01abca.squirrel at webmail.harte-lyne.ca>,
James B. Byrne <byrnejb at 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: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list