SIP Trunk DIDs

Status
Not open for further replies.

leonp

Free User
Joined
Jan 21, 2018
Messages
47
Reaction score
4
Hi,

I have 120 numbers with my SIP trunk and I need to add them to my 3CX system.

In order for me to use the DID numbers, I have to add them under the SIP trunk, but I don't seem to be able to find a way of bulk adding these numbers to the SIP trunk.

Am I missing something?

Thanks.
 
No way of importing DDI into the SIP trunk setup.

Just remember you need setup Inbound Rules, where you can import. Create one record , export the settings which you can use as a template
 
Hi Leonp,

Jut a tip to save you further time when it comes to routing those DDI's

For your inbound rules at the very least (you should) be able to export a v15.5 template and route accordingly - in the PBX see inbound rules "export".

You may see this but the guide is not current: https://www.3cx.com/blog/docs/importing-dids/
 
I can't create an inbound rule through the web UI until I have added the number to the SIP trunk.

If I create inbound rules through the export/import method, should I expect this will add the numbers to the trunk?

Thanks.
 
I doubt it, I think you would probably need to add the DDI's into the trunk and then you can mult-import your Inbound rules via CSV.

FYI in the DDI's on the trunk you can put in full numbers, or if you have a superseding range you can just wildcard them. So for example: 123456789 would become *789 and then * 790 and so forth.
 
Last edited:
Ok, thanks for your help.

Seems like an import function is maybe needed for DIDs on the trunk :)
 
I exported one of my DIDs and then added about 50 of them via the import method.

Those 50 numbers were automatically added to my trunk as well :)
 
  • Like
Reactions: eddv123
FYI in the DDI's on the trunk you can put in full numbers, or if you have a superseding range you can just wildcard them. So for example: 123456789 would become *789 and then * 790 and so forth.
Please note that the if you are using the wildcard method (*) to add your DIDs then you need to make sure that your numbers are at least 6 digits long so they do not interfere with extension lengths and cause problems with routing. So 123456789 should be at least *456789
 
YiannisH_3CX, I'm surprised to hear there is a concern about using the wildcard approach where the number of digits is less than 6 for inbound rules. How does this have anything to do with internal extensions? Further, many T1 providers only send 4 digits so I would have thought I would have run into an issue with this long ago. In the 3CX training classes the only thing I've been told is that you just need enough digits to ensure each route is unique. In theory, therefore, you should be able to use 1 digit (examples: *1, *3, *9, etc.). Has something changed?
 
  • Like
Reactions: eddv123
@voiptoys
This is clearly stated in the training material in our academy: https://www.3cx.com/3cxacademy/videos/basic/configuring-voip-providers/

As an example on how this could affect call routing lets assume that you have a 4 digit length PBX. One of the extensions is 2100 and one of your DIDs is *2100. The PBX will have 2 possible routes for this call and the call will be dropped. If your DID was *32100 then no problem. If you have a 5 digit length PBX then you need at least 6 digits for your DIDs to avoid issues. This is what we advise people to do that want to use the wildcard (*) for their DIDs and we have come up with such issues in the past. If you can ensure that the last digits of the DIDs do not match other DIDs or extension numbers then you can use less.
 
What do you do then if your carrier is only sending 4 digits?
 
What do you do then if your carrier is only sending 4 digits?
If it can be avoided (choose a different provider) then that is the first option. In cases where this cannot be avoided for any reason then i would recommend going with a 3 digit PBX or make that your DID's do not overlap with extension numbers.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,885
Messages
589,545
Members
164,744
Latest member
johnblackwood1