*/
extern "C" {
-int end_point_exist(void)
+int h323_end_point_exist(void)
{
if (!endPoint) {
return 0;
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;
}
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;
}
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;
}
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;
}
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;
}
*/
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;
}
int res;
PString token;
- if (!end_point_exist()) {
+ if (!h323_end_point_exist()) {
return 1;
}
int h323_clear_call(const char *call_token)
{
- if (!end_point_exist()) {
+ if (!h323_end_point_exist()) {
return 1;
}
{
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;
channel = connection->FindChannel(connection->sessionId, TRUE);
connection->bridging = TRUE;
connection->CloseLogicalChannelNumber(channel->GetNumber());
- connection->RequestModeChange(mode);
+
connection->Unlock();
return;