Lync 2010 and external SIPTrunk advice

Discuss any topic about Brekeke PBX.

Moderator: Brekeke Support Team

Post Reply
hegerth
Posts: 6
Joined: Wed Oct 03, 2012 4:04 am

Lync 2010 and external SIPTrunk advice

Post by hegerth »

1. Brekeke Product Name and version: 3.0.7.0 EVAL

2. Java version: 7

3. OS type and the version: Windows 2008 R2

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

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html : 8

6. Your problem:

I need some advice here please.

I have Lync 2010 installed. (10.10.10.210)
I have a provider with a SIPTrunk - 4 Lines (siptrunk.comp.com)
- phonenumber :0732123456
- with authentication <username> <pwd>
- ports 5060 UDP and RTP/RTPC >= 1024 UDP

Lync's Media Gateway cannot connect to SIPTunk with Auth.
Brekeke SIP Server was sugested as Gateway.
After installing SIP Server i found out that I can't use it in a scenario with a single authentication. It was suggested to user PBX Server (with ARS) settings. I installed PBX-Server.
PBX Server: 10.10.10.250

I searched WIKI and found the OCS info part. (Configure Brekeke PBX for Lync or OCS)

I also went through Admin Guide - 6.17 Connecting with ITSPs.

The PBX is connecting through a MS TMG Firewall, where I have created rules:
5060 UDP out (PBX-Server to SIPTrunk)
RTP out (PBX-Server to SIPTrunk)
5060 UDP in (SIPTrunk to PBX-Server)

At the moment I only want to route Lync Calls.

I've read that i need to provide my external (global) router ip somewhere (SIP Server Config). Is this also needed vor ARS ?

Do I need at least one Phone directly connected to the PBX ?

What else do I have to configure for routing to work ?

thanks for help
Harald
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

the pbx ports in v3070 have changed not 15060 or 15062
need to change ports of dial plan rules in wiki page to new pbx ports in v3070
and put these rules on top of other default dial plan rules


also need to create pbx users and set lync caller number+_ocs in these users, like if lync caller number is 100 then set 100_ocs in pbx user phone page

create ARS with sip trunk authentication information set in registration section and create pattern-out to route call to sip trunk

if pbx server is behind router, put router public IP at pbx/sip server/configuration/system page "Interface address" field
at router side set port forwarding to pbx server IP
hegerth
Posts: 6
Joined: Wed Oct 03, 2012 4:04 am

Post by hegerth »

Thanks for your help!

Tanks for updating Wiki !
hegerth
Posts: 6
Joined: Wed Oct 03, 2012 4:04 am

Post by hegerth »

I just can't connect Lync to Brekeke PBX.

Is there anywhrer Information, how exactly the users have to be created in B-PBX to be forwarded to Lync.

Is there a connection log in Brekeke PBX or do I have to use Netmon ?
How do the users authenticate?

Is there any full example how to configure this szenario:

SIPTrunk (Provider - with single authentication) <-UDP-> Brekeke PBX <-TCP no Auth-> Lync
hegerth
Posts: 6
Joined: Wed Oct 03, 2012 4:04 am

Post by hegerth »

I got one direction working. from PBX to Lync.

Wenn Lync tries to connect I can see:

SIP: Request: OPTIONS sip:10.243.168.250 SIP/2.0

which is immediatly answered by PBX:

SIP: Response: SIP/2.0 404 Not Found

there is no INVITE ? Any ideas ?
hegerth
Posts: 6
Joined: Wed Oct 03, 2012 4:04 am

Post by hegerth »

Just to keep you up to date:

_________ SIPTrunk <---> Brekeke PBX <---> Lync
SIP over UDP - single Auth. __________ SIP over TCP no Auth.

to get this running, our first step was to get communication running for this part:

Brekeke PBX <---> Lync

I created the new rules on Wiki (Configure Brekeke PBX for Lync or OCS). Thanks for update.

I configured Lync to use extentions 20-99
I created 2 Users in PBX (11,12)
I created 2 further users in PBX (31, 32) and defined their first phone number to exactly the phone number in Lync (no +) e.g. my ext phone numer would be: +43 732 123456 so user 31 got a phone number 4373212345631
I had also to asign useres to SIP Server (11, 12, 31, 32)

phone cal from Brekeke PBX to lync (user 11 -> user 31) worked.

lync still couldn't call PBX.

after inspecting trafic I got the problem above. I had to insert this rule first:

UPDATE: Not needed:--------------------------
[Matching Patterns]
$request = ^OPTIONS
[Deploy Patterns]
$response = 200
UPDATE END ----------------------------------

I had to change the standard rule:
-To PBX reject-
on INVITE it returns $action = 404
I Added in [Matching Patterns]
$addr = !10.0.0.0
(IP of Lync)



Now I can call from Lync to PBX.
(but I'm sure there is a better solution (especially removing that rule))

any suggestions ?
hegerth
Posts: 6
Joined: Wed Oct 03, 2012 4:04 am

Post by hegerth »

The only thing that doesn't work is call transfer on lync when called from pbx.

I can see that lync sends a REFER and gets after Trying a Forbidden.

Is this a config Issue or do I need another rule ?
Post Reply