Yealink Forums
Changing settings with script or command line - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: Configuration (/forumdisplay.php?fid=24)
+--- Thread: Changing settings with script or command line (/showthread.php?tid=2975)



Changing settings with script or command line - riaan30 - 12-09-2014 03:31 PM

Hello

I am looking for a script or a command to change the number that the phone is forwarded to.

The idea is to have asterisk run the script when a certain number is dialed from the IVR.

So if the client phones in and dial 888 it runs the script to forward to John's number and if you dial 889 it runs the script to forward to Mark.

It is for the T2XP series phones.

Thank you


RE: Changing settings with script or command line - jolouis - 12-09-2014 10:48 PM

Out of curiosity why wouldn't you just do it on the PBX side? Asterisk is more than capable of that kind of call routing with a little bit of custom dialplan coding (or an AGI if you're so inclined).

If you really want to do it on the phones then my thought would be:
A) You'll need to use PushXML to send the updated CF config value to the phone
B) Then you'll need to use an actionURI to make sure that call forward is enabled on the set.

The documentation on how to do both of those things is on the main Yealink site.