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: Select all
[general]
transport=udp
[friends_internal](!)
type=friend
host=dynamic
context=from-internal
disallow=all
allow=ulaw
[alice](friends_internal)
secret=password
[bob](friends_internal)
secret=password
pjsip.conf
- Code: Select all
[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](endpoint_internal)
auth=alice
aors=alice
[alice](auth_userpass)
password=password
username=alice
[alice](aor_dynamic)
[bob](endpoint_internal)
auth=bob
aors=bob
[bob](auth_userpass)
password=password
username=bob
[bob](aor_dynamic)
extensions.conf
- Code: Select all
[from-internal]
exten=>6001,1,Dial(SIP/alice,20) ; or PJSIP vs SIP
exten=>6002,1,Dial(SIP/bob,20)