summaryrefslogtreecommitdiff
path: root/addons/chan_ooh323.c
diff options
context:
space:
mode:
Diffstat (limited to 'addons/chan_ooh323.c')
-rw-r--r--addons/chan_ooh323.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c
index 9e550fe77..74b7a2f63 100644
--- a/addons/chan_ooh323.c
+++ b/addons/chan_ooh323.c
@@ -476,8 +476,11 @@ static struct ast_channel *ooh323_new(struct ooh323_pvt *i, int state,
}
}
- manager_event(EVENT_FLAG_SYSTEM, "ChannelUpdate", "Channel: %s\r\nChanneltype: %s\r\n"
+ if (ch) {
+ manager_event(EVENT_FLAG_SYSTEM, "ChannelUpdate",
+ "Channel: %s\r\nChanneltype: %s\r\n"
"CallRef: %d\r\n", ast_channel_name(ch), "OOH323", i->call_reference);
+ }
} else
ast_log(LOG_WARNING, "Unable to allocate channel structure\n");