Hi all, Just a quick update to the issue I reported earlier: I set the SOFIA_DEBUG environment variable to 9 and found that I get the following messages regarding the 487:
tport_wakeup_pri(0x806bbf0): events IN tport_recv_event(0x806bbf0) tport_recv_iovec(0x806bbf0) msg 0x8084fb0 from (udp/10.0.66.27:5060) has 361 bytes, veclen = 1 tport_deliver(0x806bbf0): msg 0x8084fb0 (361 bytes) from udp/10.0.66.9:5060/sip next=(nil) nta: received 487 Request Terminated for INVITE (87778107) nta: 487 Request Terminated was discarded I browsed the source code for the 'discarded' message and found it to be printed in nta.c, line 2699 (from the darcs version). Digging around I saw this comment on line 2657: "/* XXX - should check if msg should be discarded based on via? */". Then I checked the Via headers in both the INVITE sent by Sofia and the 487 received, and verified that they differ: Via from INVITE: Via: SIP/2.0/UDP 10.0.66.27;rport;branch=z9hG4bKrt1vS4B0ZHayF Via from 487: Via: SIP/2.0/UDP 10.0.66.27;rport=5060;received=10.0.66.27;branch=z9hG4bKrt1vS4B0ZHayF As you can see, the softphone adds a 'received' parameter to the Via header. Is this what may be causing the message to be discarded? Thanks again. Fabio Margarido On 8/22/07, Fabio Margarido <[EMAIL PROTECTED]> wrote: > Hi there, > > I am observing the following behavior from Sofia in my application: > > I send an INVITE to a sip softphone in another machine, and receive > 100 and 180 as responses. After some time, my application calls > nua_handle_destroy() on this call, and Sofia automatically sends a > CANCEL to the pending INVITE (I'm using nua). > I've noticed that the CANCEL goes out without a tag in the To header, > despite being sent after the reception of the 180 (i think this issue > might be related with this thread: > http://sourceforge.net/mailarchive/message.php?msg_id=97bf55c20705160751l44f5a0eagd366f7a558c0d8ab%40mail.gmail.com > , but i don't know if this issue has already been fixed. I'm using the > latest darcs revision). > Despite the missing tag, the softphone replies with a 200 (with tag), > and then a 487 for the initial INVITE. But Sofia never ACKs the 487, > which is retransmitted over and over. > I also see on the terminal an error message saying: > "nta_outgoing_tcancel: trying to cancel cancelled request". > Is there something I should be doing different? If not, could you > please confirm that this is indeed a bug and if it will be fixed soon? > Thanks in advance. > > Fabio Margarido > > PS: if you need a trace, I've got one handy. > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel