<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello<br>
<br>
I have now resolved this - but a couple of things arise.<br>
<br>
Firstly in terms of resolution the "domains" within
"xmppgateway.ini" needed to include my target domain name
(myexternal.com) even though this isn't an XMPP domain (it's SIP) <br>
<blockquote>domains = myinternal.com,myexternal.com<br>
</blockquote>
I don't know if this is intended - the text says "Comma-separated
list of Internet domains for which this server is responsible" - is
SylkServer 'responsible' for all the domains that source XMPP users
might connect to? - in my scenario (XMPP internal and SIP external
via SIP Gateway) I was figuring that it was the SIP Gateway that was
dealing with the external domains. <br>
<br>
As it stands this list would need to include all the SIP domains
that the source XMPP users might want to connect to - is that
correct? I can see that it might be useful to be able to force
validation of source and target domains (from a lock-down point of
view), but should these be an optional configuration items
defaulting to false?. <br>
<br>
After a deal of deep tracing I've found that this error is being
raised deep with the wokkel code (base XMPP Server code).<br>
<blockquote>In XMPPServerListenAuthenticator.onVerify<br>
...<br>
originatingServer = jid.JID(verify['to']).host<br>
...<br>
<br>
if originatingServer not in self.service.domains:<br>
raise error.StreamError('host-unknown')<br>
</blockquote>
<br>
Following that I've then found that host entry in the
"outbound_gateway" can be an IP address (as my original) but not an
internal domain name, while it can be an external domain name.
With the internal domain name I get:<br>
<br>
<blockquote>[xmppgateway] DNS lookup error while looking for
<a class="moz-txt-link-freetext" href="sip:sipgateway.myinternal.com:5060;transport=udp">sip:sipgateway.myinternal.com:5060;transport=udp</a> proxy<br>
</blockquote>
<br>
As my SIP Gateway is an internally hosted box I was expecting that
it would use the local machine domain name server and not those of
my default gateway. This is similar to a question I posed on Blink
forum - as client appears to do the same.<br>
<br>
From dig - which is what the linux server view of DNS<br>
<blockquote>[root@agn10 sylkserver]# dig sipgateway.myinternal.com<br>
<br>
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.6
<<>> sipgateway.myinternal.com<br>
;; global options: +cmd<br>
;; Got answer:<br>
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:
55144<br>
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0,
ADDITIONAL: 0<br>
<br>
;; QUESTION SECTION:<br>
;sipgateway.myinternal.com. IN A<br>
<br>
;; ANSWER SECTION:<br>
<b>sipgateway.myinternal.com. 0 IN A
192.168.2.15</b><br>
<br>
;; Query time: 2 msec<br>
;; SERVER: 192.168.2.10#53(192.168.2.10)<br>
;; WHEN: Wed Oct 2 14:05:01 2013<br>
;; MSG SIZE rcvd: 54<br>
</blockquote>
Regards<br>
David<br>
<br>
On 01/10/2013 13:16, David Hubbard wrote:<br>
<blockquote cite="mid:524ABD1F.70906@agenor.co.uk" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi<br>
<br>
I'm (now) getting an error sending a contact request from an XMPP
Server through SylkServer and onto OpenSIPS Server.<br>
<br>
SylkServer sends a "host-unknown" back to XMPP server - shown in
xmpp_trace.txt (below)<br>
<br>
I have outbound_proxy set in "config.ini" as:<br>
<br>
<blockquote>outbound_proxy =192.168.2.15:5060;transport=udp<br>
</blockquote>
<br>
and I am able to connect into this port (using nc) - and probes
from this show in OpenSIP log<br>
<br>
Am I missing some other configuration ? Does SylkServer do any
checking of domain names - e.g. lookup _sip SRV (or NAPTR) records
or always obey the outbound_proxy setting.<br>
<br>
<br>
xmpp_trace<br>
~~~~~~~~~~<br>
2013-10-01T12:49:43.864395+01:00 [sylk-server 31836]: RECEIVED:
Packet 13, +0:02:49.344527<br>
<?xml version='1.0'?><stream:stream xmlns:stream='<a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>'
xmlns='jabber:server' xmlns:db='jabber:server:dialback'
from='myinternal.com' to='myexternal.com' version='1.0'><br>
--<br>
2013-10-01T12:49:43.865468+01:00 [sylk-server 31836]: SENDING:
Packet 14, +0:02:49.345600<br>
<stream:stream xmlns:stream='<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://etherx.jabber.org/streams">http://etherx.jabber.org/streams</a>'
xmlns='jabber:server' xmlns:db='jabber:server:dialback'
version='1.0' from='myexternal.com' id='02670d727b969693'><br>
--<br>
2013-10-01T12:49:43.866342+01:00 [sylk-server 31836]: SENDING:
Packet 15, +0:02:49.346474<br>
<stream:error><host-unknown
xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error><br>
--<br>
2013-10-01T12:49:43.866851+01:00 [sylk-server 31836]: SENDING:
Packet 16, +0:02:49.346983<br>
</stream:stream><br>
--<br>
<br>
</blockquote>
<br>
</body>
</html>