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 ¶
- func Alerts(data *astorg.DataSet) []dpma.Alert
- func Lines(data *astorg.DataSet) []dpma.Line
- func Mailboxes(data *astorg.DataSet, context string) voicemail.Section
- func PagingGroupExtensions(data *astorg.DataSet, context string) dialplan.Section
- func PhoneExtensions(data *astorg.DataSet, context string) dialplan.Section
- func Phones(data *astorg.DataSet, base dpma.Phone, contactsURL string) []dpma.Phone
- func Ringtones(data *astorg.DataSet) []dpma.Ringtone
- func SIP(data *astorg.DataSet, base sip.Entity, context string) []sip.Entity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PagingGroupExtensions ¶
PagingGroupExtensions generates a dialplan section that includes all paging group extensions in a dataset.
func PhoneExtensions ¶
PhoneExtensions generates a dialplan section that includes all phone extensions in a dataset.
func Phones ¶
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.
Types ¶
This section is empty.