[OpenSIPS-Devel] Contribution: New function in siptrace module
Sergio Gutierrez
saguti at gmail.com
Tue Oct 28 14:42:45 CET 2008
Hello Dan.
Again, thanks a lot for your feedback. I have a final question, and again, I
am not sure whether is a missunderstanding.
I do not see whether the avp can be changed dynamically; my approach allows
to change the traced user list at execution time, and it is not necessary to
restart OpenSIPS.
Thanks and regards.
Sergio Gutierrez.
On Mon, Oct 27, 2008 at 5:56 PM, Dan Pascu <dan at ag-projects.com> wrote:
> On Monday 27 October 2008, Sergio Gutierrez wrote:
> > Hello Dan.
> >
> > I think I already understand. You are right.
> >
> > So, what do you think whether I change the logic for the other idea I
> > have, implementing a function which performs the tracing base in IP
> > address? I think that feature is not already implemented.
>
> The functionality is already there. The traced user AVP doesn't have to
> contain a username. It can contain anything you want, including an IP
> address. Whatever it holds will be stored in the username column. So we
> could rename that to accommodate more than just user tracing.
>
> if (src_ip==1.2.3.4) {
> # trace calls from this IP
> $avp(s:traced_user_avp) = $si;
> }
>
> --
> Dan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/devel/attachments/20081028/5717cb8c/attachment.htm
More information about the Devel
mailing list