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

  • June 7, 2014 at 5:26 am
    Permalink

    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.

  • February 25, 2015 at 11:58 am
    Permalink

    Nice to find some intelligent content for once, I reaaly am getting tired of the constant drivel I find of late, you deserve thanks for posting readable and informative content.

  • February 25, 2015 at 11:00 pm
    Permalink

    Pretty decent article. I just uncovered your blog and had to declare that I’ve quite enjoyed browsing the articles you write.

  • February 26, 2015 at 1:27 am
    Permalink

    Informative posting, it is fantastic to find some worthwhile information on the internet, I am genuinely grateful to find a blog that is not full of the normal dross, thank you.

  • February 26, 2015 at 1:52 am
    Permalink

    In a future post, I would love to discus some of the reasoning behind our choices. Quality reasoning here. I really do benefit from viewing your blog. I truly have learned a lot from them.

  • February 26, 2015 at 1:18 pm
    Permalink

    Educational Article! At last somebody who knows what it is all about and can as well produce common sense material for us the reader. without doubt looking forward to your next post.

  • February 26, 2015 at 2:17 pm
    Permalink

    Once I had read the name of your blog I was completely surprised although reading the full posting, I fully understand it the right way. Seriously very helpful material.

Leave a Reply to zapatillas Salomon Cancel reply