Incoming calls from an asterisk

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 ‘’.

You haven’t said what you thought you were doing. What you are actually trying to do is to the call the number 332343354, but you have no extension or outbound route defined for that number.

You may find this useful. If not, post details of your application.

Thanks everyone for the feedback, I was able to adjust it just by adjusting the context for the outside calls.