From 6b37705130cf6eeebf35b50382a0bd1ae6e96c0f Mon Sep 17 00:00:00 2001 From: Paul Cadach Date: Mon, 2 Oct 2006 18:52:56 +0000 Subject: [PATCH] Missed part of userconf functionality for chan_h323 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44186 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- configs/users.conf.sample | 5 +++++ pbx/pbx_config.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/configs/users.conf.sample b/configs/users.conf.sample index 0e3ca22371..b03d7d3ce7 100644 --- a/configs/users.conf.sample +++ b/configs/users.conf.sample @@ -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 diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index f49b14467a..98f2ed2131 100644 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -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;