Ringtone Configuration
From Snom Asterisk Portal
Contents |
Feature description
You can specify various ringtones for different call types via SIP Header. With this feature you can differenciate internal from external and group calls by using different ringers. It is also possible to provide a completely custom ringtone through a HTTP-URL in the SIP Header for very special calls.
Configure Asterisk
Internal / External / Group Ringers
When you ring a snom phone, add the "Alert-Info" SIP header, so that the phone plays different ringers for the distinct types of call.
(namely: internal/external/groupcall)
Example implementation for extensions.conf:
[from-pstn]
;; Calling the central number
exten => _${PREFIX}0,1,SIPAddHeader("Alert-Info:<http://nohost>\;info=alert-group\;x-line-id=0")
exten => _${PREFIX}0,n,Dial(SIP/10&SIP/11&SIP/12)
;; direct inward dial
exten => _${PREFIX}XX,1,SIPAddHeader("Alert-Info:<http://nohost>\;info=alert-external\;x-line-id=0")
exten => _${PREFIX}XX,n,Dial(SIP/${PREFIX:5})
[internal]
;; simple internal call
exten => _XX,1,SIPAddHeader("Alert-Info:<http://nohost>\;info=alert-internal\;x-line-id=0")
exten => _XX,n,Dial(SIP/${EXTEN})
Custom Ringtone
To play a completely custom ringtone, you must provide the ringtone in a standard 8 kHz mono 16-bit sample WAV file on a webserver reachable from the phone. It is suggested you use a local server to minimize the delay of the ringer.
Example implementation for extensions.conf:
[internal]
;; ghost busters number
exten => 666,1,SIPAddHeader("Alert-Info:<http://1.2.3.4/ringtones/ghost.wav>")
exten => 666,n,Dial(SIP/10)
This will play the contents of the file "ghost.wav" to SIP peer "10" when somebody dials "666" internally.
Configure snom phones
snom 3xx
Configure seperate ringtones for internal, external or group calls by using the Web User Interface under "Preferences" > section "Alert-Info Ringer:"
Note: Do not change the value of "Alert Internal Text:". This feature depends on the correct strings for matching. The default values are shown on the figure below.
snom m3
snom m3 does not support Ringtone Configuration with Alert-Info-Ringer.

