]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 67938 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Thu, 7 Jun 2007 00:10:48 +0000 (00:10 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 7 Jun 2007 00:10:48 +0000 (00:10 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r67938 | file | 2007-06-06 20:09:13 -0400 (Wed, 06 Jun 2007) | 2 lines

Only notify the devicestate system of a peer state change when the peer is built from the config file. (issue #9900 reported by arkadia)

........

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

channels/chan_sip.c

index ba811cdeb89584e69e81d2675b727a6dfe0d05ea..b37996c88f76f95ed44cdb7453cef97f5abec9ab 100644 (file)
@@ -7720,7 +7720,6 @@ static void reg_source_db(struct sip_peer *peer)
                ast_sched_del(sched, peer->expire);
        peer->expire = ast_sched_add(sched, (expiry + 10) * 1000, expire_register, peer);
        register_peer_exten(peer, TRUE);
-       ast_device_state_changed("SIP/%s", peer->name);
 }
 
 /*! \brief Save contact header for 200 OK on INVITE */