Hi,
On Mon, 24 Jul 2006, Sergey Vointsev wrote:
> Contact string became more reasonable (192.168.0.85 - server with
> Asterisk; 192.168.0.90 - host with sofsip-cli):
> nta::contact: <sip:192.168.0.90;transport=udp>
ok, good. The invalid SIP contact is generated by the stack when it is
waiting for a valid contact from the registrar (it notices that it's
behind a NAT, so using the local IP address as contact won't work
anyways).
But if the Asterisk is in the same network addressing domain, then this
could be a bug (we shouldn't put the invalid-contact to the headers if
there is no NAT between us and a registar). And based on the log, this
would seem to be the case (192.168.0.85 is Asterisk's IP, and .90 is the
client IP)...?
The SIP contact management is generally a bit tricky area. Basicly, in
presence of NATs, there is no reliable, standard mechanism for a client to
figure out the correct public IP:port to put to the SIP contact header,
and be certain that everyone can reach it. The standards-based solution is
the IETF sip-outbound mechanism, but the spec is unfortunately not yet
ready. Sofia-SIP already has some code for sip-outbound, and so you also
get the strange looking SIP contacts in REGISTER messages...
>> r
> UA: REGISTER sip:[EMAIL PROTECTED] - registering address to network
[...]
> sofsip> UA: REGISTER: 200 OK
> UA: succesfully registered sip:[EMAIL PROTECTED] to network
> Contact: <sip:192.168.0.90;transport=udp>;expires=120
[...]
> But in a few seconds it disconnects:
> sofsip> In the signal handler...11.
Hmm, weird... do you do anything between the 'r' and 'k' commands and
the segfaults.... i.e. does sofsip_cli just sit there for a few secs and
then segfaults? :o
I'd be very interested in seeing a gdb backtrace ('gdb sofsip_cli'->
'gdb> r sip:[EMAIL PROTECTED] --contact="sip:*:5060;transport=udp"' ->
'gdb> bt' after the segfault has happened).
--
under work: Sofia-SIP at http://sofia-sip.sf.net
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel