jobsonp / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
0 stars 0 forks source link

wrong contact field - registration error #844

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

My name is Mihai and I'm working for a Canada SIP provider called Iristel 
(www.iristel.ca). I would like to bring to your attention the following 
incompatible behavior with our services:

- Iristel is using a three way authentication, that means that it has a 
username different than the authentication username (and of course a password). 
When trying to register, our server returns a "conflict" error:

U 2011/02/13 20:31:52.981143 209.146.161.130:33734 -> 209.167.234.109:5060
REGISTER sip:iristel.net SIP/2.0.
Via: SIP/2.0/UDP 172.16.1.7:44259;rport;branch=z9hG4bK78324.
Max-Forwards: 70.
To: <sip:818185_Mih@iristel.net>.
From: <sip:818185_Mih@iristel.net>;tag=z9hG4bK04375413.
Call-ID: 187360583009@172.16.1.7.
CSeq: 1 REGISTER.
Contact: <sip:03081986@172.16.1.7:44259;transport=udp>.
Expires: 3600.
User-Agent: Sipdroid/2.0.1 beta/SAMSUNG-SGH-I896.
Content-Length: 0.
.

U 2011/02/13 20:31:52.981489 209.167.234.109:5060 -> 209.146.161.130:33734
SIP/2.0 409 Conflict.
Via: SIP/2.0/UDP 
172.16.1.7:44259;received=209.146.161.130;rport;branch=z9hG4bK78324.
From: <sip:818185_Mih@iristel.net>;tag=z9hG4bK04375413.
To: <sip:818185_Mih@iristel.net>.
Call-ID: 187360583009@172.16.1.7.
CSeq: 1 REGISTER.
Content-Length: 0.
.

Comparing with a PC soft phone that we are using, I noticed that the "Contact" 
field is in a wrong format:

U 2011/02/13 20:37:59.252120 195.189.150.77:15456 -> 209.167.234.109:5060
REGISTER sip:iristel.net SIP/2.0.
Via: SIP/2.0/UDP 
10.8.0.22:15456;branch=z9hG4bK-d8754z-1d2a6394705fe38e-1---d8754z-;rport.
Max-Forwards: 70.
Contact: <sip:0317818185SCA@10.8.0.22:15456;rinstance=862b422d23e67ad5>.
To: "Mihai"<sip:0317818185SCA@iristel.net>.
From: "Mihai"<sip:0317818185SCA@iristel.net>;tag=31e466f1.
Call-ID: ZGEyYTBiNDU3ZmZmZTc5MTBjZGE2Yzg3YmZmOTJlOTA..
CSeq: 79 REGISTER.
Expires: 3600.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, 
INFO.
User-Agent: Bria 3 release 3.1.2 stamp 58754.
Authorization: Digest 
username="03081986",realm="iristel.net",nonce="BroadWorksXgk4m7uomTvc1xooBW",uri
="sip:iristel.net",response="bc395ffad61fd524da864c653f372c33",cnonce="37ff3acf0
2aa8b473fe616ebde9a0bef",nc=0000004e,qop=auth,algorithm=MD5.
Content-Length: 0.
.

U 2011/02/13 20:37:59.287441 209.167.234.109:5060 -> 195.189.150.77:15456
SIP/2.0 200 OK.
From: "Mihai" <sip:0317818185SCA@209.167.234.109>;tag=31e466f1.
To: "Mihai" <sip:0317818185SCA@209.167.234.109>;tag=2085143074-1297647479338.
Call-ID: ZGEyYTBiNDU3ZmZmZTc5MTBjZGE2Yzg3YmZmOTJlOTA..
CSeq: 79 REGISTER.
Allow-Events: call-info.
Allow-Events: line-seize.
Allow-Events: dialog.
Allow-Events: message-summary.
Allow-Events: as-feature-event.
Content-Length: 0.
Contact: <sip:0317818185SCA@10.8.0.22:15456>;q=0.5;expires=89.
Via: SIP/2.0/UDP 
10.8.0.22:15456;received=195.189.150.77;branch=z9hG4bK-d8754z-1d2a6394705fe38e-1
---d8754z-.
.

Is there any way that sipdroid could use the username in the contact field 
instead of authentication username?

Thanks and regards,
Mihai Radulescu

Original issue reported on code.google.com by mihait...@gmail.com on 14 Feb 2011 at 1:44

GoogleCodeExporter commented 9 years ago

Original comment by pmerl...@googlemail.com on 15 Feb 2011 at 9:43