aboutsummaryrefslogtreecommitdiffstats
path: root/channels/h323/ast_h323.cpp
diff options
context:
space:
mode:
authorjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-17 19:38:30 +0000
committerjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2004-07-17 19:38:30 +0000
commit2e12cb472384a279a33056b889825cfd64336f10 (patch)
tree1cf265ad477f9938a00ce02e66f84998226810c8 /channels/h323/ast_h323.cpp
parent2423ab16e6092fa73c121d9a952a2d4750dab760 (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/h323/ast_h323.cpp')
-rwxr-xr-xchannels/h323/ast_h323.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/channels/h323/ast_h323.cpp b/channels/h323/ast_h323.cpp
index c10f17a87..d67e95fd3 100755
--- a/channels/h323/ast_h323.cpp
+++ b/channels/h323/ast_h323.cpp
@@ -62,7 +62,7 @@ int mode = H323_DTMF_RFC2833;
/** Options for connections creation */
BOOL noFastStart = TRUE;
-BOOL noH245Tunnelling;
+BOOL noH245Tunneling;
BOOL noSilenceSuppression;
/**
@@ -479,7 +479,7 @@ H323Connection * MyH323EndPoint::CreateConnection(unsigned callReference, void *
if (noFastStart)
options |= H323Connection::FastStartOptionDisable;
- if (noH245Tunnelling)
+ if (noH245Tunneling)
options |= H323Connection::H245TunnelingOptionDisable;
return new MyH323Connection(*this, callReference, options);
@@ -816,9 +816,13 @@ int h323_end_point_exist(void)
return 1;
}
-void h323_end_point_create(void)
+void h323_end_point_create(int no_fast_start, int no_h245_tunneling)
{
channelsOpen = 0;
+
+ noFastStart = (BOOL)no_fast_start;
+ noH245Tunneling = (BOOL)no_h245_tunneling;
+
localProcess = new MyProcess();
localProcess->Main();
}
@@ -1103,12 +1107,14 @@ int h323_make_call(char *host, call_details_t *cd, call_options_t call_options)
{
int res;
PString token;
+ PString dest(host);
if (!h323_end_point_exist()) {
return 1;
}
- PString dest(host);
+ noFastStart = call_options.noFastStart;
+ noH245Tunneling = call_options.noH245Tunneling;
res = endPoint->MakeCall(dest, token, &cd->call_reference, call_options.port, call_options.callerid, call_options.callername);
memcpy((char *)(cd->call_token), (const unsigned char *)token, token.GetLength());