diff options
author | David Vossel <dvossel@digium.com> | 2009-07-15 22:04:13 +0000 |
---|---|---|
committer | David Vossel <dvossel@digium.com> | 2009-07-15 22:04:13 +0000 |
commit | f91bc197cd78011204d9e85a31566184620653ef (patch) | |
tree | 2ee638d4270a1e9d6e14a54e31c8be8abe639654 /channels/chan_sip.c | |
parent | 646cd02c09f3a50555d2d505acfee2acc53eeba2 (diff) |
Session timer were not activated if Supported header field in INVITE had both "timer" and other options.
(closes issue #15403)
Reported by: makoto
Patches:
sip-session-timer.patch uploaded by makoto (license 38)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@206768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 28ccb1c3d..34e13a0f5 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -20469,7 +20469,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int } /* Session-Timers */ - if (p->sipoptions == SIP_OPT_TIMER) { + if (p->sipoptions & SIP_OPT_TIMER) { /* The UAC has requested session-timers for this session. Negotiate the session refresh interval and who will be the refresher */ ast_debug(2, "Incoming INVITE with 'timer' option enabled\n"); @@ -20538,7 +20538,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int break; case SESSION_TIMER_MODE_REFUSE: - if (p->reqsipoptions == SIP_OPT_TIMER) { + if (p->reqsipoptions & SIP_OPT_TIMER) { transmit_response_with_unsupported(p, "420 Option Disabled", req, required); ast_log(LOG_WARNING, "Received SIP INVITE with supported but disabled option: %s\n", required); p->invitestate = INV_COMPLETED; |