<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div>Hi,<div><br></div><div>I'm experimenting "onsend_route" with "onsend_route_reply=yes"</div><div>to improve my logs.</div><div><br></div><div>I was surprised to see that "onsend_route" doesn't always display</div><div>the "forwarded" answer after negative final answers. The documentation seems</div><div>to indicate that this route will execute only if "the received reply is sent</div><div>out". -as I'm forking, the final 6xx answer is not "forwarded" immediatly... and</div><div>I guess this is the reason it doesn't show.</div><div><br></div><div>Here comes a real strange use-case:</div><div><br></div><div>With forking enabled, only the last answer will appear in the "onsend_route",</div><div>however, in some case, this is NOT the answer being forwarded.</div><div><br></div><div>Example:</div><div>1/ receive 603 decline from branch1</div><div>2/ a CANCEL is sent on branch2</div><div>3/ a 487 Request Terminated is received on branch2</div><div><br></div><div>What happens:</div><div>1/ onsend_route is showing "487 Request Terminated"</div><div>2/ 603 Decline is forwarded (as expected)</div><div><div><br></div><div>The documenation say:</div><div><span style="color:rgb(51,51,51);font-family:Arial,sans-serif;font-size:14px">"If set to 1 (yes, on), onsend_route block is executed for received replies that are sent out. Default is 0.</span>"<br></div><div><br></div><div>This doesn't look to be correct. (either the doc, or the code?)</div><div><br></div><div>Is there any possibility to install a log in the script that</div><div>would log ALL *exact* replies being sent: </div><div>1/ the real forwarded ones</div><div>2/ and also the ones sent by kamailio directly.</div><br>May be this is possible with some "event_route"?<br><br>Tks a lot!<br>Aymeric<div><br></div>-- <br><div dir="ltr" class="gmail_signature"><img src="http://sip.antisip.com/am48.png">Antisip - <a href="http://www.antisip.com" target="_blank">http://www.antisip.com</a><br></div></div></div></div></div></div></div>