Re: How to be notified on Retransmission failure

Savolainen Dmitri <[email protected]> Sat, 19 Mar 2005 17:30:44 +0300
Newsgroups gmane.comp.lib.vovida.vocal
Organization Telphin
Message-ID <[email protected]>
vrvo> Hi all,
vrvo> I'm using Vovida 1.5.0 on Win32 Environment, but I think the same
vrvo> problem should arise also on other platforms.
vrvo> Suppose to create a Sip session with a peer, and then,
vrvo> after BYE (or before/after other messages) unplug the network cable.
vrvo> The Sip Stack (Transaction) retransmits the packets, but after not having
vrvo> received response for that transaction, it stops retransmission.
vrvo> But my application never gets any messages regarding that failure!

vrvo> I think my application should be informed that the sent message
vrvo> never got response: moreover I think I should not implement timer
vrvo> at application level, because the Sip stack already (it seems to me)
vrvo> manages that timers.

vrvo> But why I never get informed? It's *really* important because I have
vrvo> to clean up that calls. Nobody could help me regarding this issue?
vrvo> Thank you.

I resolved this problem in SipStack:
function:
void* SipUdp_impl::sendMain()
{

      /*............................*/
      
      //after these strings:
      if(!randomLosePercent || ((random() % 100) >= randomLosePercent))
      {
           ret_status = udpSend(sipMsg);
           //i added this:
           if (count==4)
                 ret_status = 2;
           //and other without changes

      /*............................*/
           
}

So, after 4 retransmits 408 status message returned.

Best regards,
Savolainen Dmitri                          

mailto: [email protected]

_______________________________________________
vocal mailing list
[email protected]
To unsubscribe, please go to http://www.vovida.org/mailman/listinfo/vocal