[asterisk-commits] mmichelson: branch group/issue8824 r144522 - /team/group/issue8824/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 25 13:43:55 CDT 2008


Author: mmichelson
Date: Thu Sep 25 13:43:54 2008
New Revision: 144522

URL: http://svn.digium.com/view/asterisk?view=rev&rev=144522
Log:
Send a connected line update to the calling channel
just prior to the answer so that the caller will
have proper connected line information on the call


Modified:
    team/group/issue8824/channels/chan_sip.c

Modified: team/group/issue8824/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/group/issue8824/channels/chan_sip.c?view=diff&rev=144522&r1=144521&r2=144522
==============================================================================
--- team/group/issue8824/channels/chan_sip.c (original)
+++ team/group/issue8824/channels/chan_sip.c Thu Sep 25 13:43:54 2008
@@ -15722,6 +15722,9 @@
 
 		if (!req->ignore && p->owner) {
 			if (!reinvite) {
+				struct ast_party_connected_line connected;
+				ast_party_connected_line_collect_caller(&connected, &p->owner->cid);
+				ast_queue_connected_line_update(p->owner, &connected);
 				ast_queue_control(p->owner, AST_CONTROL_ANSWER);
 				if (global_callevents)
 					manager_event(EVENT_FLAG_SYSTEM, "ChannelUpdate",




More information about the asterisk-commits mailing list