[SR-Users] load credentials in cnxcc from dburl

Logeshwaran G logeshwarangs at gmail.com
Mon Aug 7 09:38:25 CEST 2017


Hi ,

I do have one column name Credits in the kamailio table subscriber,

I am trying to disallow the calls to the user whom they have low credits
balance.

with the below codes:

 if($avp(credits) < 30) {
                xlog("L_ALERT", "ALERT: Credit balance is less");
                sl_send_reply("403", "Forbidden");
                drop;
        }

Correct me if I am wrong!!

On Mon, Aug 7, 2017 at 12:37 PM, Federico Cabiddu <
federico.cabiddu at gmail.com> wrote:

> Hi,
> maybe I don't understand your question, but cnxcc does not make any usage
> nor requires credential.
> What are you trying to achieve exactly?
>
> Cheers,
>
> Federico
>
> On Mon, Aug 7, 2017 at 8:21 AM, Logeshwaran G <logeshwarangs at gmail.com>
> wrote:
>
>> Is there any possibility of loading credential from the db in the cnxcc
>> module.
>>
>> For Example: modparam("auth_db", "load_credentials",
>> "$avp(status)=status")
>>
>> Like the above one , I need it for CNXCC
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170807/3bb0b01f/attachment.html>


More information about the sr-users mailing list