FreePBX/Polycom configuration file creator

Completed Posted Aug 5, 2010 Paid on delivery
Completed Paid on delivery

We'd like the app to automatically generate configuration files that are stored on a separate ftp server (pure-ftp), based on Extensions being created in FreePBX. We are planning on utilizing the AccountCode field in FreePBX for this application. Example:

We create extension 100 in FreePBX. The AccountCode for that extensions is P601:0004f21AAAA:T-7,DY,Y9. P601 represents the phone type in this case Polycom IP 601. The [url removed, login to view] the MAC Address for the phone. T-7 designates the GMT offset is -7. D represents Daylight savings time values: DY yes, or DN no, 9 represents whether the extension has to dial 9 to get an outside line value: 9Y or 9N

The program is launched when an extension is created or modified. The program uses the data from the asterisk database and a file called [url removed, login to view] located in /usr/local/bin to generate five files in a specific directory on the ftp server; [url removed, login to view], [url removed, login to view], [url removed, login to view], [url removed, login to view], [url removed, login to view]

[url removed, login to view] only has two variables. Server=IP Address1, Proxy=IP Address2 (We'd prefer to store these values in FreePBX if anyone can think of a good location)

The files' location is based on the first four characters of the Account code. For example if the Account Code begins with P601 the files are located in /home/ftp/P601. If the Account Code begins with P550 the files are located in /home/ftp/P550.

The following are examples of the different files to be created. Each file should be create and or/overwritten each time the program is run, with the exception of MAC-custom.cfg. This file needs to be created, but if it exists it must not be over-written.

[url removed, login to view]

<?xml version="1.0" standalone="yes"?>

<!-- $Revision: 1.14 $ $Date: 2005/07/27 18:43:30 $ -->

<APPLICATION APP_FILE_PATH="[url removed, login to view]"

CONFIG_FILES="[url removed, login to view], [url removed, login to view], [url removed, login to view], [url removed, login to view], [url removed, login to view]"

MISC_FILES="" LOG_FILE_DIRECTORY="/logs" OVERRIDES_DIRECTORY="/overrides" CONTACTS_DIRECTORY="/direcory"/>

[url removed, login to view]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<reginfo>

<reg

reg.1.displayName="$Extension" (pulled from FreePBX database)

reg.1.address="$Extension"

reg.1.label="$Extension"

reg.1.auth.userId="$Extension"

reg.1.auth.password="$Secret" (pulled from FreePBX database

reg.1.lineKeys="1"

/>

<SNTP

tcpIpApp.sntp.daylightSavings.enable="1" (value 1 if DY, 0 if DN)

tcpIpApp.sntp.address="[url removed, login to view]"

tcpIpApp.sntp.gmtOffset="-28800" (value = T value times 3600)

/>

<msg msg.bypassInstantMessage="1">

<mwi msg.mwi.1.subscribe="3001" msg.mwi.1.callBackMode="contact" msg.mwi.1.callBack="*970"/>

</msg>

OTHER STANDARD TEXT

</reginfo>

[url removed, login to view] (varies on 9 variable)

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<!-- SIP Application Configuration File -->

<!-- $RCSfile: [url removed, login to view],v $ $Revision: [url removed, login to view] $ -->

<SIP>

<dialplan dialplan.impossibleMatchHandling="0" dialplan.removeEndOfDial="1" dialplan.applyToUserSend="1" dialplan.applyToUserDial="1" dialplan.applyToCallListDial="0" dialplan.applyToDirectoryDial="0">

<digitmap dialplan.digitmap="[1-8]xxx|[9][2-9]11|[9]011xxx.T|[*]xxx.T|9[1]xxxxxxxxxX|9[2-9]xxxxxx" dialplan.digitmap.timeOut="3|3|3|3|3|3"/>

</dialplan>

</SIP

[url removed, login to view]

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<localcfg>

<server voIpProt.server.1.address="Server"/> Based on [url removed, login to view]

<SIP>

<outboundProxy voIpProt.SIP.outboundProxy.address="Proxy"/> Based on [url removed, login to view]

</SIP>

</localcfg>

Asterisk PBX Linux MySQL Script Install VoIP

Project ID: #759310

About the project

1 proposal Remote project Active Aug 6, 2010

Awarded to:

tucupeis

Hi.. can do this... please check pm

$200 USD in 1 day
(7 Reviews)
4.9