I’m selling wholesale inbound numbers that I purchase from a vendor and then resell to my customers. My customers, in turn, may resell these numbers to their own clients.
The problem:
Some of my customers (or their clients) are using these numbers for outbound calls, which violates the terms and conditions, since these numbers are strictly for inbound use only.
What I want:
A solution on the Asterisk side that prevents outbound calls from being generated using these numbers. Ideally, my Asterisk server should only allow inbound calls. However, since the SIP trunk passes control to the customer’s end, they configure their own Asterisk to allow both inbound and outbound calls.
Request:
If anyone has worked on this kind of issue, please suggest a solution.
My Asterisk version is 11, so kindly provide a solution accordingly.
That’s up to your dialplan. If you accept a call from them into your Asterisk, then you have to route it, if you don’t route it such that it doesn’t go anywhere… then they can’t place outbound calls.
Ok what if i follow these steps :
IP Whitelisting for client against each number
Set Separate context=inbound-only (sip/pjsip)
Restrict outbound patterns for extensions.conf (inbound-only numbers)
Optional : log outbound attempts for audit
Will these steps fix my issue? if yes please guide me theoretically and practically both.
Id be very grateful for your guidance.
What does this mean (the whole phrase, although it would be advisable to define “SIP trunk”, too, as it isn’t a term used by Asterisk or the SIP specifications)?
I operate a server that forwards SIP INVITEs (inbound calls) to a client’s Asterisk server. The numbers I provide are inbound-only DIDs. The client should be able to use these numbers strictly for receiving calls.
However, the issue arises when the client attempts to misuse the inbound DID by configuring their Asterisk to register the number and then use it for outbound calling. While I have no problem with them using the numbers for inbound traffic, I do not want — and legally cannot allow — these inbound-only numbers to be used for outbound purposes.
This creates legal and compliance issues on my side, and I want to implement a way to restrict and enforce inbound-only usage, even after the call is routed from my server to the client’s server.
I don’t understand that response, but from a technical perspective there’s nothing you can do to prevent them from presenting it as a callerid with another provider. That provider may stop it, or maybe not.
The only thing under your control is preventing outbound calls from clients through your server. I don’t have any deeper help to provide. Only you know your setup and how it operates.