Brekeke Forum Index » Brekeke PBX Forum

Post new topic   Reply to topic
Lync 2010 and external SIPTrunk advice
Author Message
hegerth
Brekeke Junior Member


Joined: 03 Oct 2012
Posts: 6

PostPosted: Wed Oct 03, 2012 4:34 am    Post subject: Lync 2010 and external SIPTrunk advice Reply with quote

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/networkpatterns.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
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Wed Oct 03, 2012 8:56 am    Post subject: Reply with quote

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
Back to top
View user's profile
hegerth
Brekeke Junior Member


Joined: 03 Oct 2012
Posts: 6

PostPosted: Thu Oct 04, 2012 6:30 am    Post subject: Reply with quote

Thanks for your help!

Tanks for updating Wiki !
Back to top
View user's profile
hegerth
Brekeke Junior Member


Joined: 03 Oct 2012
Posts: 6

PostPosted: Mon Oct 08, 2012 2:01 am    Post subject: Reply with quote

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
Back to top
View user's profile
hegerth
Brekeke Junior Member


Joined: 03 Oct 2012
Posts: 6

PostPosted: Wed Oct 10, 2012 2:45 pm    Post subject: Reply with quote

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 ?
Back to top
View user's profile
hegerth
Brekeke Junior Member


Joined: 03 Oct 2012
Posts: 6

PostPosted: Thu Oct 11, 2012 3:26 am    Post subject: Reply with quote

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 ?
Back to top
View user's profile
hegerth
Brekeke Junior Member


Joined: 03 Oct 2012
Posts: 6

PostPosted: Fri Oct 12, 2012 12:55 am    Post subject: Reply with quote

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 ?
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke PBX Forum All times are GMT - 7 Hours
Page 1 of 1