<div dir="ltr"><div><pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin:4px 0px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29);font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span style="font-family:verdana,sans-serif">Hi, considering this example :<br></span><br><br>modparam("acc_json", "acc_missed_flag", 6)<br><br>failure_route[test] {<br>    setflag(6); // MISSED_ACC, the failure will be recorded by ACC<br>    t_flush_flags(); // This will set the flags in the newly created transaction<br>    t_reply("500", "Service Unavailable");<br>}<br><br><span style="font-family:verdana,sans-serif">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.<br></span></pre><pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin:4px 0px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29);font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span style="font-family:verdana,sans-serif">I wonder if there is a way to populate the to-tag immediately ?<br><br></span></pre><pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin:4px 0px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;border-radius:4px;color:rgb(29,28,29);font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><span style="font-family:verdana,sans-serif">I will dig it further, but maybe there is a trick I am missing </span><br></pre></div></div>