[Devel] rand function in config file
Klaus Darilion
klaus.mailinglists at pernau.at
Wed Mar 21 16:37:03 CET 2007
Henning Westerholt wrote:
> On Wednesday 21 March 2007 15:02, Ovidiu Sas wrote:
>> It would be nice to have a module with all this checks and specific actions
>> :-) The snmp module will send traps if the input queue of the socket is
>> reaching a certain level.
>
> Hi Ovidiu,
>
> thank you for the reply. Ok, i'll look into the snmp module. Perhaps this is
> something for the "nice to have" list for the next version?
>
>> You can achieve something like that in the existing infrastructure by
>> using gflags.
>> Once you externally detect that some condition occurs, you can
>> set/reset gflags via the fifo interface and the script can start
>> rejecting/accepting SIP requests.
>
> I have looked into this module. But i need a more gradual setting, not a yes/
> no desciscion. As i understand the module, this is not possible now. But i'm
> still far away from beeing a script guru. ;-)
Of can also use a raw SQL query with avp_db_query and use the RAND()
functions of the database. But this of course also will put more load on
the server.
regards
klaus
More information about the Devel
mailing list