Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Forward Registration from specifaddress
Author Message
sympology
Brekeke Addict


Joined: 18 Feb 2010
Posts: 30
Location: UK

PostPosted: Thu Oct 04, 2012 8:45 am    Post subject: Forward Registration from specifaddress Reply with quote

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

2. Java version:
1.7.0_07
3. OS type and the version:
Win7
4. UA (phone), gateway or other hardware/software involved:
Multiple devices
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :
1
6. Your problem:
Running a test on 3.0.7 (we already have 2 live servers) and trying to solve a specific issue.
We are using Upper registration for a specific reason (so can't be altered) and thru is enabled.

What I am trying to change is the registration address and forward it on.
Device A
10.10.10.1

Device B
10.10.10.2

Proxy
10.10.10.3

What I am aiming to change is;
A registration request comes from Device A into the Proxy and I want to forward it on to Device B, changing the RegistrationURI address to that of device B's, however I want the Contact URI to remain unchanged.
However I only want this to affect registrations from Device A, not from any other address.
So as an example:

Source IP = 10.10.10.1
Registration URI 100@10.10.10.1
Contact URI 100@10.10.5.5

Goes to the Proxy and is forwarded on to 10.10.10.2

New details are
Registration URI 100@10.10.10.2
Contact URI 100@10.10.5.5

Does this make sense.?
It's probably very obvious but I'm stumped.
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Thu Oct 04, 2012 11:27 am    Post subject: Reply with quote

http://www.brekeke-sip.com/download/bss/v2_x/bss_tutorial_dialplan_en.pdf
ex56

you may need to use $addr = 10.10.10.1 instead of From = xxxx
Back to top
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 243

PostPosted: Thu Oct 04, 2012 11:54 am    Post subject: Reply with quote

> .. I want to forward it on to Device B,

Does Device B accept REGISTER request?
Back to top
View user's profile
sympology
Brekeke Addict


Joined: 18 Feb 2010
Posts: 30
Location: UK

PostPosted: Fri Oct 05, 2012 1:22 am    Post subject: Reply with quote

Laurie wrote:
> .. I want to forward it on to Device B,

Does Device B accept REGISTER request?


Yes it does, it's almost identical to A.

If we point A Directly to B it works, but for technical reasons, we can't do this, it has to go via the proxy.
Back to top
View user's profile
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 243

PostPosted: Fri Oct 05, 2012 12:11 pm    Post subject: Reply with quote

Try this.
Matching Patterns
$request = ^REGISTER
$addr = 10.10.10.1$
Deploy Patterns
&net.registrar.upper.allow = true
&net.registrar.upper.addr = 10.10.10.2
&net.registrar.useoriginal = true
$action = register
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