[Asterisk-Users] extensions question
Aaron J. Angel
aaron at angel-family.com
Tue Jun 15 12:18:52 MST 2004
The 'h' came from ${EXTEN} -- the channel hang up, so it went to extension
'h', which I'm assuming doesn't exist, so it matched against '_.'. Try
adding exten => h,1,Hangup() to extensions.conf in the relevent context,
Christian.
> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com
> [mailto:asterisk-users-admin at lists.digium.com] On Behalf Of
> Brancaleoni Matteo
> Sent: Friday 11 June 2004 17:17
> To: asterisk-users at lists.digium.com
> Subject: Re: [Asterisk-Users] extensions question
>
> 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
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list