I have an Asterisk that connects via VPN to my freepbx, when I call from freepbx to Asterisk it communicates normally, but when I receive calls from Asterisk to my freepbx it rejects the calls, here is a line from the log that shows what happens when I call from Asterisk to extension 354 of Freepbx
[2025-06-05 16:14:34] DEBUG[1368] res_pjsip_session.c: vpn-to-asterisk-sp
[2025-06-05 16:14:34] NOTICE[1368] res_pjsip_session.c: vpn-to-asterisk-sp: Call (UDP:10.54.0.1:5060) to extension ‘332353354’ rejected because extension not found in context ‘from-internal’.
[2025-06-05 16:14:34] DEBUG[1368] res_pjsip_session.c: vpn-to-asterisk-sp: Call (UDP:10.54.0.1:5060) to extension ‘332353354’ rejected because extension not found in context ‘from-internal’.
[2025-06-05 16:14:34] DEBUG[1368] res_pjsip_session.c: vpn-to-asterisk-sp: Method is INVITE, Response is 404 Not Found
[2025-06-05 16:14:34] DEBUG[1368] res_pjsip_session.c: vpn-to-asterisk-sp
[2025-06-05 16:14:34] DEBUG[1368] netsock2.c: Splitting ‘10.54.0.1’ into…
[2025-06-05 16:14:34] DEBUG[1368] netsock2.c: …host ‘10.54.0.1’ and port ‘’.