Get the SNMP code to compile.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Michelson
2013-08-02 15:01:37 +00:00
parent 5114e4fc0b
commit 11d2993426

View 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);