Devam Ediyor

FreePBX/Polycom configuration file creator

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>

Beceriler: Asterisk PBX, Linux, MySQL, Betik Yükleme, VoIP

Daha fazlasını görün: digitmap freepbx polycom, freepbx polycom, dialplan polycom freepbx, freepbx polycom directory, polycom xml variables, polycom cfg files variables, freepbx polycom dialplan cfg, freepbx polycom dialplan, create polycom cfg files, freepbx configuration files, polycom digitmap creator, polycom localcfg, polycom p601, freepbx ftp, polycom 601 freepbx, accountcode freepbx, polycom freepbx, applytodirectorydial polycom, file extension localcfg, enable daylight savings polycom freepbx, ucla extension, times standard, dial a code, creator text, app script examples

İşveren Hakkında:
( 11 değerlendirme ) Ventura, United States

Proje NO: #759310

Seçilen:

tucupeis

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

1 gün içinde 200$ USD
(7 Değerlendirme)
4.9