aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-25 14:13:45 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-25 14:13:45 +0000
commitb567a5f137687a747c59df66e092c2260973fd81 (patch)
tree79cc900c745672923a7e13b383647891dea6fcce /channels
parentff1510ceb94bc4808f78469bd63bf6855b1afa46 (diff)
Build a peer as well when hash323 is enabled in users.conf (issue #9599 reported by asagage)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71576 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_h323.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c
index e006dc821..cdc61440f 100644
--- a/channels/chan_h323.c
+++ b/channels/chan_h323.c
@@ -2780,6 +2780,11 @@ static int reload_config(int is_reload)
ASTOBJ_CONTAINER_LINK(&userl, user);
ASTOBJ_UNREF(user, oh323_destroy_user);
}
+ peer = build_peer(cat, gen, ast_variable_browse(ucfg, cat), 0);
+ if (peer) {
+ ASTOBJ_CONTAINER_LINK(&peerl, peer);
+ ASTOBJ_UNREF(peer, oh323_destroy_peer);
+ }
}
}
}