From: Richard Mudgett Date: Mon, 19 Sep 2011 18:46:40 +0000 (+0000) Subject: Made Dial d and H options no longer immediately auto-answer the calling leg. X-Git-Tag: 1.8.8.0-rc1~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07a3a611a9c920dacf41b389d42060b7ee9a5f7b;p=thirdparty%2Fasterisk.git Made Dial d and H options no longer immediately auto-answer the calling leg. The Dial d and H options break DTMF attended transfer atxferdropcall option. 1) Party A calls party B. 2) Party B does a DTMF attended transfer to Party C. If the dialplan uses the Dial d or H options to call Party C then the Dial application answers the call immediately before initiating the call leg to Party C. The premature answer causes the transfer code to not invoke the atxferdropcall=no behavior for a blonde transfer since Party C has "answered". The transfer code thinks that Party B has "consulted" with Party C when Party B hangs up and completes the transfer to Party A. Party A now hears ringback until Party C actually answers. ASTERISK-13294 Dial d option. ASTERISK-11067 Dial H option to disconnect before answer. The referenced issues made Dial answer with the d and H options because many SIP and ISDN phones cannot send DTMF before the call is connected. * Made require the dialplan to control when or if the call needs to be answered to use the Dial application d and H options. (The call is no longer surprise answered when using the Dial d or H options.) Review: https://reviewboard.asterisk.org/r/1381/ JIRA AST-623 JIRA AST-666 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@336658 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/UPGRADE.txt b/UPGRADE.txt index c2a7bd0961..c7258aa7c6 100644 --- a/UPGRADE.txt +++ b/UPGRADE.txt @@ -147,6 +147,12 @@ From 1.6.2 to 1.8: events/responses output the connected line ID as caller ID. These party ID's are now separate. +* The Dial application d and H options do not automatically answer the call + anymore. It broke DTMF attended transfers. Since many SIP and ISDN phones + cannot send DTMF before a call is connected, you need to answer the call + leg to those phones before using Dial with these options for them to have + any effect before the dialed party answers. + * The outgoing directory (where .call files are read) now uses inotify to detect file changes instead of polling the directory on a regular basis. If your outgoing folder is on a NFS mount or another network file system, diff --git a/apps/app_dial.c b/apps/app_dial.c index 3867ebc76a..de8deb6827 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -120,6 +120,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") a call to be answered. Exit to that extension if it exists in the current context, or the context defined in the EXITCONTEXT variable, if it exists. + + Many SIP and ISDN phones cannot send DTMF digits until the call is + connected. If you wish to use this option with these phones, you + can use the Answer application before dialing. +