Hello,
I'm new to freepbx and asterisk in general. I currently have several GOIP gateways, ranging from 16-32 sims in each, connected to my pbx. With the GOIP configured in config by line I can complete calls with success. The issue I am facing is that it's required that I dial a gateway prefix before the telephone number. Obviously this will be a burden to my clients. However I need to be able to dial individual sims on the GOIP so my question is, can I somehow have a script that randomizes a prepend ranging from 01-32 before sending it to the GOIP trunks. Due to the fact that I have 16 and 32 units this will need to be customized per trunk. I've looked at the RAND function but my coding skills aren't too great.
Thank you in advanced for any light you may shed.
I'm new to freepbx and asterisk in general. I currently have several GOIP gateways, ranging from 16-32 sims in each, connected to my pbx. With the GOIP configured in config by line I can complete calls with success. The issue I am facing is that it's required that I dial a gateway prefix before the telephone number. Obviously this will be a burden to my clients. However I need to be able to dial individual sims on the GOIP so my question is, can I somehow have a script that randomizes a prepend ranging from 01-32 before sending it to the GOIP trunks. Due to the fact that I have 16 and 32 units this will need to be customized per trunk. I've looked at the RAND function but my coding skills aren't too great.
Thank you in advanced for any light you may shed.