I can make outgoing calls, but when i call my number, i ear a message saying that “this user is currently not online”. I’ve tried to use the voipbuster aplications and it works very well, that’s why i think that i’ve a configuration problem.
My sip.conf is:
; Note: If your SIP devices are behind a NAT and your Asterisk
; server isn’t, try adding “nat=1” to each peer definition to
; solve translation problems.
[general]
port = 5060 ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
;Inicia-se a negar todos os codecs
disallow=all
;aqui sera por ordem o tipo de codec utilizado
allow=alaw
allow=ulaw
allow=gsm
; If you need to answer unauthenticated calls, you should change this
; next line to ‘from-trunk’, rather than ‘from-sip-external’.
; You’ll know this is happening if when you call in you get a message
; saying "The number you have dialed is not in service. Please check the
; number and try again."
context = from-sip-external ; Send unknown SIP callers to this context
callerid = Unknown
tos=0x68
; #, in this configuration file, is NOT A COMMENT. This is exactly
; how it should be.
#include sip_nat.conf
#include sip_custom.conf
#include sip_additional.conf
notifyringing=yes
register => username-voipbuster:password-voipbuster@voipbuster-in;
[voipbuster-in]
type=friend;
username=username-voipbuster;
secret=password-voipbuster;
host=voipbuster.com;
realm=voipbuster.com;
fromuser=username-voipbuster;
fromdomain=voipbuster.com;
context=voipbuster-in;
canreinvite=no;
insecure=very;
qualify=1000;
nat=yes
dtmfmode=inband;
disallow=all;
allow=alaw;
allow=ulaw
;auth=md5;
[voipbuster]
type=peer
host=sip.voipbuster.com
username=username-voipbuster-account2
fromuser=username-voipbuster-account2
secret=password-voipbuster-account2
notifyringing=yes
musicclass=default
nat=yes
[netappel]
type=peer
host=sip.netappel.com
username=username-netappel
fromuser=username-netappel
secret=password-netappel
EXTENSIONS.CONF
(There is a lot of text before that was inserted by default)
;[voipbuster-in]
;
[voipbuster-in]
exten => s,1,Answer
exten => s,2,Ringing
exten => s,3,SetCIDName(${CALLERIDNAME})
exten => 301,4,Dial(SIP/jonhsmith,30)
exten => 1000,5,Voicemail(u555)
exten => 1001,6,Hangup
;
;this is where parked calls go if they time-out. Should probably re-ring
[default]
include => ext-local
exten => s,1,Playback(vm-goodbye)
exten => s,2,Macro(hangupcall)
exten => 301,1,Dial(IAX2/johnsmith/301)
exten => _00353.,1,Dial(SIP/${EXTEN}@voipbuster)
exten => _0081.,1,Dial(SIP/${EXTEN}@voipbuster)
exten => _0033.,1,Dial(SIP/${EXTEN}@voipbuster)
exten => _001.,1,Dial(SIP/${EXTEN}@netappel)
exten => _0044.,1,Dial(SIP/${EXTEN}@netappel)
thanks