[Asterisk-cvs] asterisk/channels chan_h323.c,1.67,1.68
jeremy at lists.digium.com
jeremy at lists.digium.com
Sat Jul 17 15:52:28 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory localhost.localdomain:/tmp/cvs-serv19711
Modified Files:
chan_h323.c
Log Message:
actually implement the setting of noFastStart and noH245Tunneling.
Index: chan_h323.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_h323.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- chan_h323.c 16 Jul 2004 04:40:54 -0000 1.67
+++ chan_h323.c 17 Jul 2004 19:38:30 -0000 1.68
@@ -100,6 +100,9 @@
static int port = 1720;
static int gkroute = 0;
+static int noFastStart = 1;
+static int noH245Tunneling = 0;
+
/* to find user by alias is default, alternative is the incomming call's source IP address*/
static int userbyalias = 1;
@@ -486,6 +489,9 @@
}
}
+ p->calloptions.noFastStart = noFastStart;
+ p->calloptions.noH245Tunneling = noH245Tunneling;
+
res = h323_make_call(called_addr, &(p->cd), p->calloptions);
if (res) {
@@ -1141,6 +1147,7 @@
strncpy(p->accountcode, user->accountcode, sizeof(p->accountcode)-1);
}
+
/* Increment the usage counter */
user->inUse++;
}
@@ -1566,7 +1573,7 @@
/* fire up the H.323 Endpoint */
if (!h323_end_point_exist()) {
- h323_end_point_create();
+ h323_end_point_create(noFastStart,noH245Tunneling);
}
h323debug=0;
dtmfmode = H323_DTMF_RFC2833;
@@ -1644,7 +1651,11 @@
userbyalias = ast_true(v->value);
} else if (!strcasecmp(v->name, "bridge")) {
bridge_default = ast_true(v->value);
- }
+ } else if (!strcasecmp(v->name, "noFastStart")) {
+ noFastStart = ast_true(v->value);
+ } else if (!strcasecmp(v->name, "noH245Tunneling")) {
+ noH245Tunneling = ast_true(v->value);
+ }
v = v->next;
}
More information about the svn-commits
mailing list