Displaying 3 results from an estimated 3 matches for "indexintopeers".
2018 Jun 05
2
How to execute priorities following a caller hangup in a successful Dial?
...er priorities
below are still not run when the peer hangs-up. The last line in the cli
when the peer hangs-up is still:
Strict RTP learning complete - Locking on source address
(Although sometimes there is also: Retransmission timeout reached on
transmission)
same =>
n(callPeer),Set(GLOBAL(CB${IndexIntoPeers}CurrentCallsCount)=$[${PeerCurrentCallsCount}
+ 1])
; Ensure that hangup by caller/inbound-channel will invoke
handleHangupByCaller.
same => n,Set(CHANNEL(hangup_handler_push)=handleHangupByCaller,s,1(args))
same => n,Set(AddressToReachPeer=SIP/${EXTEN:0:4}@${PeerBeingConsidered})
; Ensur...
2018 Jun 05
2
How to execute priorities following a caller hangup in a successful Dial?
Thanks, Eric. I just tried a hangup handler, but it's showing a similar
problem: When the peer hangs-up, the hangup handler is not invoked and the
caller channel remains open.
same =>
n(callPeer),Set(GLOBAL(Peer${IndexIntoPeers}CurrentCallsCount)=$[${PeerCurrentCallsCount}
+ 1])
same =>
n,Set(CHANNEL(hangup_handler_push)=handleHangupByCallerOrPeer,doesntMatter,1(args))
same => n,Set(DialForPeer=SIP/${EXTEN:0:4}@${PeerBeingConsidered})
same => n,Dial(${DialForPeer})
same => n,Hangup()
[handleHangupByCaller...
2018 Jun 05
2
How to execute priorities following a caller hangup in a successful Dial?
Thanks, Anthony.
I added both 'g' and 'F' options. Now, when the caller hangs-up, my cleanup
code is run by both the caller channel and the peer channel, but I only
want the caller channel to do that.
Also, when the peer hangs-up, there is no execution of the priorities
following the Dial.
Finally, is there a way to reset all globals, maybe as a variant of
"dialplan