[asterisk-bugs] [Asterisk 0013461]: H and h parameters do not hang up when * is dialed

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Oct 14 12:51:51 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13461 
====================================================================== 
Reported By:                mboreback
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13461
Category:                   Applications/app_dial
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.20 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-09-11 10:34 CDT
Last Modified:              2008-10-14 12:51 CDT
====================================================================== 
Summary:                    H and h parameters do not hang up when * is dialed
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.

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0013315 Dial h option not operating as defined ...
====================================================================== 

---------------------------------------------------------------------- 
 (0093628) mboreback (reporter) - 2008-10-14 12:51
 http://bugs.digium.com/view.php?id=13461#c93628 
---------------------------------------------------------------------- 
Ok, I have done some more investigation in this.
h works now with ** feature.conf look like this
blindxfer=##
atxfer=*2
automon=*1
disconnect=**
;------------------
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?

[incoming]
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}
) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-14 12:51 mboreback      Note Added: 0093628                          
======================================================================




More information about the asterisk-bugs mailing list