Pjsip and failed registration: why?

This is my pjsip.conf

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

[telefono1]
type=auth
auth_type=userpass
username=telefono1
password=proooot

[telefono1]
type=aor
max_contacts=5

[telefono1]
type=endpoint
context=local
disallow=all
allow=g729,alaw,ulaw,ilbc,g721,g722,gsm
outbound_auth=telefono1
aors=telefono1
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
from_user=telefono1

On console :
pjsip show aors
pjsip show auths

return output

pjsip show endpoints return nothing, what i miss?

The error reported is Request 'REGISTER' from '<sip:telefono1@virtuale-2.blu.priv>' failed for '192.168.0.38:5060' (callid: 692332636-5060-1@BJC.BGI.A.DI) - No matching endpoint found

I change the file, now is

 

;--
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Non mapped elements start
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[general]
bindport = 5060

[telefono1]
username = telefono1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Non mapped elements end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
--;

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

[telefono1]
type = identify
endpoint = telefono1
match = telefono1.blu.priv

[telefono1]
context = local
type=endpoint
disallow=all
allow=alaw
allow=ulaw
trust_id_outbound=yes
callerid=1001 <1001>
transport=transport-udp
auth=telefono1
aors=telefono1

[telefono1]
type=auth
auth_type=userpass
username = telefono1
password = proot

[telefono1]
type=aor
max_contacts=5

`but give me this error`

o AOR 'telefono1'
[Oct 29 04:31:31] WARNING[9130]: db.c:348 ast_db_put: Couldn't execute statement: SQL logic error
[Oct 29 04:31:31] ERROR[9130]: res_pjsip_registrar.c:776 register_aor_core: Unable to bind contact 'sip:telefono1@192.168.0.38:5060' to AOR 'telefono1'

Solution found: permission on sqlite db.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.