On Tue, 2021-05-11 at 13:20 +0100, Kingsley Tart wrote:
> Hi,
> 
> Is there a version of this that works in OpenSIPS 3.1?
> 
> modparam("acc", "db_extra_bye", "sip_dlg_end_reason=$DLG_end_reason")
> 
> I want to log the dialog end reason in the CDRs.

Mailer sent message while I was still typing it :-/


This logs the end reason if OpenSIPS sends the BYEs (eg dialog
timeouts):

local_route {
        if (is_method("BYE")) {
                $acc_extra(end_reason) = $DLG_end_reason;
        }
}

This does it for normal BYEs in the main routing function:



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to