Receiving external call and terminating to outbound route

Hi

I have been using FreePBX for about a month. I have setup a single PSTN line, callcentric account and attached 4 SIP trunks which are attached to a SIM bank for mobile phones. Everything works great, especially the LCR with callcentric, SIM cards and PSTN line.

Now I would like to receive an external SIP call from an outside address on the internet and terminate it onto my SIM cards. However this has proven to be VERY difficult. Here is procedure below can someone steer me in the right direction?

I have enabled “Allow Anonymous Inbound SIP Calls”

Modified my file below in /etc/asterik
sip_general_additional.conf

[general]
bindport=5060 ; UDP Port to bind to
bindaddr=0.0.0.0 ; (0.0.0.0 binds to all)
disallow=all
allow=g729
context=from-sip-external
callerid=Unknown
tos=0x68
externip=203.x.x.x
localnet=192.168.10.0/255.255.255.0
insecure=very
srvlookup=yes

I am sending a mobile number to my asterisk box as follows

[email protected]

My Outbound route has the dial pattern setup to strip off the country code and dial the number 791234. Doing this via my x-lite registered softphone works perfectly both internally on my LAN and over the internet from home. No firewall issues.

What am I missing from this setup to make this work?

Thank you, sorry for the long post!

Don’t put the [general] statement into the sip_general_custom.conf file.

RESOLVED