rjn239 Posted June 18, 2015 #1 Share Posted June 18, 2015 Hi, Can you set Swyx to automatically dial a number when it detects the SwyxIt! Handset P280 has been lifted? We want to place a handset on our reception desk for when it is unmanned, connected to the computer there. The customer reads a sign that says simply to lift the handset and it should start ringing a specific extension, requiring no interaction with the PC or dialling. Any ideas? Thanks, Ryan. Link to comment Share on other sites More sharing options...
Tom Wellige Posted June 18, 2015 #2 Share Posted June 18, 2015 Using the Client SDK this should not be much of a problem. You should take a look into the examples coming with the Client SDK or the ones, that are already available here on Swyx Forum: https://www.swyxforum.com/forum/28-client-sdk/ The How to initiate alarm calls programatically example there comes already very close to what you need. Link to comment Share on other sites More sharing options...
rjn239 Posted June 18, 2015 Author #3 Share Posted June 18, 2015 Hi Tom, Thanks for the reply! That does seem the same principle as what i am after. Not sure how to make it work though? I pasted the code into notepad and saved out as .vbs file, tried double clicking on it and it didn't work... clearly I am being a bit stupid, never done this before, could you offer some intructions? Thanks, Ryan. Link to comment Share on other sites More sharing options...
Tom Wellige Posted June 18, 2015 #4 Share Posted June 18, 2015 You do start vbs scripts not by double click but by cscript.exe. So from a command line just enter something like cscript.exe myscript.vbs Link to comment Share on other sites More sharing options...
rjn239 Posted June 18, 2015 Author #5 Share Posted June 18, 2015 Ah right! I tried that and it came back and said Microsoft VBScript compilation error: Syntax error Link to comment Share on other sites More sharing options...
Tom Wellige Posted June 18, 2015 #6 Share Posted June 18, 2015 Just that? I would expect also a line number in which the error occurred. Link to comment Share on other sites More sharing options...
rjn239 Posted June 18, 2015 Author #7 Share Posted June 18, 2015 This is the message i was seeing Link to comment Share on other sites More sharing options...
Tom Wellige Posted June 18, 2015 #8 Share Posted June 18, 2015 Please remove the first line in the file (Option Explicit On). Looks like it's not loved by the scripting engine anymore... Fortunately it doesn't have any impact on the script's functionality Link to comment Share on other sites More sharing options...
rjn239 Posted June 18, 2015 Author #9 Share Posted June 18, 2015 Thanks that worked as expected when I removed that! Do you know if it is possible to link this script to the 'hook off' action? so when the handset is lifted? Ryan. Link to comment Share on other sites More sharing options...
rjn239 Posted June 18, 2015 Author #10 Share Posted June 18, 2015 Thanks that worked as expected when I removed that! Do you know if it is possible to link this script to the 'hook off' action? so when the handset is lifted? Ryan. Perhaps just have the script constantly waiting for the 'hook off' signal? dialling the number, playing the message, hanging up, and then returning to the waiting stage again? Link to comment Share on other sites More sharing options...
Most Valued User Varmenni Posted June 18, 2015 Most Valued User #11 Share Posted June 18, 2015 This looks like a lot of work to fit a certain device to a function that it was not meant to do. I would rather just get a cheap SIP phone that has this functionality build in, something like the Yealink T19 or similar. Link to comment Share on other sites More sharing options...
Tom Wellige Posted June 18, 2015 #12 Share Posted June 18, 2015 Do you know if it is possible to link this script to the 'hook off' action? so when the handset is lifted? Yes, that is possible, but you really need to familiarize yourself with the Client SDK. So without some programming it can't be done. Link to comment Share on other sites More sharing options...
rjn239 Posted June 19, 2015 Author #13 Share Posted June 19, 2015 This looks like a lot of work to fit a certain device to a function that it was not meant to do. I would rather just get a cheap SIP phone that has this functionality build in, something like the Yealink T19 or similar. You've got a point. I think i'll just do that. I've used the Client SDK a bit over the last few weeks to tap into active calls etc.. but can't really be bothered to invest too much for this, when, as you say this is an easy solution. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.