[SR-Users] Keep Number of Messages per Source
AliReza Khoshgoftar Monfared
khoshgoftar at gmail.com
Tue Aug 12 21:56:35 CEST 2014
Hi List,
I am trying to keep a counter for number of messages received per source ip
in my kamailio script.
The basic challenge is to keep this data in a neat structure.
Ideally, I want some array with keys named after source IP addresses,
sth like number_of_messages["10.10.10.10"] = 23
Of course, this data structure shall be script-persistent (as opposed to
transaction persistent)
Is there any suggestion to do this? (keep a record of # of messages
received from each source IP address and log them)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140812/ca1e92dc/attachment.html>
More information about the sr-users
mailing list