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.

--
_____________________________________________________________________
-- 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