[OpenSIPS-Users] [OpenSIPS-Devel] dialog profile with value to count the outgoing calls doesn't work
Richard Revels
rrevels at bandwidth.com
Tue Sep 2 14:20:14 CEST 2008
my bad. setflag(4); Not sure what the quotes would do. Never tried
it.
Richard Revels
On Sep 2, 2008, at 8:08 AM, Richard Revels wrote:
> Somewhere in the missing config is there a setflag("4"); ?
>
> Sent from my iPhone
>
> On Sep 2, 2008, at 6:13 AM, Andrew Pogrebennyk <andrew.pogrebennyk at portaone.com
>> wrote:
>
>> Hi,
>> I am using the following configuration to allow only 1 parallel call
>> per
>> user:
>>
>> loadmodule "dialog.so"
>> modparam("dialog", "db_url", "mysql://opensips:xxx@localhost/
>> opensips")
>> modparam("dialog", "dlg_flag", 4)
>> modparam("dialog", "db_mode", 1)
>> modparam("dialog","profiles_with_value","caller")
>> ...
>> get_profile_size("caller","$fu","$avp(s:cnt)");
>> xlog("----- currently, the user $fu has $avp(s:cnt) active
>> outgoing calls\n");
>> if($avp(s:cnt) > 1) {
>> sl_send_reply("403","Not allowed");
>> exit;
>> }
>> set_dlg_profile("caller","$fu");
>>
>> I make N parallel calls from one account and each time see the
>> following
>> message in the log:
>> ----- currently, the user sip:000100 at a.b.c.d has 0 active outgoing
>> calls
>>
>> The dialog table in the DB is empty. OpenSIPS version is 1.4.2. Is
>> this
>> a bug in dialog module implementation or I am doing something wrong?
>>
>> --
>> Sincerely,
>> Andrew Pogrebennyk
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
More information about the Users
mailing list