> 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)...?
Yes, correct. Both this computers are in the same local network
without NATs, firewalls etc...


> 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 do nothing beetween this commands. This log is just exact copy-paste
from dialog with sofsip-cli.


> 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).
Here it is:

> r
UA: REGISTER sip:[EMAIL PROTECTED] - registering address to network
sofsip> sofsip> UA: REGISTER: 401 Unauthorized
Server auth: Digest realm="asterisk", nonce="16e268cd"
Please authenticate 'REGISTER' with the 'k' command (e.g. 'k
password', or 'k [method:realm:username:]password')
sofsip> k pass
UA: authenticating 'REGISTER' with 'Digest:"asterisk":3000:pass'.
sofsip> UA: REGISTER: 200 OK
UA: succesfully registered sip:[EMAIL PROTECTED] to network
        Contact: <sip:192.168.0.90;transport=udp>;expires=120
sofsip>
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1078642272 (LWP 9891)]
0x400ae597 in nua_stack_process_notify (nua=0x807c678, nh=0x0,
irq=0x8081e98, sip=0x0) at nua_subnotref.c:705
705         w->w_host = nua->nua_contact->m_url->url_host;
(gdb) bt
#0  0x400ae597 in nua_stack_process_notify (nua=0x807c678, nh=0x0,
irq=0x8081e98, sip=0x0) at nua_subnotref.c:705
#1  0x4009c9de in nua_stack_process_request (nh=0x0, leg=0x807d828,
irq=0x8081e98, sip=0x8081604) at nua_stack.c:1591
#2  0x40082995 in incoming_callback (leg=0x807d828, irq=0x8081e98,
sip=0x0) at nta.c:4297
#3  0x40081497 in leg_recv (leg=0x807d828, msg=0x8081568,
sip=0x8081604, tport=0x807e098) at nta.c:3645
#4  0x4007d32a in agent_recv_request (agent=0x807cc60, msg=0x8081568,
sip=0x8081604, tport=0x807e098) at nta.c:2178
#5  0x4007ca00 in agent_recv_message (agent=0x807cc60,
tport=0x807e098, msg=0x8081568, tport_via=0x807c678, now=
      {tv_sec = 134753512, tv_usec = 134747652}) at nta.c:1983
#6  0x400f67a4 in tport_base_deliver (self=0x0, msg=0x807c678,
now={tv_sec = 134727288, tv_usec = 0}) at tport.c:2778
#7  0x400f6623 in tport_deliver (self=0x807e098, msg=0x8081568,
next=0x807c678, sc=0x0, now=
      {tv_sec = 3362735905, tv_usec = 881108}) at tport.c:2767
#8  0x400f6312 in tport_parse (self=0x807e098, complete=1, now={tv_sec
= 3362735905, tv_usec = 881108}) at tport.c:2686
#9  0x400f6066 in tport_recv_event (self=0x807e098) at tport.c:2633
#10 0x400f5de9 in tport_base_wakeup (self=0x807e098, events=1) at tport.c:2539
#11 0x4001be00 in su_source_dispatch (gs=0x805b4d8, callback=0,
user_data=0x807c678) at su_source.c:400
#12 0x402c9582 in g_main_depth () from /usr/lib/libglib-2.0.so.0
#13 0x402ca5f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#14 0x402ca930 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#15 0x402caed3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#16 0x0804b7e8 in main (ac=134727288, av=0x807c678) at sofsip_cli.c:159
(gdb)


Sergey.

-------------------------------------------------------------------------
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

Reply via email to