Trunk PJSIP doesn't work

I have different FreePBX box with a Trunk to Eutelia, without any problem.
Now I setup a new box with latest versio of FreepBX 16.0.40 and Asterisk 18.16.0 and the Trunks can use only PJSIP.
The problem is that Eutelia wants a registration string like:
username:password:[email protected]:5060/username

I’m tried to put that string in the Client URI but FreePBX doesn’t like:

[2023-05-09 16:08:44] ERROR[12966] res_pjsip_outbound_registration.c: Client URI or hostname length exceeds pjproject limit or is not a sip(s) uri: '075000000'
[2023-05-09 16:08:44] ERROR[12966] res_sorcery_config.c: Could not create an object of type 'registration' with id '075000000' from configuration file 'pjsip.conf'
[2023-05-09 16:08:44] ERROR[12966] res_pjsip_config_wizard.c: Unable to load config file 'pjsip_wizard.conf'

Where I’m wrong?
Thanks

Try these settings:

SIP Server: voip.eutelia.it
Username: username
Secret: password
Contact User: username
From Domain: voip.eutelia.it
From User: username
Client URI: (leave blank)
Server URI: (leave blank)

1 Like

Now I have this error:

[2023-05-09 16:39:48] WARNING[17401] res_pjsip_outbound_registration.c: Temporal response '401' received from 'sip:voip.eutelia.it:5060' on registration attempt to 'sip:[email protected]:5060', retrying in '60'

and

*CLI> pjsip show registrations

 <Registration/ServerURI..............................>  <Auth....................>  <Status.......>
==========================================================================================

 Eutelia/sip:voip.eutelia.it:5060                        Eutelia                     Rejected          (exp. 52s)

Objects found: 1

In the PJSIP logger I have

<--- Transmitting SIP request (846 bytes) to UDP:83.211.227.21:5060 --->
REGISTER sip:voip.eutelia.it:5060 SIP/2.0
Via: SIP/2.0/UDP x.x.x.x:5060;rport;branch=z9hG4bKPjb6ac20ac-7f12-4085-a76a-45346d45dfda
From: <sip:[email protected]>;tag=d31852a7-5220-4419-a0fd-3514baaaa9cf
To: <sip:[email protected]>
Call-ID: 405530f2-5a04-490f-8db3-23c430533b13
CSeq: 61320 REGISTER
Contact: <sip:[email protected]:5060;line=cnftkfz>
Expires: 3600
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, REFER
Max-Forwards: 70
User-Agent: FPBX-16.0.40(18.16.0)
Authorization: Digest username="[password]", realm="voip.eutelia.it", nonce="645a5c24deafdea72b0088d774f22fa17f82da1f", uri="sip:voip.eutelia.it:5060", response="ee5976cdab2461d6c2e68ae1d2843f5e", cnonce="7644d033f6284eed803f6502e92db701", qop=auth, nc=00000001
Content-Length:  0


<--- Received SIP response (533 bytes) from UDP:83.211.227.21:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 5.98.15.70:5060;received=x.x.x.x;rport=25794;branch=z9hG4bKPjb6ac20ac-7f12-4085-a76a-45346d45dfda
From: <sip:[email protected]>;tag=d31852a7-5220-4419-a0fd-3514baaaa9cf
To: <sip:[email protected]>;tag=2285.ada669494d4b9d7c05460b6267a352cb
Call-ID: 405530f2-5a04-490f-8db3-23c430533b13
CSeq: 61320 REGISTER
WWW-Authenticate: Digest realm="voip.eutelia.it", nonce="645a5c24deafdea72b0088d774f22fa17f82da1f", qop="auth"
Server: Roma Naz SPS 03
Content-Length: 0


[2023-05-09 16:42:48] WARNING[17401]: res_pjsip_outbound_registration.c:1043 schedule_retry: Temporal response '401' received from 'sip:voip.eutelia.it:5060' on registration attempt to 'sip:[email protected]:5060', retrying in '60'

Is strange that in the useranme field of Digest there is the password.

Best

Sorry,
my mistake…

All seem to be ok now.

*CLI> pjsip show registrations

 <Registration/ServerURI..............................>  <Auth....................>  <Status.......>
==========================================================================================

 Eutelia/sip:voip.eutelia.it:5060                        Eutelia                     Registered          (exp. 6s)

Objects found: 1

I will do some test.

Thank you very much @Stewart1

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