New to asterisk, server can't authenticate phones

Hello asterisk forum,

I’m new to VOIP and asterisk management, I tried many things many times lasts months on my side but doesn"‘t works.

My hardware is : 2 polycom VVX500 phones connected to my lab’s network and router which hosts DHCP, the asterisk server is hosted by a computer as a dhcp client on this same network. this server runs debian 13.2 and it’s only task is asterisk.

For my last try this week, I followed official asterisk’s doc to compile and install asterisk, dahdi… and followed ubuntu doc here : asterisk [Wiki ubuntu-fr] for dialplan and users.
As a result I get :

NOTICE[574062]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request ‘REGISTER’ from ‘“VVX 500” sip:VVX500@192.168.10.170’ failed for ‘192.168.10.201:5060’ (callid: 31ff77233aded0efb1b16670fa92443b) - Failed to authenticate
[Jan 14 15:36:20] NOTICE[574062]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request ‘REGISTER’ from ‘sip:6003@192.168.10.170’ failed for ‘192.168.10.160:57348’ (callid: TQBM3tDep41Xb652S3Q5qA..) - No matching endpoint found

My users.conf :

[general]
hasvoicemail = yes
hassip = yes
hasiax = yes
callwaiting = yes
threewaycalling = yes
callwaitingcallerid = yes
transfer = yes
canpark = yes
cancallforward = yes
callreturn = yes
callgroup = 1
pickupgroup = 1
nat = yes

[6001] ; Numéro SIP
type=friend ; Type d’objet SIP (friend = utilisateur)
host=dynamic ; Vous pouvez vous connecter a ce compte SIP a partir de n’importe quelle adresse IP
dtmfmode=rfc2833 ; Mode du DTMF
disallow=all ; Désactiver tous les codecs
allow=ulaw ; Activer les codecs µlaw
fullname = Jeremy ; Nom complet de l’utilisateur (ce qui s’affichera sur le téléphone)
username = jeremy ; Nom d’utilisateur
secret=****** ; Mot de passe
context = work ; Contexte (exploité par le fichier extensions.conf)

[6002] ; Numéro SIP
type=friend ; Type d’objet SIP (friend = utilisateur)
host=dynamic ; Vous pouvez vous connecter a ce compte SIP a partir de n’importe quelle adresse IP
dtmfmode=rfc2833 ; Mode du DTMF
disallow=all ; Désactiver tous les codecs
allow=ulaw ; Activer les codecs µlaw
fullname = Antoine ; Nom complet de l’utilisateur (ce qui s’affichera sur le téléphone)
username = antoine ; Nom d’utilisateur
secret=******* ; Mot de passe
context = work ; Contexte (exploité par le fichier extensions.conf)

[6003] ; Numéro SIP
type=friend ; Type d’objet SIP (friend = utilisateur)
host=dynamic ; Vous pouvez vous connecter a ce compte SIP a partir de n’importe quelle adresse IP
dtmfmode=rfc2833 ; Mode du DTMF
disallow=all ; Désactiver tous les codecs
allow=ulaw ; Activer les codecs µlaw
fullname = SoftPhone ; Nom complet de l’utilisateur (ce qui s’affichera sur le téléphone)
username = softphone ; Nom d’utilisateur
secret=****** ; Mot de passe
context = work ; Contexte (exploité par le fichier extensions.conf)

My extension.conf :

GNU nano 8.4 extensions.conf
[work] ; Nom du contexte
exten => _6XXX,1,Dial(SIP/${EXTEN},20)
exten => _6XXX,2,Hangup()

pjsip.conf :

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0

[6001]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
auth=6001
aors=6001

[6001]
type=auth
auth_type=userpass
password=******
username=6001

[6001]
type=aor
max_contacts=1

[6002]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
auth=6002
aors=6002

[6002]
type=auth
auth_type=userpass
password=******
username=6002

[6002]
type=aor
max_contacts=1

6001 phone’s IP is 192.168.10.201

6002 phone’s IP is 192.168.10.180

6003 is zoiper on my admin computer

It looks like asterisk detects 6001 but can’t authenticate, 6002 is not detected and I don’t know how to solve REGISTER failure, in french I don’t find much doc after pjsip appearance.

I learn things by my self and don’t understand everything in asterisk for now.

Thanks for your help
Antoine

Be aware that users.conf is deprecated and removed from newer versions, so only the pjsip.conf configuration will work for SIP stuff since it is in use.

A VVX500 is trying to connect using a name of “VVX500” which doesn’t match any of the configured endpoints in pjsip.conf. Additionally there is no endpoint named “6003” in pjsip.conf.

You’re using a mix of sip (dead) and pjsip in your conf as well as in
your dialplan. type=friend is SIP, Dial(SIP/… is SIP aso.

Le 14/01/2026 à 16:17, _Antoine a écrit :

[_Antoine] _Antoine https://community.asterisk.org/u/_antoine
January 14

Hello asterisk forum,

I’m new to VOIP and asterisk management, I tried many things many
times lasts months on my side but doesn"‘t works.

My hardware is : 2 polycom VVX500 phones connected to my lab’s network
and router which hosts DHCP, the asterisk server is hosted by a
computer as a dhcp client on this same network. this server runs
debian 13.2 and it’s only task is asterisk.

For my last try this week, I followed official asterisk’s doc to
compile and install asterisk, dahdi… and followed ubuntu doc here :
asterisk [Wiki ubuntu-fr] https://doc.ubuntu-fr.org/asterisk for
dialplan and users.
As a result I get :

NOTICE[574062]: res_pjsip/pjsip_distributor.c:688 log_failed_request:
Request ‘REGISTER’ from ‘“VVX 500” sip:VVX500@192.168.10.170’ failed
for ‘192.168.10.201:5060’ (callid: 31ff77233aded0efb1b16670fa92443b) -
Failed to authenticate
[Jan 14 15:36:20] NOTICE[574062]: res_pjsip/pjsip_distributor.c:688
log_failed_request: Request ‘REGISTER’ from ‘sip:6003@192.168.10.170’
failed for ‘192.168.10.160:57348’ (callid: TQBM3tDep41Xb652S3Q5qA..) -
No matching endpoint found

My users.conf :

[general]
hasvoicemail = yes
hassip = yes
hasiax = yes
callwaiting = yes
threewaycalling = yes
callwaitingcallerid = yes
transfer = yes
canpark = yes
cancallforward = yes
callreturn = yes
callgroup = 1
pickupgroup = 1
nat = yes

[6001] ; Numéro SIP
type=friend ; Type d’objet SIP (friend = utilisateur)
host=dynamic ; Vous pouvez vous connecter a ce compte SIP a partir
de n’importe quelle adresse IP
dtmfmode=rfc2833 ; Mode du DTMF
disallow=all ; Désactiver tous les codecs
allow=ulaw ; Activer les codecs µlaw
fullname = Jeremy ; Nom complet de l’utilisateur (ce qui
s’affichera sur le téléphone)
username = jeremy ; Nom d’utilisateur
secret=****** ; Mot de passe
context = work ; Contexte (exploité par le fichier extensions.conf)

[6002] ; Numéro SIP
type=friend ; Type d’objet SIP (friend = utilisateur)
host=dynamic ; Vous pouvez vous connecter a ce compte SIP a partir
de n’importe quelle adresse IP
dtmfmode=rfc2833 ; Mode du DTMF
disallow=all ; Désactiver tous les codecs
allow=ulaw ; Activer les codecs µlaw
fullname = Antoine ; Nom complet de l’utilisateur (ce qui
s’affichera sur le téléphone)
username = antoine ; Nom d’utilisateur
secret=******* ; Mot de passe
context = work ; Contexte (exploité par le fichier extensions.conf)

[6003] ; Numéro SIP
type=friend ; Type d’objet SIP (friend = utilisateur)
host=dynamic ; Vous pouvez vous connecter a ce compte SIP a partir
de n’importe quelle adresse IP
dtmfmode=rfc2833 ; Mode du DTMF
disallow=all ; Désactiver tous les codecs
allow=ulaw ; Activer les codecs µlaw
fullname = SoftPhone ; Nom complet de l’utilisateur (ce qui
s’affichera sur le téléphone)
username = softphone ; Nom d’utilisateur
secret=****** ; Mot de passe
context = work ; Contexte (exploité par le fichier extensions.conf)

My extension.conf :

GNU nano 8.4 extensions.conf
[work] ; Nom du contexte
exten => _6XXX,1,Dial(SIP/${EXTEN},20)
exten => _6XXX,2,Hangup()

pjsip.conf :

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0

[6001]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
auth=6001
aors=6001

[6001]
type=auth
auth_type=userpass
password=******
username=6001

[6001]
type=aor
max_contacts=1

[6002]
type=endpoint
context=from-internal
disallow=all
allow=ulaw
auth=6002
aors=6002

[6002]
type=auth
auth_type=userpass
password=******
username=6002

[6002]
type=aor
max_contacts=1

6001 phone’s IP is 192.168.10.201

6002 phone’s IP is 192.168.10.180

6003 is zoiper on my admin computer

It looks like asterisk detects 6001 but can’t authenticate, 6002 is
not detected and I don’t know how to solve REGISTER failure, in french
I don’t find much doc after pjsip appearance.

I learn things by my self and don’t understand everything in asterisk
for now.

Thanks for your help
Antoine


Visit Topic
https://community.asterisk.org/t/new-to-asterisk-server-cant-authenticate-phones/111619/1
or reply to this email to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, click here
<>.


Daniel

I would like to thank you infinitly, there is progress.

Now I can call between Zoiper 6003 and each phone, but not between the 2 phones.
I think it’s because of sip:VVX500@ account but I don’t know where to change it in the phones. I searched for editing the firmware, web interface being unusable.

Thank you very much