similar to: Looking for sample hangup_handler_pop and _wipe using vars

Displaying 20 results from an estimated 100 matches similar to: "Looking for sample hangup_handler_pop and _wipe using vars"

2018 Jul 28
3
Any way of "flattening out" 2 channels back into one?
Last question for today, I promise! The problem: In order to disconnect calls after x minutes, I need to do this: [setup] exten => setup,1,Answer() same => n,Set(LIMIT_PLAYAUDIO_CALLER=yes) same => n,Set(LIMIT_WARNING_FILE=/var/lib/asterisk/sounds/en_GB_TNS/time_limit_reached) same => n,Dial(Local/s at root/n,3,L(3540000:60000)) same => n,Hangup() [root] exten
2018 Jun 09
2
getting real sip status after dial
I think HANGUPCAUSE is channel agnostic. See: core show function HANGUPCAUSE Some thing like this IIRC: Set(my_cause=${HANGUPCAUSE(${CHANNEL(name)},tech)}) Remember the incoming leg of the call and the outgoing leg of the call are different channels. Make sure you are giving HANGUPCAUSE the correct channel. On 06/09/2018 02:01 PM, Khalil Khamlichi wrote: > It seems very weird to me
2018 Jun 05
2
How to execute priorities following a caller hangup in a successful Dial?
This has been super-helpful, Eric. However, the handleHangupByPeer 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 =>
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 =>
2017 Dec 27
3
Answered time on channel
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, Eric Wieling <ewieling at nyigc.com> wrote: > Don't use an 'h' extension, use
2012 Aug 20
1
Asterisk 11 queue calls - emulate Dial(b) functionality
I currently run an Asterisk 10 system with hotdesking functionality set up. Several of the users have worked with a system in the past that supported BLF on their IP phones, and would like their current phones to behave in a similar fashion. Right now I have a really kludgy system that mostly works, but doesn't consistently trigger the cleanup macro to "clear" the device state on
2015 Oct 06
2
PJSIP: how to retrieve underlying SIP Call-ID
Hello, I've started to play with PJSIP and got stuck at the following problem. I need to retrieve SIP Call-ID associated with PJSIP channel. For inbound channel I can use ${PJSIP_HEADER(read,Call-ID)}, but that doesn't work for outbound channel even in pre-dial or hangup handler. Whatever I do PJSIP_HEADER seem to be unable to read headers for outbound channel. Here's what I do:
2015 Oct 07
2
Storing HANGUPCAUSE in CDR
Hi, I have the following code that operates when a channel is hung-up: [record-hangupcause]exten => 1,n,Set(CDR(hangupcause)=${HANGUPCAUSE})exten => s,n,Return() Before the dial a hangup handler is registered: Set(CHANNEL(hangup_handler_push)=record-hangupcause,s,1) The routine is called and the variables are being set, however not on the channel's CDR which made the call. I believe this
2013 Mar 25
1
Asterisk 11, hangup-handlers, Local channels and channel originate
Hello, I'm giving hangup-handlers a try on a new Asterisk 11.2.1 setup. My plan is to use this handler to update my CDRs with values such as Asterish and Tech cause (see function HANGUP_CAUSE). I want to have my custom hangup-handler be run only once and when "the second channel" hangs up. At the moment, I'm issuing a couple of "channel originate Local/1 at mycontext1
2015 Oct 09
2
Storing HANGUPCAUSE in CDR
This was always possible in the past, however does not work in the current release. I believe this is a bug. To: asterisk-users at lists.digium.com From: cervajs at fpf.slu.cz Date: Fri, 9 Oct 2015 10:04:47 +0200 Subject: Re: [asterisk-users] Storing HANGUPCAUSE in CDR search in archives save the records to another table like cdr_extended Dne
2013 Mar 26
0
Asterisk 11, hangup-handlers, Local channels and channel originate [SOLVED]
2013/3/26 Richard Mudgett <rmudgett at digium.com> > > On 03/25/2013 05:17 PM, Olivier wrote: > > > Hello, > > > > > > I'm giving hangup-handlers a try on a new Asterisk 11.2.1 setup. > > > My plan is to use this handler to update my CDRs with values such > > > as > > > Asterish and Tech cause (see function HANGUP_CAUSE). >
2019 Dec 27
1
Handling a non-responsive peer after it answers
I'm looking for a way of detecting in my dialplan when a peer becomes non-responsive after answering. It seems that Asterisk knows when the peer becomes non-responsive because it logs "Remote UNIX connection disconnected" around the same time, and it seems that if there is no following "Remote UNIX connection" within a short time, then the peer can be considered
2020 Feb 26
1
Hangup-handler on failed calls
Hello, I have a setup with asterisk 16.8.0, I'm facing a problem where calls that fail (CONGESTION) don't have filled in some extra fields we add to the CDRs in the database. We use cdr_adaptive_odbc with MySQL as backend. To simplify the scenario: [sub-hanguphandler] exten => s,1,Set(CDR(foo)=${bar}) same => n,Return() [default] exten => _X.,1,NoOp(New test call) same =>
2019 Dec 30
1
Handling a non-responsive peer after it answers
Response below... On Fri, Dec 27, 2019 at 12:02 PM David P <davidswalkabout at gmail.com> wrote: > > > > > I'm looking for a way of detecting in my dialplan when a peer becomes > > non-responsive after answering. [deleted] Is there a way to configure > > a handler for this state? > > > > We use v14.7.6 and we dial the peer this way: > > >
2017 Dec 26
4
Answered time on channel
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)) Exten => h,1,NoOp(ANSWERED_TIME: ${ANSWEREDTIME} >>> DIAL_TIME: ${DIALEDTIME}
2020 Feb 05
1
Hangup hook to put back a call into a queue
hi, I hope someone can help me:-) we’ve got a freepbx server. there are 2 special extensions (2001, 2002). if someone calls this extensions (or a call is forwarded to these extensions) and these extension hangup (not the caller party), then we’d like to put the calls back into a queue (1000) and wouldn’t like to hangup. I read your description about hangup hooks:
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
2013 Mar 12
0
Calls getting "stuck open"
I have a system running Asterisk 11.2.1 that has had a couple calls between internal extensions get "stuck open". I didn't catch the verbose log for the first one, since I generally don't verbosely log to file, but the second one shows that the call that got stuck was dialed, but the caller hung up before the called device answered. This server is running a hotdesking
2006 Jul 11
1
instance vars in layouts
Hello List, The layouts contain the instance var @content_for_layout; is it possible that they may also contain the instance vars from a controller similar to the way a controller''s views do? cheers, - trav -- p [151,40,154,157,166,145,40,162,165,142,171].collect { |ii| eval ''"\\''+ii.to_s+''"'' }.join -------------- next part --------------
2006 Jul 14
0
Can''t see local vars and method params in breakpointer
Hi, Is there a trick to being able to see local variables and method parameters at a breakpoint? I could swear this used to work, but now I get "NameError: undefined local variable or method" when I try and look at anything other than instance variables. jh -- James Hughes Web application developer Vancouver, BC "Developing a coherent political analysis is in many respects