[SR-Users] ACC module

Julien Chavanton jchavanton at gmail.com
Thu Feb 13 17:06:28 CET 2020


Setflag is only setting the value of a transaction flag to true. We always
need to make sure each flag as a unique integer value (It will be the bit
position in an int32)

Example:
#!define FLT_ACCMISSED 2
The value 2 must not be used by any other flag, this is one thing you need
to verify.

The transaction module TM will "callback" the ACC module on receiving
responses and the ACC module will generate an ACC event and set the flag to
false, next time it will receive a transaction response, it will have its
corresponding flag set to false and will not generate an new event.

Q: Only one flag FLT_ACC FLT_ACCMISSED should be set for one dialog?  When
i do twice FLT_ACC i can have duplicate records?
A: You can only the flag that is set in the modparam/acc they should be
different.
A: No, unless you set the flag again (in another routing script execution),
setting it multiple times in the same routing script execution as no impact.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200213/b047e1cb/attachment.html>


More information about the sr-users mailing list