I’m new at asterisk. I’m working with Ubuntu 20.04, Asterisk 18.19 and trying to make the most basic softphone connection possible. I’m using the IP address I get from typing ifconfig in the command line of Ubuntu. Please let me know if you spot anything obvious that I’m doing wrong. I’m following the instructions from a youtube video.
This is my sip.conf on my Linux server:
[general]
context=internal
allowguest=no
allowoverlap=no
bindport=5060
bindaddr=0.0.0.0
srvlookup=no
disallow=all
allow=ulaw
alwaysauthreject=yes
canreinvite=no
nat=yes
session-timers=refuse
localnet=192.168.x.y/255.255.255.0 (not typing x or y, of course)
[7001]
type=friend
host=dynamic
secret=7001
context=internal
[7002]
type=friend
host=dynamic
secret=7002
context=internal
From extensions.conf on my Linux server:
[internal]
exten => 7001,1,Answer()
exten => 7001,2,Dial(SIP/7001,60)
exten => 7001,3,Playback(vm-nobodyavail)
exten => 7001,4,VoiceMail(7001@main)
exten => 7001,5,Hangup()
exten => 7002,1,Answer()
exten => 7002,2,Dial(SIP/7002,60)
exten => 7002,3,Playback(vm-nobodyavail)
exten => 7002,4,VoiceMail(7001@main)
exten => 7002,5,Hangup()
My edit of the MicroSip softphone on my windows laptop:
username: 7001
domain: 192.168.x.y (the same address in sip.conf)
login: 7001
password: 7001
Unlike the video, after I save the above settings on my softphone, while in Asterisk, the Host still says unspecified for 7001 in sip show peers. Is there anything wrong that immediately comes to mind? Thank you.