< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

RE: [reSIProcate] DUM: Sending ACK in response to BYE


What is happening is that DUM is finished; it has sent the 200 to the
SipStack, all its usages are destroyed. So, when the handler calls, the
SipStack may still need a few process calls to send the 200.

-Derek

> -----Original Message-----
> From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:resiprocate-
> devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Dmitry Semyonov
> Sent: Friday, August 13, 2004 3:44 AM
> To: Scott Godin
> Cc: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> Subject: RE: [reSIProcate] DUM: Sending ACK in response to BYE
> 
> Hello Scott.
> 
> On Thu, 12 Aug 2004, Scott Godin wrote:
> 
> > You don't ACK a BYE request - DUM sends the required 200 response.
>   [...]
> > 4.  onTerminated is called when client sends BYE.  DUM sends the 200
> > response.
> 
> Well, 200 OK is not sent if dum->shutdown(&shutdownHandler) is called
> immediately after onTerminated(). (Note that my app waits for
> onDumCanBeDeleted() callback inside shutdownHandler before deleting
> the dum object.) If the app continues working, (and thus calling
> dum->process(fdset)), then 200 OK is sent in time.
> 
> So, as a workaround dum->process() could be called several times
> before dum->shutdown().
> 
> 
> > -----Original Message-----
> > From: Dmitry Semyonov [mailto:dsemyonov@xxxxxxx]
> > Sent: Thursday, August 12, 2004 10:37 AM
> > To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> > Subject: [reSIProcate] DUM: Sending ACK in response to BYE
> >
> > Hello.
> >
> > Sorry for silly question - I've just started to look into DUM.
> >
> > I took BasicCall example, and modified it to call to other SIP client.
> > I need to send ACK message in response to BYE, and I was going to
> > use something similar to InviteSession::ackConnection(). But I haven't
> > found any suitable method. Please, tell me how to finish INVITE
> > session correctly. Thanks.
> >
> > P.S.
> > Initially I expected DUM to send the ACK automatically.
> > It seems I don't understand DUM principles well enough...
> 
> 
> ...Bye..Dmitry.
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel