This Question is Possibly Answered

1 "correct" answer available (5 pts) 2 "helpful" answers available (1 pts)
1 Replies Last post: Feb 13, 2010 6:25 PM by joegen  
Click to view austincao's profile   16 posts since
Nov 11, 2009

Feb 11, 2010 8:55 PM

About registration procedure


Hi all,

Recently, I did some test over OSBC (*dual NICs*), and I found something confused me. Because my English is not very good, so it may sounds a little bit complex.

It is about the registration procedure, the way OSBC constucting Contact header of the REGISTER that will be sent to Registrar make me a little confused.

1. Conditions:
OSBC: interface1: 172.16.0.130, interface2: 123.127.237.90
while interface2 is the public access point for users and interface1 is in the same WLAN as Registrar.

Test user: Bob
It will register with Registrar through OSBC from 172.16.0.190 first, and then it will change its interface and register with Registrar from 172.19.1.136

2. Results:
First registration:
The Contact header that Registrar see: sip:x-reg-id-sip%3aBob%40123.127.237.55%3a1546@172.16.0.130:5062
The Registration record that can be view from OSBC admin GUI: sip:Bob@123.127.237.55:1546

Second registration:
The Contact header that Registrar see: sip:x-reg-id-sip%3aBob%40172.19.1.136%3a5060;send-addr=123.127.237.39%3a13982@172.16.0.130:5062
The Registration record that can be view from OSBC admin GUI: sip:Bob@172.19.1.136:5060

3. Analysis:
Maybe it is caused by the difference between the two gateways. However, it can be found in the OSBC log files that OSBC knows exactly where the REGISTER message come from (first from 123.127.237.55, second from 123.127.237.39), then why the format of the constructed Contact header is so different?

Why I bring up this issue (maybe not an issue at all) is because this registration procedure effects the call flow. Since 172.19.1.136 is not accessible for OSBC's public insterface, it should send the SIP messages to 123.127.237.39 with appropriate port at first.

I will check the source code today, and anyone has encounter this issue, please give me any tips, it is very appreciated!

Brs

austincao

Click to view joegen's profile   519 posts since
Apr 28, 2007
1. Feb 13, 2010 6:25 PM in response to: austincao
Re: About registration procedure

Hi Austincao,

In this case, INVITE to the first registration of bob would go to 123.127.237.55 and the second registration would go to 123.127.237.39. The difference between the two registrations is that the first one did not have the send-addr parameter in the contact-URI. This could only mean one thing, that the first REGISTER sent by bob has a none private contact URI.

Joegen