3CX XML Configuration using AWS EC2 Instance via Marketplace

Status
Not open for further replies.

Gilroy

Bronze Partner
Advanced Certified
Joined
Aug 20, 2020
Messages
37
Reaction score
8
Hi Team, Hope you guys are well. I'm having a bit of trouble executing an XML file upon deploying a 3CX instance on AWS. Here's a bit more detail on what I have done.

  1. Visited the 3CX documentation regarding XML config.
  2. Downloaded the Sample XML Format and edited accordingly.
  3. Copied the cloud-init from the same website and pasted my modified setupconfig.xml texts on the line "<!--PUT CONTENTS OF SETUPCONFIG.XML HERE-->"
  4. Used the 3CX image via AWS Marketplace.
  5. When I get to Step 3 under "Advanced Details" I will paste all the text(cloud-init+setupconfigxml) content on the "User data" section and proceed on launching the instance.
  6. Once the EC2 instance has been deployed, It will redirect to the normal deployment wherein it will start to ask the License and so on and so forth. From what it looks like, it did not run the cloud-init that I pasted.
Hope you have time to shed some light on this matter and thank you in advance.
 
Have you checked that there is no mistake to the XML file?
It is very easy to make. To test this, I would recommend first installing a 3CX system normally somewhere, open the Web Config Wizard on port 5015, then in the first screen there is an option to local an XML file manually.

Load it there and see if the installation runs alright. This should validate at least that the XML file is OK.
 
  • Like
Reactions: Gilroy
Thanks, @NickD_3CX, I was able to verify the XML using the 3CX Web Configuration tool. May I kindly ask if the parameter I would like to have is null, what should I put? For example

<DNRange>
<To>000</To>
<From>000</From>
</DNRange>

But I want that parameter to be null? Is it <DNRange></DNRange> or simply delete the whole parameter?

Thank you so much!
 
Glad to managed to get pass the point you were stuck! :)

Now about the parameter, I am guessing that this is from the Outbound Rules section. May I ask, how do you want the Outbound rule to be? So if you created in the Management Console from the interface, what would you put?
 
Hi @NickD_3CX! Thanks for the tip.

Regarding the parameter, I would like to have an outbound rule that has no value on the "Calls from extension(s)" field.

I did test this however, it always put "," on the said field.
<DNRanges>
<DNRange></DNRange>
<DNRange></DNRange>
</DNRanges>

Thanks again!
 
That's not exactly what I meant, but try inputting it like this:
Code:
<DNRanges>
<DNRange></DNRange>
</DNRanges>

The reason I suspect you get a comma symbol is because there are 2 empty DNRange tags, so it is "comma-separating" 2 empty values.

If that still doesn't work send me a screenshot of how you want the Outbound rule to be as if you were creating it in the Management Console, something similar to this:
1620375569387.png
 
Status
Not open for further replies.