Hi,
I would like to call from softphone on my computer to fix lines, I have SIP trunk on e-fon.ch but have problems with message Failed to authenticate on INVITE to … I am able to connect two local softphones but going out is problem, here is my configuration, I have no idea what I did wrong, I am running asterisk on VBox on macOSX, network is Bridged, Asterisk version is 11.2.1
extensions.conf
[incoming]
exten => s,1,Answer()
exten => s,n,Playback(hello-world)
exten => s,n,Hangup()
[external]
exten => _9.,1,Log(NOTICE, Dialing out from ${CALLERID(all)} to ${EXTEN:1} through efon)
exten => _9.,n,Dial(SIP/${EXTEN:1}@efon,60,tr)
exten => _9.,n,Hangup()
[phones]
include => external
sip.conf
[general]
disallow=all
allow=ulaw
allow=alaw
context=incoming
autofallthrough=yes
register => username:xxxxxxxxx@sip.provider
[efon]
host=sip.provider
username=username
secret=xxxxxxxxx
type=peer
qualify=yes
insecure=invite,port
dtmfmode=rfc2833
disallow=all
context=external
allow=alaw
allow=ulaw
allow=gsm
nat=force_rport
[telefon1]
secret=2222
type=peer
host=dynamic
context=phones
any help would be much appreciated