[OpenSIPS-Users] Accounting: How to avoid a fraudulent BYE with lower CSeq?

Dan Pascu dan at ag-projects.com
Thu Dec 18 23:26:16 CET 2008


On Thursday 18 December 2008, Iñaki Baz Castillo wrote:
> I've received a solution in SIP-implementors that makes sense:
> > The accounting should end when you received the BYE from your
> > gateway. Regardless if or what the client answers, you know that the
> > gateway has ended the media before it sends the BYE (it should).
> >
> > The other way around, you know the gateway will has ended the call if
> > it sends out the 200 OK for a BYE.
> >
> > You can only trust the gateway, so you can stop accounting if you
> > receive a BYE or a response on a BYE from your gateway, You shouldn't
> > trust requests and responses from clients, only from your gateway.
>
> I'll check if this behaviour is possible with OpenSIPS acc module (it
> requires doing the ACC for BYE when receiving the 200 OK).

This is how it actually works if you set the accounting flag (as opposed 
to calling the acc functions yourself in the script on requests).

-- 
Dan



More information about the Users mailing list