[SR-Users] ACC events missing to-tag when doing t_reply

Daniel-Constantin Mierla miconda at gmail.com
Tue Aug 4 10:16:19 CEST 2020


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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200804/1f6a1e8b/attachment.htm>


More information about the sr-users mailing list