]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
When a SIP peer unregisters set the expiry time back to 0 so that the 200 OK contains...
authorJoshua Colp <jcolp@digium.com>
Wed, 10 Dec 2008 17:50:43 +0000 (17:50 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 10 Dec 2008 17:50:43 +0000 (17:50 +0000)
(closes issue #13599)
Reported by: hjourdain
Patches:
      chan_sip.c.diff uploaded by hjourdain (license 583)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@162738 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index ca912d5e9957f7b00406b152dc70567620542955..77abafc9aca071214fcf98d320f4bcc7ac2c227e 100644 (file)
@@ -8252,6 +8252,7 @@ static enum parse_register_result parse_register_contact(struct sip_pvt *pvt, st
                peer->useragent[0] = '\0';
                peer->sipoptions = 0;
                peer->lastms = 0;
+               pvt->expiry = 0;
 
                if (option_verbose > 2)
                        ast_verbose(VERBOSE_PREFIX_3 "Unregistered SIP '%s'\n", peer->name);