PJSIP endpoint passwords

Hi,

I am trying to set up a simple pjsip.conf file. I created a sample endpoint and it worked. When I tried to edit the pjsip.conf file with additional endpoints and changed the original account password, asterisk acted like there were no new changes to the file. If I use the old username and password it works but not the new endpoints.

;===============TRANSPORT [simpletrans] type=transport protocol=udp bind=0.0.0.0 ;===============ENDPOINT TEMPLATES endpoint-basic type=endpoint context=internal disallow=all allow=ulaw auth-userpass type=auth auth_type=userpass aor-single-reg type=aor max_contacts=1 ;===============EXTENSION 6001 6001 auth=auth6001 aors=6001 auth6001 password=6001 username=6001 6001

;===============EXTENSION 6002 6002 auth=auth6002 aors=6002 auth6002 password=6002 username=6002 6002 ;===============EXTENSION 6003 6003 auth=auth6003 aors=6003 auth6003 password=6003 username=6003 6003

I get this error after reloading the pjsip module.

module reload res_pjsip.so
Module ‘res_pjsip.so’ reloaded successfully.
[Jun 16 17:53:53] NOTICE[1803]: sorcery.c:1348 sorcery_object_load: Type ‘system’ is not reloadable, maintaining previous values

Any help is appreciated

This was not formatted well, so it’s hard to say.

Try with your own text but with some newline:

;===============TRANSPORT

[simpletrans]

type=transport

protocol=udp

bind=0.0.0.0

external_media_address => [my public IP]

external_signaling_address => [my public IP]

local_net => [my local ip]/255.255.0.0

;===============ENDPOINT TEMPLATES

[endpoint-basic]

type=endpoint

context=internal

transport=simpletrans

disallow=all

allow=ulaw

[auth-userpass]

type=auth

auth_type=userpass

[aor-single-reg]

type=aor

max_contacts=1

;===============EXTENSION 6001

6001

auth=auth6001

aors=6001

auth6001

password=6001

username=6001

;6001

;===============EXTENSION 6002

6002

auth=auth6002

aors=6002

auth6002

password=6002

username=6002

;6002

;===============EXTENSION 6003

6003

auth=auth6003

aors=6003

auth6003

password=6003

username=6003

;6003

Oh, sorry about that. Must have reformatted when I posted it. It’s really just the templates examples in the guide (res_pjsip Configuration Examples - Asterisk Documentation).

Is there another example I can follow for a very simple set-up?

I’m trying to set it up in a local network with a portable network kit sometimes without Internet access.

Is it necessary to use a public IP? Or is there a format for just a local network?

On Monday 23 June 2025 at 22:01:08, sarigm019 via Asterisk Community wrote:

I’m trying to set it up in a local network with a portable network kit
sometimes without Internet access.

Pardon my ignorance, but what is “a portable network kit”?

Antony.


“Tannenbaumschmuck” is a perfectly reasonable German word
meaning Christmas tree decorations, and is not a quote from Linus Torvalds.

Whoops forgot to explain. Its basically a router, antenna and server set up so that computers and devices can communicate with each other and access the information on the server regardless of internet availability. It’s built into a case so that is portable. Mainly used as an emergency or teaching tool.