mod_snom
About
mod_snom is an application for controlling the functionality and appearance of the programmable softkeys on a Snom phone. It also adds the possibility to send KEY events to snoms embedded webserver.
It was tested with firmware series 7.3.x, 8.2.x and 8.4.x on Snom models 370, 820 and 870.
Click here to expand Table of Contents
- 1 Prerequests
- 2 Usage
- 3 Parameters
- 4 Example
- 5 Control Keys using HTTP
- 6 Reference
Prerequests
If you plan to trigger this from other sip servers than FreeSWITCH you have to set some values in the phone configuration like this description in the snom wiki.
Otherwise you just have to configure one of your fkeys as "Button" and add an numeric index e.g "2" for fkey 2.
Usage
snom_bind_key <key> <light> <label> <user> <host> <profile> [<action_name>] [<action>]
Parameters
key: number or name of the key to control
light: state of the led/light for the key, possible values are:
- off
- on
- hold
- pickup
- park
- message
- offline (indicates that phone is not available or DND is active)
- error
label: a UTF8 text label describing what the key does
user: the SIP user (phone) to send the key configuration to
host: the host the SIP user is on (usually FS itself)
profile: the [[mod_sofia|sofia]] profile the user is located under
action_name: the type of action to take when the key is pressed (optional)
- invite - dials the number given in the action field
- message - send a SIP message with data in the action field
action: data for the action_name field, value depends on the type of action_name, see example below.