<div dir="ltr">Hi List,<div><br></div><div>I am trying to keep a counter for number of messages received per source ip in my kamailio script. </div><div><br></div><div>The basic challenge is to keep this data in a neat structure.</div>

<div>Ideally, I want some array with keys named after source IP addresses,</div><div><br></div><div>sth like number_of_messages["10.10.10.10"] = 23</div><div><br></div><div>Of course, this data structure shall be script-persistent (as opposed to transaction persistent)</div>

<div><br></div><div>Is there any suggestion to do this? (keep a record of # of messages received from each source IP address and log them)? </div></div>