summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-06-08 20:07:05 +0000
committerOlle Johansson <oej@edvina.net>2006-06-08 20:07:05 +0000
commit91732256dbd146367c4682c1f12e645be2a1d5fc (patch)
treed5af3825c5a6a6e06218ae91760e168464ec4ade /channels/chan_sip.c
parentb796bf414bd1f8fe539c122e9e669d1fd08b5cff (diff)
Don't crash if chan2 does not exist (one-legged call situations, like echo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index bdd515677..5e8317341 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -12439,7 +12439,7 @@ static int handle_request_refer(struct sip_pvt *p, struct sip_request *req, int
return -1;
}
- if (sipdebug && option_debug > 3)
+ if (current.chan2 && sipdebug && option_debug > 3)
ast_log(LOG_DEBUG, "Got SIP transfer, applying to bridged peer '%s'\n", current.chan2->name);
/* Stop music on hold on this channel */