Merged revisions 71576 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Mon, 25 Jun 2007 14:15:05 +0000 (14:15 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 25 Jun 2007 14:15:05 +0000 (14:15 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r71576 | file | 2007-06-25 10:13:45 -0400 (Mon, 25 Jun 2007) | 2 lines

Build a peer as well when hash323 is enabled in users.conf (issue #9599 reported by asagage)

........

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

channels/chan_h323.c

index 8291316..10d704d 100644 (file)
@@ -2874,6 +2874,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);
+                                       }
                                }
                        }
                }