]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 340534 via svnmerge from
authorTerry Wilson <twilson@digium.com>
Wed, 12 Oct 2011 20:57:19 +0000 (20:57 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 12 Oct 2011 20:57:19 +0000 (20:57 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r340534 | twilson | 2011-10-12 13:19:36 -0700 (Wed, 12 Oct 2011) | 9 lines

  Update SIP realtime fullcontact regardless of caching

  We should update the fullcontact field in the realtime table whether or
  not rtcachefriends is set. There is no reason to treat a non-cached
  realtime entity differently than a cached in this regard.

  (closes issue ASTERISK-18446)
   Reported by: wdoekes
........

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

channels/chan_sip.c

index 16063e3191a7bc7f66f848fd19ddea8107cfe76f..252b27a2663d8e47718e4340c9d4237cc7db82f2 100644 (file)
@@ -4643,7 +4643,7 @@ static void update_peer(struct sip_peer *p, int expire)
        int rtcachefriends = ast_test_flag(&p->flags[1], SIP_PAGE2_RTCACHEFRIENDS);
        if (sip_cfg.peer_rtupdate &&
            (p->is_realtime || rtcachefriends)) {
-               realtime_update_peer(p->name, &p->addr, p->username, rtcachefriends ? p->fullcontact : NULL, p->useragent, expire, p->deprecated_username, p->lastms);
+               realtime_update_peer(p->name, &p->addr, p->username, p->fullcontact, p->useragent, expire, p->deprecated_username, p->lastms);
        }
 }