On Thu, 4 May 2006, Colin Whittaker wrote:
I haven't looked yet, but maybe the fix for the no username contact didn't
make it into darcs.
Yeps, there are still some strangeness left from the recent transport code
update (tport).
- If the contact port is reserved upon nua_create(), the error msg is
less than helpful:
nta: bind(127.0.0.1:5060;transport=*): Protocol not supported
- If you start the stack without an explicit bind address, it will
not even try to use port 5060.
Also, the User-Agent version number seems to have dropped back too. Under CVS
it is 1.11.8work.
That's probably an autotool issue, run "autoreconf" in the source dir,
"./config.status" and "make".
Here is the trace:
I'm not sure why two REGISTER packets are generated. I only call nua_register
once, and see one set of callbacks, status 100, then 200.
The current tree now has a multi-step REGISTER algorithm. By using the
rport feature (RFC3581), the stack can learn from the first REGISTER
response the correct contact address to use, and then make another
REGISTER updating the contact. This is useful for registering from behind
a NAT device. This method is an alternative to NAT-aware SIP proxies
(SBC/ALGs), and to proxies supporting the upcoming IETF sip-outbound
draft.
But I guess in your case the algorithm doesn't work. As your server has a
private IPv4 address, Sofia will enter "NAT-mode", but it doesn't notice
that the contact learnt from the response is actually the same as was in
the first REGISTER. This however is not that harmful, just causes extra
signaling to happen.
Pekka has developed this code, so Pekka, feel free to comment and correct
me. :)
The second REGISTER has a funny Contact headers.
Do you mean:
Contact: <sip:10.1.64.123;transport=udp>
Contact: <sip:10.1.64.123>;expires=0
.. yeps, so there we delete the contact we registered in first phase (the
second one), and register a new. Unfortunately in this case this step is
unnecessary as the two addresses are equal.
--
under work: Sofia-SIP at http://sofia-sip.sf.net
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel