aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_features.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-21 18:21:47 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-21 18:21:47 +0000
commit76bfb8b3ea92493120e3b35744ffb593445e38ae (patch)
tree838e85c713d7766d941b13e1eb06d6e53f8675d4 /res/res_features.c
parent434351dcc204323e7e60eacb8a3dd013cf6b6dc1 (diff)
fix crash when using the ParkAndAnnounce application. When using this application,
there will be no peer channel to play the parking announcement to. (issue #6756) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@13961 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_features.c')
-rw-r--r--res/res_features.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c
index bf23129ae..bf248b5f4 100644
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -362,7 +362,7 @@ int ast_park_call(struct ast_channel *chan, struct ast_channel *peer, int timeou
"Timeout: %ld\r\n"
"CallerID: %s\r\n"
"CallerIDName: %s\r\n"
- ,pu->parkingnum, pu->chan->name, peer->name
+ ,pu->parkingnum, pu->chan->name, peer ? peer->name : ""
,(long)pu->start.tv_sec + (long)(pu->parkingtime/1000) - (long)time(NULL)
,(pu->chan->cid.cid_num ? pu->chan->cid.cid_num : "<unknown>")
,(pu->chan->cid.cid_name ? pu->chan->cid.cid_name : "<unknown>")