Jump to content

Blogs

Our community blogs

  1. VBScript

     

    Inspired by a question in the forum I spent a little bit more time not just giving a few hints as answer in the forum, but instead made a complete call routing script from it.

     

    There are cases in which you need to be able to replace an existing announcement of a user by recording a new one from within a call routing script.

     

    If this is done within the call routing of the user you need to replace the announcement for, this is a very straight forward task. 

     

     

    Lets assume the user has an announcement file "welcome.wav" which you need to replace by an new announcement.

     

     

    The idea for the call routing here is, that it checks if the caller is authorized to replace the announcement first. There are multiple ways to get this done, e.g.

     

    • by checking the caller number ("Call" condition block, and then "Calls from caller ID (calling party number)")
    • by asking the caller for a pin ("Get DTMF String" block and then "Evaluate" block to validate the entered pin, an example can be found here)
    • check for specific post dialing digits (instead of asking the caller for a pin)
    • or a combination of the above

     

     

    You place this call routing on top of the list of rules in the call routing manager. This makes sure that regardless of what other call routing the user has activated, you will be able to call in and replace the announcement. If your call routing script figures that it is not you who is calling it just leaves the script via the "Rule skipped" exit to let let the rest of the users call routing handle this call.

     

    So once you have identified and authorized the caller your call routing could do the following:

     

    1. Play the current "Welcome.wav" announcement to make sure that this really is the announcement you want to replace
    2. Record a new announcement by using the "Record Message" block
    3. Save/upload this newly recorded message file into the SwyxWare database with the name "Welcome.wav". By doing so you overwrite the existing one.
    4. Play the "Welcome.wav" announcement again, to make sure that your recorded announcement has really been updated.

     

    Of course this is just a suggestion. You can do what ever else you want/need to here. This just demonstrates how to do the replacement.

     

     

    The call routing script looks as simple as this:

     

    image.png

     

    The "Call" block just does a simple caller verification and authentication by the caller number.

     

    image.png

     

    The "Record Message" block places the name of the newly recorded wav file into the "sNewWelcome" variable.

     

    image.png

     

    The "Insert Script Code" blok uses the PBXUser.UploadFile function from the Server Script API to upload the recorded file into the database and store it there with the name "welcome.wav". The previously existing file will be overwritten.

     

    image.png

     

     

    You can download this simple rule via the following link:

     

    Replace Announcement.rse

     

    Open a new GSE rule, import this file via the "File | Import..." menu and save the rule.

     

    Now move the new rule on top of the list of your rules.

     

    image.png

     

     

     

     

    Enjoy!

     

    PS: don't miss to take a look into the ECR Useful Link Collection.

     

     

  2. Tom Wellige
    Latest Entry

    By Tom Wellige,

    This post sums this great article series up. Mirjam spent quite some time to identify all those tips and to publish them here on Swyx Forum.

     

    As the article series dates some years back there had been a couple of articles I have not re-posted again, simply because they were not valid with a current SwyxWare version anymore.

     

    But the vast majority of the tips is still valid with current SwyxWare versions and that's why I decided to re-post them to make them available again after the old Swyx Forum went offline.

     

    Thank you very much Mirjam for all your efforts!

     

  3. A common feature request I have had over the years is a Call Park feature, and the usual stock reply to Can Swyx Do..... is NO! but...... of course this is software and anything is possible. I have seen a number of ways of implementing a call park feature some really clever ones that use the conference bridge facility in Swyx to some not so clever ones using analog adaptors to have live logged on extensions which are used to pick up from... sudu call park.
     
    Before I saw the conference room version written by Tom I had a go myself and came up with this solution a couple of years ago and put it online. Recently a couple of requests came in for the source code so I thought I would upload it here.
     
    This is another illustration of how different solutions to problems can be developed with Swyx, there is no right or wrong way, they either work or don't.

     

     

    So next time someone asks if "Swyx can do .........  ?",  reply  "No it can't, but you can"  🙂

     

     

     

     

    Call Park.zip

     

     

  • Blog Statistics

    • Total Blogs
      4
    • Total Entries
      82
  • Blog Comments

    • I have just updated the download link in the article with a correctly working version.  
    • Hi Mark,   do you still have a working version?   Thanks      
    • Nein, das Skript läuft auf JEDER SwyxWare Version. Das ist das schöne am Call Routing     Ich habe aber nochmal etwas genauer nachgesehen, und einen logischen Fehler gefunden. Der ist nun behoben und das Skript läuft einwandfrei auf meinem 13.25er Testsystem. Der Download oben im Blog Post ist aktualisiert.   Das war allerdings nur ein logischer Fehler, d.h. das Ende des Urlaubs wurde nicht richtig erkannt. Das hat aber zu keinen Skript/Ruf Abbruch geführt. Das klingt mir ehe
    • Hallo Herr Wellige 😀   ich bin gerade dabei ein Call Routing zu bauen, wo die Nutzer "einfach" Ihre Urlaubszeit eintragen können. Das hier angebrachte Skript funktioniert leider nicht mehr, das Gespräch wird beendet. Gibt es hier ggf. ein Update für die momentan aktuellste Version 13.25?   Danke schon einmal M. Schulze   getestet mit VBS nicht LUN
    • Hello Tom,   thanks for your reply.   As we´re not running the server on premise, I´ll have to make some calls to find out how to get my hands on the logfiles. The only logs we have are the mmc logs from the maschine the swyxware administration is running on.   And my usual called tech guy seems to be in holidays already  I´ll come back as soon as I get any info - when ever that will be.  
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.