Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Brekeke interop. with Lync 2010
Author Message
anodin
Brekeke Member


Joined: 09 Jul 2012
Posts: 14
Location: PARIS

PostPosted: Mon Jul 09, 2012 1:57 am    Post subject: Brekeke interop. with Lync 2010 Reply with quote

1. Brekeke Product Name and version:
Brekeke SIP Server , Version 3.0.6.3 Evaluation

2. Java version:
1.7.0

3. OS type and the version:
Windows Server 2008 Standard Edition

4. UA (phone), gateway or other hardware/software involved:
Lync 2010

5. Network pattern:
1

6. Your problem:
Hi! I'm testing interoperability between Brekeke SIP Server & Lync 2010.
Here's the testing infrastructure :

http://i49.tinypic.com/acdbmb.png

For now, some TCP packets make their way from Brekeke to Lync but calls are declined and I can' t log correctly for debugging.

So I'd have two questions :

1/ Since the Mediation server is integrated with Lync 2010 (not a full-fledged server with its own IP address since it's now possible with 2010 version of Lync - from what I've understood) would this dialplan be ok ?

http://i48.tinypic.com/s320m0.png

2/ As the Mediation server is the part I'm really not sure of, could someone indicate a nice tutorial for this part ? I've tried a few of them but, really not sure of what I'm doing.
Back to top
View user's profile
voipwell.com
Partner PBX


Joined: 20 Sep 2005
Posts: 528
Location: Tannersville, Pennsylvania

PostPosted: Mon Jul 09, 2012 8:08 am    Post subject: Reply with quote

Not sure why you have $continue=true in both statements. Continue true
means to execute that dial plan and continue trying to match another dial plan for that call leg. If that's what you intend then that's ok.
Back to top
View user's profile
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Mon Jul 09, 2012 10:50 pm    Post subject: Reply with quote

You said "calls are declined".
Do you know which SIP response code did the Mediation server return?


For debugging, refer to the wiki below.
http://wiki.brekeke.com/wiki/log-SIP-packets
Back to top
View user's profile
anodin
Brekeke Member


Joined: 09 Jul 2012
Posts: 14
Location: PARIS

PostPosted: Tue Jul 10, 2012 7:34 am    Post subject: Reply with quote

Thanks for both answers.

For "$continue=true" rule, well I'm not sure, I've followed instructions from : http://wiki.brekeke.com/wiki/Configure-Brekeke-SIP-Server-for-OCS

I've implemented the rule for logs, I'll try to log that decline as soon as I can.
Back to top
View user's profile
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Tue Jul 10, 2012 8:23 am    Post subject: Reply with quote

A debugging log will help you but if it is hard to configure, try Wireshark.

Depending on response packet which the Mediation server sends, you may need to tune the Lync.
Back to top
View user's profile
anodin
Brekeke Member


Joined: 09 Jul 2012
Posts: 14
Location: PARIS

PostPosted: Wed Jul 11, 2012 1:54 am    Post subject: Reply with quote

For now, I got nothing in the log, I'm still trying to configure it.

What I got with Wireshark is an incorrect header checksum :

http://postimage.org/image/d9mlkq7np/

(192.168.0.141 : Lync 2010 / 192.168.0.130 : Brekeke SIP Server)

Here's the full exchange :

http://postimage.org/image/b7munj3yh/

(192.168.0.122 : XP with a registered SIP client on Brekeke using Ekiga)

They talk about that problem on other boards, they're taliking about firmware.

I'm gonna try with another softphone to see if I got something different.
Back to top
View user's profile
anodin
Brekeke Member


Joined: 09 Jul 2012
Posts: 14
Location: PARIS

PostPosted: Wed Jul 11, 2012 2:41 am    Post subject: Reply with quote

Actually the INVITE is not even re-routed, it could be a matter of port, I'm trying to edit the dialplan.
Back to top
View user's profile
anodin
Brekeke Member


Joined: 09 Jul 2012
Posts: 14
Location: PARIS

PostPosted: Wed Jul 11, 2012 3:04 am    Post subject: Reply with quote

I've changed the port by changing the dialplan :

To = sip:+%1@192.168.0.141:5050

Now the INVITE is sent to Lync, the error I get is :

486 Status : 400 Missing correct Via header
Back to top
View user's profile
anodin
Brekeke Member


Joined: 09 Jul 2012
Posts: 14
Location: PARIS

PostPosted: Wed Jul 11, 2012 5:55 am    Post subject: Reply with quote

I've followed that from Cisco's board and adapted it :

Quote:
1) Have you enabled TCP connections on Lync? If not, do this first:
Set-CsRegistrar "registrar:pool.your-domain.com" -SipServerTcpPort 5060
set-CsMediaConfiguration -EncryptionLevel supportencryption

2) Make sure that IP of VCS (not FQDN) is used in trusted application and route to VCS in Lync, and TCP mode is used:
New-CsTrustedApplication -ApplicationID CiscoVCS -TrustedApplicationPoolFqdn <VCS IP> -Port 5060 -EnableTCP
$route = New-CsStaticRoute -TCPRoute -destination "<VCS IP>" -port 5060 -matchuri "vcs.sip.domain.com"

3) Open Topology Builder, go to Trusted Application Servers - <VCS IP>, then change the radio button from "Use all configured IP addresses" to "Limit service usage to selected IP addresses" and type you VCS IP.

4) Publish topology and check for "Missing Correct Via Header" error again.


And now I'm stuck with :

667 Status: 504 Server time-out :

ms-diagnostics: 1022;reason="Cannot process routing destination";Destination="sip:401@192.168.0.141:5050";source="LyncServer.lync.fr"
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Wed Jul 11, 2012 6:38 pm    Post subject: Reply with quote

> 486 Status : 400 Missing correct Via header

Can you paste the INVITE packet here which sent from Brekeke SIP Server to Lync?

Does its Via header indicate the Brekeke SIP Server's IP address?
Back to top
View user's profile
anodin
Brekeke Member


Joined: 09 Jul 2012
Posts: 14
Location: PARIS

PostPosted: Fri Jul 13, 2012 10:16 am    Post subject: Reply with quote

Here's the INVITE packet :

http://txtup.co/Eochf

Yes its Via header indicates the Brekeke IP's address, even two times, UDP & TCP.

Anyway, I think the problem is on the Lync side where I'm really not sure what to do between put a PSTN or Trusted Pool or both. I keep on trying
Back to top
View user's profile
ambrosio
Brekeke Master Guru


Joined: 27 Mar 2008
Posts: 215

PostPosted: Mon Jul 16, 2012 10:50 pm    Post subject: Reply with quote

I looked at your packets.
Are you using X-Lite and Brekeke SIP Server on same machine?


Try the B2B UA mode at Brekeke SIP Server.
http://wiki.brekeke.com/wiki/Back-To-Back-User-Agent-Mode
Back to top
View user's profile
anodin
Brekeke Member


Joined: 09 Jul 2012
Posts: 14
Location: PARIS

PostPosted: Tue Jul 17, 2012 12:27 pm    Post subject: Reply with quote

Oh nice, thanks very much for the help.

Well now I get a :

882 Status : 401 Unauthorized

Seems to be an authentication problem.

I don't think that Brekeke could auhtenticate via Kerberos or TLS-DSK (Lync only protocol ?) but maybe there's a chance with NTLM

However, here's a full packet :

http://txtup.co/l8WqZ
Back to top
View user's profile
ambrosio
Brekeke Master Guru


Joined: 27 Mar 2008
Posts: 215

PostPosted: Tue Jul 17, 2012 7:58 pm    Post subject: Reply with quote

Have you read Lync's document?
You will find a clue there.


For 401, it means you need a valid username and password at Lync.
Contact a system administrator in your organization.
Back to top
View user's profile
ambrosio
Brekeke Master Guru


Joined: 27 Mar 2008
Posts: 215

PostPosted: Tue Jul 17, 2012 8:02 pm    Post subject: Reply with quote

Let you use http://pcapr.net/ if you post packets Smile
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1