distinctive ring for internal calls

Status
Not open for further replies.
Nov 30, 2017
34
4
8
60
Toronto, Canada
Hi Gang, you were very kind to give me the answer for distinctive ring for incoming call using ring groups, but the customer I deployed this morning wants their intercom calls to ring differently than incoming calls. they are using Yealink T-46S

sorry guys, but the newbie needs help, BUT I am taking notes.

Howard
 

c0reM

New Member
Jan 19, 2017
12
1
3
74
Hi Howard,

I added distinctive ring to the Yealink provisioning templates and the changes were merged few months ago. Here are the lines look like in the provisioning templates:

#######################################################################################
## Alert Info ##
#######################################################################################
#"X" ranges from 1 to 10;
#Configure the text to map the keywords contained in the "Alert-info" header.
#distinctive_ring_tones.alert_info.X.text = family
distinctive_ring_tones.alert_info.1.text = {$yealink_ring_text_1}
distinctive_ring_tones.alert_info.2.text = {$yealink_ring_text_2}
distinctive_ring_tones.alert_info.3.text = {$yealink_ring_text_3}
distinctive_ring_tones.alert_info.4.text = {$yealink_ring_text_4}
distinctive_ring_tones.alert_info.5.text = {$yealink_ring_text_5}
distinctive_ring_tones.alert_info.6.text = {$yealink_ring_text_6}
distinctive_ring_tones.alert_info.7.text = {$yealink_ring_text_7}
distinctive_ring_tones.alert_info.8.text = {$yealink_ring_text_8}
distinctive_ring_tones.alert_info.9.text = {$yealink_ring_text_9}
distinctive_ring_tones.alert_info.10.text = {$yealink_ring_text_10}

#Specify the ring tone for each text. It ranges from 1 to 8. The default value 1 stands for Ring1.wav.
#1-Ring1.wav, 2-Ring2.wav, 3-Ring3.wav, 4-Ring4.wav, 5-Ring5.wav, 6-Ring6.wav, 7-Ring7.wav, 8-Ring8.wav.
#distinctive_ring_tones.alert_info.X.ringer = 1
distinctive_ring_tones.alert_info.1.ringer = {$yealink_ring_file_1}
distinctive_ring_tones.alert_info.2.ringer = {$yealink_ring_file_2}
distinctive_ring_tones.alert_info.3.ringer = {$yealink_ring_file_3}
distinctive_ring_tones.alert_info.4.ringer = {$yealink_ring_file_4}
distinctive_ring_tones.alert_info.5.ringer = {$yealink_ring_file_5}
distinctive_ring_tones.alert_info.6.ringer = {$yealink_ring_file_6}
distinctive_ring_tones.alert_info.7.ringer = {$yealink_ring_file_7}
distinctive_ring_tones.alert_info.8.ringer = {$yealink_ring_file_8}
distinctive_ring_tones.alert_info.9.ringer = {$yealink_ring_file_9}
distinctive_ring_tones.alert_info.10.ringer = {$yealink_ring_file_10}

Basically, here are the steps:

1) Set yealink_ring_file_1 and yealink_ring_text_1 to whatever you want in Accounts > Devices or Advanced > Default Settings for the whole system.

yealink_ring_file_1 should be set to the integer corresponding to the ringtone you want to use.
yealink_ring_text_1 should be set to whatever text you will match in the alert_info string in your SIP packet to have the phone to use distinctive ring 1

In my configuration, I have the following:

yealink_ring_file_1 --> 4
yealink_ring_text_1 --> local

2) Make a dialplan in Dialplan > Dialplan Manager to match whatever conditions you want and add the following:

<action application="export" data="alert_info=local"/>

So what this does is provisions the phone to look out for an alert_info string set to "local". The dialplan is then exporting said alert_info string in the SIP packet so when the phone gets the INVITE it matches it and knows which ringtone to use (4).

Hope this helps!
 
  • Like
Reactions: tdcockers

MTR

Member
Oct 25, 2017
181
9
18
45
So I was able to push a custom ring via the provision file but i am assuming that will be slot 11
Can I set
Distinctive_ring_tones.alert_info.2.ringer =11?
If not then how will I do that ? For custom ring
 

JamesBorne

Active Member
Jan 24, 2019
294
56
28
Australia
I have done the way @MTR has done it in the past, but there is a _way_ easier way.

Apps > Ring Groups, click on a Ring Group, and there is a field called "Distinctive Ring".
Point that to a servable (FTP, HTTP) file and you're good to go.
 
Status
Not open for further replies.