Jan
31
Posted on 31-01-2008
Filed Under (Asterisk & VOIP) by Arun Bagul

Introduction –

After upgrading the Asterisk-1.2 to new Asterisk version 1.4 … The md5secret password option in SIP configuration file was not working with new Asterisk 1.4 version…. We try to sort this problem… and finally we found the solution…..

1] Open Asterisk configuration file ‘ sip.conf ‘ and check your realm name –

[root@indianGNU.org:/etc/asterisk# cat sip.conf

[general]
port = 5060 ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
allowguest=no
#disallow=all

…..
…….
localnet=192.168.1.0/24
externip=A.B.C.D
realm=asterisk.IndianGNU.org
recordhistory=yes
videosupport=yes

;add sip_account.conf file configuration ;; note below line is not comment..
#include sip_account.conf
[root@indianGNU.org:/etc/asterisk#

2] How to generate MD5 secret password for SIP account –

[root@indianGNU.org:~# echo -n “4050:asterisk.IndianGNU.org:mypwd” | md5sum
91f55d8bd74cad9e223c2d3a326f1367 –
[root@indianGNU.org:~#

3] The format for generating the MD5 secret password is ….

[root@indianGNU.org:~# echo -n “sip_account_no:realm_name:password” | md5sum

sip_account_no = This is the SIP account name see below file
realm_name = This option is set in sip.conf file of asterisk with “realm” option
password = Password for your SIP account

4] Asterisk SIP account file (in my case ‘sip_account.conf’ )

[root@indianGNU.org:/etc/asterisk# head -n 13 sip_account.conf

[4050]

username=4050
md5secret=91f55d8bd74cad9e223c2d3a326f1367
callerid=Arun Bagul<4050>
context=for-allowme
type=friend

….
….

[root@indianGNU.org:/etc/asterisk#

5]
Now restart or reload Asterisk server and try to login register account 4050 with secrete password “mypwd” .. The account will be registered successfully…

[root@indianGNU.org:~# /etc/init.d/asterisk reload
Reloading Asterisk PBX configuration files.
[root@indianGNU.org:~#

Thank you,

Arun Bagul

Similar Posts:

Be Sociable, Share!
(3) Comments    Read More   

Comments

nawshad on 10 August, 2008 at 2:18 am #

i live kuwait i have a fring mobile line.i want sip reload card your card valid my line .how get how much all details send me


Merlin35 on 23 October, 2009 at 3:58 am #

That s essentially the same as for a roof-mounted PV system. ,


kalyan on 11 July, 2014 at 2:18 pm #

Is it necessary to mention realm in sip.conf because i don’t have domain configuration in my server.


Post a Comment
Name:
Email:
Website:
Comments:


www.flickr.com
arunbagul's photos More of arunbagul's photos
Get Adobe Flash player
-->