aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-08 18:13:06 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-08 18:13:06 +0000
commit6fd83f4d1b5ebc919f8f9f03064741cb417a94e0 (patch)
treeea943ef7b541ba6fa273486d5ea305563260c59d /channels
parentbb087cf4abb99ad1c06d7f1054f0496baf109022 (diff)
Issue #7294 - Asterisk sends INVITE instead of BYE. Fix by Philippe Sultan. Thanks!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33069 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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 aaebc8271..ebeae3a07 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -14946,7 +14946,7 @@ static int sip_set_rtp_peer(struct ast_channel *chan, struct ast_rtp *rtp, struc
changed |= ast_rtp_get_peer(vrtp, &p->vredirip);
else
memset(&p->vredirip, 0, sizeof(p->vredirip));
- if (p->redircodecs != codecs) {
+ if (codecs && (p->redircodecs != codecs)) {
p->redircodecs = codecs;
changed = 1;
}