Merged revisions 44186 via svnmerge from
authorPaul Cadach <paul@odt.east.telecom.kz>
Mon, 2 Oct 2006 19:01:10 +0000 (19:01 +0000)
committerPaul Cadach <paul@odt.east.telecom.kz>
Mon, 2 Oct 2006 19:01:10 +0000 (19:01 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44186 | pcadach | 2006-10-03 00:52:56 +0600 (Втр, 03 Окт 2006) | 1 line

Missed part of userconf functionality for chan_h323
........

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

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

index 0e3ca22..b03d7d3 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 d76aa68..b295c57 100644 (file)
@@ -1536,6 +1536,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;