Hi
I am wondering, if a profile with value can on the same time be used as profile without value of this usages exclude each other.
Like doing:
set_dlg_profile("caller"); set_dlg_profile("caller","$si");
get_profile_size("caller","$var(c_total)"); get_profile_size("caller","$si","$var(c_ip)");
xlog("L_INFO", "$cfg(route): Total Caller: $var(c_total)\n"); xlog("L_INFO", "$cfg(route): Caller from $si: $var(c_ip)\n");
I fear this is not possible, as I keep getting:
w_set_dlg_profile_helper(): invalid value parameter and w_get_profile_size_helper(): invalid value parameter
right?
Mit freundlichen Grüssen
-Benoît Panizzon-
Hi,
A profile is either “with value” or “without value”, so you cannot use it both ways simultaneously; “with value” is not a superset of “without value”.
You can, however, add a call to two different profiles, one with values and one without values.
— Alex
On Nov 15, 2022, at 7:45 AM, Benoit Panizzon benoit.panizzon@imp.ch wrote:
Hi
I am wondering, if a profile with value can on the same time be used as profile without value of this usages exclude each other.
Like doing:
set_dlg_profile("caller"); set_dlg_profile("caller","$si");
get_profile_size("caller","$var(c_total)"); get_profile_size("caller","$si","$var(c_ip)");
xlog("L_INFO", "$cfg(route): Total Caller: $var(c_total)\n"); xlog("L_INFO", "$cfg(route): Caller from $si: $var(c_ip)\n");
I fear this is not possible, as I keep getting:
w_set_dlg_profile_helper(): invalid value parameter and w_get_profile_size_helper(): invalid value parameter
right?
Mit freundlichen Grüssen
-Benoît Panizzon-
I m p r o W a r e A G - Leiter Commerce Kunden ______________________________________________________
Zurlindenstrasse 29 Tel +41 61 826 93 00 CH-4133 Pratteln Fax +41 61 826 93 01 Schweiz Web http://www.imp.ch ______________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users