Hello,

the xhttp and the event route is the option for now. A pull request with further flexibility in this direction is welcome, of course.

Cheers,
Daniel

On 05.10.22 14:55, Ilie Soltanici wrote:
Hello,

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:

modparam("xhttp", "url_match", "^/rpc/")

which should handle only HTTP requests to this endpoint: http://127.0.0.1:5060/rpc, now if HTTP requests are sent to another endpoint (http://127.0.0.1:5060/v2) - 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.
Thanks

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
  Nov 7-10, 2022 (Europe Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/