aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-15 14:11:22 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-15 14:11:22 +0000
commit13ea4da10eba62331a160605e16a697f5fa4d35c (patch)
tree394906d1a23fbd5c3c551b5c817e839e6a38e85f /channels/chan_sip.c
parent57d79d02db9ee0d612c7376e697343e8b753bd6b (diff)
Issue 7294 - patch by phsultan - Asterisk sends Invite instead of BYE in some cases.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@34306 f38db490-d61c-443f-a65b-d21fe96a405b
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 acbe6f3ab..6e63637de 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -12911,7 +12911,7 @@ static int sip_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp, struc
else
memset(&p->vredirip, 0, sizeof(p->vredirip));
p->redircodecs = codecs;
- if (!ast_test_flag(p, SIP_GOTREFER)) {
+ if (codecs && !ast_test_flag(p, SIP_GOTREFER)) {
if (!p->pendinginvite) {
if (option_debug > 2) {
char iabuf[INET_ADDRSTRLEN];