[SR-Users] get_profile_size() function help

侯旭光 marquis.hxg at gmail.com
Mon Feb 21 10:50:58 CET 2011


Hello

bother again

what's the problem with the function get_profile_size()

My script

modparam("dialog", "enable_stats", 1)
modparam("dialog", "dlg_flag", 4)
modparam("dialog", "dlg_mode", 1)
modparam("dialog", "db_url", "mysql://openser:openserrw@localhost/openser")
modparam("dialog", "profiles_no_value", "inbound ; outbound")

...

if(is_method("INVITE"))
{
   ...
    dlg_manage();
    set_dlg_profile("inbound");
   ...
    get_profile_size("inbound","$avp(size)");
   ...
}

============================================
when program runs to the function get_profile_size(), the proxy will
be terminate.

log file:

ALTER: <core> [main.c 722] : child process 29651 exited by sinal 11
ALTER: <core> [main.c 725] : core was generated
INFO : <core> [main.c 737] : terminating due to SIGCHILD

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

what' s the problem? Did I use the func wrong?

thanks



More information about the sr-users mailing list