[asterisk-users] Inbound call not dialing exten

A J Stiles asterisk_list at earthshod.co.uk
Thu Jun 16 04:42:35 CDT 2011


On Thursday 16 Jun 2011, mahesh katta wrote:
>     -- Executing Set("Zap/3-1", "Dest=50{EXTEN:-2}") in new
> stack
>
>     -- Executing MixMonitor("Zap/3-1",
> "/var/spool/asterisk/astrec/20110616-122003-0559566768-4578924-1308212403.2
>225.gsm|av(0)V(0)") in new stack
>     -- Executing Dial("Zap/3-1", "SIP/50{EXTEN:-2}||tTo") in new
> stack

Oops, my bad; I missed out a punctuation mark.  

Before I tell you the answer, though, have a good look at the console 
diagnostic messages and see if you can spot for yourself what it's doing 
wrong.  What is it trying to dial, and what *should* it be trying to dial?

And didn't it feel good, knowing you fixed it yourself?







----------  SPOILER FOLLOWS  ----------
There should be a $ sign in the "Set()" step:
Set(Dest=50${EXTEN:-2})
so it will use the rightmost 2 characters of ${EXTEN}.

-- 
AJS

Answers come *after* questions.



More information about the asterisk-users mailing list