[Asterisk-Users] Invalid context

Simon Brown Simon.Brown at otterson.com.au
Thu Jul 1 17:23:07 MST 2004


I am attempting to implement the new features added recently where you can
have "Goto(s-DIALSTATUS)" in the dial plan.
My extensions.conf looks like this:
exten => s,1,Dial(${ARG2},20,r)
exten => s,2,Goto(s-${DIALSTATUS})
exten => s-NOANSWER,1,Voicemail(u${ARG1}) exten =>
s-CHANUNAVAIL,1,Voicemail(b${ARG1})
exten => s-BUSY,1,Voicemail(b${ARG1})
exten => s-.,1,Voicemail(u${ARG1})

But this is what happens when no-one answers:
    -- Executing Macro("SIP/201-c410", "stdexten|201|SIP/201") in new stack
    -- Executing Dial("SIP/201-c410", "SIP/201|20|r") in new stack
    -- Called 201
    -- SIP/201-4d1f is ringing
    -- Nobody picked up in 20000 ms
    -- Executing Goto("SIP/201-c410", "s-NOANSWER") in new stack
    -- Goto (macro-stdexten,s,0)
    -- Timeout on SIP/201-c410
  == CDR updated on SIP/201-c410
    -- Executing Hangup("SIP/201-c410", "") in new stack
  == Spawn extension (sip, t, 1) exited non-zero on 'SIP/201-c410'

It tries to Goto (macro-stdexten,s,0)

Does anyone know why?

Simon Brown



More information about the asterisk-users mailing list