Monday, April 5, 2010

Got XLite to Connect!

After a bit of reading on the sip.conf page on voip-info I figured out what I had to change in order to get the program to connect to the asterisk server.



The book's default sip.conf file was insufficient to deal with the layer of NAT I'm sitting behind with my home router. Luckily asterisk now has an nat option you can put in the sip.conf file that fixes this. The test sip.conf file now looks like this:
[general]

[1000]
type=friend
nat=yes
username=1000
context=phones
host=dynamic
secret=1234
The settings in XLite in the SIP Accounts section:
Display Name: Miles (can be whatever you want)
User name: 1000 (can be whatever you want, but must match "username" in sip.conf)
Password: 1234 (matches "secret" in sip.conf)
Authorization user name: 1000 (not sure what this is, honestly)
Domain:
Everything else was left as default. I also had to forward the ports on my home router (5060-5070).

No comments:

Post a Comment