[reSIProcate] DUM: Sending ACK in response to BYE

Dmitry Semyonov dsemyonov at dins.ru
Fri Aug 13 05:44:07 CDT 2004


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 at dins.ru]
> Sent: Thursday, August 12, 2004 10:37 AM
> To: resiprocate-devel at list.sipfoundry.org
> 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.



More information about the resiprocate-devel mailing list