]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Missed part of userconf functionality for chan_h323
authorPaul Cadach <paul@odt.east.telecom.kz>
Mon, 2 Oct 2006 18:52:56 +0000 (18:52 +0000)
committerPaul Cadach <paul@odt.east.telecom.kz>
Mon, 2 Oct 2006 18:52:56 +0000 (18:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44186 65c4cc65-6c06-0410-ace0-fbb531ad65f3

configs/users.conf.sample
pbx/pbx_config.c

index 0e3ca2237173a344fd6a65f3ec335573b4815d57..b03d7d3ce786fc07c83d4681843d5363b0bb7047 100644 (file)
@@ -34,6 +34,10 @@ hassip = yes
 ;
 hasiax = yes
 ;
+; Create H.323 friend
+;
+;hash323 = yes
+;
 ; Create manager entry
 ;
 hasmanager = no
@@ -59,6 +63,7 @@ pickupgroup = 1
 ;hasvoicemail = yes
 ;hassip = yes
 ;hasiax = no
+;hash323 = no
 ;hasmanager = no
 ;callwaiting = no
 ;context = international
index f49b14467afbfc3a84188d4932598782ff58c623..98f2ed21316d077395c7eb6299c79cb4dd7d615a 100644 (file)
@@ -2371,6 +2371,10 @@ static void pbx_load_users(void)
                        snprintf(tmp, sizeof(tmp), "IAX/%s", cat);
                        append_interface(iface, sizeof(iface), tmp);
                }
+               if (ast_true(ast_config_option(cfg, cat, "hash323"))) {
+                       snprintf(tmp, sizeof(tmp), "H323/%s", cat);
+                       append_interface(iface, sizeof(iface), tmp);
+               }
                hasexten = ast_config_option(cfg, cat, "hasexten");
                if (hasexten && !ast_true(hasexten))
                        continue;