mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
fix trivial bug in ooh323_indicate on AST_CONTROL_SRC...
check p->rtp is not null git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@313142 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1256,10 +1256,14 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case AST_CONTROL_SRCUPDATE:
|
case AST_CONTROL_SRCUPDATE:
|
||||||
|
if (p->rtp) {
|
||||||
ast_rtp_instance_update_source(p->rtp);
|
ast_rtp_instance_update_source(p->rtp);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case AST_CONTROL_SRCCHANGE:
|
case AST_CONTROL_SRCCHANGE:
|
||||||
|
if (p->rtp) {
|
||||||
ast_rtp_instance_change_source(p->rtp);
|
ast_rtp_instance_change_source(p->rtp);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case AST_CONTROL_CONNECTED_LINE:
|
case AST_CONTROL_CONNECTED_LINE:
|
||||||
if (!ast->connected.id.name.valid
|
if (!ast->connected.id.name.valid
|
||||||
|
|||||||
Reference in New Issue
Block a user