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.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to