Get the SNMP code to compile.
authorMark Michelson <mmichelson@digium.com>
Fri, 2 Aug 2013 15:01:37 +0000 (15:01 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 2 Aug 2013 15:01:37 +0000 (15:01 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396126 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/snmp/agent.c

index 8a32fe3..8863634 100644 (file)
@@ -298,10 +298,11 @@ static u_char *ast_var_channels_table(struct variable *vp, oid *name, size_t *le
                }
                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 @@ static u_char *ast_var_channel_bridge(struct variable *vp, oid *name, size_t *le
 
        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);