aboutsummaryrefslogtreecommitdiffstats
path: root/addons
diff options
context:
space:
mode:
authormay <may@f38db490-d61c-443f-a65b-d21fe96a405b>2011-04-09 21:00:15 +0000
committermay <may@f38db490-d61c-443f-a65b-d21fe96a405b>2011-04-09 21:00:15 +0000
commitc3ef7cd686f6352e6c0c1c5489dbc4c0d6e4b0ec (patch)
tree9862ec9238a2c17d0250ac88446721d6423f1fb8 /addons
parent0c126d16218a9ede34b72550f7c24d26763611c4 (diff)
Merged revisions 313142 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r313142 | may | 2011-04-10 00:56:17 +0400 (Sun, 10 Apr 2011) | 3 lines fix trivial bug in ooh323_indicate on AST_CONTROL_SRC... check p->rtp is not null ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@313143 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'addons')
-rw-r--r--addons/chan_ooh323.c8
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