astgen

package
v0.0.0-...-eec0033 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package astgen is a highly experimental package that converts astorg datasets into DPMA-based phone configuration files.

TODO: Refactor the functions in this package to avoid ingestion of whole datasets. Taking a dataset as an argument hides the actual requirements of each generator. Fixing this will probably require that we redesign the generator functions to cumulatively apply the astorg phone, person and role objects in separate functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alerts

func Alerts(data *astorg.DataSet) []dpma.Alert

Alerts generates DPMA alert entries for a dataset.

func Lines

func Lines(data *astorg.DataSet) []dpma.Line

Lines generates DPMA line entries for a dataset.

func Mailboxes

func Mailboxes(data *astorg.DataSet, context string) voicemail.Section

Mailboxes generates a voicemail configuration section for the dataset.

func PagingGroupExtensions

func PagingGroupExtensions(data *astorg.DataSet, context string) dialplan.Section

PagingGroupExtensions generates a dialplan section that includes all paging group extensions in a dataset.

func PhoneExtensions

func PhoneExtensions(data *astorg.DataSet, context string) dialplan.Section

PhoneExtensions generates a dialplan section that includes all phone extensions in a dataset.

func Phones

func Phones(data *astorg.DataSet, base dpma.Phone, contactsURL string) []dpma.Phone

Phones generates DPMA phone entries for a dataset.

The values in the base configuration will be merged into each entry that is returned.

The contactsURL, if non-empty, will be used to prefix the contacts URL and BLF Items URL for each entry.

func Ringtones

func Ringtones(data *astorg.DataSet) []dpma.Ringtone

Ringtones generates DPMA ringtone entries for a dataset.

func SIP

func SIP(data *astorg.DataSet, base sip.Entity, context string) []sip.Entity

SIP generates SIP entries for a dataset.

The values in the base configuration will be merged into each entity that is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL