[asterisk-commits] mmichelson: branch group/issue8824 r143897 - /team/group/issue8824/apps/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 22 15:22:47 CDT 2008


Author: mmichelson
Date: Mon Sep 22 15:22:47 2008
New Revision: 143897

URL: http://svn.digium.com/view/asterisk?view=rev&rev=143897
Log:
Make parallel changes to app_queue that have been added to app_dial
so that call-forwards will signal the proper information to the
calling channel.


Modified:
    team/group/issue8824/apps/app_queue.c

Modified: team/group/issue8824/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/team/group/issue8824/apps/app_queue.c?view=diff&rev=143897&r1=143896&r2=143897
==============================================================================
--- team/group/issue8824/apps/app_queue.c (original)
+++ team/group/issue8824/apps/app_queue.c Mon Sep 22 15:22:47 2008
@@ -2473,6 +2473,7 @@
 					winner = NULL;
 					continue;
 				} else if (!ast_strlen_zero(o->chan->call_forward)) {
+					struct ast_party_redirecting *apr = &o->chan->redirecting;
 					char tmpchan[256];
 					char *stuff;
 					char *tech;
@@ -2501,6 +2502,8 @@
 						ast_string_field_set(o->chan, accountcode, in->accountcode);
 						o->chan->cdrflags = in->cdrflags;
 
+						ast_party_redirecting_copy(&o->chan->redirecting, apr);
+
 						if (o->chan->cid.cid_rdnis)
 							ast_free(o->chan->cid.cid_rdnis);
 						o->chan->cid.cid_rdnis = ast_strdup(S_OR(in->macroexten, in->exten));
@@ -2509,6 +2512,8 @@
 
 						ast_party_caller_copy(&o->chan->cid, &in->cid);
 						ast_party_connected_line_copy(&o->chan->connected, &in->connected);
+
+						ast_redirecting_update(in, apr);
 
 						if (ast_call(o->chan, tmpchan, 0)) {
 							ast_log(LOG_NOTICE, "Failed to dial on local channel for call forward to '%s'\n", tmpchan);




More information about the asterisk-commits mailing list