summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2008-02-27 17:04:16 +0000
committerJoshua Colp <jcolp@digium.com>2008-02-27 17:04:16 +0000
commit1281c05afa722b3a256e404294f2a1763fe19e9e (patch)
tree94c97cf77e232fdc33a4a55fe49d35872fbb8066 /channels
parent892a6b95beb84d9b48b0bbaff75d0525cddbba29 (diff)
After further discussion revert my previous commit for this. Currently in order to ensure devicestate is the expected value in another module (such as app_queue) then chan_sip must be loaded before hand.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index a70dc4cf7..519b9375a 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -20527,7 +20527,6 @@ static int reload_config(enum channelreloadreason reason)
}
peer = build_peer(cat, gen, ast_variable_browse(ucfg, cat), 0);
if (peer) {
- ast_devstate_changed(AST_DEVICE_NOT_INUSE, "SIP/%s", peer->name);
ASTOBJ_CONTAINER_LINK(&peerl, peer);
unref_peer(peer);
peer_count++;
@@ -20596,7 +20595,6 @@ static int reload_config(enum channelreloadreason reason)
if (is_peer) {
peer = build_peer(cat, ast_variable_browse(cfg, cat), NULL, 0);
if (peer) {
- ast_devstate_changed(AST_DEVICE_NOT_INUSE, "SIP/%s", peer->name);
ASTOBJ_CONTAINER_LINK(&peerl, peer);
unref_peer(peer);
peer_count++;