0 Replies Last post: May 2, 2008 9:40 PM by Guest  
Guest

May 2, 2008 9:40 PM

[OpenSIPStack] Help using OpenSipStack



--- On Fri, 5/2/08, Christian Wallukat <cwallukat@gmx.at> wrote:
From: Christian Wallukat <cwallukat@gmx.at>
Subject: OpenSIPStack Help using OpenSipStack
To: opensipstack-devel@lists.sourceforge.net
Date: Friday, May 2, 2008, 7:40 PM

Hi all,


I just downloaded and compiled the Stack and the ATLSIP and the OSSPhone
sample application.

I try to register at sipgate.de where I have an account. If I do this with
XLite it works, if I do it with the OSSPhone it does not work, the registrar
Says that I am unauthorized...

Does somebody can help ?

My next question is:

- How to access the MediaStream directly (without setup Mic / Speaker) ?


Thanx for any
help


Kind regards Christian


This is what Wireshark captured:


REGISTER sip:sipgate.de SIP/2.0
From: accountname
<sip:accountname@sipgate.de>;tag=04de8dde76fb1810837bc238914e7bc3
To: sip:accountname@sipgate.de
Via: SIP/2.0/UDP
192.168.0.31:5060;iid=3165;branch=z9hG4bK04de8dde76fb1810837cc238914e7bc3;ua
s-addr=217.10.79.9;rport
CSeq: 1 REGISTER
Call-ID: 04de8dde-76fb-1810-9844-c238914e7bc3
Contact: "accountname"
<sip:accountname@192.168.0.31:5060;transport=udp>
User-Agent: OpenSIPStack-1.1.7-1
Expires: 3600
Max-Forwards: 10
Allow: INVITE, BYE, ACK, REFER, MESSAGE, INFO, NOTIFY, OPTIONS
Content-Length: 0



REGISTER sip:sipgate.de SIP/2.0
From: accountname
<sip:accountname@sipgate.de>;tag=04de8dde76fb1810837bc238914e7bc3
To: sip:accountname@sipgate.de
Via:
SIP/2.0/UDP
192.168.0.31:5060;iid=3165;branch=z9hG4bK04de8dde76fb1810837cc238914e7bc3;ua
s-addr=217.10.79.9;rport
CSeq: 1 REGISTER
Call-ID: 04de8dde-76fb-1810-9844-c238914e7bc3
Contact: "accountname"
<sip:accountname@192.168.0.31:5060;transport=udp>
User-Agent: OpenSIPStack-1.1.7-1
Expires: 3600
Max-Forwards: 10
Allow: INVITE, BYE, ACK, REFER, MESSAGE, INFO, NOTIFY, OPTIONS
Content-Length: 0



SIP/2.0 401 Unauthorized
From: accountname
<sip:accountname@sipgate.de>;tag=04de8dde76fb1810837bc238914e7bc3
To: sip:accountname@sipgate.de;tag=fe1721141f05bd30d4b50c70da3ae228.3552
Via: SIP/2.0/UDP
192.168.0.31:5060;iid=3165;branch=z9hG4bK04de8dde76fb1810837cc238914e7bc3;ua
s-addr=217.10.79.9;rport=55000
CSeq: 1 REGISTER
Call-ID: 04de8dde-76fb-1810-9844-c238914e7bc3
WWW-Authenticate: Digest realm="sipgate.de",
nonce="481b7bbe7ab18c337e821be64cf19590172c10e3"
Content-Length:
0



SIP/2.0 401 Unauthorized
From: accountname
<sip:accountname@sipgate.de>;tag=04de8dde76fb1810837bc238914e7bc3
To: sip:accountname@sipgate.de;tag=fe1721141f05bd30d4b50c70da3ae228.3552
Via: SIP/2.0/UDP
192.168.0.31:5060;iid=3165;branch=z9hG4bK04de8dde76fb1810837cc238914e7bc3;ua
s-addr=217.10.79.9;rport=55000
CSeq: 1 REGISTER
Call-ID: 04de8dde-76fb-1810-9844-c238914e7bc3
WWW-Authenticate: Digest realm="sipgate.de",
nonce="xxxxxbbe7ab18c337e821be64cf19590172c10e3"
Content-Length: 0



REGISTER sip:sipgate.de SIP/2.0
From: accountname
<sip:accountname@sipgate.de>;tag=0d1b8ede76fb1810837cc238914e7bc3
To: sip:accountname@sipgate.de
Via: SIP/2.0/UDP
192.168.0.31:5060;iid=3165;branch=z9hG4bK0d1b8ede76fb1810837dc238914e7bc3;ua
s-addr=217.10.79.9;rport
CSeq: 2 REGISTER
Call-ID: 04de8dde-76fb-1810-9844-c238914e7bc3
Contact:
"accountname"
<sip:accountname@192.168.0.31:5060;transport=udp>
User-Agent: OpenSIPStack-1.1.7-1
Expires: 3600
Max-Forwards: 10
Authorization: Digest username="accountname",
realm="sipgate.de",
nonce="xxxxxbbe7ab18c337e821be64cf19590172c10e3",
uri="sip:sipgate.de",
response="xxxxxdfc2b913386d3b1c9b3aa5eac48", algorithm=MD5
Allow: INVITE, BYE, ACK, REFER, MESSAGE, INFO, NOTIFY, OPTIONS
Content-Length: 0



SIP/2.0 401 Unauthorized

From: accountname
<sip:accountname@sipgate.de>;tag=0d1b8ede76fb1810837cc238914e7bc3
To: sip:accountname@sipgate.de;tag=fe1721141f05bd30d4b50c70da3ae228.43da
Via: SIP/2.0/UDP
192.168.0.31:5060;iid=3165;branch=z9hG4bK0d1b8ede76fb1810837dc238914e7bc3;ua
s-addr=217.10.79.9;rport=55000
CSeq: 2 REGISTER
Call-ID: 04de8dde-76fb-1810-9844-c238914e7bc3
WWW-Authenticate: Digest
realm="sipgate.de",
nonce="xxxxxbbe7ab18c337e821be64cf19590172c10e3"
Content-Length: 0


REGISTER sip:sipgate.de SIP/2.0
From: accountname
<sip:accountname@sipgate.de>;tag=77338ede76fb1810837dc238914e7bc3
To: sip:accountname@sipgate.de
Via: SIP/2.0/UDP
192.168.0.31:5060;iid=3165;branch=z9hG4bK77338ede76fb1810837ec238914e7bc3;ua
s-addr=217.10.79.9;rport
CSeq: 3 REGISTER
Call-ID: 04de8dde-76fb-1810-9844-c238914e7bc3
Contact: "accountname"
<sip:accountname@192.168.0.31:5060;transport=udp>
User-Agent: OpenSIPStack-1.1.7-1
Expires: 3600
Max-Forwards: 10
Authorization: Digest username="accountname",
realm="sipgate.de",
nonce="xxxxxbe7ab18c337e821be64cf19590172c10e3",
uri="sip:sipgate.de",
response="xxxxxdfc2b913386d3b1c9b3aa5eac48", algorithm=MD5
Allow: INVITE, BYE, ACK, REFER, MESSAGE, INFO, NOTIFY, OPTIONS
Content-Length: 0



SIP/2.0 401
Unauthorized

From: accountname
<sip:accountname@sipgate.de>;tag=77338ede76fb1810837dc238914e7bc3
To: sip:accountname@sipgate.de;tag=fe1721141f05bd30d4b50c70da3ae228.0eab
Via: SIP/2.0/UDP
192.168.0.31:5060;iid=3165;branch=z9hG4bK77338ede76fb1810837ec238914e7bc3;ua
s-addr=217.10.79.9;rport=55000
CSeq: 3 REGISTER
Call-ID: 04de8dde-76fb-1810-9844-c238914e7bc3
WWW-Authenticate: Digest realm="sipgate.de",
nonce="xxxxxbbe7ab18c337e821be64cf19590172c10e3"
Content-Length: 0



INVITE sip:04012345@sipgate.de SIP/2.0
From: accountname
<sip:accountname@sipgate.de>;tag=27f498de76fb1810837fc238914e7bc3
To: sip:04012345@sipgate.de
Via: SIP/2.0/UDP
192.168.0.31:5060;iid=3166;branch=z9hG4bK27f498de76fb1810837ec238914e7bc3;ua
s-addr=217.10.79.9;rport
CSeq: 4711 INVITE
Call-ID: 0cee98de-76fb-1810-9845-c238914e7bc3
Contact: "accountname"
<sip:accountname@192.168.0.31:5060>
User-Agent: OpenSIPStack-1.1.7-1
Max-Forwards: 10
Allow: INVITE, BYE, ACK, REFER, MESSAGE, INFO, NOTIFY, OPTIONS
Content-Type: application/sdp
Content-Length: 227
v=0
o=- 1209760403 1209760403 IN IP4 192.168.0.31
s=OSS RTP Session
c=IN IP4 192.168.0.31
t=0 0
m=audio 5000 RTP/AVP 101 0 8
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
SIP/2.0 407 Proxy Authentication Required
From: accountname
<sip:accountname@sipgate.de>;tag=27f498de76fb1810837fc238914e7bc3
To: sip:040123456@sipgate.de;tag=e6312186bd5c2eb4571f6550243cfacc.f474
Via: SIP/2.0/UDP
192.168.0.31:5060;iid=3166;branch=z9hG4bK27f498de76fb1810837ec238914e7bc3;ua
s-addr=217.10.79.9;rport=55000
CSeq: 4711 INVITE
Call-ID: 0cee98de-76fb-1810-9845-c238914e7bc3
Proxy-Authenticate: Digest
realm="sipgate.de",
nonce="xxxxxbc5160e2d230aee75aab387c2e15016a90d"
Content-Length: 0



ACK sip:04012345@sipgate.de SIP/2.0
From: accountname
<sip:accountname@sipgate.de>;tag=27f498de76fb1810837fc238914e7bc3
To: sip:04012345@sipgate.de;tag=e6312186bd5c2eb4571f6550243cfacc.f474
Via: SIP/2.0/UDP
192.168.0.31:5060;iid=3166;branch=z9hG4bK27f498de76fb1810837ec238914e7bc3;ua
s-addr=217.10.79.9;rport
CSeq: 4711 ACK
Call-ID: 0cee98de-76fb-1810-9845-c238914e7bc3
Contact: "accountname" <sip:accountname@192.168.0.31:5060>
User-Agent: OpenSIPStack-1.1.7-1
Max-Forwards: 10
Allow: INVITE, BYE, ACK, REFER, MESSAGE, INFO, NOTIFY, OPTIONS
Content-Length: 0


INVITE sip:04012345@sipgate.de SIP/2.0
From: accountname
<sip:accountname@sipgate.de>;tag=27f498de76fb1810837fc238914e7bc3
To: sip:04012345@sipgate.de
Via:
SIP/2.0/UDP
192.168.0.31:5060;iid=3166;branch=z9hG4bK7f4399de76fb1810837fc238914e7bc3;ua
s-addr=217.10.79.9;rport
CSeq: 4712 INVITE
Call-ID: 0cee98de-76fb-1810-9845-c238914e7bc3
Contact: "accountname" <sip:accountname@192.168.0.31:5060>
User-Agent: OpenSIPStack-1.1.7-1
Max-Forwards: 10
Proxy-Authorization: Digest username="accountname",
realm="sipgate.de",
nonce="xxxxxbc5160e2d230aee75aab387c2e15016a90d",
uri="sip:04012345@sipgate.de",
response="xxxxx477dd2718a4e4eaf1346b4df4b2",
algorithm=MD5
Allow: INVITE, BYE, ACK, REFER, MESSAGE, INFO, NOTIFY, OPTIONS
Content-Type: application/sdp
Content-Length: 227
v=0
o=- 1209760403 1209760403 IN IP4 192.168.0.31
s=OSS RTP Session
c=IN IP4 192.168.0.31
t=0 0
m=audio 5000 RTP/AVP 101 0 8
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000


SIP/2.0 407 Proxy Authentication
Required
From: accountname
<sip:accountname@sipgate.de>;tag=27f498de76fb1810837fc238914e7bc3
To: sip:04012345@sipgate.de;tag=e6312186bd5c2eb4571f6550243cfacc.a8c5
Via: SIP/2.0/UDP
192.168.0.31:5060;iid=3166;branch=z9hG4bK7f4399de76fb1810837fc238914e7bc3;ua
s-addr=217.10.79.9;rport=55000
CSeq: 4712 INVITE
Call-ID: 0cee98de-76fb-1810-9845-c238914e7bc3
Proxy-Authenticate: Digest realm="sipgate.de",
nonce="xxxxxbc5160e2d230aee75aab387c2e15016a90d"
Content-Length: 0



ACK sip:04012345@sipgate.de SIP/2.0
From: accountname
<sip:accountname@sipgate.de>;tag=27f498de76fb1810837fc238914e7bc3
To: sip:04012345@sipgate.de;tag=e6312186bd5c2eb4571f6550243cfacc.a8c5
Via: SIP/2.0/UDP
192.168.0.31:5060;iid=3166;branch=z9hG4bK7f4399de76fb1810837fc238914e7bc3;ua
s-addr=217.10.79.9;rport
CSeq: 4712 ACK
Call-ID: 0cee98de-76fb-1810-9845-c238914e7bc3
Contact: "accountname"
<sip:accountname@192.168.0.31:5060>
User-Agent: OpenSIPStack-1.1.7-1
Max-Forwards: 10
Proxy-Authorization: Digest username="accountname",
realm="sipgate.de",
nonce="xxxxxc5160e2d230aee75aab387c2e15016a90d",
uri="sip:040123456@sipgate.de",
response="xxxxx477dd2718a4e4eaf1346b4df4b2",
algorithm=MD5
Allow: INVITE, BYE, ACK, REFER, MESSAGE, INFO, NOTIFY, OPTIONS
Content-Length: 0







No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.7/1411 - Release Date: 02.05.2008
08:02



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save
$100.
Use priority code J8TL2D2.

http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
opensipstack-devel mailing list
opensipstack-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel


Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.