SIP Trunk configuration – IP Based authentication and Password based authentication

There are two types of authentications

1. IP based authentication
2.Username and Password based authentication

For IP Based Authentication

You need to do the following changes in the sip.conf

[siptrunk]
type=friend
fromuser=X.X.X.X ( your asterisk server ip ) which will send traffic to the service provider
host=X.X.X.X ( service provider ip )
canreinvite=no
qualify=no
dtmfmode=RFC2833
context=intenal
disallow=all
allow=g729
allow=ulaw
allow=alaw
port=5060

Then you need to edit extensions.conf
[intenal]
exten => _9X.,1,Dial(SIP/${EXTEN}@siptrunk)

For Username and password based authentication

[siptrunk]
type=friend
username=test
fromuser=10.0.10.11
host=10.0.10.25
canreinvite=no
secret=
qualify=no
dtmfmode=RFC2833
context=intenal
disallow=all
allow=g729
allow=ulaw
allow=alaw
port=5060

Asterisk support

 

7 thoughts on “SIP Trunk configuration – IP Based authentication and Password based authentication”

  1. Great goods from you, man. I have take into accout your stuff prior to and you are just extremely great. I actually like what you have received right here, really like what you are stating and the way in which in which you assert it. You are making it enjoyable and you still care for to stay it sensible. I can’t wait to learn far more from you. This is really a terrific web site.

Leave a Comment