[Home]

Summary:ASTERISK-10422: "H" and "h" option of dial command does not work if an extension uses explicit Answer
Reporter:peekyb (peekyb)Labels:
Date Opened:2007-10-01 04:32:36Date Closed:2007-10-02 09:47:38
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_dial
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:If the dial command is called with either the "H" or "h" option (let caller press * to disconnect or  let callee press * to disconnect), The following occurs.

1. If the dialplan uses the answer command to to explicitly answer the call on the extension, the asterisk key is not recognised and neither party can use it to disconnect the call.

2. If the dialplan does not explicitly answer an extension (implicit answer from the dial command), the H and h option work as expected.
   

****** ADDITIONAL INFORMATION ******

It is easy to reproduce eg:-

;NEITHER party can use the * key to disconnect the call
exten=>017,1,Answer
exten=>017,2,Dial(SIP/alan,100,Hh)

;EITHER party can use the * key to disconnect
exten=>016,1,Dial(SIP/alan,100,Hh)



Comments:By: Digium Subversion (svnbot) 2007-10-01 08:30:26

Repository: asterisk
Revision: 84158

U   branches/1.4/apps/app_dial.c

------------------------------------------------------------------------
r84158 | file | 2007-10-01 08:30:25 -0500 (Mon, 01 Oct 2007) | 4 lines

Only attempt early bridging if the options given to Dial() permit it.
(closes issue ASTERISK-10422)
Reported by: peekyb

------------------------------------------------------------------------

By: Digium Subversion (svnbot) 2007-10-01 08:33:59

Repository: asterisk
Revision: 84159

_U  trunk/
U   trunk/apps/app_dial.c

------------------------------------------------------------------------
r84159 | file | 2007-10-01 08:33:59 -0500 (Mon, 01 Oct 2007) | 12 lines

Merged revisions 84158 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84158 | file | 2007-10-01 10:49:36 -0300 (Mon, 01 Oct 2007) | 4 lines

Only attempt early bridging if the options given to Dial() permit it.
(closes issue ASTERISK-10422)
Reported by: peekyb

........

------------------------------------------------------------------------

By: Digium Subversion (svnbot) 2007-10-02 09:47:38

Repository: asterisk
Revision: 84403

_U  team/group/v6/trunk/
U   team/group/v6/trunk/Makefile
U   team/group/v6/trunk/Makefile.rules
U   team/group/v6/trunk/apps/app_dial.c
U   team/group/v6/trunk/apps/app_meetme.c
U   team/group/v6/trunk/apps/app_minivm.c
U   team/group/v6/trunk/channels/Makefile
U   team/group/v6/trunk/channels/chan_agent.c
U   team/group/v6/trunk/channels/chan_iax2.c
U   team/group/v6/trunk/channels/chan_mgcp.c
U   team/group/v6/trunk/channels/chan_misdn.c
U   team/group/v6/trunk/channels/chan_sip.c
U   team/group/v6/trunk/channels/chan_skinny.c
U   team/group/v6/trunk/channels/iax2-parser.c
U   team/group/v6/trunk/codecs/g722/Makefile
U   team/group/v6/trunk/configs/musiconhold.conf.sample
U   team/group/v6/trunk/include/asterisk/lock.h
U   team/group/v6/trunk/main/asterisk.c
U   team/group/v6/trunk/main/channel.c
U   team/group/v6/trunk/main/cli.c
U   team/group/v6/trunk/main/dnsmgr.c
U   team/group/v6/trunk/main/frame.c
U   team/group/v6/trunk/main/manager.c
U   team/group/v6/trunk/main/rtp.c
U   team/group/v6/trunk/main/say.c
U   team/group/v6/trunk/main/utils.c
U   team/group/v6/trunk/pbx/dundi-parser.c
U   team/group/v6/trunk/pbx/pbx_ael.c
U   team/group/v6/trunk/res/Makefile
U   team/group/v6/trunk/res/ael/ael.tab.c
U   team/group/v6/trunk/res/ael/ael.y
U   team/group/v6/trunk/res/ael/pval.c
U   team/group/v6/trunk/res/res_agi.c
U   team/group/v6/trunk/res/res_config_odbc.c
U   team/group/v6/trunk/res/res_musiconhold.c
U   team/group/v6/trunk/utils/check_expr.c

------------------------------------------------------------------------
r84403 | simon.perreault | 2007-10-02 09:47:37 -0500 (Tue, 02 Oct 2007) | 278 lines

Merged revisions 84159,84161-84162,84164-84165,84167-84169,84171-84174,84176,84207,84237,84272,84275,84300,84327,84329-84331,84368,84371 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r84159 | file | 2007-10-01 09:53:09 -0400 (Mon, 01 Oct 2007) | 12 lines

Merged revisions 84158 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84158 | file | 2007-10-01 10:49:36 -0300 (Mon, 01 Oct 2007) | 4 lines

Only attempt early bridging if the options given to Dial() permit it.
(closes issue ASTERISK-10422)
Reported by: peekyb

........

................
r84161 | file | 2007-10-01 09:59:13 -0400 (Mon, 01 Oct 2007) | 14 lines

Merged revisions 84160 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84160 | file | 2007-10-01 10:57:42 -0300 (Mon, 01 Oct 2007) | 6 lines

Fix randomness. save_pos was being set to 0 initially instead of -1, causing it to jump to position 0 when moh started.
(closes issue ASTERISK-10420)
Reported by: jamesgolovich
Patches:
     asterisk-mohpos2.diff.txt uploaded by jamesgolovich (license 176)

........

................
r84162 | file | 2007-10-01 10:02:26 -0400 (Mon, 01 Oct 2007) | 6 lines

Don't register the dnsmgr refresh CLI command twice.
(closes issue ASTERISK-10417)
Reported by: jamesgolovich
Patches:
     asterisk-dnsmgrclireg.diff.txt uploaded by jamesgolovich (license 176)

................
r84164 | file | 2007-10-01 10:12:05 -0400 (Mon, 01 Oct 2007) | 11 lines

Blocked revisions 84163 via svnmerge

........
r84163 | file | 2007-10-01 11:10:47 -0300 (Mon, 01 Oct 2007) | 4 lines

Remove chan_usbradio config file from tree, it is not present in here.
(closes issue ASTERISK-10403)
Reported by: casper

........

................
r84165 | file | 2007-10-01 10:21:06 -0400 (Mon, 01 Oct 2007) | 6 lines

Add MP4 to part of the SDP code.
(closes issue ASTERISK-10385)
Reported by: ruikubo
Patches:
     chan_sip.patch uploaded by ruikubo (license 250)

................
r84167 | russell | 2007-10-01 10:27:02 -0400 (Mon, 01 Oct 2007) | 10 lines

Merged revisions 84166 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84166 | russell | 2007-10-01 09:24:49 -0500 (Mon, 01 Oct 2007) | 2 lines

Simplify the CAN_EARLY_BRIDGE macro a bit.

........

................
r84168 | russell | 2007-10-01 10:43:56 -0400 (Mon, 01 Oct 2007) | 8 lines

Add a new option for files-based music on hold to ensure that the sort order
of the files is alphabetical.

(closes issue ASTERISK-10416)
Reported by: jamesgolovich
Patches:
     asterisk-mohsortalpha.diff.txt uploaded by jamesgolovich (license 176)

................
r84169 | russell | 2007-10-01 10:55:10 -0400 (Mon, 01 Oct 2007) | 7 lines

Don't set the full command string until after verifying that there is not
another CLI command with the same command text registered.  This prevents
a crash if someone accidentally calls ast_cli_register()  on the same CLI
command data twice.  This also fixes a small bug where the helpers list
would get unlocked without being locked if building the full command failed.
(closes issue ASTERISK-10419, reported by jamesgolovich, patched by me)

................
r84171 | russell | 2007-10-01 11:06:14 -0400 (Mon, 01 Oct 2007) | 14 lines

The trunk version of this patch also includes a couple more small clean fixes
from IgorG.

Merged revisions 84170 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84170 | russell | 2007-10-01 10:00:56 -0500 (Mon, 01 Oct 2007) | 3 lines

Remove another file in "make clean".
(closes issue ASTERISK-10379, paravoid)

........

................
r84172 | russell | 2007-10-01 11:17:15 -0400 (Mon, 01 Oct 2007) | 7 lines

Simplify code by using the -= and