[Asterisk-cvs] asterisk-addons/asterisk-ooh323c/src chan_h323.c, 1.9, 1.10

vphirke vphirke
Fri Sep 16 15:31:00 CDT 2005


Update of /usr/cvsroot/asterisk-addons/asterisk-ooh323c/src
In directory mongoose.digium.com:/tmp/cvs-serv21003/src

Modified Files:
	chan_h323.c 
Log Message:
Added conf option to enable registering with gatekeeper as gateway or endpoint

Index: chan_h323.c
===================================================================
RCS file: /usr/cvsroot/asterisk-addons/asterisk-ooh323c/src/chan_h323.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- chan_h323.c	2 Sep 2005 14:27:10 -0000	1.9
+++ chan_h323.c	16 Sep 2005 19:29:17 -0000	1.10
@@ -207,7 +207,7 @@
 static char gGatekeeper[100];
 static enum RasGatekeeperMode gRasGkMode = RasNoGatekeeper;
 
-
+static int  gIsGateway = 0;
 static int  gFastStart = 1;
 static int  gTunneling = 1;
 static int  gTOS = 0;
@@ -1804,6 +1804,9 @@
       else if (!strcasecmp(v->name, "bindaddr")) 
       {
          strncpy(gIP, v->value, sizeof(gIP)-1);
+      } else if (!strcasecmp(v->name, "gateway")) 
+      {
+         gIsGateway = ast_true(v->value);
       } else if (!strcasecmp(v->name, "faststart")) 
       {
          gFastStart = ast_true(v->value);
@@ -2372,6 +2375,9 @@
          return 1;
       }
 
+      if(gIsGateway)
+	ooH323EpSetAsGateway();
+
       ooH323EpDisableAutoAnswer();
       ooH323EpSetH225MsgCallbacks(h225Callbacks);
       ooH323EpSetTraceLevel(OOTRCLVLDBGC);




More information about the svn-commits mailing list