<HTML><BODY><div>Hi Mehdi,</div><div> </div><div>onreply_route [1] is used not for generating replies by your OpenSIPS,</div><div>it it used for actions to be taken for SIP replies which are going towards OpenSIPS</div><div>from other VoIP entities.</div><div> </div><div>To drop a call with some code you may use these functions:</div><div> </div><div> sl_send_reply(); [2]</div><div> send_reply(); [3]</div><div> </div><div>but according to the documentation neither of them can be used from onreply_route.</div><div> </div><div>[1] <a href="https://www.opensips.org/Documentation/Script-Routes-3-3#toc4">https://www.opensips.org/Documentation/Script-Routes-3-3#toc4</a></div><div>[2] <a href="https://opensips.org/docs/modules/3.3.x/sl.html#func_sl_send_reply">https://opensips.org/docs/modules/3.3.x/sl.html#func_sl_send_reply</a></div><div>[3] <a href="https://opensips.org/docs/modules/3.3.x/signaling.html#func_send_reply">https://opensips.org/docs/modules/3.3.x/signaling.html#func_send_reply</a></div><div> </div><div><div><div><div>-----------------------------------------------<br>BR, Alexey<br>https://alexeyka.zantsev.com/</div></div></div></div><div> </div></BODY></HTML>