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.
9 Comments