search for: hangupcause

Displaying 20 results from an estimated 225 matches for "hangupcause".

2006 Jun 03
2
Busy Signals after hangup
I've not seen an answer to this in any forum. I make a call through Asterisk, with a VOIP phone, doesn't matter which. The call gets made, I leave a voicemail, or complete the call in some manner, and the other side hangs up. I hear a busy signal on the phone on my end. If I have an extension that looks like this, after the hangup() is executed, my phone gives busy signals until I
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....
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 7.10.2015 v 15:26 Ross Beer napsal(a): Hi, I have the following code that operates when a channel is hung-...
2018 Mar 14
2
DIALSTATUS vs HANGUPCAUSE
Hello list, Hope all doing well! I've been checking some cases when a Dial fails and dialplan execution continues to handle this. I am finding it a little confusing how we should handle the DIALSTATUS and the HANGUPCAUSE in this situation.... More specifically, I am facing a case in version 13.6.0 where I am getting a DIALSTATUS=BUSY and HANGUPCAUSE=19 after receiving a 480 SIP error. Seems wrong to me, since 480 should be converted to HANGUPCAUSE=19 and DIALSTATUS = NOANSWER (https://wiki.asterisk.org/wiki/display...
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 be...
2018 Mar 14
2
DIALSTATUS vs HANGUPCAUSE
Thanks Dovid! Indeed looks a bug but regardless of this, this problem made me think that the HANGUPCAUSE could be used for this purpose with benefits. I couldn't find an explanation about when DIALSTATUS would actually be better. The HANGUPCAUSE was reworked in version 11 ( https://wiki.asterisk.org/wiki/display/AST/Hangup+Cause) but I didn't find someone actually stating it is a better altern...
2008 Dec 29
1
1.6, CDR and h extension
I have two version 1.6 Asterisks running. One is a small hobbyist thing just at home, and the other is handling calls for several customers. On both, I have added the line exten => h,1,Set(CDR(hangupcause)=${HANGUPCAUSE}) to all relevant contexts. On my little hobbyist box this works perfectly; all calls have their hangupcauses recorded with cdr_adaptive_odbc and cdr_custom. On the production server, it only works sporadically; for 4 out of 5 calls the hangupcause field is empty. If I look at the...
2006 Apr 21
0
HANGUPCAUSE on SIP channels
Hopefully I'm not just missing some little detail here. We're trying to set the HANGUPCAUSE on SIP channels to have our softswitch play the proper recording instead of answering the call on Asterisk to play the message. It appears that no matter what the HANGUPCAUSE is set to, Asterisk always just sends "603 Declined". I looked through the source code briefly and it appears...
2011 Apr 15
5
Possible bug in Hangup() (Asterisk 1.4.x)
Hello, On an Asterisk 1.4.33.1 in a simple scenario: [test] exten => _X.,1,Dial(SIP/12345 at peer01,,,) exten => i,1,Hangup(${HANGUPCAUSE}) exten => t,1,Hangup(${HANGUPCAUSE}) exten => h,1,Hangup(${HANGUPCAUSE}) I have noticed that no matter what value we set in the Hangup(<cause code>) commands, if the call is not answered by peer01 for any reason, the actual cause code returned to the calling party is a 503, no mat...
2006 Apr 04
5
Hangupcause is not enough on PRI
Hi, I'm using Asterisk and a TE110P E1 PRI in Chile. When I call to a disconnected number or any not operational number, the telco sends the Hangupcause disconnection code and an audio message notifying the disconnection cause to the user. Asterisk does not allow the user to hear the audio message form the telco, instead it cuts the call. Any other legacies PRI PBX I've tested allow the user to hear the audio message from the telco. A few mon...
2010 Dec 22
8
Possible Bug (Include ${HANGUPCAUSE} in CDR)
...that CDR values such as "end" and "billsec" may be ; retrieved inside of of this extension. The default value is "no". endbeforehexten=no The default is set to no so why can't I store any CDR values in my h extension. exp.. exten => h,n,Set(CDR(cause_code)=${HANGUPCAUSE}) I need the cause code stored. Really what I need to be able to do is in the h quickly store some values to the CDR then. For the write of the CDR and stopping the billing seconds. Then continue to process some cleanup funcitons. How can I work arround asterisk not honoring the endbeforehexte...
2011 Jan 26
0
Variable HANGUPCAUSE always empty with DAHDI
...d I use "GET FULL VARIABLE ${answeredtime}" or "GET FULL VARIABLE ${dialstatus}" and get valid information. Sometimes "dialstatus" has the value "CONGESTION" OR "CANCEL". In this cases I tried to get the hangupcase with "GET FULL VARIABLE ${hangupcause}" but I always get an empty result. Examples: [...] [Jan 25 09:23:18] VERBOSE[28228] res_agi.c: <DAHDI/64-1>AGI Rx << GET FULL VARIABLE ${answeredtime} [Jan 25 09:23:18] VERBOSE[28228] res_agi.c: <DAHDI/64-1>AGI Tx >> 200 result=1 () [...] [Jan 25 09:51:00] VERBOSE[...
2007 Oct 25
3
Getting SIP Response Code from HANGUPCAUSE
I'd like to grab the SIP response code that comes back from an INVITE. The HANGUPCAUSE gives the converted ISDN cause code. Anyone know of a way to get the SIP response code instead? Doug. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part ------------...
2018 Jun 09
3
getting real sip status after dial
Hi, Is there any way I can get exact sip status from pjsip after a dial ? or all we can get is asterisk hangup causes ? Thanks in advance. KKh
2009 May 18
0
${HANGUPCAUSE} is not printed when call ends or is interrupted
...${EXTEN:1}) exten => _00ZXXXXXXX,n,NoOp(DIALSTATUS is now ${DIALSTATUS}) exten => _00ZXXXXXXX,n,GoToIf($["${DIALSTATUS}" = "ANSWER"]?free:occupied) exten => _00ZXXXXXXX,n(free),NoOp(national conversation : dialstatus free) exten => _00ZXXXXXXX,n,NoOp(hangup-cause = ${HANGUPCAUSE}) exten => _00ZXXXXXXX,n,Hangup() exten => _00ZXXXXXXX,n(occupied),NoOp(Telenetlijn occupied) exten => _00ZXXXXXXX,n,Playtones(busy) exten => _00ZXXXXXXX,n,Congestion(10) exten => _00ZXXXXXXX,n,NoOp(hangup-cause = ${HANGUPCAUSE}) exten => _00ZXXXXXXX,n,Hangup() exten => _00ZXX...
2010 Dec 22
0
Include ${HANGUPCAUSE} in CDR
I am trying to include the ${HANGUPCAUSE} in my mySQL cdr tables. I have a field called cause_code but it won't write. I belive it is because the record has already been written by the time I hit the h section of the code. How might I get this info into the CDR. I need this info for Quality of Service as well as route checking. An...
2006 Apr 13
0
Hangupcause to handle Called party disconnect ? PSTN----E1----OldPBX---E1--Asterisk
...tes that the equipment sending this cause has received a message such that the procedures do not indicate that this is a permissible message to receive while in the call state, or a STATUS message was received indicating an incompatible call state. I hope you can advice me. Is it affordable to use Hangupcause? what we need is that, if the called party hangs, asterisk should hang (safety reasons on billing).. exten => _2XXXXXXXX,1,Dial(Zap/g1/${EXTEN}) exten => _2XXXXXXXX,2,gotoif,$[${HANGUPCAUSE} = 16]?99999|1 exten => 99999,1,Hangup I'm not sure if this is possible neither recommended,...
2006 Nov 08
1
HANGUPCAUSE for unalocated number?
Hello, On your BRI or PRI's what do you guys get as HANGUPCAUSE when dialing an unalocated number? I always get 3 (no route) which is less than helpful.
2009 Mar 15
1
X-Asterisk-HangupCause - how to disable this?
Hi, Is there any way to tell Asterisk not to generate additional headers like: X-Asterisk-HangupCause: Normal Clearing X-Asterisk-HangupCauseCode: 16 I can't find any relevant option in sip.conf file :-( Thanks for help. Chris
2008 Mar 17
6
Handling 3 different call ending causes
Hello List, I'm using a dialstring like the one below. I want to have three different things happening depending on exit cause. Dial(SIP/${phonenumber},20,gL(20000[:5000][:5000])) These 3 things could happen: 1, Caller hangs up 2, Callee hangs up 3, The 20 seconds is up and call is terminated from Asterisk. Is there a way to separate these 3? Thanks, Best regards, Tobias --------------