On Tue, Mar 03, 2020 at 10:44:32PM -0500, Joli Martinez wrote:
We have several SIP domains coming into our SBC. I
need to build a
Kamailio box that will 302 the call to the appropriate server based on the
domain. If the call does not come in with a recognized domain I would like
for it to 404 the call. Not sure how to do this. Can someone point me in
the right direction?
You can create a redirect by changing the domain in the R-URI ($rd) and
sending a 302 with.
send_reply("302", "Redirect");
The logic how to choose which is the correct $rd is up to you.