[SR-Users] Catching Register 200 OK, then using it to validate other packets.

Alex Balashov abalashov at evaristesys.com
Tue Jan 4 06:55:52 CET 2022


Hi Richard,

If I’ve understood your query correctly, flag 0x02 to save() should accomplish what you want:

https://kamailio.org/docs/modules/5.5.x/modules/registrar.html#registrar.f.save

— Alex

> On Jan 4, 2022, at 12:53 AM, Richard Edmands <thesirdmz at gmail.com> wrote:
> 
> Hey Kamailio Users,
> 
> I've written a TLS-UDP gateway. It works well, but I want to reduce the internet noise it pushes through.
> 
> I have an idea on what I'd like to try. Wondering if it would be possible to catch the Register 200 OK, store it and then when receiving packets it future to then validate them against the data?
> I've managed to capture a 200 OK, but the save("location") function says it will return it's own 200 OK which isn't the plan since we just want to capture the location.
> 
> Anyone done something similar and got some working example code? Is this a bad idea for some reason?
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>  * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
>  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/




More information about the sr-users mailing list