From: Joshua Colp Date: Thu, 7 Jun 2007 00:09:13 +0000 (+0000) Subject: Only notify the devicestate system of a peer state change when the peer is built... X-Git-Tag: 1.2.19~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=084ede450796a8b0b442ab27cd68a70f608261b3;p=thirdparty%2Fasterisk.git 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.2@67938 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 0938776e68..36e5aab240 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5953,7 +5953,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, 1); - ast_device_state_changed("SIP/%s", peer->name); } /*! \brief parse_ok_contact: Parse contact header for 200 OK on INVITE ---*/