summaryrefslogtreecommitdiff
path: root/channels/chan_h323.c
diff options
context:
space:
mode:
authorJeremy McNamara <jj@nufone.net>2004-07-17 19:38:30 +0000
committerJeremy McNamara <jj@nufone.net>2004-07-17 19:38:30 +0000
commitf10148d3e30b7c146e52b12e2a0363d71773a449 (patch)
tree1cf265ad477f9938a00ce02e66f84998226810c8 /channels/chan_h323.c
parentb1e841edab559ef228a1835293ab10220fb97f57 (diff)
actually implement the setting of noFastStart and noH245Tunneling.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3459 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_h323.c')
-rwxr-xr-xchannels/chan_h323.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c
index db379a125..db2ec980f 100755
--- a/channels/chan_h323.c
+++ b/channels/chan_h323.c
@@ -100,6 +100,9 @@ static int usingGk;
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 @@ static int oh323_call(struct ast_channel *c, char *dest, int timeout)
}
}
+ p->calloptions.noFastStart = noFastStart;
+ p->calloptions.noH245Tunneling = noH245Tunneling;
+
res = h323_make_call(called_addr, &(p->cd), p->calloptions);
if (res) {
@@ -1141,6 +1147,7 @@ int setup_incoming_call(call_details_t cd)
strncpy(p->accountcode, user->accountcode, sizeof(p->accountcode)-1);
}
+
/* Increment the usage counter */
user->inUse++;
}
@@ -1566,7 +1573,7 @@ int reload_config(void)
/* 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 @@ int reload_config(void)
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;
}