We have Asterisk 13.6.0 built and running on a CentOS VM. Network Adapter 1 is NAT. Network Adapter 2 is a Bridge. The machine is on an isolated network with two laptops using a small generic switch. They are on the same subnet and there is no connectivity to the internet.
We can ping the laptops from the server and vice versa.
Users bob and alice are setup in sip.conf, pjsip.conf and extensions.conf are setup as they are in the Creating SIP accounts wiki page. We are using Zoiper phones on the two laptops. When we try to create the users - using bob/alice, their password and the ip address the server we are not able to register the users.
There are no messages in the CLI window, just generic can not create the user error in the Zoiper application. The “dialplan show from-internal” command show bob and alice at 6001 & 6002.
We have tried using a similar VM with openSIPS and have been successful in making calls with the Zoiper phones - through the server.
What are we missing?
Sip.conf
[code][general]
transport=udp
friends_internal
type=friend
host=dynamic
context=from-internal
disallow=all
allow=ulaw
alice
secret=password
bob
secret=password
[/code]
pjsip.conf
[code][transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
;Templates for the necessary config sections
endpoint_internal
type=endpoint
context=from-internal
disallow=all
allow=ulaw
auth_userpass
type=auth
auth_type=userpass
aor_dynamic
type=aor
max_contacts=1
;Definitions for our phones, using the templates above
alice
auth=alice
aors=alice
alice
password=password
username=alice
alice
bob
auth=bob
aors=bob
bob
password=password
username=bob
bob [/code]
extensions.conf
[code]
[from-internal]
exten=>6001,1,Dial(SIP/alice,20) ; or PJSIP vs SIP
exten=>6002,1,Dial(SIP/bob,20)[/code]