Am Samstag, 19. Januar 2019, 10:43:09 CET schrieb Mojtaba:
Sorry for my mistake in subject!
"Give me suggestions for module implementation", anyway,
Give me suggestions for duplication detection algorithm?
Hello Mojtaba,
just to give you an idea: you can access and store parts of the message in
memory with e.g. the htable module. Then you can compare it during the route
block with the new incoming message and reject it.
I found this old discussion thread about a similar topic:
https://lists.kamailio.org/pipermail/users/2009-February/021906.html
You can of course also implement this in a module, but in this case it would
not be necessary.
Maybe this is helpful for your as well.
Best regards,
Henning
--
Henning Westerholt -
https://skalatan.de/blog/
Kamailio services -
https://skalatan.de/services
Kamailio security assessment -
https://skalatan.de/de/assessment