diff options
Diffstat (limited to 'addons')
-rw-r--r-- | addons/chan_ooh323.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index 08f0919ca..1d78071b1 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -1259,10 +1259,14 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d } break; case AST_CONTROL_SRCUPDATE: - ast_rtp_instance_update_source(p->rtp); + if (p->rtp) { + ast_rtp_instance_update_source(p->rtp); + } break; case AST_CONTROL_SRCCHANGE: - ast_rtp_instance_change_source(p->rtp); + if (p->rtp) { + ast_rtp_instance_change_source(p->rtp); + } break; case AST_CONTROL_CONNECTED_LINE: if (!ast->connected.id.name.valid |