[OpenSIPS-Devel] Contribution: New function in siptrace module

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Oct 28 15:29:24 CET 2008


Hi Sergio,

You can load (at runtime) AVPs from DB, using whatever criteria (per 
user, per source IP, per domain) - with avp_db_load().

Regards,
Bogdan

Sergio Gutierrez wrote:
> 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 
> <mailto: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 <http://1.2.3.4>) {
>        # trace calls from this IP
>        $avp(s:traced_user_avp) = $si;
>     }
>
>     --
>     Dan
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>   




More information about the Devel mailing list