if (method=="INVITE" && uri=~"NUMBER")
{
#rewriteuri("sip:+45NUMBER@voipXXX.opensips.local");
rewritehost("voipXXX.opensips.local");
t_relay();
exit;
this is an example of how my openSIPS server handles invites, i want to make it so that i'm only able to accept invites from certain ips? do anyone know how this could be done.
this only takes into account which number is calling, not which ip its from