[asterisk-commits] mmichelson: trunk r396126 - /trunk/res/snmp/agent.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 2 10:01:38 CDT 2013


Author: mmichelson
Date: Fri Aug  2 10:01:37 2013
New Revision: 396126

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=396126
Log:
Get the SNMP code to compile.


Modified:
    trunk/res/snmp/agent.c

Modified: trunk/res/snmp/agent.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/snmp/agent.c?view=diff&rev=396126&r1=396125&r2=396126
==============================================================================
--- trunk/res/snmp/agent.c (original)
+++ trunk/res/snmp/agent.c Fri Aug  2 10:01:37 2013
@@ -298,10 +298,11 @@
 		}
 		break;
 	case ASTCHANBRIDGE:
-		if ((bridge = ast_bridged_channel(chan)) != NULL) {
+		if ((bridge = ast_channel_bridge_peer(chan)) != NULL) {
 			ast_copy_string(string_ret, ast_channel_name(bridge), sizeof(string_ret));
 			*var_len = strlen(string_ret);
 			ret = (u_char *)string_ret;
+			ast_channel_unref(bridge);
 		}
 		break;
 	case ASTCHANMASQ:
@@ -610,7 +611,7 @@
 
 	while ((chan = ast_channel_iterator_next(iter))) {
 		ast_channel_lock(chan);
-		if (ast_bridged_channel(chan)) {
+		if (ast_channel_is_bridged(chan)) {
 			long_ret++;
 		}
 		ast_channel_unlock(chan);




More information about the asterisk-commits mailing list