[asterisk-commits] rmudgett: branch certified-1.8.11 r374806 - in /certified/branches/1.8.11: ./...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 10 16:12:24 CDT 2012
Author: rmudgett
Date: Wed Oct 10 16:12:20 2012
New Revision: 374806
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=374806
Log:
app_queue: Made pass connected line updates from the caller to ringing queue members.
Party A calls Party B
Party B puts Party A on hold.
Party B calls a queue.
Ringing queue member D sees Party B identification.
Party B transfers Party A to the queue.
Queue member D does not get a connected line update for Party A.
Queue member D answers the call and still sees Party B information.
However, if Party A later transfers the call to Party C then queue member
D gets a connected line update for Party C.
* Made pass connected line updates from the caller to queue members while
the queue members are ringing.
(closes issue AST-1017)
Reported by: Thomas Arimont
(closes issue ABE-2886)
Reported by: Thomas Arimont
Tested by: rmudgett
........
Merged revisions 374801 from https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier
........
Merged revisions 374802 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
certified/branches/1.8.11/ (props changed)
certified/branches/1.8.11/apps/app_queue.c
Propchange: certified/branches/1.8.11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: certified/branches/1.8.11/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/certified/branches/1.8.11/apps/app_queue.c?view=diff&rev=374806&r1=374805&r2=374806
==============================================================================
--- certified/branches/1.8.11/apps/app_queue.c (original)
+++ certified/branches/1.8.11/apps/app_queue.c Wed Oct 10 16:12:20 2012
@@ -3801,6 +3801,7 @@
}
return NULL;
}
+
if ((f->frametype == AST_FRAME_DTMF) && caller_disconnect && (f->subclass.integer == '*')) {
ast_verb(3, "User hit %c to disconnect call.\n", f->subclass.integer);
*to = 0;
@@ -3814,6 +3815,38 @@
ast_frfree(f);
return NULL;
}
+
+ /* Send the frame from the in channel to all outgoing channels. */
+ for (o = start; o; o = o->call_next) {
+ if (!o->stillgoing || !o->chan) {
+ /* This outgoing channel has died so don't send the frame to it. */
+ continue;
+ }
+ switch (f->frametype) {
+ case AST_FRAME_CONTROL:
+ switch (f->subclass.integer) {
+ case AST_CONTROL_CONNECTED_LINE:
+ if (ast_channel_connected_line_macro(in, o->chan, f, 0, 1)) {
+ ast_indicate_data(o->chan, f->subclass.integer, f->data.ptr, f->datalen);
+ }
+ break;
+ case AST_CONTROL_REDIRECTING:
+ if (ast_channel_redirecting_macro(in, o->chan, f, 0, 1)) {
+ ast_indicate_data(o->chan, f->subclass.integer, f->data.ptr, f->datalen);
+ }
+ break;
+ default:
+ /* We are not going to do anything with this frame. */
+ goto skip_frame;
+ }
+ break;
+ default:
+ /* We are not going to do anything with this frame. */
+ goto skip_frame;
+ }
+ }
+skip_frame:;
+
ast_frfree(f);
}
if (!*to) {
More information about the asterisk-commits
mailing list