[asterisk-commits] mmichelson: branch group/issue8824 r182626 - in /team/group/issue8824: ./ apps/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 17 13:21:16 CDT 2009
Author: mmichelson
Date: Tue Mar 17 13:21:11 2009
New Revision: 182626
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=182626
Log:
Resolve the conflict, reset automerge
Modified:
team/group/issue8824/ (props changed)
team/group/issue8824/CHANGES
team/group/issue8824/apps/app_dial.c
Propchange: team/group/issue8824/
------------------------------------------------------------------------------
automerge = *
Propchange: team/group/issue8824/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Tue Mar 17 13:21:11 2009
@@ -1,1 +1,1 @@
-/trunk:1-182583
+/trunk:1-182619
Modified: team/group/issue8824/CHANGES
URL: http://svn.digium.com/svn-view/asterisk/team/group/issue8824/CHANGES?view=diff&rev=182626&r1=182625&r2=182626
==============================================================================
--- team/group/issue8824/CHANGES (original)
+++ team/group/issue8824/CHANGES Tue Mar 17 13:21:11 2009
@@ -10,6 +10,12 @@
------------------------------------------------------------------------------
--- Functionality changes from Asterisk 1.6.2 to Asterisk 1.6.3 -------------
------------------------------------------------------------------------------
+
+*Applications
+------------
+ * Added progress option to the app_dial D() option. When progress DTMF is
+ present, those values are sent immediatly upon receiving a PROGRESS message
+ regardless if the call has been answered or not.
------------------------------------------------------------------------------
--- Functionality changes for COLP feature -----------------------------------
Modified: team/group/issue8824/apps/app_dial.c
URL: http://svn.digium.com/svn-view/asterisk/team/group/issue8824/apps/app_dial.c?view=diff&rev=182626&r1=182625&r2=182626
==============================================================================
--- team/group/issue8824/apps/app_dial.c (original)
+++ team/group/issue8824/apps/app_dial.c Tue Mar 17 13:21:11 2009
@@ -109,11 +109,13 @@
<option name="D" argsep=":">
<argument name="called" />
<argument name="calling" />
+ <argument name="progress" />
<para>Send the specified DTMF strings <emphasis>after</emphasis> the called
party has answered, but before the call gets bridged. The
<replaceable>called</replaceable> DTMF string is sent to the called party, and the
<replaceable>calling</replaceable> DTMF string is sent to the calling party. Both arguments
- can be used alone.</para>
+ can be used alone. If <replaceable>progress</replaceable> is specified, its DTMF is sent
+ immediately after receiving a PROGRESS message.</para>
</option>
<option name="e">
<para>Execute the <literal>h</literal> extension for peer after the call ends. This
@@ -789,7 +791,7 @@
static struct ast_channel *wait_for_answer(struct ast_channel *in,
struct chanlist *outgoing, int *to, struct ast_flags64 *peerflags,
struct privacy_args *pa,
- const struct cause_args *num_in, int *result)
+ const struct cause_args *num_in, int *result, char *dtmf_progress)
{
struct cause_args num = *num_in;
int prestart = num.busy + num.congestion + num.nochan;
@@ -972,6 +974,10 @@
ast_channel_early_bridge(in, c);
if (!ast_test_flag64(outgoing, OPT_RINGBACK))
ast_indicate(in, AST_CONTROL_PROGRESS);
+ if(!ast_strlen_zero(dtmf_progress)) {
+ ast_verb(3, "Sending DTMF '%s' to the called party as result of receiving a PROGRESS message.\n", dtmf_progress);
+ ast_dtmf_stream(c, in, dtmf_progress, 250, 0);
+ }
break;
case AST_CONTROL_VIDUPDATE:
ast_verb(3, "%s requested a video update, passing it to %s\n", c->name, in->name);
@@ -1547,7 +1553,7 @@
struct ast_bridge_config config = { { 0, } };
struct timeval calldurationlimit = { 0, };
- char *dtmfcalled = NULL, *dtmfcalling = NULL;
+ char *dtmfcalled = NULL, *dtmfcalling = NULL, *dtmf_progress=NULL;
struct privacy_args pa = {
.sentringing = 0,
.privdb_val = 0,
@@ -1598,12 +1604,11 @@
goto done;
}
-
if (ast_test_flag64(&opts, OPT_OPERMODE)) {
opermode = ast_strlen_zero(opt_args[OPT_ARG_OPERMODE]) ? 1 : atoi(opt_args[OPT_ARG_OPERMODE]);
ast_verb(3, "Setting operator services mode to %d.\n", opermode);
}
-
+
if (ast_test_flag64(&opts, OPT_DURATION_STOP) && !ast_strlen_zero(opt_args[OPT_ARG_DURATION_STOP])) {
calldurationlimit.tv_sec = atoi(opt_args[OPT_ARG_DURATION_STOP]);
if (!calldurationlimit.tv_sec) {
@@ -1615,8 +1620,9 @@
}
if (ast_test_flag64(&opts, OPT_SENDDTMF) && !ast_strlen_zero(opt_args[OPT_ARG_SENDDTMF])) {
- dtmfcalling = opt_args[OPT_ARG_SENDDTMF];
- dtmfcalled = strsep(&dtmfcalling, ":");
+ dtmf_progress = opt_args[OPT_ARG_SENDDTMF];
+ dtmfcalled = strsep(&dtmf_progress, ":");
+ dtmfcalling = strsep(&dtmf_progress, ":");
}
if (ast_test_flag64(&opts, OPT_DURATION_LIMIT) && !ast_strlen_zero(opt_args[OPT_ARG_DURATION_LIMIT])) {
@@ -1912,7 +1918,7 @@
}
}
- peer = wait_for_answer(chan, outgoing, &to, peerflags, &pa, &num, &result);
+ peer = wait_for_answer(chan, outgoing, &to, peerflags, &pa, &num, &result, dtmf_progress);
/* The ast_channel_datastore_remove() function could fail here if the
* datastore was moved to another channel during a masquerade. If this is
More information about the asterisk-commits
mailing list