[OpenSIPS-Users] E_DLG_STATE_CHANGED in event route

Admin smontour at twc.com
Sun Mar 6 18:28:40 CET 2016


Hi all,

I want to track dialog state change using event_route but i am not
getting anything in the log file. The way i understand it is when the
dialog state changes, the event E_DLG_STATE_CHANGED is triggered, and
putting that in the event_route block, i should see it but it's not
showing in the log file. 

What am i missing? Thank you.

event_route[E_DLG_STATE_CHANGED] {
    xlog("Dialog state changed\n");
}

I am running opensips 2.1.2 on debian 8 64bit.

=========================================================

loadmodule "dialog.so"
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "default_timeout", 14400)  # 4 hours timeout
modparam("dialog", "db_mode", 1)
modparam("dialog", "db_update_period", 60)
modparam("dialog", "db_url",
	"mysql://opensips:opensipsrw@localhost/opensips") # CUSTOMIZE ME


# create dialog with timeout
if ( !create_dialog("B") ) {
	send_reply("500","Internal Server Error");
	exit;
}




More information about the Users mailing list