diff options
author | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-17 19:38:30 +0000 |
---|---|---|
committer | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-07-17 19:38:30 +0000 |
commit | 2e12cb472384a279a33056b889825cfd64336f10 (patch) | |
tree | 1cf265ad477f9938a00ce02e66f84998226810c8 /channels/chan_h323.c | |
parent | 2423ab16e6092fa73c121d9a952a2d4750dab760 (diff) |
actually implement the setting of noFastStart and noH245Tunneling.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3459 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_h323.c')
-rwxr-xr-x | channels/chan_h323.c | 15 |
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; } |