diff options
author | Olle Johansson <oej@edvina.net> | 2007-05-24 14:41:43 +0000 |
---|---|---|
committer | Olle Johansson <oej@edvina.net> | 2007-05-24 14:41:43 +0000 |
commit | 9b95428ccecf401cf6895f06d2ccdcec5e9588af (patch) | |
tree | 2ef234321bbf27d4a313749a99b180af5adb0fbd /res/res_jabber.c | |
parent | 0ec502099f9561e5bc36687f630df254e66a0d77 (diff) |
Issue #8409 and accidentally a fix to chan_sip that wasn't supposed to be there
but is still ok... Sorry. Lack of Tea, really.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_jabber.c')
-rw-r--r-- | res/res_jabber.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/res/res_jabber.c b/res/res_jabber.c index 649e7534c..d617aa76a 100644 --- a/res/res_jabber.c +++ b/res/res_jabber.c @@ -1853,12 +1853,13 @@ static int aji_client_initialize(struct aji_client *client) static int aji_component_initialize(struct aji_client *client) { int connected = 1; - connected = iks_connect_via(client->p, client->jid->server, client->port, client->user); + + connected = iks_connect_via(client->p, S_OR(client->serverhost, client->jid->server), client->port, client->user); if (connected == IKS_NET_NOCONN) { ast_log(LOG_ERROR, "JABBER ERROR: No Connection\n"); return IKS_HOOK; } else if (connected == IKS_NET_NODNS) { - ast_log(LOG_ERROR, "JABBER ERROR: No DNS\n"); + ast_log(LOG_ERROR, "JABBER ERROR: No DNS %s for client to %s\n", client->name, S_OR(client->serverhost, client->jid->server)); return IKS_HOOK; } else if (!connected) iks_recv(client->p, 30); |