mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Update res_snmp to use new API declaration of pbx_builtin_serialize_variables (issue #8627 reported by johann8384)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -198,6 +198,7 @@ static u_char *ast_var_channels_table(struct variable *vp, oid *name, size_t *le
|
||||
struct timeval tval;
|
||||
u_char *ret;
|
||||
int i, bit;
|
||||
struct ast_str *out = ast_str_alloca(2048);
|
||||
|
||||
if (header_simple_table(vp, name, length, exact, var_len, write_method, ast_active_channels()))
|
||||
return NULL;
|
||||
@@ -478,9 +479,9 @@ static u_char *ast_var_channels_table(struct variable *vp, oid *name, size_t *le
|
||||
ret = (u_char *)&long_ret;
|
||||
break;
|
||||
case ASTCHANVARIABLES:
|
||||
if (pbx_builtin_serialize_variables(chan, string_ret, sizeof(string_ret))) {
|
||||
*var_len = strlen(string_ret);
|
||||
ret = (u_char *)string_ret;
|
||||
if (pbx_builtin_serialize_variables(chan, &out)) {
|
||||
*var_len = strlen(out->str);
|
||||
ret = (u_char *)out->str;
|
||||
}
|
||||
else
|
||||
ret = NULL;
|
||||
|
Reference in New Issue
Block a user