Pjsip no endpoints

I am perplexed. I had my new asterisk 14.0.2 working fine then made a trivial change to extensions.conf and now can’t authenticate.

Here is the CLI output:

[Oct  7 17:04:36] NOTICE[3368]: res_pjsip/pjsip_distributor.c:525 log_failed_request: Request 'SUBSCRIBE' from '<sip:mark@markhorrocks.com>' failed for '' (callid: MGRiYjYyZGEzY2MyZjNlNTA3MTUwZWViYzVhYjIxM2M.) - No matching endpoint found
[Oct  7 17:04:36] NOTICE[3368]: res_pjsip/pjsip_distributor.c:525 log_failed_request: Request 'SUBSCRIBE' from '<sip:mark@markhorrocks.com>' failed for '' (callid: MGRiYjYyZGEzY2MyZjNlNTA3MTUwZWViYzVhYjIxM2M.) - Failed to authenticate
ubuntu-sgp1-01*CLI> pjsip show endpoints
No objects found.

Here is my pjsip.conf

;================================ TRANSPORTS ==
[transport-udp-nat]
type = transport
protocol = udp
bind = 0.0.0.0
; NAT settings
local_net = 10.0.0.0/8
external_media_address = 1.2.3.4
external_signaling_address = 1.2.3.4

endpoint-internal-d70
type = endpoint
transport = transport-udp-nat
context = Long-Distance
allow = !all,g722,ulaw
direct_media = no
trust_id_outbound = yes
device_state_busy_at = 1
dtmf_mode = rfc2833

auth-userpass
type = auth
auth_type = userpass

aor-single-reg
type = aor
max_contacts = 1

mark
auth = mark
aors = mark
callerid = Mark Horrocks

mark
password = not_really_my_password
username = mark

mark
mailboxes = mark@example

The forum may stripped out some stuff so it’t hard to tell but is endpoint-internal-d70 a template?
Restart asterisk and watch for errors about not being able to create the objects.
Or just modify the pjsip.conf file and do a “module reload res_pjsip.so”.

It is a template, the forum has stripped out the ( ! )

There were no errors in restarting asterisk and module reload oroduced this output:

ubuntu-sgp1-01*CLI> module reload res_pjsip.so
Module ‘res_pjsip.so’ reloaded successfully.
– Reloading module ‘res_pjsip.so’ (Basic SIP resource)
[Oct 7 20:30:28] NOTICE[3092]: sorcery.c:1398 sorcery_object_load: Type ‘system’ is not reloadable, maintaining previous values

I took out some comments in order to effect some changes and now suddenly it works again! This is odd because I’m sure I didn’t change pjsip.conf when it stopped working. Well, all good now, thanks for your help.

I had previously tried “config reload pjsip” to no avail.

Dontcha hate when that happens. :slight_smile:

config reload won’t work for pjsip. You have to do a module reload res_pjsip.so. Add
pjsip reload=module reload res_pjsip.so to cli_aliases.conf ot make reloading easier.