Merged revisions 67941 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Thu, 7 Jun 2007 00:12:21 +0000 (00:12 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 7 Jun 2007 00:12:21 +0000 (00:12 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r67941 | file | 2007-06-06 20:10:48 -0400 (Wed, 06 Jun 2007) | 10 lines

Merged revisions 67938 via svnmerge from
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/trunk@67944 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index ecd64a1..48ba3da 100644 (file)
@@ -8374,7 +8374,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 */