[OpenSIPS-Users] [SOLVED] Re: dialog end reason in CDRs

Kingsley Tart kingsley at dns99.co.uk
Tue May 11 13:40:23 EST 2021


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:





More information about the Users mailing list