[OpenSER-Devel] Dialog profiling working strange
Pavel Kuzin
pk at nodex.ru
Tue Jul 15 13:39:36 CEST 2008
Hello!
Trying to use profiling in dialog module.
Getting the strange results:
route[5] {
#-----------------------------------------------------------------
# PSTN Handler
#-----------------------------------------------------------------
avp_load_radius("digest");
get_profile_size("sessions","$avp(s:caller_billing_user)","$avp(s:count)");
xlog("L_NOTICE", "Current calls count for user $avp(s:caller_billing_user) is $avp(s:count).\n");
set_dlg_profile("sessions","$avp(s:caller_billing_user)");
get_profile_size("sessions","$avp(s:caller_billing_user)","$avp(s:count)");
xlog("L_NOTICE", "Current calls count for user $avp(s:caller_billing_user) is $avp(s:count).\n");
}
Log outputs:
Jul 15 15:30:25 main /usr/local/sbin/openser[26540]: Current calls count for user user-test is 0.
Jul 15 15:30:25 main /usr/local/sbin/openser[26540]: Current calls count for user user-test is 0.
And after 5 or 6 calls openser is crashing to core.
I can send the core dump, if it will be need.
Source - current trunk - revision 4486
--
Pavel D.Kuzin
Nodex LTD.
More information about the Devel
mailing list