search for: peerbeingconsid

Displaying 3 results from an estimated 3 matches for "peerbeingconsid".

Did you mean: peerbeingconside
2018 Jun 05
2
How to execute priorities following a caller hangup in a successful Dial?
...,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}) ; Ensure that the channel of the peer (i.e. outbound-channel) is configured with hangup handler. same => n,Dial(${AddressToReachPeer},,b(beforeDialingPeerConfigureItsChannelForPeerHangupHandling^s^1)) same => n,Hangup [beforeDialingPeerConfigureItsChannelForPeerHangupHandling] exten...
2018 Jun 05
2
How to execute priorities following a caller hangup in a successful Dial?
...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() [handleHangupByCallerOrPeer] exten => _.,1,NoOp(${PeerBeingConsidered}: Entered handleHangupByCallerOrPeer Calls ${Peer${IndexIntoPeers}CurrentCallsCount}) same => n,Set(GLOBAL(Peer${IndexIntoPeers}CurrentCallsCount)=$[${Peer${...
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