[asterisk-commits] oej: trunk r89706 - /trunk/channels/chan_gtalk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 27 13:50:12 CST 2007


Author: oej
Date: Tue Nov 27 13:50:12 2007
New Revision: 89706

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89706
Log:
Manager events from the "moremanager" branch

Modified:
    trunk/channels/chan_gtalk.c

Modified: trunk/channels/chan_gtalk.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_gtalk.c?view=diff&rev=89706&r1=89705&r2=89706
==============================================================================
--- trunk/channels/chan_gtalk.c (original)
+++ trunk/channels/chan_gtalk.c Tue Nov 27 13:50:12 2007
@@ -492,6 +492,8 @@
 	ast_debug(1, "Answer!\n");
 	ast_mutex_lock(&p->lock);
 	gtalk_invite(p, p->them, p->us,p->sid, 0);
+ 	manager_event(EVENT_FLAG_SYSTEM, "ChannelUpdate", "Channel: %s\r\nChanneltype: %s\r\nGtalk-SID: %s\r\n",
+		ast->name, "GTALK", p->sid);
 	ast_mutex_unlock(&p->lock);
 	return res;
 }
@@ -1003,8 +1005,11 @@
 		tmp->hangupcause = AST_CAUSE_SWITCH_CONGESTION;
 		ast_hangup(tmp);
 		tmp = NULL;
-	}
-
+	} else {
+		manager_event(EVENT_FLAG_SYSTEM, "ChannelUpdate",
+			"Channel: %s\r\nChanneltype: %s\r\nGtalk-SID: %s\r\n",
+			i->owner ? i->owner->name : "", "Gtalk", i->sid);
+	}
 	return tmp;
 }
 




More information about the asterisk-commits mailing list