Hi Daniel, I appreciate the follow-up, good to know that this is the right solution.

Indeed I will complete this MR soon, it will be valuable to always be able to generate a complete ACC event with locally generated replies to be matches to a trace etc.

On Tue, Aug 4, 2020, 01:16 Daniel-Constantin Mierla <miconda@gmail.com> wrote:

Hello,

when the reply is generated locally, then the acc callback function does not get a real sip reply structure, relying on request attributes.

I noticed you started a pull request to get the generated local to-tag in such case, that is the way to make it work as you want, so let's continue there for further discussions.

Cheers,
Daniel

On 31.07.20 08:51, Julien Chavanton wrote:
Hi, considering this example :


modparam("acc_json", "acc_missed_flag", 6)

failure_route[test] {
    setflag(6); // MISSED_ACC, the failure will be recorded by ACC
    t_flush_flags(); // This will set the flags in the newly created transaction
    t_reply("500", "Service Unavailable");
}

This does generate an ACC event, however the to-tag is not populated, my guess this is because the TM callback is done before the to-tag is generated.
I wonder if there is a way to populate the to-tag immediately ?

I will dig it further, but maybe there is a trick I am missing 

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla