mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
d'oh! make it so you can acutally use other ports than 1720
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -193,7 +193,6 @@ int MyH323EndPoint::MakeCall(const PString & dest, PString & token,
|
|||||||
cout << " -- Making call to " << fullAddress << " using gatekeeper." << endl;
|
cout << " -- Making call to " << fullAddress << " using gatekeeper." << endl;
|
||||||
} else {
|
} else {
|
||||||
fullAddress = dest; /* host */
|
fullAddress = dest; /* host */
|
||||||
fullAddress += psprintf(":%i", port); /* host:port */
|
|
||||||
if (h323debug)
|
if (h323debug)
|
||||||
cout << " -- Making call to " << fullAddress << "." << endl;
|
cout << " -- Making call to " << fullAddress << "." << endl;
|
||||||
}
|
}
|
||||||
@@ -939,6 +938,8 @@ int h323_make_call(char *host, call_details_t *cd, call_options_t call_options)
|
|||||||
|
|
||||||
PString dest = PString(host);
|
PString dest = PString(host);
|
||||||
|
|
||||||
|
cout << "dest: " << dest << endl;
|
||||||
|
|
||||||
res = endPoint->MakeCall(dest, token, &cd->call_reference, call_options.port);
|
res = endPoint->MakeCall(dest, token, &cd->call_reference, call_options.port);
|
||||||
memcpy((char *)(cd->call_token), (const unsigned char *)token, token.GetLength());
|
memcpy((char *)(cd->call_token), (const unsigned char *)token, token.GetLength());
|
||||||
|
|
||||||
|
@@ -382,9 +382,6 @@ static int oh323_call(struct ast_channel *c, char *dest, int timeout)
|
|||||||
ast_log(LOG_WARNING, "Line is already in use (%s)\n", c->name);
|
ast_log(LOG_WARNING, "Line is already in use (%s)\n", c->name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set the connect port */
|
|
||||||
p->call_opt.port = port;
|
|
||||||
|
|
||||||
/* outgoing call */
|
/* outgoing call */
|
||||||
p->outgoing = 1;
|
p->outgoing = 1;
|
||||||
@@ -748,7 +745,7 @@ static struct ast_channel *oh323_request(char *type, int format, void *data)
|
|||||||
host = tmp;
|
host = tmp;
|
||||||
ext = NULL;
|
ext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
p = oh323_alloc(0);
|
p = oh323_alloc(0);
|
||||||
|
|
||||||
if (!p) {
|
if (!p) {
|
||||||
|
Reference in New Issue
Block a user