diff options
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index dbaf1bdcd..5312eaf9d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5103,7 +5103,9 @@ static int sip_hangup(struct ast_channel *ast) if (p->trtp) textqos = ast_rtp_get_quality(p->trtp, NULL); /* Send a hangup */ - transmit_request_with_auth(p, SIP_BYE, 0, XMIT_RELIABLE, 1); + if (oldowner->_state == AST_STATE_UP) { + transmit_request_with_auth(p, SIP_BYE, 0, XMIT_RELIABLE, 1); + } /* Get RTCP quality before end of call */ if (p->do_history) { |