Could not create an object of type 'registration'

Hi there,
I installed an Asterisk 16.16.1 with FreePBX 16.0.10.43 on a Raspbian GNU / Linux 11. Unfortunately, the registration with Telekom Deutschland does not work. On my Asterisk 14.2 with manual configuration without GUI the registration functions with the same values.
I currently get this error message after a "core restart gracefull" in the CLI:


[2021-12-28 11:00:44] ERROR[1365]: res_pjsip_outbound_registration.c:1524 sip_outbound_registration_apply: Client URI or hostname length exceeds pjproject limit or is not a sip(s) uri: 'Telekom_SIP_1234567'
[2021-12-28 11:00:44] ERROR[1365]: res_sorcery_config.c:418 sorcery_config_internal_load: Could not create an object of type 'registration' with id 'Telekom_SIP_1234567' from configuration file 'pjsip.conf'
[2021-12-28 11:00:44] ERROR[1365]: res_pjsip_config_wizard.c:1090 object_type_loaded_observer: Unable to load config file 'pjsip_wizard.conf'
  == res_pjsip_outbound_registration.so => (PJSIP Outbound Registration Support)

and

pjsip show registrations
No objects found.

The two files pjsip.registration.conf and pjsip.auth.conf look like this - with fake numbers of course:

#include pjsip.registration_custom.conf

[Telekom_SIP_1234567]
type=registration
transport=0.0.0.0-tcp
outbound_auth=Telekom_SIP_1234567
retry_interval=60
fatal_retry_interval=300
forbidden_retry_interval=300
max_retries=10
expiration=480
auth_rejection_permanent=yes
line=yes
endpoint=Telekom_SIP_1234567
contact_user=0691234567
server_uri=sip:tel.t-online.de
[email protected]
outbound_proxy=sip:tel.t-online.de

and


#include pjsip.auth_custom.conf

[Telekom_SIP_1234567]
type=auth
auth_type=userpass
password=5678733
username=0691234567

What is wrong here, why no “registration” object can be created? Is the trunk name too long? What about the sip uri? As I said, I entered the same working data from the configuration into the FreePBX GUI.
Finally, he warns that the pjsip_wizard.conf file is missing. What’s it all about?

Many greetings and thank you very much

Zecky

The solution is here:
Asterisk wants since this change (Asterisk 13.18, 14.7 and 15.1) that the “client_uri” also begins with “sip:”.
One can obviously use the entry “sip: [email protected]” directly under “Pjsip settings”> “extended”> “Client URI” or leave it completely empty. In the second case, FreePBX fills in correctly itself.

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