Summary:ASTERISK-12711: H and h parameters do not hang up when * is dialed
Reporter:Max Börebäck (mboreback)Labels:
Date Opened:2008-09-11 10:34:22Date Closed:2011-06-07 14:08:14
Versions:Frequency of
Description:I have a context used with a call file to connect two phones.
I use the h and H parameter, and are using one sip device and one iax device in the connection.

I have the latest Trixbox version, Asterisk 1.4.20
When pressing the * nothing happens, I was hoping that the call should end.

IS there a configuration issue here?

I notised that there was a closed issue case 0009905 last yeare but there was not a clear solution.
Is the h and H parameter soposed to work in 1.4.20 and doues it require any special configurations for SIP and IAX phone devices to work.

My Dial command includes sending the destination to an IVR via a macro call, and this IVR includes an option to press *, and this is catched but it looks like DTMF signaling catching is turned of after the call is connected.
No indications in asterisk -rvvvvvvvvvvvvvvvvvv mode, it is only the sound of the pressed key that is transmitted in the headset.
Both for Iax and Sip device.
Comments:By: Leif Madsen (lmadsen) 2008-10-14 11:56:43

You'll need to provide the relevant portions of the dialplan, features.conf, and sip.conf in order to move this issue forward.

I see you're using trixbox -- please reproduce this issue on latest Asterisk 1.4 with a vanilla Asterisk (i.e. not on trixbox) if at all possible, as it very well could be a configuration issue.

Without the required information where we can reproduce the issue, it's going to be hard to move this issue forward.


By: Max Börebäck (mboreback) 2008-10-14 12:51:50

Ok, I have done some more investigation in this.
h works now with ** feature.conf look like this
But what I like to do is to determin that the called user pressed ** to disconnect the call, and not just hang up the phone.

Is there a way to get that information?

The context file where the call file connects the call person is included (it is simplifyed).
First thing in the context is caling up the destination, the destination ends up in a IVR to accept or decline the call. (The same can be done with privace option as I under stand.)

When the call is connected I like the destination via h option to be able to press ** to disconnect and I like to catch this to logg that the destination did this and not just hang up the phone when the conversation finished.

Is there a way to do that?

exten => s,1,Wait(1)
exten => s,n,Answer()
exten => s,n,Dial(Local/${DSTPHONE}@from-internal|60|trgM(dst-ivr^${CALLER_NAME}))
exten => s,n,Noop(After Dial)
; Destination hangup
exten => s,n,Goto(result-${PC_STATUS}|10)
;No we get here when destination hangup, both normal hangup and by pressing **
; We get here if the dst accepted the call and then pressed ** to abuse
exten => result-1,10,Playback(custom/callrejected)
exten => result-1,n,Hangup()
exten => h,1,Noop(PC - Hangup)
; HERE I LIKE TO LOG if destination pressed ** or just hangup
exten => h,n,system(/pc/bin/log_call ${DIALEDTIME}:::${ANSWEREDTIME}:::${PC_STATUS}:::${HANGUPCAUSE}:::${DIALSTATUS} )

By: Leif Madsen (lmadsen) 2008-10-14 13:10:16

As you've solved how to resolve your issue, I'm closing this as the latter part of your post is really a configuration issue which we can't support on the bug tracker. I would encourage you to check with the asterisk-users mailing list to determine if there is a method to solve your issue.

Unfortunately I can't think of anything off the top of my head, or I'd just mention it here for you. Sorry for that. Good luck!