Good afternoon all, I have an inbound routing issue. I’m using FreePBX 22.214.171.124
I have 3 separate SIP trunks.
If I set up an inbound route with ANY in the DID, all of the calls go to the ring group specified but I can’t tell FreePBX to route calls from specific SIP trunks to specific extensions or ring groups. They all keep going to the ANY route.
If I delete the ANY route, the system rejects the call saying “The number you have dialled is not in service”
Does anyone from the UK have a screen shot of how my numbers should be input? e.g. 01437XXXXXX, 441437XXXXXX or +441437XXXXXX? None of these seem to work.
Thanks in anticipation. Any more info required, Please ask but if you’re wanting to get me to print any info etc, you’ll have to tell me how. I’m experienced using other PBX systems but not this one.
Make a test call into each of your numbers. In the CDRs (Reports → CDR Reports, click Search), look at the DID field for each call. If they are all different, use those exact values in the DID Number field of your Inbound Routes.
If they are the same and your trunks use registration, set Contact User (for pjsip trunks) or the value after the / in the Register String (chan_sip trunks), to the phone numbers in whatever format you like. Retest, then set your Inbound Routes accordingly.
If no luck, try setting Context (pjsip trunks) or context= (chan_sip trunks) to from-pstn-toheader
and retest. If the DID values are now unique, use them.
If still no luck, post provider name(s), trunk type, etc.
You could run the following commands from an SSH session (or use the ‘Asterisk Logfiles’ module to view/filter the logfile ‘full’ using the text in RED below) to show the initial log entries for incoming calls. The output of these filters should include the DID used for of each call (make a test call to each Tel No then look at the results of these commands to see how the DID’s are presented);
I’m in the UK also & for me, I use the equivalent DID format 441437XXXXXX for Inbound Routes/Tel No’s that need a specific destination that is different to those that use the Catch-All Route (ie. where DID = Any).
I guess the DID format to use might depend on how your SIP Trunk provider presents it to your PBX - The log entries above should expose that ?