TUTORIAL IP-based authentication VOIP.MS

redstonemason

Certified AWS Architect (And a KVM fan!!!)
Joined
Apr 3, 2014
Messages
151
Reaction score
41
I searched the forum here but did not find an answer even though it might be staring me in the face :)

Had a problem with a password being hacked on the weekend. Although VOIP.MS were good to me and credited a good chunk of the 200 U$D damages in Toll Fraud, I am moving to whitelist for my external extensions and making sure that VOIP.MS authenticated my accounts for my PBX trunks by IP address (their whitelist).

Question:

Do I just remove the text in the Register String field to enable IP based authentication.

It seems to work but I do want to make sure I am doing this the correct way.
 
Joined
May 23, 2013
Messages
223
Reaction score
28
Asterisk IP Auth. (SIP)

This page talks about setting up the sub accounts for it: http://wiki.voip.ms/article/Sub_Accounts

sip.conf

Note: You'll need to create a sub account to use IP Auth
[voipms]
canreinvite=nonat
context=mycontext
host=atlanta.voip.ms (one of our multiple servers, you can choose the one closer to your location)
type=peer
disallow=all
allow=ulaw
; allow=g729 ; uncomment if you support g729
nat=yes



extensions.conf

[mycontext]
; Make sure to include inbound prior to outbound because the _NXXNXXXXXX handler will match the incoming call and create a loop
include => voipms-inbound
include => voipms-outbound

[voipms-outbound]
exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}VOIPMS)
exten => _1NXXNXXXXXX,n,Hangup()
exten => _NXXNXXXXXX,1,Dial(SIP/1${EXTEN}VOIPMS)
exten => _NXXNXXXXXX,n,Hangup()
exten => _011.,1,Dial(SIP/${EXTEN}VOIPMS)
exten => _011.,n,Hangup()
exten => _00.,1,Dial(SIP/${EXTEN}VOIPMS)
exten => _00.,n,Hangup()

; inbound context example for your DID numbers, do not add the number 1 in front

[voipms-inbound]
exten => 7863643011,1,Answer() ;your DID
 

Members online

Forum statistics

Threads
25,811
Messages
167,759
Members
19,240
Latest member
nikko
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.
Top