[Spce-user] inbound restrictions

Daniel Grotti dgrotti at sipwise.com
Mon May 12 04:33:10 EDT 2014


Hi,
there is no inbound restriction for sip peering (should be the peer to
choose if send or not calls to you).
Anyway, what you should do it to use Inbound Rewrite Rules of your peer
to rewrite your unwanted number into a fake RURI, like "INVALID".
Then you should patch your kamailio in order to reject the call
properly, ex:

if($rU == "INVALID")
{
     xlog("L_INFO", "Rejecting INVALID callee - R=$ru ID=$ci\n");
     route(ROUTE_ACC_FAILURE);
     t_reply("484","callee user incomplete/invalid");
     exit;
}


You can reply with a different code if you want.

Daniel




On 05/11/2014 06:52 PM, Iman elbruki wrote:
> Dear Message Board,
> I have added a "Peering Server" but only want to accept CERTAIN
> INBOUND traffic coming from that server's IP address. Can I specify to
> accept inbound traffic from that server's IP address based on the
> DOMAIN that subscriber DID belongs to?
>
> If so - please let me know how to go about doing so (I have been
> struggling for a white on this)
>
> if not - what are some of my options?
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20140512/eeaae6fe/attachment-0001.html>


More information about the Spce-user mailing list