On Tue, 26 Dec 2017, Eric Wieling wrote:
Don't use an 'h' extension, use a hangup handler.
On 12/26/2017 04:43 PM, Steve Edwards wrote:
Why?
On Tue, 2 Jan 2018, Eric Wieling wrote:
From the hangup handler specification:
Hangup handlers are an alternative to
From the hangup handler specification:
Hangup handlers are an alternative to the h extension. They can be used
in addition to the h extension. The idea is to attach a Gosub routine to
a channel that will execute when the call hangs up. Whereas which h
extension gets executed depends on the
My suggestion is to stop trying to do this in the dialplan. Let asterisk
dialplan do it’s job and process the call. Manage this either through the AMI
events and call your scripts from there or if you are using an asterisk version
that has ARI then allow it to do your call set up and tear
Seems I hit this: https://issues.asterisk.org/jira/browse/ASTERISK-23133
On Wed, Dec 27, 2017 at 5:03 AM, Dovid Bender wrote:
> My issue seems to be that I am using local channels. So for instance if I
> have:
>
> [incoming]
> Exten => _X.,1,NooP()
> Exten =>
My issue seems to be that I am using local channels. So for instance if I
have:
[incoming]
Exten => _X.,1,NooP()
Exten => _X.,n,Dial(Local/${EXTEN}@out1/n)
Exten => _X.,n,Dial(Local/${EXTEN}@out2/n)
Exten => h,1,DumpChan()
[out1]
exten => _X.,1,Noop
same =>
It seems that what ever I set in my answer handler does not show up in the
hangup handler. In order to do billing I can't rely on the g option where
the caller hangs up the call. Looks like I can either use h or a hangup
handler along with the shared function.
On Tue, Dec 26, 2017 at 4:40 PM,
On Tue, 26 Dec 2017, Eric Wieling wrote:
Don't use an 'h' extension, use a hangup handler.
Why?
--
Thanks in advance,
-
Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST
Don't use an 'h' extension, use a hangup handler.
Use the MASTER_CHANNEL() function to set variables to ensure they are
always set in the "top most" channel. Below is an untested example, but
is inspired by dialplan code I use in production. Maybe it will help.
[outbound] ; this is called
Seems like what I needed was the SHARED function which is working perfectly.
On Tue, Dec 26, 2017 at 3:28 PM, Dovid Bender wrote:
> Hi,
>
> I have a dial plan where I need to notify an external system when a call
> was answered and when the call hung up. In both requests
Hi,
I have a dial plan where I need to notify an external system when a call
was answered and when the call hung up. In both requests the start time
needs to be the same. My Dialplan looks something like this:
[outbound]
Exten => _X.,1,Dial(SIP/${EXTEN}@1.1.1.1,,U(call-answer-from-carrier))
10 matches
Mail list logo