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

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to