# Res\_pjproject does not load

**URL:** <https://community.asterisk.org/t/res-pjproject-does-not-load/83235>\
**Category:** Asterisk SIP\
**Created:** [March 25, 2020, 12:17am UTC](https://community.asterisk.org/t/res-pjproject-does-not-load/83235 "2020-03-25T00:17:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![feitosaneto](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@feitosaneto](https://community.asterisk.org/u/feitosaneto)\
**Post date:** [March 25, 2020, 12:17am UTC](https://community.asterisk.org/t/res-pjproject-does-not-load/83235/1 "2020-03-25T00:17:35Z")

</div>

```auto
ERROR[27665]: sorcery.c:883 __ast_sorcery_object_type_insert_wizard: 
Wizard 'config' could not be applied to object type 'log_mappings' as it was not found
[Mar 24 21:02:30] WARNING[27665]: res_pjproject.c:665 load_module: Failed to register pjproject log_mappings object with sorcery
[Mar 24 21:02:30] ERROR[27665]: loader.c:2396 load_modules: Failed to load res_pjsip due to dependencies: res_pjproject.

```

I am trying to replace a failed server running AST11 on Centos 7, a very small setup but now on Centos 7 and Asterisk 17. Due to the departure of chan\_sip I am trying to install pjsip. No success. I do not intend to use realtime or databases as it is a home system with a few channels only.  
For 2 days I am trying to get past this error. I have no more than a few devices. I used the python scripts to convert from sip. I tried the examples to configure just 2 of them. I am using now just one device. But I do not know what to do next.

```auto
;
;
; pjsip.conf
;
[general]
allowguest = no

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

[52006]
type = aor
max_contacts = 1

[52006]
type = auth
username = 52006
password = 2020

[52006]
type = endpoint
context = internal
dtmf_mode = auto
disallow = all
allow = ulaw
allow = alaw
allow = g722
rtp_symmetric = yes
force_rport = yes
rewrite_contact = yes
direct_media = no
allow_transfer = yes
language = br
auth = 52006
outbound_auth = 52006
aors = 52006
transport=simpletrans
trust_id_outbound=yes
callerid=hp8000 <52006>

```

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [March 25, 2020, 9:30am UTC](https://community.asterisk.org/t/res-pjproject-does-not-load/83235/2 "2020-03-25T09:30:13Z")

</div>

Remove “allowguest = no” from the general section.

---

<div class="post-metadata">

**Author:** ![feitosaneto](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@feitosaneto](https://community.asterisk.org/u/feitosaneto)\
**Post date:** [March 25, 2020, 2:57pm UTC](https://community.asterisk.org/t/res-pjproject-does-not-load/83235/3 "2020-03-25T14:57:30Z")

</div>

Did that.

Made no difference. ☹  
Wizard ‘config’ could not be applied to object type ‘log\_mappings’ is the **res\_pjproject** message.  
I just want to have a few SIP endpoints when needed. This is just a home server set up around DAHDI for my convenience.  
I do not want a database, realtime, wizards, sorcery magic stuff, unless I really need to. I am having trouble on getting info on that stuff.  
pjsip really needs 3 entries for each softphone? and wth is sorcery.conf?

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [March 25, 2020, 2:58pm UTC](https://community.asterisk.org/t/res-pjproject-does-not-load/83235/4 "2020-03-25T14:58:53Z")

</div>

What is the contents of pjproject.conf?

And sorcery is the data/configuration layer. And using pjsip.conf does require 3 entries, but there are wizards[1] which reduce this and simplify it.

[1] [https://wiki.asterisk.org/wiki/display/AST/PJSIP+Configuration+Wizard](https://wiki.asterisk.org/wiki/display/AST/PJSIP+Configuration+Wizard)

---

<div class="post-metadata">

**Author:** ![feitosaneto](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@feitosaneto](https://community.asterisk.org/u/feitosaneto)\
**Post date:** [March 25, 2020, 3:14pm UTC](https://community.asterisk.org/t/res-pjproject-does-not-load/83235/5 "2020-03-25T15:14:06Z")

</div>

🙂 Thanks! I will read that.  
I can not explain how I did not find that article about such Wizards. Perhaps I was focused on the pages about installation. The build process did not mention this thing. And my reference material is the old book from O’Reilly based on Asterisk 11…  
I did run the python script for converting sip.conf and it generated some files, but that did not work either.

---

<div class="post-metadata">

**Author:** ![feitosaneto](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@feitosaneto](https://community.asterisk.org/u/feitosaneto)\
**Post date:** [March 25, 2020, 4:40pm UTC](https://community.asterisk.org/t/res-pjproject-does-not-load/83235/6 "2020-03-25T16:40:10Z")

</div>

Asterisk documentation is very peculiar, I believe.

So the wizards are used by res\_pjsip\_config\_wizard? And what about the many sorcery modules? So pjsip\_wizard.conf is sort of a set of templates and will generate entries in pjsip.conf? How is the interaction between sorcery.conf and res\_pjsip\_wizard.conf?  
What if I configure an endpoint in the wizard and in pjsip.conf?  
Who reads sorcery.conf?

I want to write pjproject.conf. My system does not even have such file. Then I see [https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Configuration\_res\_pjproject](https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Configuration_res_pjproject)  
and there is only a note about log\_level and log\_mappings. Where is the documentation about pjproject.conf?

My system complains about a ‘config’ wizard not being applied to object type _log\_mappings_ because it was not found (sorcery.c 883). It does not tell me where it should be found anyway.

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [March 25, 2020, 4:45pm UTC](https://community.asterisk.org/t/res-pjproject-does-not-load/83235/7 "2020-03-25T16:45:02Z")

</div>

The PJSIP wizard entries are consumed by res\_pjsip\_config\_wizard and internally produce what pjsip.conf would make. If you configure them in both one would take priority I believe. The sorcery.conf is internally read. There is no interaction between them both, res\_pjsip\_config\_wizard inserts itself in the process without requiring explicit sorcery.conf configuration.

A sample pjproject.conf file is included in Asterisk[1] and is installed when using “make samples”.

[1] [https://github.com/asterisk/asterisk/blob/master/configs/samples/pjproject.conf.sample](https://github.com/asterisk/asterisk/blob/master/configs/samples/pjproject.conf.sample)

---

<div class="post-metadata">

**Author:** ![feitosaneto](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@feitosaneto](https://community.asterisk.org/u/feitosaneto)\
**Post date:** [March 25, 2020, 4:59pm UTC](https://community.asterisk.org/t/res-pjproject-does-not-load/83235/8 "2020-03-25T16:59:09Z")

</div>

🤔  
I did not use make samples this time because I am replacing a server and wanted to preserve the config files ☹ My bad… Let’s see  
Thanks

---

<div class="post-metadata">

**Author:** ![feitosaneto](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@feitosaneto](https://community.asterisk.org/u/feitosaneto)\
**Post date:** [March 25, 2020, 5:22pm UTC](https://community.asterisk.org/t/res-pjproject-does-not-load/83235/9 "2020-03-25T17:22:14Z")

</div>

making samples and replacing a few .conf files one by one and Asterisk 17.0.2 now loads.  
It is not working, has dozens of warnings, SIP is not registering, DAHDI is not registering, IAX is not registering, but it is a start atfer all.  
Funny that most of the files are all comments, like pjproject.conf, and I see no log\_mappings object. sorcery.conf has only a test section. And sorcery.c does not complain anymore.

Thanks

---

<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:** [April 24, 2020, 5:22pm UTC](https://community.asterisk.org/t/res-pjproject-does-not-load/83235/10 "2020-04-24T17:22:15Z")

</div>

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