Pekka Pessi napsal(a):
2007/9/11, Martin Drašar <[EMAIL PROTECTED]>:
I would like to ask you if someone has tested (and made working) sofia
on Solaris 9 / 64bit sparc.
I have problem with nua_i_invite event.
*sip->sip_content_type has
c_type = 0x10069f7b9 "application/sdp", c_subtype = 0x10069f7c5 "sdp"
but *sip->sip_payload is NULL
I don't have this problem on Win32, Linux32, Opensolaris on intel
If you have any idea what might be wrong, I would be very greatful.
No idea... Really. ;)
Can you run test_nua from libsofia-sip-ua/nua directory? If it fails,
please send me a output from, e.g., env NUA_DEBUG=9 ./test_nua -A -B
-C --log=proxy
Hi,
my computer specs:
System = SunOS
Node = glen
Release = 5.10
KernelID = Generic_125100-10
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1
sofia library (current version from darcs repository) was configured
this way:
CFLAGS="-m64" LDFLAGS="-m64" ./configure --with-pic --disable-static
--with-openssl=no --disable-stun --disable-nth --prefix=/tmp/sofia
attached files:
sofia_test.log - libsofia-sip-ua/nua$ ./test_nua -A -B -C --log=proxy >
sofia_test.log 2>&1
main.cpp - test program that aborts after it receives invite. In event
callback function you can see that sip_payload is NULL.
change bind address if you want to test it, it's hardcoded.
compiled with: g++ main.cpp -o test
-I/tmp/sofia/include/sofia-sip-1.12/ -L/tmp/sofia/lib -lsofia-sip-ua
-m64 -g -O0
Thanks for your time.
Martin
--
Martin Drasar, Developer / Analyst
OptimSys, s.r.o.
[EMAIL PROTECTED]
Tel: +420 541 143 065
Fax: +420 541 143 066
http://www.optimsys.cz
TEST NUA-1.0: test API
TEST NUA-1.0: PASSED
TEST NUA-1.1: PARAMETERS
TEST NUA-1.1: PASSED
000.000 a.nua(1006288b0): call nua_cancel()
000.000 a.nua(1006288b0): event nua_r_cancel status 481 No transaction to CANCEL
000.001 a.nua(100629b40): call nua_bye()
000.002 a.nua(100629b40): event nua_r_bye status 900 Invalid handle for BYE
000.002 a.nua(100628d50): call nua_unregister()
recv 491 bytes from udp/[127.0.0.1]:43325 at 12:56:08.469540:
------------------------------------------------------------------------
REGISTER sip:example.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.8:43320;rport;branch=z9hG4bKDg9m3336tK7cN
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=K2tpQKKa59ZcN
To: <sip:[EMAIL PROTECTED]>
Call-ID: 3346055c-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 REGISTER
Contact: <sip:10.0.0.8:43320>
Expires: 0
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE
Supported: timer, 100rel, path
Content-Length: 0
------------------------------------------------------------------------
000.012 a.nua(100628d50): event nua_r_unregister status 406 Unacceptable Contact
000.012 a.nua(10062aa00): call nua_unpublish()
send 315 bytes to udp/[127.0.0.1]:43325 at 12:56:08.472715:
------------------------------------------------------------------------
SIP/2.0 406 Unacceptable Contact
Via: SIP/2.0/UDP
10.0.0.8:43320;rport=43325;branch=z9hG4bKDg9m3336tK7cN;received=127.0.0.1
From: <sip:[EMAIL PROTECTED]>;tag=K2tpQKKa59ZcN
To: <sip:[EMAIL PROTECTED]>;tag=KXSmZvH8c055a
Call-ID: 3346055c-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 REGISTER
Content-Length: 0
------------------------------------------------------------------------
recv 454 bytes from udp/[127.0.0.1]:43325 at 12:56:08.476385:
------------------------------------------------------------------------
PUBLISH sip:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/UDP 10.0.0.8:43320;rport;branch=z9hG4bK6NZFNjvDpv0FQ
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=cgHHS1FH1aSFQ
To: <sip:[EMAIL PROTECTED]>
Call-ID: 334793e4-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 PUBLISH
Expires: 0
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE
Supported: timer, 100rel
Content-Length: 0
------------------------------------------------------------------------
000.017 a.nua(10062aa00): event nua_r_unpublish status 404 Not Found
000.018 a.nua(1006335d0): call nua_terminate()
000.018 a.nua(1006335d0): event nua_r_terminate status 900 No event server to
terminate
000.019 a.nua(1006335d0): call nua_authorize()
000.019 a.nua(1006335d0): event nua_r_authorize status 900 Internal NUA Error
TEST NUA-2.1.1: init proxy P
TEST NUA-2.1.1: PASSED
TEST NUA-2.1.2: creating test NAT
TEST NUA-2.1.2: PASSED
TEST NUA-2.2.1: init endpoint A
TEST NUA-2.2.1: PASSED
TEST NUA-2.2.2: init endpoint B
TEST NUA-2.2.2: PASSED
TEST NUA-2.2.3: init endpoint C
TEST NUA-2.2.3: PASSED
TEST NUA-1.2: Stack error handling
TEST NUA-1.2.1: CANCEL without INVITE
TEST NUA-1.2.1: PASSED
TEST NUA-1.2.2: BYE without INVITE
TEST NUA-1.2.2: PASSED
TEST NUA-1.2.3: unregister without register
TEST NUA-1.2.3: PASSED
TEST NUA-1.2.4: unpublish without publish
TEST NUA-1.2.4: PASSED
TEST NUA-1.2.5: terminate without notifier
TEST NUA-1.2.5: PASSED
TEST NUA-1.2: PASSED
000.020 c.nua(0): event nua_r_set_params status 200 OK
000.021 b.nua(10062ada0): call nua_register()
send 301 bytes to udp/[127.0.0.1]:43325 at 12:56:08.478333:
------------------------------------------------------------------------
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP
10.0.0.8:43320;rport=43325;branch=z9hG4bK6NZFNjvDpv0FQ;received=127.0.0.1
From: <sip:[EMAIL PROTECTED]>;tag=cgHHS1FH1aSFQ
To: <sip:[EMAIL PROTECTED]>;tag=c3FHHB6e98y6c
Call-ID: 334793e4-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 PUBLISH
Content-Length: 0
------------------------------------------------------------------------
recv 441 bytes from tcp/[10.0.0.8]:32981 at 12:56:08.486233:
------------------------------------------------------------------------
REGISTER sip:10.0.0.8:43324 SIP/2.0
Via: SIP/2.0/TCP 10.0.0.8:43322;branch=z9hG4bKjSr851gN3ccXp
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=N0g4pj4gSNUvp
To: <sip:[EMAIL PROTECTED]>
Call-ID: 3348debb-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 REGISTER
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE
Supported: timer, 100rel, path
Content-Length: 0
------------------------------------------------------------------------
000.028 c.nua(10063b490): event nua_i_register status 100 Trying
000.028 c.nua(10063b490): call nua_respond() with status 299 YES
send 520 bytes to udp/[10.0.0.8]:43324 at 12:56:08.488375:
------------------------------------------------------------------------
REGISTER sip:10.0.0.8:43324 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.8:43317;rport;branch=z9hG4bKK8D5p29aQa34j
Via: SIP/2.0/TCP 10.0.0.8:43322;branch=z9hG4bKjSr851gN3ccXp;rport=32981
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=N0g4pj4gSNUvp
To: <sip:[EMAIL PROTECTED]>
Call-ID: 3348debb-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 REGISTER
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE
Supported: timer, 100rel, path
Content-Length: 0
------------------------------------------------------------------------
recv 510 bytes from udp/[10.0.0.8]:43324 at 12:56:08.493103:
------------------------------------------------------------------------
SIP/2.0 299 YES
Via: SIP/2.0/UDP 10.0.0.8:43317;rport=43317;branch=z9hG4bKK8D5p29aQa34j
Via: SIP/2.0/TCP 10.0.0.8:43322;branch=z9hG4bKjSr851gN3ccXp;rport=32981
From: <sip:[EMAIL PROTECTED]>;tag=N0g4pj4gSNUvp
To: <sip:[EMAIL PROTECTED]>;tag=y92F4Xj5rceyF
Call-ID: 3348debb-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 REGISTER
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE, REGISTER
Supported: timer, 100rel
Content-Length: 0
------------------------------------------------------------------------
000.034 b.nua(10062ada0): event nua_r_register status 299 YES
000.034 a.nua(10062aa00): call nua_unregister()
send 437 bytes to tcp/[10.0.0.8]:32981 at 12:56:08.494608:
------------------------------------------------------------------------
SIP/2.0 299 YES
Via: SIP/2.0/TCP 10.0.0.8:43322;branch=z9hG4bKjSr851gN3ccXp;rport=32981
From: <sip:[EMAIL PROTECTED]>;tag=N0g4pj4gSNUvp
To: <sip:[EMAIL PROTECTED]>;tag=y92F4Xj5rceyF
Call-ID: 3348debb-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 REGISTER
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE, REGISTER
Supported: timer, 100rel
Content-Length: 0
------------------------------------------------------------------------
recv 472 bytes from udp/[127.0.0.1]:43325 at 12:56:08.499167:
------------------------------------------------------------------------
REGISTER sip:example.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.8:43320;rport;branch=z9hG4bK0UN8p0mmK5SgS
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=5X7BBF8QyKjgS
To: <sip:[EMAIL PROTECTED]>
Call-ID: 334af6a9-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 REGISTER
Contact: *
Expires: 0
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE
Supported: timer, 100rel, path
Content-Length: 0
------------------------------------------------------------------------
000.041 a.nua(10062aa00): event nua_r_unregister status 401 Unauthorized
000.041 a.nua(10062aa00): call nua_authenticate()
send 440 bytes to udp/[127.0.0.1]:43325 at 12:56:08.501547:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
10.0.0.8:43320;rport=43325;branch=z9hG4bK0UN8p0mmK5SgS;received=127.0.0.1
From: <sip:[EMAIL PROTECTED]>;tag=5X7BBF8QyKjgS
To: <sip:[EMAIL PROTECTED]>;tag=Zpv4m7tv2jHaH
Call-ID: 334af6a9-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 REGISTER
WWW-Authenticate: Digest realm="test-proxy",
nonce="AAAAAMqY9+jeU7vrAAAR5iTV7u4AAAAA", opaque="kuik", algorithm=md5,
qop="auth-int"
Content-Length: 0
------------------------------------------------------------------------
recv 732 bytes from udp/[127.0.0.1]:43325 at 12:56:08.505289:
------------------------------------------------------------------------
REGISTER sip:example.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.8:43320;rport;branch=z9hG4bKS9B3reDUFpKKB
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=5X7BBF8QyKjgS
To: <sip:[EMAIL PROTECTED]>
Call-ID: 334af6a9-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898549 REGISTER
Contact: *
Expires: 0
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE
Supported: timer, 100rel, path
Authorization: Digest username="alice", realm="test-proxy",
nonce="AAAAAMqY9+jeU7vrAAAR5iTV7u4AAAAA", cnonce="M0vHQt/AEiqjZSdohuxsjw",
opaque="kuik", algorithm=MD5, uri="sip:example.com",
response="3b6589533ed448789a57187acc2570b3", qop=auth-int, nc=00000001
Content-Length: 0
------------------------------------------------------------------------
000.047 a.nua(10062aa00): event nua_r_unregister status 200 OK
000.047 b.nua(10062a760): call nua_unregister()
send 364 bytes to udp/[127.0.0.1]:43325 at 12:56:08.507936:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP
10.0.0.8:43320;rport=43325;branch=z9hG4bKS9B3reDUFpKKB;received=127.0.0.1
From: <sip:[EMAIL PROTECTED]>;tag=5X7BBF8QyKjgS
To: <sip:[EMAIL PROTECTED]>;tag=rvjZpNK3yUaDK
Call-ID: 334af6a9-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898549 REGISTER
Authentication-Info: nextnonce="AAAAAMqY9+i8p3fWAAEt4vD7FUEAAAAA"
Content-Length: 0
------------------------------------------------------------------------
recv 462 bytes from tcp/[10.0.0.8]:32981 at 12:56:08.511798:
------------------------------------------------------------------------
REGISTER sip:example.org SIP/2.0
Via: SIP/2.0/TCP 10.0.0.8:43322;branch=z9hG4bKBZe37F9UZN5Zr
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=e66yr0vQNymZr
To: <sip:[EMAIL PROTECTED]>
Call-ID: 334cf4a1-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 REGISTER
Contact: *
Expires: 0
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE
Supported: timer, 100rel, path
Content-Length: 0
------------------------------------------------------------------------
send 417 bytes to tcp/[10.0.0.8]:32981 at 12:56:08.513895:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 10.0.0.8:43322;branch=z9hG4bKBZe37F9UZN5Zr;rport=32981
From: <sip:[EMAIL PROTECTED]>;tag=e66yr0vQNymZr
To: <sip:[EMAIL PROTECTED]>;tag=H28S83Bat43FN
Call-ID: 334cf4a1-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 REGISTER
WWW-Authenticate: Digest realm="test-proxy",
nonce="AAAAAMqY9+jeU7vrAAAR5iTV7u4AAAAA", opaque="kuik", algorithm=md5,
qop="auth-int"
Content-Length: 0
------------------------------------------------------------------------
000.054 b.nua(10062a760): event nua_r_unregister status 401 Unauthorized
000.054 b.nua(10062a760): call nua_authenticate()
recv 720 bytes from tcp/[10.0.0.8]:32981 at 12:56:08.516997:
------------------------------------------------------------------------
REGISTER sip:example.org SIP/2.0
Via: SIP/2.0/TCP 10.0.0.8:43322;branch=z9hG4bK444X9X12v6y0a
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=e66yr0vQNymZr
To: <sip:[EMAIL PROTECTED]>
Call-ID: 334cf4a1-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898549 REGISTER
Contact: *
Expires: 0
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE
Supported: timer, 100rel, path
Authorization: Digest username="bob", realm="test-proxy",
nonce="AAAAAMqY9+jeU7vrAAAR5iTV7u4AAAAA", cnonce="M03Fht/AEiqjZSdohuxsjw",
opaque="kuik", algorithm=MD5, uri="sip:example.org",
response="11edf9e8398c16214834a1f1d540cd2d", qop=auth-int, nc=00000001
Content-Length: 0
------------------------------------------------------------------------
send 341 bytes to tcp/[10.0.0.8]:32981 at 12:56:08.519458:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/TCP 10.0.0.8:43322;branch=z9hG4bK444X9X12v6y0a;rport=32981
From: <sip:[EMAIL PROTECTED]>;tag=e66yr0vQNymZr
To: <sip:[EMAIL PROTECTED]>;tag=BrZjtH4gQDXgQ
Call-ID: 334cf4a1-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898549 REGISTER
Authentication-Info: nextnonce="AAAAAMqY9+i8p3fWAAEt4vD7FUEAAAAA"
Content-Length: 0
------------------------------------------------------------------------
000.059 b.nua(10062a760): event nua_r_unregister status 200 OK
000.060 c.nua(10064e560): call nua_unregister()
recv 486 bytes from udp/[10.0.0.8]:43324 at 12:56:08.523424:
------------------------------------------------------------------------
REGISTER sip:example.net SIP/2.0
Via: SIP/2.0/UDP 10.0.0.8:43324;rport;branch=z9hG4bK85p11e7tDDyZD
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=rFS8NcBcmN70H
To: <sip:[EMAIL PROTECTED]>
Call-ID: 334ed5ea-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 REGISTER
Contact: *
Expires: 0
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE, REGISTER
Supported: timer, 100rel, path
Content-Length: 0
------------------------------------------------------------------------
000.065 c.nua(10064e560): event nua_r_unregister status 401 Unauthorized
000.065 c.nua(10064e560): call nua_authenticate()
send 425 bytes to udp/[10.0.0.8]:43324 at 12:56:08.525624:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.0.0.8:43324;rport=43324;branch=z9hG4bK85p11e7tDDyZD
From: <sip:[EMAIL PROTECTED]>;tag=rFS8NcBcmN70H
To: <sip:[EMAIL PROTECTED]>;tag=4XNDvZvQKppKS
Call-ID: 334ed5ea-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 REGISTER
WWW-Authenticate: Digest realm="test-proxy",
nonce="AAAAAMqY9+jeU7vrAAAR5iTV7u4AAAAA", opaque="kuik", algorithm=md5,
qop="auth-int"
Content-Length: 0
------------------------------------------------------------------------
recv 748 bytes from udp/[10.0.0.8]:43324 at 12:56:08.528910:
------------------------------------------------------------------------
REGISTER sip:example.net SIP/2.0
Via: SIP/2.0/UDP 10.0.0.8:43324;rport;branch=z9hG4bK2BDt3vZ1apQ0F
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=rFS8NcBcmN70H
To: <sip:[EMAIL PROTECTED]>
Call-ID: 334ed5ea-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898549 REGISTER
Contact: *
Expires: 0
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE, REGISTER
Supported: timer, 100rel, path
Authorization: Digest username="charlie", realm="test-proxy",
nonce="AAAAAMqY9+jeU7vrAAAR5iTV7u4AAAAA", cnonce="M09t3t/AEiqjZSdohuxsjw",
opaque="kuik", algorithm=MD5, uri="sip:example.net",
response="b556ac6c256cb532afb4b7c59d8f20e1", qop=auth-int, nc=00000001
Content-Length: 0
------------------------------------------------------------------------
000.071 c.nua(10064e560): event nua_r_unregister status 200 OK
000.071 a.nua(10064e9b0): call nua_register()
send 349 bytes to udp/[10.0.0.8]:43324 at 12:56:08.531695:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.8:43324;rport=43324;branch=z9hG4bK2BDt3vZ1apQ0F
From: <sip:[EMAIL PROTECTED]>;tag=rFS8NcBcmN70H
To: <sip:[EMAIL PROTECTED]>;tag=y3B6XDNyg7FmB
Call-ID: 334ed5ea-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898549 REGISTER
Authentication-Info: nextnonce="AAAAAMqY9+i8p3fWAAEt4vD7FUEAAAAA"
Content-Length: 0
------------------------------------------------------------------------
recv 495 bytes from udp/[127.0.0.1]:43325 at 12:56:08.536086:
------------------------------------------------------------------------
REGISTER sip:example.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.8:43320;rport;branch=z9hG4bKjQ2Xav51cZcmD
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
To: <sip:[EMAIL PROTECTED]>
Call-ID: 335095e4-dfc0-122a-65a3-276886ec6c8f
CSeq: 13 REGISTER
Contact: "A&A" <sip:[EMAIL PROTECTED]:43320;foo=bar>;q=0.9
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE
Supported: timer, 100rel, path
Content-Length: 0
------------------------------------------------------------------------
000.078 a.nua(10064e9b0): event nua_i_outbound NAT detected
000.079 a.nua(10064e9b0): event nua_r_register status 100 Outbound NAT Detected
send 309 bytes to udp/[127.0.0.1]:43325 at 12:56:08.538044:
------------------------------------------------------------------------
SIP/2.0 406 Unacceptable Contact
Via: SIP/2.0/UDP
10.0.0.8:43320;rport=43325;branch=z9hG4bKjQ2Xav51cZcmD;received=127.0.0.1
From: <sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
To: <sip:[EMAIL PROTECTED]>;tag=QH20ZUD5cg9pD
Call-ID: 335095e4-dfc0-122a-65a3-276886ec6c8f
CSeq: 13 REGISTER
Content-Length: 0
------------------------------------------------------------------------
recv 565 bytes from udp/[127.0.0.1]:43325 at 12:56:08.541468:
------------------------------------------------------------------------
REGISTER sip:example.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.8:43320;rport;branch=z9hG4bKcXrrcat8875pF
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
To: <sip:[EMAIL PROTECTED]>
Call-ID: 335095e4-dfc0-122a-65a3-276886ec6c8f
CSeq: 14 REGISTER
Contact: "A&A" <sip:[EMAIL
PROTECTED]:43325;transport=udp;foo=bar>;+sip.instance="<3341e340-dfc0-122a-65a3-276886ec6c8f>";q=0.9
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE
Supported: timer, 100rel, path
Content-Length: 0
------------------------------------------------------------------------
000.083 a.nua(10064e9b0): event nua_r_register status 401 Unauthorized
000.083 a.nua(10064e9b0): call nua_authenticate()
send 434 bytes to udp/[127.0.0.1]:43325 at 12:56:08.543637:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
10.0.0.8:43320;rport=43325;branch=z9hG4bKcXrrcat8875pF;received=127.0.0.1
From: <sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
To: <sip:[EMAIL PROTECTED]>;tag=gQrXHa2B8r2SF
Call-ID: 335095e4-dfc0-122a-65a3-276886ec6c8f
CSeq: 14 REGISTER
WWW-Authenticate: Digest realm="test-proxy",
nonce="AAAAAMqY9+ia+zPBAABVgRfnkbgAAAAA", opaque="kuik", algorithm=md5,
qop="auth-int"
Content-Length: 0
------------------------------------------------------------------------
recv 825 bytes from udp/[127.0.0.1]:43325 at 12:56:08.547303:
------------------------------------------------------------------------
REGISTER sip:example.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.8:43320;rport;branch=z9hG4bK52eKyrjF4gZSH
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
To: <sip:[EMAIL PROTECTED]>
Call-ID: 335095e4-dfc0-122a-65a3-276886ec6c8f
CSeq: 15 REGISTER
Contact: "A&A" <sip:[EMAIL
PROTECTED]:43325;transport=udp;foo=bar>;+sip.instance="<3341e340-dfc0-122a-65a3-276886ec6c8f>";q=0.9
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE
Supported: timer, 100rel, path
Authorization: Digest username="alice", realm="test-proxy",
nonce="AAAAAMqY9+ia+zPBAABVgRfnkbgAAAAA", cnonce="M1IxIt/AEiqjZSdohuxsjw",
opaque="kuik", algorithm=MD5, uri="sip:example.com",
response="c0bce00e147e9d1aafe3073a238b96c5", qop=auth-int, nc=00000001
Content-Length: 0
------------------------------------------------------------------------
000.091 a.nua(10064e9b0): event nua_r_register status 200 OK
000.091 b.nua(10063e9a0): call nua_register()
send 491 bytes to udp/[127.0.0.1]:43325 at 12:56:08.550509:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP
10.0.0.8:43320;rport=43325;branch=z9hG4bK52eKyrjF4gZSH;received=127.0.0.1
From: <sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
To: <sip:[EMAIL PROTECTED]>;tag=aXepKrtj51UtH
Call-ID: 335095e4-dfc0-122a-65a3-276886ec6c8f
CSeq: 15 REGISTER
Contact: "A&A" <sip:[EMAIL
PROTECTED]:43325;transport=udp;foo=bar>;+sip.instance="<3341e340-dfc0-122a-65a3-276886ec6c8f>";q=0.9;expires=5
Authentication-Info: nextnonce="AAAAAMqY9+h5Tu+sAAH+Kh456Z0AAAAA"
Content-Length: 0
------------------------------------------------------------------------
recv 375 bytes from udp/[127.0.0.1]:43325 at 12:56:08.555249:
------------------------------------------------------------------------
OPTIONS sip:[EMAIL PROTECTED] SIP/2.0
v:SIP/2.0/UDP 10.0.0.8:43320;rport;branch=z9hG4bKyg5D06ap1SrtK
f:<sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
t:<sip:[EMAIL PROTECTED]>
i:-s2wkef_qiyadywDjn3huK
CSeq:88898549 OPTIONS
a:*;require;explicit;+sip.instance="<3341e340-dfc0-122a-65a3-276886ec6c8f>"
Accept:application/vnd.nokia-register-usage
s:REGISTRATION PROBE
l:0
------------------------------------------------------------------------
send 492 bytes to udp/[127.0.0.1]:43325 at 12:56:08.557191:
------------------------------------------------------------------------
OPTIONS sip:[EMAIL PROTECTED]:43325;transport=udp;foo=bar SIP/2.0
Via: SIP/2.0/UDP 10.0.0.8:43317;rport;branch=z9hG4bKce41rgyHKKv7m
Via: SIP/2.0/UDP
10.0.0.8:43320;rport=43325;branch=z9hG4bKyg5D06ap1SrtK;received=127.0.0.1
f:<sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
t:<sip:[EMAIL PROTECTED]>
i:-s2wkef_qiyadywDjn3huK
CSeq:88898549 OPTIONS
a:*;require;explicit;+sip.instance="<3341e340-dfc0-122a-65a3-276886ec6c8f>"
Accept:application/vnd.nokia-register-usage
s:REGISTRATION PROBE
l:0
------------------------------------------------------------------------
recv 487 bytes from tcp/[10.0.0.8]:32981 at 12:56:13.664907:
------------------------------------------------------------------------
REGISTER sip:example.org SIP/2.0
Via: SIP/2.0/TCP 10.0.0.8:43322;branch=z9hG4bKyjUrUBp9rFr3c
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=7KXSaeNyjFe0a
To: <sip:[EMAIL PROTECTED]>
Call-ID: 3353995b-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 REGISTER
Contact: B <sip:[EMAIL PROTECTED]:43322;transport=tcp>
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE
Supported: timer, 100rel, path
Content-Length: 0
------------------------------------------------------------------------
send 417 bytes to tcp/[10.0.0.8]:32981 at 12:56:13.667111:
------------------------------------------------------------------------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 10.0.0.8:43322;branch=z9hG4bKyjUrUBp9rFr3c;rport=32981
From: <sip:[EMAIL PROTECTED]>;tag=7KXSaeNyjFe0a
To: <sip:[EMAIL PROTECTED]>;tag=324gN6pS12mXK
Call-ID: 3353995b-dfc0-122a-65a3-276886ec6c8f
CSeq: 88898548 REGISTER
WWW-Authenticate: Digest realm="test-proxy",
nonce="AAAAAMqY9+2a+zPBAADI1eAa4XsAAAAA", opaque="kuik", algorithm=md5,
qop="auth-int"
Content-Length: 0
------------------------------------------------------------------------
send 492 bytes to udp/[127.0.0.1]:43325 at 12:56:13.668317:
------------------------------------------------------------------------
OPTIONS sip:[EMAIL PROTECTED]:43325;transport=udp;foo=bar SIP/2.0
Via: SIP/2.0/UDP 10.0.0.8:43317;rport;branch=z9hG4bKce41rgyHKKv7m
Via: SIP/2.0/UDP
10.0.0.8:43320;rport=43325;branch=z9hG4bKyg5D06ap1SrtK;received=127.0.0.1
f:<sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
t:<sip:[EMAIL PROTECTED]>
i:-s2wkef_qiyadywDjn3huK
CSeq:88898549 OPTIONS
a:*;require;explicit;+sip.instance="<3341e340-dfc0-122a-65a3-276886ec6c8f>"
Accept:application/vnd.nokia-register-usage
s:REGISTRATION PROBE
l:0
------------------------------------------------------------------------
tport_recv_stream(100635c80): su_getmsgsize(): Bad address (14)
nta_agent: tport: Bad address
recv 368 bytes from udp/[127.0.0.1]:43325 at 12:56:13.670787:
------------------------------------------------------------------------
SIP/2.0 501 Not Implemented
Via: SIP/2.0/UDP 10.0.0.8:43317;rport=43318;branch=z9hG4bKce41rgyHKKv7m
Via: SIP/2.0/UDP
10.0.0.8:43320;rport=43325;branch=z9hG4bKyg5D06ap1SrtK;received=127.0.0.1
From: <sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
To: <sip:[EMAIL PROTECTED]>;tag=rHmZeBS5pD5ND
Call-ID: -s2wkef_qiyadywDjn3huK
CSeq: 88898549 OPTIONS
Content-Length: 0
------------------------------------------------------------------------
send 295 bytes to udp/[127.0.0.1]:43325 at 12:56:13.672115:
------------------------------------------------------------------------
SIP/2.0 501 Not Implemented
Via: SIP/2.0/UDP
10.0.0.8:43320;rport=43325;branch=z9hG4bKyg5D06ap1SrtK;received=127.0.0.1
From: <sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
To: <sip:[EMAIL PROTECTED]>;tag=rHmZeBS5pD5ND
Call-ID: -s2wkef_qiyadywDjn3huK
CSeq: 88898549 OPTIONS
Content-Length: 0
------------------------------------------------------------------------
recv 375 bytes from udp/[127.0.0.1]:43325 at 12:56:13.673021:
------------------------------------------------------------------------
OPTIONS sip:[EMAIL PROTECTED] SIP/2.0
v:SIP/2.0/UDP 10.0.0.8:43320;rport;branch=z9hG4bKyg5D06ap1SrtK
f:<sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
t:<sip:[EMAIL PROTECTED]>
i:-s2wkef_qiyadywDjn3huK
CSeq:88898549 OPTIONS
a:*;require;explicit;+sip.instance="<3341e340-dfc0-122a-65a3-276886ec6c8f>"
Accept:application/vnd.nokia-register-usage
s:REGISTRATION PROBE
l:0
------------------------------------------------------------------------
send 295 bytes to udp/[127.0.0.1]:43325 at 12:56:13.674428:
------------------------------------------------------------------------
SIP/2.0 501 Not Implemented
Via: SIP/2.0/UDP
10.0.0.8:43320;rport=43325;branch=z9hG4bKyg5D06ap1SrtK;received=127.0.0.1
From: <sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
To: <sip:[EMAIL PROTECTED]>;tag=rHmZeBS5pD5ND
Call-ID: -s2wkef_qiyadywDjn3huK
CSeq: 88898549 OPTIONS
Content-Length: 0
------------------------------------------------------------------------
recv 825 bytes from udp/[127.0.0.1]:43325 at 12:56:13.675341:
------------------------------------------------------------------------
REGISTER sip:example.com SIP/2.0
Via: SIP/2.0/UDP 10.0.0.8:43320;rport;branch=z9hG4bKrpU61m7vXtHXN
Max-Forwards: 70
From: <sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
To: <sip:[EMAIL PROTECTED]>
Call-ID: 335095e4-dfc0-122a-65a3-276886ec6c8f
CSeq: 16 REGISTER
Contact: "A&A" <sip:[EMAIL
PROTECTED]:43325;transport=udp;foo=bar>;+sip.instance="<3341e340-dfc0-122a-65a3-276886ec6c8f>";q=0.9
User-Agent: sofia-sip/1.12.6work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,
REFER, UPDATE
Supported: timer, 100rel, path
Authorization: Digest username="alice", realm="test-proxy",
nonce="AAAAAMqY9+h5Tu+sAAH+Kh456Z0AAAAA", cnonce="M1IxIt/AEiqjZSdohuxsjw",
opaque="kuik", algorithm=MD5, uri="sip:example.com",
response="518be996d936383514b8c208aa3198d8", qop=auth-int, nc=00000002
Content-Length: 0
------------------------------------------------------------------------
send 494 bytes to udp/[127.0.0.1]:43325 at 12:56:13.677913:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP
10.0.0.8:43320;rport=43325;branch=z9hG4bKrpU61m7vXtHXN;received=127.0.0.1
From: <sip:[EMAIL PROTECTED]>;tag=Z3X4cX0yt4BKB
To: <sip:[EMAIL PROTECTED]>;tag=ppH4r276tm70Q
Call-ID: 335095e4-dfc0-122a-65a3-276886ec6c8f
CSeq: 16 REGISTER
Contact: "A&A" <sip:[EMAIL
PROTECTED]:43325;transport=udp;foo=bar>;+sip.instance="<3341e340-dfc0-122a-65a3-276886ec6c8f>";q=0.9;expires=3600
Authentication-Info: nextnonce="AAAAAMqY9+1XoquXAAH+Kh456Z0AAAAA"
Content-Length: 0
------------------------------------------------------------------------
005.218 a.nua(10064e9b0): event nua_i_outbound Request Timeout
005.218 b.nua(10063e9a0): event nua_r_register status 503 Service Unavailable
test_register.c:220: test_nua test_register_to_proxy() FAILED:
e->data->e_status != 401 or 503 != 401
TEST NUA-2.6.1: REGISTER b to c
TEST NUA-2.6.1: PASSED
TEST NUA-2.3.0.1: un-REGISTER a
TEST NUA-2.3.0.1: PASSED
TEST NUA-2.3.0.2: un-REGISTER b
TEST NUA-2.3.0.2: PASSED
TEST NUA-2.3.0.3: un-REGISTER c
TEST NUA-2.3.0.3: PASSED
TEST NUA-2.3.1: REGISTER a
TEST NUA-2.3.1: PASSED
TEST NUA-2.3.2: REGISTER b
#include <stdio.h>
#include <stdlib.h>
#include "sofia-sip/nua.h"
#include "sofia-sip/sdp.h"
su_root_t *root;
void eventCallback(nua_event_t event,
int status,
const char *phrase,
nua_t *nua,
nua_magic_t *magic,
nua_handle_t *nh,
nua_hmagic_t *hmagic,
sip_t const *sip,
tagi_t tags[])
{
switch(event)
{
case nua_i_invite:
{
abort();
}
}
}
int main(int argc, char *argv[])
{
nua_t *nua;
su_init();
root = su_root_create(NULL);
nua = nua_create(root, eventCallback, NULL,NUTAG_URL("sip:10.0.0.8:5060"),
TAG_END());
nua_set_params(nua,
SIPTAG_ALLOW_STR("INVITE,CANCEL,BYE,ACK"),
SIPTAG_USER_AGENT(NULL),
NUTAG_AUTOALERT(true),
NUTAG_MEDIA_ENABLE(1),
TAG_END());
su_root_run(root);
su_root_destroy(root);
su_deinit();
return 0;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel