aboutsummaryrefslogtreecommitdiffstats
path: root/channels/h323/ast_h323.cpp
diff options
context:
space:
mode:
authorjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2003-12-18 19:54:18 +0000
committerjeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b>2003-12-18 19:54:18 +0000
commitec575218eade22e49ff78bf6bf8c2ebac1e2ad88 (patch)
tree660bf5def0f6ff8e5d72538ca7b78867517d7e3a /channels/h323/ast_h323.cpp
parentedb2c8788f803ab87fde15f217b818eb357740b6 (diff)
follow same naming scheme as other simular functions
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1867 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/h323/ast_h323.cpp')
-rwxr-xr-xchannels/h323/ast_h323.cpp25
1 files changed, 10 insertions, 15 deletions
diff --git a/channels/h323/ast_h323.cpp b/channels/h323/ast_h323.cpp
index d1a81da01..3a822c806 100755
--- a/channels/h323/ast_h323.cpp
+++ b/channels/h323/ast_h323.cpp
@@ -778,7 +778,7 @@ BOOL MyGatekeeperServer::Initialise()
*/
extern "C" {
-int end_point_exist(void)
+int h323_end_point_exist(void)
{
if (!endPoint) {
return 0;
@@ -795,7 +795,7 @@ void h323_end_point_create(void)
void h323_gk_urq(void)
{
- if (!end_point_exist()) {
+ if (!h323_end_point_exist()) {
cout << " ERROR: [h323_gk_urq] No Endpoint, this is bad" << endl;
return;
}
@@ -843,7 +843,7 @@ int h323_set_capability(int cap, int dtmfMode)
int gsmFrames = 4;
- if (!end_point_exist()) {
+ if (!h323_end_point_exist()) {
cout << " ERROR: [h323_set_capablity] No Endpoint, this is bad" << endl;
return 1;
}
@@ -910,7 +910,7 @@ int h323_set_capability(int cap, int dtmfMode)
int h323_start_listener(int listenPort, struct sockaddr_in bindaddr)
{
- if (!end_point_exist()) {
+ if (!h323_end_point_exist()) {
cout << "ERROR: [h323_start_listener] No Endpoint, this is bad!" << endl;
return 1;
}
@@ -943,7 +943,7 @@ int h323_set_alias(struct oh323_alias *alias)
PString h323id(alias->name);
PString e164(alias->e164);
- if (!end_point_exist()) {
+ if (!h323_end_point_exist()) {
cout << "ERROR: [h323_set_alias] No Endpoint, this is bad!" << endl;
return 1;
}
@@ -992,7 +992,7 @@ int h323_set_gk(int gatekeeper_discover, char *gatekeeper, char *secret)
PString gkName = PString(gatekeeper);
PString pass = PString(secret);
- if (!end_point_exist()) {
+ if (!h323_end_point_exist()) {
cout << "ERROR: [h323_set_gk] No Endpoint, this is bad!" << endl;
return 1;
}
@@ -1043,7 +1043,7 @@ int h323_set_gk(int gatekeeper_discover, char *gatekeeper, char *secret)
*/
void h323_send_tone(const char *call_token, char tone)
{
- if (!end_point_exist()) {
+ if (!h323_end_point_exist()) {
cout << "ERROR: [h323_send_tone] No Endpoint, this is bad!" << endl;
return;
}
@@ -1059,7 +1059,7 @@ int h323_make_call(char *host, call_details_t *cd, call_options_t call_options)
int res;
PString token;
- if (!end_point_exist()) {
+ if (!h323_end_point_exist()) {
return 1;
}
@@ -1073,7 +1073,7 @@ int h323_make_call(char *host, call_details_t *cd, call_options_t call_options)
int h323_clear_call(const char *call_token)
{
- if (!end_point_exist()) {
+ if (!h323_end_point_exist()) {
return 1;
}
@@ -1124,12 +1124,7 @@ void h323_native_bridge(const char *token, char *them, char *capability)
{
H323Channel *channel;
MyH323Connection *connection = (MyH323Connection *)endPoint->FindConnectionWithLock(token);
- PString mode(capability);
- if (!mode) {
- return;
- }
-
if (!connection){
cout << "ERROR: No connection found, this is bad\n";
return;
@@ -1140,7 +1135,7 @@ void h323_native_bridge(const char *token, char *them, char *capability)
channel = connection->FindChannel(connection->sessionId, TRUE);
connection->bridging = TRUE;
connection->CloseLogicalChannelNumber(channel->GetNumber());
- connection->RequestModeChange(mode);
+
connection->Unlock();
return;