[SR-Users] How to get total number of dialogs in profile with value

Alex Balashov abalashov at evaristesys.com
Tue Jul 16 00:06:46 CEST 2019


Does the same occur in a profile without values? It may be that the
wrappers were fixed up to mandate use of values in profiles that are
keyed by values. 

On Mon, Jul 15, 2019 at 05:45:06PM -0400, Nathan Angelacos wrote:

> 
> In kamailio < 5.1.x it used to be possible to get total number of items
> in a dialog_with_profile by skipping the "value" paramter, such as:
> 
> modparam ( "dialog", "profiles_with_value", "outbound" )
> .
> .
> .
> get_profile_size ( "outbound", "$var(myvar)" );
> 
> 
> However, 5.1.x and 5.2.x report:
> 
> ERROR: dialog [dialog.c:912]: w_get_profile_size_helper(): invalid
> value parameter
> 
> 
> The documentation (
> https://kamailio.org/docs/modules/5.2.x/modules/dialog.html#dialog.f.get_profile_size
> )
> 
> Indicates the "value" paramter is still optional.
> 
> I'm sure I must be missing something obvious... Any ideas?
> 
> 
> Thanks!
> 
> 
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/



More information about the sr-users mailing list