# Pjsip and failed registration: why?

**URL:** <https://community.asterisk.org/t/pjsip-and-failed-registration-why/90407>\
**Category:** Asterisk SIP\
**Created:** [October 29, 2021, 2:12am UTC](https://community.asterisk.org/t/pjsip-and-failed-registration-why/90407 "2021-10-29T02:12:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pnirru](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@pnirru](https://community.asterisk.org/u/pnirru)\
**Post date:** [October 29, 2021, 2:12am UTC](https://community.asterisk.org/t/pjsip-and-failed-registration-why/90407/1 "2021-10-29T02:12:13Z")

</div>

This is my pjsip.conf

```auto
[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?

---

<div class="post-metadata">

**Author:** ![pnirru](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@pnirru](https://community.asterisk.org/u/pnirru)\
**Post date:** [October 29, 2021, 2:13am UTC](https://community.asterisk.org/t/pjsip-and-failed-registration-why/90407/2 "2021-10-29T02:13:03Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![pnirru](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@pnirru](https://community.asterisk.org/u/pnirru)\
**Post date:** [October 29, 2021, 2:32am UTC](https://community.asterisk.org/t/pjsip-and-failed-registration-why/90407/3 "2021-10-29T02:32:10Z")

</div>

```auto

```

I change the file, now is

```auto
 

;--
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
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'

```

---

<div class="post-metadata">

**Author:** ![pnirru](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@pnirru](https://community.asterisk.org/u/pnirru)\
**Post date:** [October 29, 2021, 2:35am UTC](https://community.asterisk.org/t/pjsip-and-failed-registration-why/90407/4 "2021-10-29T02:35:28Z")

</div>

Solution found: permission on sqlite db.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [November 28, 2021, 2:36am UTC](https://community.asterisk.org/t/pjsip-and-failed-registration-why/90407/5 "2021-11-28T02:36:19Z")

</div>

Closed on November 28, 2021, 2:36am UTC

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