I have two systems: my FreePBX server (hosted in the cloud) and Bitrix24.
I created a SIP number in Bitrix24 so that calls are routed to FreePBX.
Then I created an outbound trunk in FreePBX.
I created a second inbound trunk so that Bitrix24 connects to FreePBX. When I redirect to this trunk, it should ring in Bitrix24.
The first trunk (outbound) works, but the second trunk (inbound) does not. The following error appears in the terminal:
[2025-01-24 16:39:47] WARNING[21288]: res_pjsip_registrar.c:1166 find_registrar_aor: AOR '' not found for endpoint '<ENDPOINT>' (<IP>)
When I remove the first trunk (outbound), the second trunk (inbound) works fine.
Note: For some reason, when I try to connect Bitrix24 to the second trunk (inbound), Asterisk shows it as if it were the first trunk (outbound). But since the first trunk is outbound, FreePBX did not create an endpoint in the pjsip.endpoint.conf file.
Why are you trying to configure uni-directional trunks to the same place. That hack was sometimes needed for chan_sip, but shouldn’t be needed for chan_pjsip.
The error message suggests you are receiving a REGISTER request from IP, which has been matched against endpoint ENDPOINT. That typically means ENDPOINT is configured outbound or no registration, but IP is trying to register. If IP is the provider, this is strange as providers are generally inbound or no registration. If not the provider, what is IP? Is the REGISTER being looped back?