[SIP Beyond VoIP] Can't get sylkserver sending messages towards XMPP Server

Tihomir Hadzhiev thadgiev at yahoo.com
Wed Aug 22 14:33:35 CEST 2012


Hi Saul, 

so here is the story:

Problem 1: Attached a tcpdump taken on the machine where the XMPP server and the OpenIms are running, the SylkServer runs on a separate box. Some legend about the IP addressing:

10.226.20.23 - the SIP/MSRP client
10.226.20.240 - OpenIms box ( open-ims.test, scscf.*, pcscf.* etc... )
192.168.56.101 - SylkServer   ( the sylkserver virtual uses the same DNS server as the OpenIms and the XMPP server, e.g. the DNS is running there. 

Saul: I guess you are using a hostname in the contact header, right? Can you attach a SIP trace? 
Tihomir: Yes, that's correct, a hostname is used. 

Problem 2:

Saul: There is a configuration option for that: use_msrp_for_chat, if you set it to false SIP MESSAGEs will be sent, else MESSAGE is only used for XMPP 'normal' message stanzas, not 'chat' message stanzas.
Tihomir: Yes, that's understood, and it is currently set to True

Traces attached for the second scenario as well. 

Saul: When the XMPP gateway application is used in SylkServer, it will create S2S connections towards other XMPP servers and also accept incoming ones. Also, did you configure SylkServer to use the XMPP gateway application? Else it would default to the conference application.

Tihomir: Well, I believe that by placing the xmppgateway.ini file in the /etc/sylkserver this gets enabled by default, isn't it ?

Btw I am subscribed, and have just checked on the website, e.g. logged in and checked my profile "tichomir" where this e-mail address is entered. 

You help is really appreciated. 

Thanks, 
Tihomir

________________________________
 From: Saúl Ibarra Corretgé <saul at ag-projects.com>
To: Tihomir Hadzhiev <thadgiev at yahoo.com> 
Cc: sipbeyondvoip at lists.ag-projects.com 
Sent: Wednesday, August 22, 2012 12:36 PM
Subject: Re: [SIP Beyond VoIP] Can't get sylkserver sending messages towards XMPP Server
 
Hi,

On Aug 22, 2012, at 12:16 PM, Tihomir Hadzhiev wrote:

> Hi All, 
> 
> I have finally covered the problem with the non running SylkServer with the XMPP module. Just had to go for a bit older Ubuntu version but still the one which already has the Python 2.7 supported fully. So far so good. I am somehow able to send now a message from:
> 
> tihoparvi at testing.com ( whcih is my XMPP domain ) -> to alice at open-ims.test ( my SIP/MSRP ) domain  ( using Boghe IMS/RCS client )
> 
> Problem 1:
> 
> in the above case, the pure SIP message works fine, at least the direction which is described above. However when I try to make a chat session, obviously something is being sent through the chain upto the IMS client, the window for the chat sessions pops up, but that's already all of it, no message really reaches the IMS client. 
> 
> 
> Attached is excerpt from all the logs generated during the INVITE sessions, I have doubts that it has to do with with resolving hostnames:
> 
> 2012-08-22 12:02:35.209000 [sylk-server 10194] (5)   tsx0x3254418: Incoming Response msg 180/INVITE/cseq=19265 (rdata0x280c3f8) in state Proceeding
> 2012-08-22 12:02:35.209000 [sylk-server 10194] (5)   tsx0x3254418: State changed from Proceeding to Proceeding, event=RX_MSG
> 2012-08-22 12:02:35.209000 [sylk-server 10194] (5)   dlg0x3234268: Received Response msg 180/INVITE/cseq=19265 (rdata0x280c3f8)
> 2012-08-22 12:02:35.209000 [sylk-server 10194] (5)   dlg0x3234268: Route-set updated
> 2012-08-22 12:02:35.209000 [sylk-server 10194] (5)   dlg0x3234268: Transaction tsx0x3254418 state changed to Proceeding
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)       endpoint: Request msg PRACK/cseq=19267 (tdta0x3255680) created.
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)   dlg0x3234268: Sending Request msg PRACK/cseq=19267 (tdta0x3255680)
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)   tsx0x3256738: Transaction created for Request msg PRACK/cseq=19266 (tdta0x3255680)
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)   tsx0x3256738: Sending Request msg PRACK/cseq=19266 (tdta0x3255680) in state Null
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)  sip_resolve.c: Starting async DNS A query: target=scscf.open-ims.test, transport=Unspecified, port=6060
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (4)  sip_resolve.c: Failed to resolve 'scscf.open-ims.test'. Err=320045 (No nameserver is in DNS resolver (PJLIB_UTIL_EDNSNONS))
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (2)   tsx0x3256738: Failed to send Request msg PRACK/cseq=19266 (tdta0x3255680)! err=320045 (No nameserver is in DNS resolver (PJLIB_UTIL_EDNSNONS))
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)   tsx0x3256738: State changed from Null to Terminated, event=TRANSPORT_ERROR
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)   dlg0x3234268: Transaction tsx0x3256738 state changed to Terminated
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)   dlg0x3234268: Session count dec to 3 by mod-invite
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)       endpoint: Request msg BYE/cseq=19268 (tdta0x3257e50) created.
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)   inv0x3234268: Sending Request msg BYE/cseq=19268 (tdta0x3257e50)
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)   dlg0x3234268: Sending Request msg BYE/cseq=19268 (tdta0x3257e50)
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)   tsx0x3258f08: Transaction created for Request msg BYE/cseq=19267 (tdta0x3257e50)
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)   tsx0x3258f08: Sending Request msg BYE/cseq=19267 (tdta0x3257e50) in state Null
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)  sip_resolve.c: Starting async DNS A query: target=scscf.open-ims.test, transport=Unspecified, port=6060
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (4)  sip_resolve.c: Failed to resolve 'scscf.open-ims.test'. Err=320045 (No nameserver is in DNS resolver (PJLIB_UTIL_EDNSNONS))
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (2)   tsx0x3258f08: Failed to send Request msg BYE/cseq=19267 (tdta0x3257e50)! err=320045 (No nameserver is in DNS resolver (PJLIB_UTIL_EDNSNONS))
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)   tsx0x3258f08: State changed from Null to Terminated, event=TRANSPORT_ERROR
> 2012-08-22 12:02:35.210000 [sylk-server 10194] (5)   dlg0x3234268: Transaction tsx0x3258f08 state changed to Terminated
> 
> but from the other side if I issue the following command on the machine where the sylkserver is running:
> 
> root at tichomir-VirtualBox:/var/log/sylkserver# nslookup scscf.open-ims.test
> Server:         10.226.20.240
> Address:        10.226.20.240#53
> 
> Name:   scscf.open-ims.test
> Address: 10.226.20.240
> 
> So this was problem one, please help if that's possible ?
> 

I guess you are using a hostname in the contact header, right? Can you attach a SIP trace? 

> Problem 2: 
> 
> The other direction of course there is a problem as well, e.g. SIP/MSRP -> XMPP domain. The below logs excerpt is when I try to send a normal SIP message ( SMS ) through the IMS/RCS client, obviously the INVITE reaches the SylkServer, however then SylkServer replies with Method Not Allowed. 
> 

There is a configuration option for that: use_msrp_for_chat, if you set it to false SIP MESSAGEs will be sent, else MESSAGE is only used for XMPP 'normal' message stanzas, not 'chat' message stanzas.

> Same problem of course will appear if I try to initiate Chat session, e.g. MSRP based
> 

I only see a SIP trace for the MESSAGE scenario, can you attach one for this case?

> What can be the problem here ?
> 
> Also, how the SylkServer is supposed to transfer the message towards the XMPP domain. That's not really clear from the documentation. Is it the case that it should contact the S2S XMPP server port, e.g. 5269, or there is a different mechanism ?
> 

When the XMPP gateway application is used in SylkServer, it will create S2S connections towards other XMPP servers and also accept incoming ones. Also, did you configure SylkServer to use the XMPP gateway application? Else it would default to the conference application.


Regards,

PS: Can you please subscribe to the list? It has low traffic and it's members only, so I need to allow each of your emails manually otherwise :-)

--
Saúl Ibarra Corretgé
AG Projects
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20120822/2c757449/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmpp_chat_to_sip_msrp.cap
Type: application/octet-stream
Size: 41212 bytes
Desc: not available
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20120822/2c757449/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sip-msrp-to-xmpp-chat.zip
Type: application/zip
Size: 49382 bytes
Desc: not available
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20120822/2c757449/attachment-0001.zip>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sip-msrp-to-xmpp-chat-application-tracing.txt
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20120822/2c757449/attachment-0001.txt>


More information about the SIPBeyondVoIP mailing list