XMPP to gmail - Accept invitations
-
Wednesday, September 07, 2011 8:39 AM
Hello,
I finally manage to configure the xmpp gateway and I can successfully IM the gmail users, but I have a problem with my conf :When I would like to chat to a gmail user I can add him on my Lync client. He receives a message on his Gmail client to accept my invitation and if he accept I can IM with him and see his presence. But the Lync user appear in the gmail client as an invited user, so from gmail I cannot initiate a conversation or see the presence of the Lync user (xxxxxx has not yet accepted your invitation to google talk).
I have the following logs in my XMPP gateway :
And on my Lync Edge server :
Component: SIPStack
Level: TL_INFO
Flag: TF_DIAG
Function: SIPAdminLog::TraceDiagRecord
Source: SIPAdminLog.cpp(147)
Local Time: 09/07/2011-09:20:51.375
Sequence# : 00001E26
CorrelationId :
ThreadId : 03F0
ProcessId : 1108
CpuId : 0
Original Log Entry :
TL_INFO(TF_DIAG) [0]1108.03F0::09/07/2011-07:20:51.375.00001e26 (SIPStack,SIPAdminLog::TraceDiagRecord:SIPAdminLog.cpp(147))$$begin_record
LogType: diagnostic
Severity: information
Text: The message has an Allowed Partner Server domain
SIP-Start-Line: SUBSCRIBE sip:xxxxxxx@xxxxxxxx.ch:5061;maddr=lync-edge.xxxxxx.local;transport=Tls SIP/2.0
SIP-Call-ID: 4af89d9d025f413597ac60d94075bfc7
SIP-CSeq: 53 SUBSCRIBE
Peer: lyncxmpp.xxxxxxxx.ch:49351
Data: domain="gmail.com"
$$end_record************************
Component: SIPStack
Level: TL_WARN
Flag: TF_DIAG
Function: SIPAdminLog::TraceDiagRecord
Source: SIPAdminLog.cpp(145)
Local Time: 09/07/2011-09:20:51.375
Sequence# : 00001E2A
CorrelationId :
ThreadId : 03F0
ProcessId : 1108
CpuId : 0
Original Log Entry :
TL_WARN(TF_DIAG) [0]1108.03F0::09/07/2011-07:20:51.375.00001e2a (SIPStack,SIPAdminLog::TraceDiagRecord:SIPAdminLog.cpp(145))$$begin_record
LogType: diagnostic
Severity: warning
Text: Non-trusted source with a request URI that is not eligible for static routing
Result-Code: 0xc3e93c5e SIPPROXY_E_ROUTING
SIP-Start-Line: SUBSCRIBE sip:xxxxxx@xxxxxxxx.ch:5061;maddr=lync-edge.xxxxxxxxx.local;transport=Tls SIP/2.0
SIP-Call-ID: 4af89d9d025f413597ac60d94075bfc7
SIP-CSeq: 53 SUBSCRIBE
Data: destination="sip:xxxxxxx@xxxxxxx.ch:5061;maddr=lync-edge.xxxxxxx.local;transport=Tls";user="xxxxxx@xxxxxxxx.ch"
$$end_record************************
Component: SIPStack
Level: TL_INFO
Flag: TF_DIAG
Function: SIPAdminLog::TraceDiagRecord
Source: SIPAdminLog.cpp(147)
Local Time: 09/07/2011-09:20:51.375
Sequence# : 00001E2F
CorrelationId :
ThreadId : 03F0
ProcessId : 1108
CpuId : 0
Original Log Entry :
TL_INFO(TF_DIAG) [0]1108.03F0::09/07/2011-07:20:51.375.00001e2f (SIPStack,SIPAdminLog::TraceDiagRecord:SIPAdminLog.cpp(147))$$begin_record
LogType: diagnostic
Severity: information
Text: Response successfully routed
SIP-Start-Line: SIP/2.0 504 Server time-out
SIP-Call-ID: 4af89d9d025f413597ac60d94075bfc7
SIP-CSeq: 53 SUBSCRIBE
Peer: lyncxmpp.xxxxxxxx.ch:49351
Data: destination="lyncxmpp.xxxxxxxxxxx.ch"
$$end_recordAnd this is what I see on the clients :
The gmail integration is making me crazy :)If anyone has any suggestion they will be welcome :)Cheers
All Replies
-
Friday, September 09, 2011 3:04 AMModerator
Hi Vindryn,
I suggest you to test connectivity by using the XMPP gateway console.
To test SIP connectivity from the Microsoft Management Console (MMC):
1. In the left pane, click SIP Configuration.
2. Click the Validate Connection tab.
3. Select your SIP domain in the list next to Allowed Domain. This will test a SIP over TLS connection from your XMPP gateway to your Edge Server.
Next, test the XMPP connectivity to the federated XMPP domain:
1. In the left pane, click XMPP configuration.
2. Click the Validate Connection tab.
3. Select the XMPP domain in the list next to Allowed Domain. This will test XMPP connectivity from your XMPP gateway to the federated XMPP domain.
If you run into issues, see the “Troubleshooting” and “Additional Resources” sections in Interoperability with XMPP Systems Using the XMPP. Hope helps.
-
Friday, September 09, 2011 6:10 AM
Hi Noya,
Thanks for your answer.
I already test both as the first step of my troubleshooting. Both results are fine :
"The Connection to 'domain.com' was successful"
-------
The Connection to 'xmpp-server.l.google.com' was successful
The Connection to 'alt1.xmpp-server.l.google.com' was successful
The Connection to 'alt2.xmpp-server.l.google.com' was successful
The Connection to 'alt3.xmpp-server.l.google.com' was successful
The Connection to 'alt4.xmpp-server.l.google.com' was successfulThe XMPP server seems to be fine, I just have some routing problem with the Edge. If a gmail user try to initiate the connexion, by sending me an IM, the connection fail.
It seems that it is a problem with the routing on the Edge server :
( 0000000003FD5770 ) routedByApplication [0x00000000(false)], routeHeadersValidated [0x00000000(false)], sourceTrusted [0x00000000(false)]. TrustedForRouting = 0x00000000(false)
*******************
( 3195726454 )( 0000000003FD5770 ) Exit - untrusted request that is ineligible for static routing. Returned 0xC3E93C5E(SIPPROXY_E_ROUTING)
*******************
$$begin_record
LogType: diagnostic
Severity: warning
Text: Non-trusted source with a request URI that is not eligible for static routing
Result-Code: 0xc3e93c5e SIPPROXY_E_ROUTING
SIP-Start-Line: INVITE sip:localuser@domain.com:5061;maddr=lync-edge.domain.local;transport=Tls SIP/2.0
SIP-Call-ID: f8aa6a28ae7c4412ac76a1da675e87b9
SIP-CSeq: 55 INVITE
Data: destination="sip:localuser@domain.com:5061;maddr=lync-edge.domain.local;transport=Tls";user="localuser@domain.com"
$$end_record**********************
( 3195726454 )( 00000000035E7F58 ) Exit - failed to route the Request-URI. Returned 0xC3E93C5E(SIPPROXY_E_ROUTING)on the XMPP :
TL_INFO(TF_PROTOCOL) [0]07F8.09E0::09/08/2011-12:58:48.687.00000927 (S4,SipMessage.DataLoggingHelper:58.idx(581))
<<<<<<<<<<<<Incoming SipMessage c=[<SipTlsConnection_342C81C>], 192.168.111.92:49273<-192.168.111.91:5061
SIP/2.0 504 Server time-out
FROM: <sip:xxxxxxxx@gmail.com>;tag=66fe429675
TO: <sip:localuser@domain.com>;tag=1720B7781DAB53014AA9C0AA782D5D5E
CSEQ: 55 INVITEI have these errors each time a user from gmail try to initialise the connection. If I send a message to gmail from Lync and the gmail user answer this is fine.
- Edited by Vindryn Friday, September 09, 2011 6:11 AM
-
Tuesday, September 13, 2011 8:28 PMI am having this exact same issue, would be very interested in an answer as well
-
Wednesday, September 14, 2011 8:41 AM
Vyndryn,
>> Make sure you have following SRV record created correctly
_xmpp-server._tcp.<domain>.comYou can test that as follows
C:\nslookup
> Server 4.2.2.2
> set type=srv
> _xmpp-server._tcp.<sip-domain>The Result should look as follwos
Server: [4.2.2.2]
Address: 4.2.2.2
Non-authoritative answer:
_xmpp-server._tcp.<sip-domain> SRV service location:
priority = 20
weight = 0
port = 5269
svr hostname = xmpp-server.<sip-domain>>> If the Srv record is correct then
take a Network Monitor Trace.Please note Google and Jabber XCP 5.4 uses TCP dialback for federation with XMPP servers.
http://technet.microsoft.com/en-us/library/ff394138.aspx
http://www.ietf.org/rfc/rfc3920.txt-Sanotsh
Microsoft Unified Communications Team -
Wednesday, September 14, 2011 2:26 PM
Hi,
All that results seems to be fine.
I am actually dealing with Microsoft to fix the issue. It seems to be a problem with the certificate. On the "CAPI" event log of the Edge there is some error messages about the CN name that diffear from the name sent.
I will keep you in touch when the problem is solved.
-
Wednesday, September 14, 2011 2:34 PM
Hi,
All that results seems to be fine.
I am actually dealing with Microsoft to fix the issue. It seems to be a problem with the certificate. On the "CAPI" event log of the Edge there is some error messages about the CN name that diffear from the name sent.
I will keep you in touch when the problem is solved.
-
Thursday, September 15, 2011 10:30 PM
Vindryn,
I worked with Microsoft as well and got my issue resolved.
In the event viewer on the XMPP gateway i was getting an error is the system log that the certificate could not be trusted from the sender. After having Microsoft look at it we had to Export from our Lync Edge Server our Geo Trust Global CA cert, the intermediate GeoTrust cert and our Internal CA cert, our public certs for Lync were issued by Geotrust. We then imported them on the XMPP gateway into the appropriate location.
Those errors immediately stopped. We then verified the connectivity and then pointed out the the XMPP server needs to hit the Edge Server sip address. in our case it was Sip.<domain name>.com and we just added a hosts entry to point to the DMZ interface of the Edge Server. We restarted the Services and all is working now.
hope this info is somewhat helpful
- Marked As Answer by Vindryn Friday, September 16, 2011 11:44 AM
-
Friday, September 16, 2011 11:44 AM
Hello,
Yesterday our DC that was hosting the certification authority crashed. The Lync certificates and XMPP certificates was generated from that authority.
I installed a new certificate authority and re-created my lync certificates. It seems that was not the issue.
The issue was the configuration of the OCS XMPP Gateway. The Host Name of the Edge Server used in the SIP configuration was "lync-edge.domain.local" and I changed it by "sip.domain.com", the XMPP work fine now.
The FQDN "lync-edge.domain.local" is related to the internal network of the edge server and the XMPP gateway was trying to talk to the External network of the Edge with the internal name.
Thanks for your help :)
- Marked As Answer by Vindryn Friday, September 16, 2011 11:44 AM

