I apologize for the “stupid” question (not for me).
is it possible to register a trunk pjsip on a server that normally uses sip ?
The trunk has the status of registered
yyyyyyyyy/sip:voip.eutelia.it:5060 yyyyyyyyy-oauth Registered
but the incoming calls do not work. Analyzing the SIP trace, the pbx returns
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 83.211.227.21:5060;rport=5060;received=83.211.227.21;branch=z9hG4bK17da.2d18e0b7.0
Via: SIP/2.0/UDP 62.94.30.168:5060;rport=57308;received=62.94.30.168;branch=z9hG4bK2224FA41CF;x-route-tag="tgrp:Slot6"
Record-Route: <sip:83.211.227.21;lr;ftag=11FA9FF8-16DE;did=d9e.78eaa321>
Call-ID: ABB398A1-A80011E9-896ED7DA-44B3CE41@62.94.30.168
From: <sip:xxxxxxxxxx@62.94.30.168>;tag=11FA9FF8-16DE
To: <sip:yyyyyyyyyyyy@voip.eutelia.it>;tag=z9hG4bK17da.2d18e0b7.0
CSeq: 101 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1563392044/cab042ace2ef8723f357a29347ccc202",opaque="7bdf655f5142ce43",algorithm=md5,qop="auth"
Server: Asterisk PBX 16.4.0
Content-Length: 0
Also out calls don’t work. The error is
SIP/2.0 403 From user does not match authenticated user
Via: SIP/2.0/UDP 192.168.16.250:5062;received=ip.ip.ip.ip;rport=5062;branch=z9hG4bKPjb50f202f-1935-47f6-b60c-bd02240f58c9
From: "Pasquale Di Feo" <sip:131@192.168.xx.xx>;tag=4250648b-6e98-41a8-ba73-97cf4d536e86
To: <sip:xxxxxxxxxx@voip.eutelia.it>;tag=c040a69dfc7733bdec8c921a7a9f2d3a.7a5d
Call-ID: 48ded032-62b1-48b1-b80d-239ac26d3a7d
CSeq: 4507 INVITE
Server: SPS CI RM GW 04
Content-Length: 0