Help! I Lost My AORs!

Greetings All,

I have put together a PJSIP.conf together. It works; but two of the endpoints have lost their AORs. The system keeps telling me and the endpoints don’t work. Here is their config:

;===============EXTENSION_2803
2803
auth = auth2803
aors = 2803

auth2803
password = 2803
username = 2803

2803

:==============Extension_2898

2898
auth = auth2898
aors = 2898
direct_media = no
force_rport = yes
rtp_symmetric = yes
rewrite_contact = yes

auth2898
password = 2898
username = 2898

2898

Endpoints 2801, 2802 and 2899 all register with Asterisk. All the endpoints are configured in the same manner. When I originally configured 2898 I put it after 2899. I lost the AOR on 2899 and 2898 had an AOR. I rewrote the configuration and put 2898 before 2899 in the config file I had the AOR back on 2899 but no AOR on 2898.

I don’t have a clue why this would happen. Has anyone seen this before? How do I get my AORs back?

Thank You,
Dave

You need to enclose the configuration in pre-formatted text. You should also check the console at startup, as it will state if any issues occur when loading the configuration.

Jcolp,

They actually have [ ] in the configuration. I didn’t notice that the brackets weren’t there when posted my question. I copied the config from the example on wiki. It should work. Half of the endpoints work great.

The console output when I called 2803:

[Oct 18 17:51:39] ERROR[338189]: res_pjsip.c:3562 ast_sip_create_dialog_uac: Endpoint ‘2803’: Could not create dialog to invalid URI ‘2803’. Is endpoint registered and reachable?
[Oct 18 17:51:39] ERROR[338189]: chan_pjsip.c:2687 request: Failed to create outgoing session to endpoint ‘2803’
[Oct 18 17:51:39] WARNING[338435][C-00000001]: app_dial.c:2576 dial_exec_full: Unable to create channel of type ‘PJSIP’ (cause 3 - No route to destination)
[Oct 18 17:51:51] WARNING[338189]: res_pjsip_registrar.c:1076 find_registrar_aor: AOR ‘2803’ not found for endpoint ‘2803’

What do you think?

Dave

It means the AOR wasn’t found. As I said you’ll need to provide the configuration as pre-formatted text, and also check the log at startup to see if something is up.

Jcolp,

I appreciate your comeback. What is pre-formatted text? And about what log are you speaking?

While I have your attention, I would like to ask a question or 2 concerning " Asterisk; The Definitive Guide ". I read your foreword and I get the same feel for the Asterisk offering. Asterisk can do just about anything imaginable.

The authors state the reader should not download the examples provided by Asterisk and to configure from scratch. Why? The macro (macro-dial) example and macro (dial-users) example seems to be how it’s done. Why recreate something that’s already there?

Again, thank you for your time.

Dave

In Discourse there is an icon in the text input box with “</>”. Text placed within that is pre-formatted and not modified, allowing things to be properly displayed.

As for examples select things can be useful, it all depends on the end goal.

Oh, and I think using examples without understanding is really the problem. If you don’t understand how it works then it can be problematic.

I am with you on that. Is there a chart or white paper displaying a macro and an explanation of it and all variables, etc… I view this as another language, like Linux or Spanish, and I want to know how to build this thing from scratch properly. I have 2 books on Linux I am reading and I am kicking around getting paid instruction. That would reduce the learning curve time. And then there’s the Pandemic. SO no trips to Alabama.

Are you saying my brackets should be </> not (/)?

LIKE THIS?

[2803]
auth = auth2803
aors = 2803

[auth2803]
password = 2803
username = 2803

[2803]

Thank You,
Dave

There’s two things. Discourse, which is what you’re on, is a common forum software. There’s guides and such around the internet.

The Asterisk configuration has examples[1] and such on the wiki. The configuration you’ve provided is incomplete as it does not include “type =” lines to indicate what the block of configuration is for.

[1] https://wiki.asterisk.org/wiki/display/AST/res_pjsip+Configuration+Examples

I copied example 3.

[simpletrans]

type = transport
protocol = udp
bind = 0.0.0.0:5062
local_net = 192.168.1.0/24
external_media_address = 50.248.177.163
external_signaling_address = 50.248.177.163

;===============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_2801

2801
auth =auth2801
aors = 2801

auth2801
password = 2801
username = 2801

2801

;===============EXTENSION_2802

2802
auth = auth2802
aors = 2802
direct_media = no
force_rport = yes
rtp_symmetric = yes
rewrite_contact = yes

auth2802
password = 2802
username = 2802

2802

;===============EXTENSION_2803

2803
auth = auth2803
aors = 2803

auth2803
password = 2803
username = 2803

2803

:==============Extension_2898

2898
auth = auth2898
aors = 2898
direct_media = no
force_rport = yes
rtp_symmetric = yes
rewrite_contact = yes

auth2898
password = 2898
username = 2898

2898

:=============Extension_2899

2899
auth = auth2899
aors = 2899
direct_media = no
force_rport = yes
rtp_symmetric = yes
rewrite_contact = yes

auth2899
password = 2899
username = 2899

2899

Here’s what is in there. DId I use the wrong brackets?

Dave

You have still not marked it up as pre-formatted text.

The version that appears in your posting is clearly missing important content in parentheses:

 ;===============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](endpoint-basic)
auth=auth6001
aors=6001
 
[auth6001](auth-userpass)
password=6001
username=6001
 
[6001](aor-single-reg)
 
;===============EXTENSION 6002
 
[6002](endpoint-basic)
auth=auth6002
aors=6002
 
[auth6002](auth-userpass)
password=6002
username=6002
 
[6002](aor-single-reg)
 
;===============EXTENSION 6003
 
[6003](endpoint-basic)
auth=auth6003
aors=6003

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