[OpenSIPS-Users] Profile feature not working

mayamatakeshi mayamatakeshi at gmail.com
Wed Feb 18 18:31:32 CET 2009


On Thu, Feb 19, 2009 at 2:18 AM, Bogdan-Andrei Iancu <bogdan at voice-system.ro
> wrote:

> Hi,
>
> in 1.5, do "create_dialog();" before using the profiling functions
>

Hello, Bogdan,
thanks, it worked.
But this is not yet documented.
The page below still says a dialog is created using the "dlg_flag":
http://www.opensips.org/html/docs/modules/devel/dialog.html

best regards,
mayama


> mayamatakeshi wrote:
>
>> Hello,
>> I just got the latest svn revision 5330.
>> I'm trying to use the profile feature of the dialog module to limit the
>> number of simultaneous calls for a given subscriber.
>> I got these errors:
>>
>> Feb 19 01:28:37 ipx029 /usr/local/sbin/opensips[23050]:
>> ERROR:dialog:set_dlg_profile: dialog was not yet created - script error
>> Feb 19 01:28:37 ipx029 /usr/local/sbin/opensips[23050]:
>> ERROR:dialog:w_set_dlg_profile: failed to set profile
>>
>>
>> Significant portions of the cfg are these:
>>
>>        setflag(4); #set dialog
>>
>>        get_profile_size("caller", "$fu", "$var(SIZE)");
>>        if( $var(SIZE) >= $avp(i:10) ){
>>                sl_send_reply("503", "Simultaneous calls limit reached");
>>                exit;
>>        }
>>
>>        consume_credentials();
>>        set_dlg_profile("caller","$fu");
>>
>>
>> This may be a bug as the script was originally written for kamailio 1.4
>> and works without problems there.
>> (I'm aware the dialog module is diverging between the projects, but
>> reading the docs I could not spot a significant change in this particular
>> feature).
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090219/cd6a8c2c/attachment.htm 


More information about the Users mailing list