How to Customize Distinctive Ring Tone for Internal Calls

Firstly download the putty: http://www.yeastar.com/download/tools/putty.exe

Then follow the steps below:

Step1: Enable the SSH service in Yeastar device (LAN setting> SSH enabled)

Step2:Enter Yeastar device’s server IP and SSH port(default is 8022)


Step3:Then configure the putty with enough lines:

Step4:Login the SSH with username/password: root/ys123456


Step5:
Go to the directory: vi /etc/asterisk/extensions.conf to find the context [marco-realstexten]

And then copy the content under this context into the directory with command: vi /persistent/custom-cfg/extensions_custom.conf

For specific calling extension numbers:

Here we take 452 and 451 as example, when the internal call from this 2 extensions number to other extension number

Add the red lines in front of the line: "exten = s,n,Dial(${ARG2},${RINGTIME},${ARG3})"

[macro-realstexten]
...
...
...
exten = s,n,Gotoif($[${CALLERID(num)} = 452]?15:16)
exten = s,n,SIPAddHeader(Alert-Info: <http://192.168.6.226>\;info=ringertest1)
exten = s,n,Gotoif($[${CALLERID(num)} = 451]?17:18)
exten = s,n,SIPAddHeader(Alert-Info: <http://192.168.6.226>\;info=ringertest2)
exten = s,n,Dial(${ARG2},${RINGTIME},${ARG3})

 

-Instructions for the red lines:

exten = s,n,Gotoif($[${CALLERID(num)} = 452]?15:16)
exten = s,n,SIPAddHeader(Alert-Info: <http://192.168.6.226>\;info=ringertest1)
exten = s,n,Gotoif($[${CALLERID(num)} = 451]?17:18)
exten = s,n,SIPAddHeader(Alert-Info: <http://192.168.6.226>\;info=ringertest2)
The 15:16 and 17:18 are the line numbers
When the caller id is 452, there will go to the line 15
exten = s,n,SIPAddHeader(Alert-Info: <http://192.168.6.226>\;info=ringertest1)
Also when it is not the 452, it will go to the line 16
exten = s,n,Gotoif($[${CALLERID(num)} = 451]?17:18)

When the caller id is 451, there will go to the line 17
exten = s,n,SIPAddHeader(Alert-Info: <http://192.168.6.226>\;info=ringertest2)
Otherwise, it will go to the line 18
exten = s,n,Dial(${ARG2},${RINGTIME},${ARG3})

- For the line of application SIPAddHeader:

exten = s,n,SIPAddHeader(Alert-Info: <http://192.168.6.226>\;info=ringertest2)

192.168.6.226 is IP address of the MyPBX

ringertest2 is the ringer text which is related with ringer settings on the IP phone.

 

If you want to add another internal extensions, you can modify like this.
After that, press “esc”, then use command ":wq" and press "enter" to save the file.

 

For all calling extension numbers:

While if you just want to have general ring tone for all extensions.

You just need to add one line before the the line "exten = s,n,Dial(${ARG2},${RINGTIME},${ARG3})"

[macro-realstexten]
...
...
...
exten = s,n,SIPAddHeader(Alert-Info: <http://192.168.6.226>\;info=ringertest)
exten = s,n,Dial(${ARG2},${RINGTIME},${ARG3})

...

...

...

 


Finally, reboot MyPBX to let the modification take effect.

Step 6: on the IP Phone web interface, please configure the right ringer text.

 

Have more questions? Submit a request

9 Comments

  • 1
    Avatar

    Hi Oscar,

    Thanks for your response. I've been working with a Yeastar support agent but we haven't find a solution yet. I know this is possible because it is Asterisk. We just need to write the correct configuration.

    I found this other article: https://support.yeastar.com/hc/en-us/articles/115004848447-How-to-Create-Custom-Conf-Files-in-Yeastar-S-Series-VoIP-PBX and wrote the following code in the extensions_custom.conf file but it is not working:

    [queue_6700] 
    exten = 6700,1,NoOp(6700) 
    exten = 6700,2,answer() 
    exten = 6700,n,Set(QUEUEANSWERTIME=${STRFTIME(,,%s)}) 
    exten = 6700,n,Set(_RINGTONE=b(ringtone-queue_6700^add_header^1)) 
    exten = 6700,n,Queue(queue-6700,tTkKxXr,,,1800) 
    exten = 6700,n,Goto(always-Hangup,h,1) 
    exten = none,1,Goto(always-Hangup,h,1) 
    exten = fax,1,Goto(inrouter_${INROUTERNAME}_fax_detect,fax,1) 
    ;exten = _.,1,Goto(from-outside,${EXTEN},1) 
    exten = h,1,Hangup()

    [ringtone-queue_6700] 
    exten = add_header, 1, Set(PJSIP_HEADER(add,Alert-Info)=<http://192.168.1.20>\;info=TEST-RINGTONE)

    I ran astconfig, reloaded the dialplan, and even rebooted the PBX, but for some reason the logs show me that line 4 from the [queue_6700] context is not being executed.

  • 0
    Avatar

    You must devise a much simpler procedure to add custom ring tones to the Yeastar. Why not just build the extension or application into the Yeastar so that the tech can upload ringtone files the same as custom recordings and announcements. The tech then has the capability of assigning them to the inbound routes...Much, much simpler my friend....According to this documentation in FAQ's it can be done, but I can't find it in any of your manuals!!!

    http://www.yeastar.com/mypbx-faq/  Questions 13 and 14...

    Edited by Alton
  • 0
    Avatar

    For incoming call from outside the office, I think you can take this for reference:

    https://support.yeastar.com/hc/en-us/articles/217394317-How-to-Setup-Distinctive-Ringtone

     

  • 0
    Avatar

    I have tried it on both Yealink T42 and T46 and it doesn't work.

  • 0
    Avatar

    The distinctive ringtone feature is very limited as it is right now. I'm trying to configure Distinctive Ringtone for ring groups and/or call queues instead of inbound routes.

  • 0
    Avatar

    Hi Chris,

    Did you ever try submit a ticket and ask help from Yeastar team? According to this article, it should be possible to configure distinctive ringtone for ring groups/call queues. It seems like add a SIP header into the regular SIP packet. But this required customize the dial plan.

  • 0
    Avatar

    there is any way for obtain distinctive ring tone for internal call into analog output of s412?

  • 0
    Avatar

    The way I workaround this, is by entering all internal extensions in directory, and then assigning a specific ringtone to each contact, e.g.Ring7.wav

    After filling in one phone, you can export the contacts in csv file and then import on all other phones. This will make internal extensions ring with Ring7.wav. It's a bit tedious but it works, and I have been using it.

  • 0
    Avatar

    Hi, I am looking for the same Feature for my S20, specific ringtone for internal calls.

    I want to have one Ringtone for normal internal calls and an other RIngtone if my dorrbell calls a RIng-Group.

     

    Is this possible?

    Regards

    Christian

    Edited by Radermacher
Please sign in to leave a comment.