Hello,

there are two types of event_route that can be executed by topos, one
gives access to headers as well -- see the readme.

Cheers,
Daniel

On 05.09.24 16:47, Denys Pozniak via sr-users wrote:
> Hey!
> I'm still trying to figure out how to implement an exception from
> topos processing for a specific type of SIP device (IP is not fixed)
> based on User-Agent.
> If anyone has any ideas, I'd appreciate some help!
>
> пт, 12 июл. 2024 г. в 11:58, Maria Jonas via sr-users
> <[email protected]>:
>
>     Hi,
>     To disable topos for a specific SIP trunk, you can use event
>     routes with IP address filtering. It seems your configuration
>     doesn't trigger event_route[topos:msg-incoming] as expected.
>     Ensure you have set event_mode to 5 to enable the necessary events
>     and verify that the IP address comparison is accurate. Here's a
>     revised snippet:
>     modparam("topos", "event_mode", 5)
>
>     request_route {
>         ...
>     }
>
>     event_route[topos:msg-outgoing] {
>         if ($sndto(ip) == "1.1.1.1") {
>             xlog("L_WARN", "[msg-outgoing] $rm/$rU/$sndto(ip)\n");
>             drop;
>         }
>     }
>
>     event_route[topos:msg-incoming] {
>         if ($si == "1.1.1.1") {
>             xlog("L_WARN", "[msg-incoming] $rm/$rU/$si\n");
>             drop;
>         }
>     }
>
>
>     Ensure the IP address 1.1.1.1 is correctly matched, and check if
>     the event routes are correctly configured.
>
>
>
>
>
>
>     Thanks
>     __________________________________________________________
>     Kamailio - Users Mailing List - Non Commercial Discussions
>     To unsubscribe send an email to [email protected]
>     Important: keep the mailing list in the recipients, do not reply
>     only to the sender!
>     Edit mailing list options or unsubscribe:
>
>
>
> -- 
>
> BR,
> Denys Pozniak
>
>
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to [email protected]
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:

-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
Kamailio Advanced Training, October 8-10, 2024 -- asipto.com
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to