From b49fd4ab95f69474db8f532a3f42e7e0f5bed668 Mon Sep 17 00:00:00 2001
From: Jeremy McNamara <jj@nufone.net>
Date: Tue, 8 Apr 2003 18:22:39 +0000
Subject: [PATCH] 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
---
 channels/h323/ast_h323.cpp | 3 ++-
 channels/h323/chan_h323.c  | 5 +----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/channels/h323/ast_h323.cpp b/channels/h323/ast_h323.cpp
index 831092fdd1..04238b4d4f 100755
--- a/channels/h323/ast_h323.cpp
+++ b/channels/h323/ast_h323.cpp
@@ -193,7 +193,6 @@ int MyH323EndPoint::MakeCall(const PString & dest, PString & token,
 			cout << " -- Making call to " << fullAddress << " using gatekeeper." << endl;
 	} else {
 			fullAddress = dest; /* host */
-			fullAddress += psprintf(":%i", port); /* host:port */
 			if (h323debug)
 				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);
 	
+	cout << "dest: " << dest << endl;
+
 	res = endPoint->MakeCall(dest, token, &cd->call_reference, call_options.port);
 	memcpy((char *)(cd->call_token), (const unsigned char *)token, token.GetLength());
 	
diff --git a/channels/h323/chan_h323.c b/channels/h323/chan_h323.c
index f992e911cd..c7d821714c 100755
--- a/channels/h323/chan_h323.c
+++ b/channels/h323/chan_h323.c
@@ -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);
 		return -1;
 	}
-
-	/* set the connect port */
-	p->call_opt.port = port;
 	
 	/* outgoing call */
 	p->outgoing = 1;
@@ -748,7 +745,7 @@ static struct ast_channel *oh323_request(char *type, int format, void *data)
 		host = tmp;
 		ext = NULL;
 	}
-	
+
 	p = oh323_alloc(0);
 
 	if (!p) {
-- 
GitLab