mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-08 12:34:53 +00:00
FS-4605 --resolve
This commit is contained in:
1 parent
98a7d292f4
commit
2b334d571f
1 file changed
+2
@@ -12,6 +12,7 @@ void eslSetLogLevel(int level)
|
|||||||
ESLconnection::ESLconnection(const char *host, const char *port, const char *password)
|
ESLconnection::ESLconnection(const char *host, const char *port, const char *password)
|
||||||
{
|
{
|
||||||
connection_construct_common();
|
connection_construct_common();
|
||||||
|
if (port == NULL) return;
|
||||||
int x_port = atoi(port);
|
int x_port = atoi(port);
|
||||||
|
|
||||||
esl_connect(&handle, host, x_port, NULL, password);
|
esl_connect(&handle, host, x_port, NULL, password);
|
||||||
@@ -20,6 +21,7 @@ ESLconnection::ESLconnection(const char *host, const char *port, const char *pas
|
|||||||
ESLconnection::ESLconnection(const char *host, const char *port, const char *user, const char *password)
|
ESLconnection::ESLconnection(const char *host, const char *port, const char *user, const char *password)
|
||||||
{
|
{
|
||||||
connection_construct_common();
|
connection_construct_common();
|
||||||
|
if (port == NULL) return;
|
||||||
int x_port = atoi(port);
|
int x_port = atoi(port);
|
||||||
|
|
||||||
esl_connect(&handle, host, x_port, user, password);
|
esl_connect(&handle, host, x_port, user, password);
|
||||||
|
|||||||
Reference in new issue
Block a user