<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>the xhttp and the event route is the option for now. A pull
request with further flexibility in this direction is welcome, of
course.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 05.10.22 14:55, Ilie Soltanici
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJQ6-U3uH6F_CS8xSJoCELx6_B0m93OTb9m598TtMRnjh6tg5g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello,<br>
<div><br>
</div>
<div>Is there a way to set a default reply message for the xhttp
module, or at least drop the TCP connection when 'url_match'
parameter is used? For example, if used:</div>
<div><br>
</div>
<div>
<div style="color:rgb(238,255,255);background-color:rgb(37,37,38);font-family:"Fira Code",Awesome,"Droid Sans Mono","monospace",monospace,"Droid Sans Fallback","Droid Sans Mono","monospace",monospace;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(199,146,234)">modparam</span>(<span style="color:rgb(195,232,141)">"xhttp"</span><span style="color:rgb(137,221,255)">,</span> <span style="color:rgb(195,232,141)">"url_match"</span><span style="color:rgb(137,221,255)">,</span> <span style="color:rgb(195,232,141)">"^/rpc/"</span>)</div></div>
</div>
<div><br>
</div>
<div>which should handle only HTTP requests to this endpoint: <a
href="http://127.0.0.1:5060/rpc" moz-do-not-send="true"
class="moz-txt-link-freetext">http://127.0.0.1:5060/rpc</a>,
now if HTTP requests are sent to another endpoint (<a
href="http://127.0.0.1:5060/v2" moz-do-not-send="true"
class="moz-txt-link-freetext">http://127.0.0.1:5060/v2</a>)
- then the TCP connection just stays established even nobody
process it. I know I can ignore this parameter and filter all
requests in the event_route, but dropping them before calling
event_route will make more sense for me, or at least add
another parameter to this module that can control that.</div>
<div>Thanks</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
Nov 7-10, 2022 (Europe Timezone)
* <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
</body>
</html>