Upgrade 3CX to v18 and get it hosted free!

Spoofing Extension

Author image

In this HOW-TO, we will make an extension to spoof our outgoing phone number over a voip trunk.

edit extensions.conf in your favorite editor



[spoof]
exten => 420,1,Wait(1)
;always use a password - dont be a moron
exten => 420,n,Authenticate(12345678901234567890|j|20)
; enter in 10 digit number that you are spoofing
exten => 420,n,Background(enter-phone-number10)
exten => 420,n,Read(SPOOF||10|i|2|30)
exten => 420,n,NoOp(${SPOOF})
exten => 420,n,Set(CALLERID(num)=${SPOOF})
exten => 420,n,NoOp(${CALLERID(num)})
exten => 420,n,Set(CALLERID(name)="Spoofed Name")
exten => 420,n,NoOp(${CALLERID(name)})
exten => 420,n,Wait(2)
; enter in the number you are dialing
exten => 420,n,Background(enter-phone-number10)
exten => 420,n,Read(SPOOFDIAL||11|i|2|30)
exten => 420,n,NoOp(${SPOOFDIAL})
exten => 420,n,Wait(1)
exten => 420,n,Background(pls-wait-connect-call)
exten => 420,n,Dial(SIP/voip_provider/${SPOOFDIAL}|30)
exten => 420,n,Hangup()
; just dial "spoof" :-D
exten => spoof,Goto(spoof|420|1)

Just remember, don’t defraud someone with this or you will end up with the feds knocking on your door. It is however fun to freak your friends out with weird caller id infoz

I am also in no way responsible for what you do with this code

This page has 9662 hits

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.