background image

1.  
2.  

a.  
b.  

i.  

c.  

3.  
4.  

1.  
2.  

DPMA module for the open source "-digiumphones" branch of Asterisk version 10 will be made available at a later date. The DPMA is not
compatibile with any other open source version of Asterisk.

Certified Asterisk and DigiumPhones Branches

The DPMA is not compatible with mainline releases of Asterisk because of the release policies of open source Asterisk. Per release policy, once a
branch of Asterisk, e.g. 1.4, 1.6.2, 1.8, 10, etc. is created, bugs are fixed, security vulnerabilities are closed, but new features are not added. Over
time, this has proven to be an effective policy at limiting the introduction of regressions and making upgrades between branch versions an easy
process.

Because the Digium Phone module for Asterisk requires new features - APIs, SIP messaging infrastructure, voicemail changes, etc. - that are not
currently available in a mainline version of Asterisk, and because Digium phones will require new changes in the future as additional phone
applications are provided, a new branch was required. For Asterisk 1.8 users, all of the code necessary to support the DPMA, as well as changes
to Asterisk applications, such as voicemail, parking, user presence, etc. is available in the Certified Asterisk releases, beginning with the
asterisk-1.8.11-cert1 release. For more information about Certified Asterisk, please see the overview on the 

. Support for Asterisk

Digium website

10 users will be provided in a 10-digiumphones branch of Asterisk that will track the mainline branch of Asterisk with respect to features and
bugfixes, but also support for the DPMA. As with any other branch of Asterisk, both Certified Asterisk and -digiumphones branches are licensed
under the GPLv2 and are made available for download via subversion, as tarballs, and as packages.

Provisioning

Digium Phones may be assigned SIP account configuration a number of different ways:

Option 66 DHCP directive
The phone’s boot menu

Digium Configuration Server (DPMA, manual address)
Fetch Configuration file from URL

HTTP, HTTPs

Manual SIP account entry

The phone’s web-based configuration tool
DPMA, Bonjour / mDNS

When the phone is configured via Option 66 DHCP directive or it's told to manually fetch its configuration from a URL, the phone will first request
a configuration file matching the name <MAC>.cfg, e.g. 0019159bd025.cfg; and, if that file is not found, will then go on to request a configuration
file named 000000000000.cfg.

When the phone is configured to talk to a Digium Configuration server, either manually by plugging in the address of the server or automatically
through mDNS discovery, the phone will communicate with and retrieve its configuration directly from Asterisk via the DPMA.

DPMA Concepts

DPMA uses two internal concepts:

Phones
Lines

 is a set of configuration parameters that represent the device on your desk. A Phone is abstracted because in most cases, it represents

Phone

an individual user’s configuration, e.g. Bob’s Phone. Bob’s Phone has line keys that are specific to Bob, it has a contacts list that’s specific to Bob,
it has Rapid Dial keys that are specific to Bob.

 is a key on phone that is mapped to an Asterisk SIP identity ("friend," technically, since that's a better way to go if you want to assign more

Line

than one SIP identity to the same physical device) and labeled in a particular way. Because, in Asterisk, there’s a one-to-one relationship between
physical device and SIP identity, a Line also maps one-to-one to a SIP identity, since it will only appear on one physical device at a time.

DPMA Configuration

Phones and Lines are configured in the res_digium_phone.conf configuration file – normally located at /etc/asterisk/res_digium_phone.conf. The
file contains one reserved section:

[general]

The 

 section contains settings that are specific to the operation of the DPMA itself.

[general]

Two other section types are available for user configuration, each contains a 

 definition. The type definition determines the function of the

type

section. The three 

 are:

types

phone
line

Содержание DPMA

Страница 1: ...hones aren t hard like everyone thinks that are and they re not dumb terminals instead they re simple and smart A Digium phone can communicate with Asterisk or with any other SIP based system In this...

Страница 2: ...The phone s boot menu Digium Configuration Server DPMA manual address Fetch Configuration file from URL HTTP HTTPs Manual SIP account entry The phone s web based configuration tool DPMA Bonjour mDNS...

Страница 3: ...e at boot in order to retrieve the list of available phone configurations If config_auth is set to globalpin sets the PIN that must be entered on a phone at the userlist screen in order to request a p...

Страница 4: ...ecifies the URL prefix the phone module should use to tell the phones where to retrieve firmware files firmware_package_directory file path e g var www firmware_package_directory Specifies the actual...

Страница 5: ...Maps directly to an external_line defined in this configuration file External line are lines not defined by SIP peers in sip conf and generally do not register to this instance of Asterisk If an exte...

Страница 6: ...pixels 8 bit depth a color type without alpha transparency and less than 10k in size Loaded from the directory specified by the option The D40 and D50 screen size is the same therefore it file_directo...

Страница 7: ...terisk distributions such as FreePBX and AsteriskNOW but is not considered a best practice for use of generic Asterisk digit_map Digit mapping see dialplans The digit mapping to use for this line line...

Страница 8: ...he actual peer External Line Configuration Options External lines are external to this Asterisk instance they are lines that are not entries in sip conf The external line concept exists to work around...

Страница 9: ...1 transport tcp secondary_server_Address otherpb2 mycompany com secondary_server_port 5061 secondary_server_transport udp userid bob1234 authname bob4321 secret mymagicalpassword registration yes call...

Страница 10: ...s last_name Jones suffix III contact_type sip organization Digium job_title Direction Manager location East Texas notes account_id 104 subscribe_to sip 104 1 2 3 4 numbers number dial 104 dial_prefix...

Страница 11: ...ng with 011 followed by at least 4 more digits after a delay of 3 seconds Dial numbers beginning with 1 followed by 10 digits immediately Dial numbers beginning with 2 9 followed by 6 digits immediate...

Страница 12: ...to a phone model and a firmware version Example Example digium_phones_firmware conf file in a Digium maintained firmware package D40 version 1_0_3_45441 file 1_0_3_45441_D40_firmware eff D50 version 1...

Страница 13: ..._mode value NONE network 10 10 0 0 16 setting id network_vlan_qos value 0 setting id network_vlan_id value 44 setting id log_level value debug setting id enable_logging value 0 setting id log_server v...

Страница 14: ...ert_info ring answer ringtone_id Digium ring_type ring answer alert alert_info intercom ringtone_id ring_type answer alert alert_info visual ringtone_id ring_type visual alerts ringtones appconfig id...

Страница 15: ...id reset_call_volume value 0 setting id default_ringtone value Digium setting id active_ringtone value Digium setting id headset_answer value 0 setting id desi_strip_enable value 1 setting id enable_...

Страница 16: ...s the local TCP SIP port defaults to 5060 Preferences Idle Screen logo_file as factory user as location on disk of file factory_asterisk png for default value path and user_image png for custom as opt...

Страница 17: ...disables presence subscriptions Defaults to 40 blf_contact_group Any Group ID from the loaded contacts The ID of the contact list group to use for the rapid dial list Network IP Settings network_enabl...

Страница 18: ...ample Accounts Element Example xml version 1 0 config accounts account index 0 status 1 register 1 account_id 100 username 100 authname 100 password 100 passcode 100 line_label 100 Alligator caller_id...

Страница 19: ...for this account are directed port integer 1 65535 Sets the server s SIP port transport udp tcp Sets the transport type UDP or TCP reregister integer in seconds Sets the re registration interval retry...

Страница 20: ...ilable codecs each described by an individual codec element and its attributes Each codec element is described by the following attributes Option Values Description id PCMU PCMA G722 G726 32 G729 L16...

Страница 21: ...s Option Values Description id string Internal Tone identifier display string External Tone Description url URL string Location from which to retrieve a 16kHz mono WAV sound file less than 1MB in size...

Страница 22: ...he phone will check the version string against an internal copy of the string as previously loaded If the strings differ the phone will load the new firmware url http URL string URL location of the ph...

Страница 23: ...ss insecure port has been set A minimum SIP conf entry for a Digium phone then would look like SIP Configuration Entry Example mydigiumphone type friend Use of friend is good practice generally nat fo...

Страница 24: ...or a Digium Phone in res_digium_phone conf e g voicemail conf Voicemail Configuration Example for Voicemail Application fancycontext The voicemail context name 100 12345 Bob Bobby bobbobby example com...

Страница 25: ...atus of a BLF lamp to the activity of a parking slot does not require setting the parking_exten but it does require enabling Asterisk s parking feature as well as a proper dialplan hint and a proper s...

Страница 26: ...r presence is changed by a CustomPresence user presence provider A CustomPresence provider works in the same way a Custom device state provider does CustomPresence providers are both defined and updat...

Страница 27: ...h of batarangs Example2 Building on example1 now set Batman s state to extended away with no subtype while maintaining the message Making a new batch of batarangs Set PRESENCE_STATE CustomPresence Bat...

Страница 28: ...mPresence Batman message Example4 Reading subtype and message fields as base64 values Action Getvar ActionID 1234 Variable PRESENCE_STATE CustomPresence Batman subtype e Action Getvar ActionID 1234 Va...

Отзывы: