Need help on setting up 10 DIDs with freeswitch package
-
Hi,
I purchased a block of 10 did numbers. Base number is 01234/56789. The numbers themselves range from 01234/567890 to 01234/567899
What works? Well, I can dial in to a "hardcoded" 01234/567891 which belongs to user 1000.
I can´t dial out.The main problem is, that I do not know how I can assing those numbers to the users.
Of course I want to dial out with each user and the corresponding number should be displayed. Also I want to dial in to the appropriate number.
So, 01234/567890 belongs to caller id "0", 01234/567891 belongs to caller id "1",…I can´t find an example within the wiki, where there a several numbers to be configured.
It would be great if you could give me some hints or links.
thanks in advance
-
I can´t dial out.
This is quite easy just go to the Gateway and use the 'Dialplan Expression' to define what dial pattern you want to use to direct your outbound call to the gateway of your choice. 10 digit dialing would be ^(\d{10})$ and 11 digit dialing would be ^(\d{11})$ if you want to dial out with only 7 digits ^(\d{7})$ then you need to define your default area code on the Settings tab. If you want to require the dialing a 9 then the number then simply choose that in the drop down menu with number of digits you plan on dialing.
Any regular expression can be used the drop down menu mentions the most common ones. When the dialplan expression tool is used it makes an entry to the 'Dialplan' tab you can go there find the entry and even modify it further to meet your needs. For example you could add an additional condition that looks restricts this dialplan entry to a specific extension.
The main problem is, that I do not know how I can assign those numbers to the users.
Of course I want to dial out with each user and the corresponding number should be displayed. Also I want to dial in to the appropriate number.
So, 01234/567890 belongs to caller id "0", 01234/567891 belongs to caller id "1",…I can´t find an example within the wiki, where there a several numbers to be configured.
The way you would direct the inbound DID (phone number) is exactly the same as if you do only one entry you just add one more with the right condition and give it a different destination. You direct the inbound call with a condition that matches the 11 digit DID number and then you can set an action of transfer or bridge to direct that call to the destination of your choice.
If I had two DIDs 12085551234 and 12085551000 and I wanted one to go to extension 1001 and the other to 1002 then I would do the following from the 'Public' tab.
Extension Name: Inbound.12085551234
Tag: Condition Type: destination_number Data: ^12085551234$
Tag: Action Type: transfer Data: 1001 XML defaultThen Make a new entry under the dialplan.
Extension Name: Inbound.12085551000
Tag: Condition Type: destination_number Data: ^12085551000$
Tag: Action Type: transfer Data: 1002 XML defaultDo this for each one of your DIDs.
Hope this helps.
Best Regards, Mark J Crane
-
Hi,
thanks for your help. Now I have out and incoming calls going. One problem is still there. When I call from one extension 1000 with its number 01234/567891 to external, I only see the Base number 01234/56789 in the display of the called phone.
How can I correct this?
-
You want each extension to have its own caller id that matches its DID.
On the extensions tab for each extension there is place to put caller id information per extension.
Make sure you didn't define the caller id on the gateway because that could override the caller id defined on the extension.