[Asterisk-Users] extensions question
Brancaleoni Matteo
mbrancaleoni at espia.it
Fri Jun 11 15:16:53 MST 2004
What's that ?
Dial("SIP/-083601e0", "ZAP/g1/h") ?
why 'h' ?
don't use exten => _.,1,blah , but
try with exten =>_X.,1,blah
Matteo
Il ven, 2004-06-11 alle 23:59, Christian Gatti ha scritto:
> ser forwards a sip message with extension 99999996 to asterisk which
> plays my 'userisoffline' message and hangs up and should stop here but
> instead asterisk continues to process the match everything extension ._
> and dials out which is not what I want...
>
> if I change the starting priority of the Dial app to a higher level
> than 3 asterisk stops after the hangup but then doesn't accept any other
> extension that should be dialed.
>
> how can this be done?
>
> part of extensions.conf:
> ------------------------
> ...
> exten => 99999996,1,Wait(1)
> exten => 99999996,2,Playback(userisoffline)
> exten => 99999996,3,Hangup()
>
> ... other extensions with more than 3 priority levels
>
> exten => _.,1,Dial,ZAP/g1/${EXTEN}
> exten => _.,2,Hangup()
> ...
>
> and the output in asterisk:
> ---------------------------
>
> Connected to Asterisk CVS-05/26/04-02:55:14 currently running on sip (pid = 7472)
> -- Remote UNIX connection
> -- Executing Wait("SIP/-083601e0", "1") in new stack
> -- Executing Playback("SIP/-083601e0", "userisoffline") in new stack
> -- Playing 'userisoffline' (language 'en')
> -- Executing Hangup("SIP/-083601e0", "") in new stack
> == Spawn extension (from-ser, 99999996, 3) exited non-zero on 'SIP/-083601e0'
> -- Executing Dial("SIP/-083601e0", "ZAP/g1/h") in new stack
> -- Called g1/h
> -- Channel 1, span 1 got hangup
> Jun 11 23:39:43 WARNING[491541]: app_dial.c:349 wait_for_answer: Unable to forward voice
> Jun 11 23:39:43 WARNING[491541]: app_dial.c:349 wait_for_answer: Unable to forward voice
> -- Hungup 'Zap/1-1'
> == No one is available to answer at this time
> -- Executing Hangup("SIP/-083601e0", "") in new stack
> == Spawn extension (from-ser, h, 2) exited non-zero on 'SIP/-083601e0'
--
Brancaleoni Matteo <mbrancaleoni at espia.it>
Espia Srl
More information about the asterisk-users
mailing list