I guess the function was supposed to be called only for the initial INVITE, the one that
creates the call.
Overall, I do not use that much the module to have an opinion of this is good to have or
someone also wants to charge a call twice (e.g., incoming leg and outgoing leg). The
initial developer of the module is not active lately in the project, maybe @linuxmaniac
can give his opinion as I saw some commits to this module from him rather recently.
As a further remark, the protection could be good, but if there are cases to charge a call
many times, then it should be made a modparam to control the behaviour.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2383#issuecomment-651865050