<div dir="ltr"><div><div>Hi,<br><br></div>when I use t_reply("505", "Error"); in my failure route, the response is not forwarded and following is written into a log:<br><br>kamailio[26216]: WARNING: tm [t_lookup.c:1559]: t_unref(): WARNING: script writer didn't release transaction<br>
<br>plus next line is written exactly 416000 times into a log afterwards:<br><br>kamailio[32685]: CRITICAL: dialog [dlg_hash.c:794]: log_next_state_dlg(): bogus event 4 in state 5 for dlg 0xb4af6588 [2575:7017] with clid '121d44f0-6555f4c8' and tags 'd12546d053aadc68o2' ''<br>
<br></div><div></div><div>My point is to change the incoming code from users and append a Q.850 reason code.<br></div><div>Is there any other way how to do this or a way how to fix this?<br></div><div>I'm using Kamilio 4.0.4 on Debian 7.1<br>
</div><div><br><br></div>The code is as follows:<br>failure_route[MANAGE_FAILURE]<br>{<br>        if (t_is_canceled()) {<br>                exit;<br>        }<br>        if($T_reply_code == 408 && isflagset(10))<br>
        {<br>                xlog("Ringing timeout");<br>                append_to_reply("Reason: Q.850;cause=28\r\n");<br>                t_reply("505", "Error");<br>        }<br>}<br>
</div>