2009/1/25 jonathan augenstine <jaugenst...@gmail.com>:
> I have two issues that I am struggling with and need some input.  The
> application I am developing receives an INVITE, does a database lookup, and
> redirects the INVITE using a 302 Temporarily Moved response.  My first issue
> is the sending of a 100 TRYING message.  When an INVITE arrives the nua
> sofia-sip stack automatically sends the TRYING message.  Is there any way to
> disable this automatic message or do I need to use the nta interface?

Looks like it is not possible to turn off the automatic 100 Trying to
INVITE from nua. If your application is pure redirect server, perhaps
nta is better choice. Please note, however, that if your database
lookup takes too long time, nta can also send a 100 Trying
automatically.

> The second issue I am encountering is the with the 302 behavior.  According
> to SIP documentation when a 302 message is sent in response to an INVITE the
> application that initiated the invite can send an ACK to the 302 but it is
> not required.  What I am experiencing is that the nua application sends the
> 302 response and then the next event that arrives is a terminated event.
> Then the ACK arrives and generates an error message in nua:
>
> nua(003D6358): strange ACK from <sip:u...@x.x.x.x:5060>
>
> nua also continues attempting to send the 302 message.  It sends it 10 times
> with an increasing timeout that starts out at 0.5 seconds and doubles every
> message until the timeout reaches 4 seconds.  What am I doing wrong?  The
> application that sends the invite receives the 302 and responds with an
> ACK.  Am I missing something in the nua application that is not handling the
> send of the 302 or the receipt of the ACK correctly?

Perhaps the To tag in 302 and ACK do not agree or there is something
else fishy? A message trace made with environment variables
TPORT_LOG=1 TPORT_DEBUG=5 NTA_DEBUG=7 NUA_DEBUG=7 would he help.

-- 
Pekka.Pessi mail at nokia.com

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to