[OpenSIPS-Users] dialog and acc

Bogdan-Andrei Iancu bogdan at opensips.org
Fri May 6 19:25:26 CEST 2011


Hi Denis,

 From a proxy point of view, a 200OK means the dialog was establish. A 
proxy cannot interfere with the ACK part - the acknowledgment is done 
between end parties.

If the ACK is missing (in an established dialog), the callee party 
(according to RFC) must send a BYE (when finishing the 200 OK 
retransmission) to the caller.  This is something your callee doesn't do.

A simple work around is to use the dialog timeout in opensips:
     1) at INVITE time, when dialog is created, set a 5 seconds timeout 
(dialog will be terminated by opensips, with BYE, in 5 secs after being 
established - do not forget to set the BYE_ON_TIMEOUT flag)
     2) at ACK, before loose_route() set a new timeout to some long, 
long (3 hours?) value.

So, if the ACK will mis, the 5 sec timeout will kick in and terminate 
the dialog; otherwise, opensips will prelong the dialog on ACK time.

Regards,
Bogdan

On 04/28/2011 03:06 PM, Denis Putyato wrote:
>
> Hello!
>
> I noticed that cdr_flag in acc modules marks dialog for accounting as 
> answered even there was no ACK on 200 OK.
>
> As a result, I have acc record which has a big duration and status 200 OK.
>
> Thank you for any help.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-- 
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 2nd of May 2011
OpenSIPS solutions and "know-how"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110506/b5a3fdc6/attachment-0001.htm>


More information about the Users mailing list