Displaying 4 results from an estimated 4 matches for "epochatcallend".
2018 Jun 05
2
How to execute priorities following a caller hangup in a successful Dial?
....
exten => s,1,NoOp(${PeerBeingConsidered} peer channel: Entered
handleHangupByCallerOrPeer Calls ${CB${IndexIntoPeers}CurrentCallsCount})
same =>
n,Set(GLOBAL(CB${IndexIntoPeers}CurrentCallsCount)=$[${CB${IndexIntoPeers}CurrentCallsCount}
- 1])
same => n,Set(GLOBAL(${PeerBeingConsidered}EpochAtCallEnd)=${EPOCH})
same => n,Return
[handleHangupByCaller]
; Ensure that GLOBAL(CB${IndexIntoPeers}CurrentCallsCount) is decremented
after hangup, and end-of-call-epoch is set.
exten => s,1,NoOp(${PeerBeingConsidered} caller channel: Entered
handleHangupByCallerOrPeer Calls ${CB${IndexIntoPeers}Cu...
2018 Jun 05
2
How to execute priorities following a caller hangup in a successful Dial?
...OrPeer]
exten => _.,1,NoOp(${PeerBeingConsidered}: Entered
handleHangupByCallerOrPeer Calls ${Peer${IndexIntoPeers}CurrentCallsCount})
same =>
n,Set(GLOBAL(Peer${IndexIntoPeers}CurrentCallsCount)=$[${Peer${IndexIntoPeers}CurrentCallsCount}
- 1])
same => n,Set(GLOBAL(${PeerBeingConsidered}EpochAtCallEnd)=${EPOCH})
same => n,Return()
I've also tried replacing the Dial above with:
same => n,Dial(${DialForPeer},,g)
Cheers,
David
On Tue, Jun 5, 2018 at 7:38 AM, Eric Wieling <ewieling at nyigc.com> wrote:
> Use hangup handlers, they work around the issues with the 'h'...
2018 Jun 05
2
How to execute priorities following a caller hangup in a successful Dial?
...t;
Antony.Stone at asterisk.open.source.it> wrote:
> On Tuesday 05 June 2018 at 08:33:26, David P wrote:
>
> > We're using Asterisk 14.7.6 and I have a dialplan that ends like this:
> >
> > same => n,Dial(SIP/${EXTEN:0:4}@peer1)
> > same => n,Set(GLOBAL(EpochAtCallEnd)=${EPOCH})
> > same => n,Hangup()
> >
> > When peer1 hangsup, the priorities after the Dial are executed fine. But
> > when the caller hangsup during the Dial, the cleanup steps aren't done.
> > Why?
> >
> > I did read "Note that on a successfu...
2018 Jun 05
2
How to execute priorities following a caller hangup in a successful Dial?
We're using Asterisk 14.7.6 and I have a dialplan that ends like this:
same => n,Dial(SIP/${EXTEN:0:4}@peer1)
same => n,Set(GLOBAL(EpochAtCallEnd)=${EPOCH})
same => n,Hangup()
When peer1 hangsup, the priorities after the Dial are executed fine. But
when the caller hangsup during the Dial, the cleanup steps aren't done. Why?
I did read "Note that on a successful connection, in the absence of the g
and G modifiers (below), the D...