hello! i’m new to asterisk.
i’m using CentOS 5.2 + ASterisk 1.6
when i finish installing asterisk, i configure sip.conf like:
[4455]
type=friend
username=4455
secret=1234
host=dynamic
context=internal
Did you “extensions reload” and “sip reload” after making the changes? or shutdown asterisk and re-start it ?
Have you tried setting something up in extension.conf to answer and play a prompt? That will give you an idea if the problem is inbound to asterisk or dialing out.
You can try adding this to the beginning of sip.conf
Allowguest=no
context=internal
externip=xx.xx.xx.xx ; Your External IP
localnet=192.168.1.0/255.255.255.0 ; Your internal network
disallow=all ; For Codecs
allow=ulaw
allow=alaw
allow=g729
allow=gsm
Then complete your settings:
4455]
type=friend
username=4455
secret=1234
host=dynamic
context=internal
callerid="4455"
nat=yes ; OR NO if you are not behind NAT (Firewall)
canreinvite=no
mailbox=4455 ; For Voicemailo
Im using an old version of Asterisk (1.2.x). I may be wrong with 1.6 but try giving bindport=5060 in sip.conf. Reload asterisk or ‘asterisk -vvvvvvvvvgc’ and check.
Did you try commenting port=5060 and using only bindport option? Hows the network setup.? Is the server/client behind NAT? And I hope you are using #netstat -nulp for checking the port status.
asterisk will alway start on port 5060 default so it should work without the setting, are you sure asterisk is running? or does it stop when you start is with asterisk -cvvvvvvvvvvvvvg
can you connect to asterisk when you type asterisk -r ?