[OpenSIPS-Users] E_ACC_EVENT Question
Alexander Perkins
alexanderhenryperkins at gmail.com
Wed Jun 5 15:36:28 UTC 2024
Hi Bogdan. Thank you for getting back to me. When we take a look at what
populates, they are either incorrect (for example, src_ip is always
0.0.0.0, but we see it correct in the route block), or they are null.
Let me know if this helps.
Thank you,
Alex
On Wed, Jun 5, 2024 at 11:33 AM Bogdan-Andrei Iancu <bogdan at opensips.org>
wrote:
> Hi Alexander.
>
> When you say "they don't seem to populate correctly", you mean they are
> NULL val, or wrong value?
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
> https://www.opensips-solutions.com
> https://www.siphub.com
>
> On 04.06.2024 23:59, Alexander Perkins wrote:
>
> Hi All. We are working on implementing the E_ACC_EVENT so we may use that
> for accounting purposes instead of the DB. Now, most things appear to work
> as they should. However, when we attempt to access the extra
> accounting fields, they don't seem to populate correctly (I've highlighted
> the extra variables). Here is the config:
>
> modparam("acc","extra_fields","evi: src_ip -> source_ip; dst_ip ->
> destination_ip)
>
> event_route [E_ACC_EVENT]
> {
> #log on entry
> xlog("L_INFO","entered event_route\n");
>
> #Default Params
> $var(method) = $param(method);
>
> #Extra Params
> $var(src_ip) = $acc_extra(src_ip);
>
> $var(source_test) = $si;
>
> $var(dst_ip) = $acc_extra(dst_ip);
>
> #log vars to test
> xlog("L_INFO","heres the ER variable: $var(source_test) and
> $var(src_ip)\n");
>
> }
>
> What am I missing? Can someone point me in the right direction? Any help
> is really appreciated.
>
> Thank you,
> Alex Perkins
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240605/3297c19b/attachment.html>
More information about the Users
mailing list