I have a DDI Range: +2563265XXXXX- +2563265XXXXX and I have setup freepbx, when I assign a DDI to an inbound route, the call says it does not exit. But when I do not specity the DDI, the call passes through. Guide me on how to set specific DDI on an inbound route.
Outbound Trunk Number:
When I set +2563265XXX50 as the trunk CID outbound calls do not go through, but when I set +2563265XXX60 calls go through.
For the incoming issue, temporarily leave DID Number for the Inbound Route blank. Make test calls from your mobile to two different DDIs that you have. Go to Reports → CDR Reports, click Search and see what is shown in the DID field for the two calls. If they are different, set the DID Number for your Inbound Routes using the exact format shown.
If they are the same (both showing s, account number or main number), set the Context for your trunk to from-pstn-toheader and repeat the test above. If you still have trouble, at the Asterisk command prompt, type pjsip set logger on
make a test call in, paste the Asterisk log for the call at pastebin.com and post the link here.
For the outbound issue, providers have different requirements for sending caller ID. They may require P-Asserted-Identity, P-Preferred-Identity, Remote-Party-ID, and/or Diversion headers. With luck, they have supplied documentation detailing what is required or have a support section on their website with the info. If not, try searching for a working config posted by others. Otherwise, open a ticket with them and ask what is needed. If they don’t cooperate, we can try some common setups and see if any of them work.
Your provider is sending an unusually long string of characters for the DID which is confusing things. You can see this in CDR record DID column and from the shared call trace. Try setting the trunk context to
from-pstn-toheader
it may resolve things. If not, then you will have to write your own dialplan to pre-process the DID string before it hits the inbound route.
In the global section for PJSIP configuration there is actually an option to trim and ignore things[1]. Though, I’m not certain if that is exposed in the FreePBX GUI.
That cleared off the issue and now all the DDI numbers can go through.
Now the issue I have is the extensions, when I do an outbound call it goes as one single number for all extensions yet I needed each extension to have its own Outbound CID that I even included but still uses one common number. Is there away out? Thank you