[Spce-user] Dispactcher - causing kamailio proxy to think its offline

Andy Clark andyclark05251978 at gmail.com
Mon Jan 9 12:41:43 EST 2023


I enabled dispatcher but after dispatcher sends the OPTION it causes
kamailio proxy to think it's offline.

MY_PUBLIC_IP:5060 > 127.0.0.1:5062
OPTIONS>>>
<<<100 Trying
<<< 403 Domain not served here


To fix the issue I had to comment out a few lines in the kamailio proxy cfg.

kamailio.cfg.customtt.tt2

+ #}
+ #else if(is_method("OPTIONS")) # deny OPTIONS when R-URI is none of our
IPs. ignore NOTIFY
+ #{
+ # sl_send_reply("403", "Domain not served here");
+ # xlog("L_NOTICE", "Sending reply S=403 Domain not served here M=$rm
fs='«$Ri»:«$Rp»' du='«$si»:«$sp»' - [% logreq %]\n");
+ # route(ROUTE_EXIT);
+ #}
  sl_send_reply("200", "Alive");
  xlog("L_NOTICE", "Sending reply S=200 Alive M=$rm fs='«$Ri»:«$Rp»'
du='«$si»:«$sp»' - [% logreq %]\n");
  route(ROUTE_EXIT);
+ #}
+ #else if(is_method("OPTIONS")) # deny OPTIONS when R-URI is none of our
IPs. ignore NOTIFY
+ #{
+ # sl_send_reply("403", "Domain not served here");
+ # xlog("L_NOTICE", "Sending reply S=403 Domain not served here M=$rm
fs='«$Ri»:«$Rp»' du='«$si»:«$sp»' - [% logreq %]\n");
+ # route(ROUTE_EXIT);
+ #}


What is the correct way to solve this issue?

In the UI I have added to IP address as a domain but that didn't make any
difference.
ngcp-status - shows everything is fine (hostname and FQDN and IP addresses
are all showing correctly)

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20230109/246a5783/attachment.html>


More information about the Spce-user mailing list