mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
Merge "chan_pjsip: Changed to continued after invalid media for pjsip show channelstats"
This commit is contained in:
@@ -352,7 +352,7 @@ static int cli_channelstats_print_body(void *obj, void *arg, int flags)
|
|||||||
|
|
||||||
if (!channel) {
|
if (!channel) {
|
||||||
ast_str_append(&context->output_buffer, 0, " %s not valid\n", snapshot->base->name);
|
ast_str_append(&context->output_buffer, 0, " %s not valid\n", snapshot->base->name);
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ast_channel_lock(channel);
|
ast_channel_lock(channel);
|
||||||
@@ -362,7 +362,7 @@ static int cli_channelstats_print_body(void *obj, void *arg, int flags)
|
|||||||
ast_str_append(&context->output_buffer, 0, " %s not valid\n", snapshot->base->name);
|
ast_str_append(&context->output_buffer, 0, " %s not valid\n", snapshot->base->name);
|
||||||
ast_channel_unlock(channel);
|
ast_channel_unlock(channel);
|
||||||
ao2_cleanup(channel);
|
ao2_cleanup(channel);
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
media = session->active_media_state->default_session[AST_MEDIA_TYPE_AUDIO];
|
media = session->active_media_state->default_session[AST_MEDIA_TYPE_AUDIO];
|
||||||
@@ -370,7 +370,7 @@ static int cli_channelstats_print_body(void *obj, void *arg, int flags)
|
|||||||
ast_str_append(&context->output_buffer, 0, " %s not valid\n", snapshot->base->name);
|
ast_str_append(&context->output_buffer, 0, " %s not valid\n", snapshot->base->name);
|
||||||
ast_channel_unlock(channel);
|
ast_channel_unlock(channel);
|
||||||
ao2_cleanup(channel);
|
ao2_cleanup(channel);
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
rtp = ao2_bump(media->rtp);
|
rtp = ao2_bump(media->rtp);
|
||||||
|
|||||||
Reference in New Issue
Block a user