<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>I have a use case where I need to send a statefull (or stateless) reply to non-INVITE SIP transaction from PERL script using app_perl module's "moduleFunction" method,<br></div><div><br></div><div><a href="https://kamailio.org/docs/modules/5.0.x/modules/app_perl.html#ID-7b0efd72c8ec89bc43dad940590b40c6">https://kamailio.org/docs/modules/5.0.x/modules/app_perl.html#ID-7b0efd72c8ec89bc43dad940590b40c6</a></div><div><br></div><div>It fails with error "function not found, missing load module?", even though the documentation says that at least "sl_send_reply" method should work.</div><div><br></div><div>As an alternative, I tried to use JSONRPCS module to call RPC methods "tm.reply" and "tm.reply_callid" from PERL script (using libcurl),</div><div><br></div><div><a href="https://kamailio.org/docs/modules/5.0.x/modules/jsonrpcs.html">https://kamailio.org/docs/modules/5.0.x/modules/jsonrpcs.html</a><br></div><div><a href="https://kamailio.org/docs/modules/5.0.x/modules/tm.html#tm.rpc.reply">https://kamailio.org/docs/modules/5.0.x/modules/tm.html#tm.rpc.reply</a></div><div><a href="https://kamailio.org/docs/modules/5.0.x/modules/tm.html#tm.rpc.reply_callid">https://kamailio.org/docs/modules/5.0.x/modules/tm.html#tm.rpc.reply_callid</a></div><div><br></div><div>However, they only seems to work for INVITE transactions. If I try to use them for e.g. MESSAGE request I get "Request Timeout" on libcurl and "500 I am terribly sorry" on SIP client.</div><div><br></div><div>Are these bugs or suppose to work this way? If so, then, is there any way i can send a SIP reply to non-INVITE SIP transaction from outside of the kamailio.cfg script?</div><div><br></div><div>Please help.</div><div><br></div><div>P.S. I am using Kamailio 5.0.x on debian wheezy 32bit virtual machine.</div><div><br></div><div>Thank you.</div><div><br></div><div><br></div></div></div></div></div></div>