hi everyone i am completely newbie when it comes Asterisk , can someone guide me on the steps
on how to do number masking using asterisks then test if it works than how to integrate it to my back-end system at-list the general steps
hi everyone i am completely newbie when it comes Asterisk , can someone guide me on the steps
on how to do number masking using asterisks then test if it works than how to integrate it to my back-end system at-list the general steps
On Monday 11 August 2025 at 10:56:05, nate via Asterisk Community wrote:
hi everyone i am completely newbie when it comes Asterisk , can someone
guide me on the steps on how to do number masking using asterisk
Please explain what you mean by “number masking”.
The only thing that comes to my mind is Anonymous calling (CallerID Withheld)
but that is a guess on my part.
Antony.
–
People say that nothing is impossible, so I try to do the impossible every
day.
what i mean by number masking is hiding the real phone number during a call so that the recipient does not see the original number. instead they see different number(“masked” number)
for example if you call someone , instead of showing your real number, it shows a generic or temporary number
On Monday 11 August 2025 at 11:31:59, nate via Asterisk Community wrote:
what i mean by number masking is hiding the real phone number during a call
so that the recipient does not see the original number. instead they see
different number(“masked” number)
This is easy to implement - you simply set the Caller ID on your outgoing call
to whatever masked number you want.
On the other hand, it may be impossible, since many upstream providers won’t
allow you to set arbitrary Caller ID (since you could then fool the callee
into thinking they’re getting a call from someone else, which is illegal in
many jurisdictions).
So, I would firstly ask your upstream provider (the company you have a SIP
connection to the PSTN from, to be able to dial out to other people) whether
they support what you want to do.
In my experience, unless you are a commercial telephone service provider
yourself, the upstream provider will only allow you to set outgoing Caller ID
to a number they have provided to you.
What is you use case for wanting to do this?
Antony.
–
Pavlov is in the pub enjoying a pint.
The barman rings for last orders, and Pavlov jumps up exclaiming “Damn! I
forgot to feed the dog!”
I believe most will allow you to set it to a number that you have proved you control. If they didn’t provide that, they are likely to test it by calling it, so it needs to be valid for incoming calls.
In North America, you may be able to provide other numbers, but they will get flagged with a B attestation, and an aware callee will know they are not the real immediate source number.
its for my project i am building communication API , “for example when you book a ride via Uber, the driver doesn’t see your phone number and vice versa. But you are both connected via a virtual number. This virtual number becomes functional when a driver is assigned a ride.”
i want this basically
can you guide me on how to do number masking using asterisk than test it
I don’t think anyone here is going to spoon feed you everything. I suggest that you read the book Asterisk: The Future of Telephony, learn about the dialplan, ODBC intergrations, AGI, ARI etc. and go from there.
You are going to need a large pool of PSTN numbers (“DIDs”) or you are going to have to get users to dial the virtual number, interactively, after your system has answered their call. The first may be expensive. The second may prove difficult for some users.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.