Sign in to follow this  
zerox22x

Speeddial Tools

Recommended Posts

hello


 


i know there used to be a speedial assistent for swyx 2011


is there someway to replicate the copy function for this as most of our agents use the same speeddial set


or is there a tool that does work for swyx 2015 r2


Share this post


Link to post
Share on other sites

i do have a very simple one (no looping as i cant get it to work)


the nice bit would be if it does it for all members rather then 1 


shorter example 



$user = read-host
$1 = New-IpPbxSpeedDialKey -title "user1" -Number 111
$2 = New-IpPbxSpeedDialKey -title "user2"-Number 108
$3 = New-IpPbxSpeedDialKey -Title "user3" -number 124
Add-IpPbxSpeedDialKey -SpeedDialKey $1 -UserName $user -SpeedDialKeyId 0
Add-IpPbxSpeedDialKey -SpeedDialKey $2 -UserName $user -SpeedDialKeyId 1
Add-IpPbxSpeedDialKey -SpeedDialKey $3 -Username $user -SpeedDialKeyId 2

the nice bit would be that it adjusts for the amount of people being added/changed and that the speedial keys can be given a start number


or from a file


Share this post


Link to post
Share on other sites

Not my script, got this one from a friendly person from T-Com Support :)


 


With this Script you can use an Config. Group on the Swyxserver to get the the User and set the Speeddial and namekeys via a text file.



Import-Module IpPbx

Connect-IpPbx -ServerName *insertSwyxserverhere*

$Keys = Import-Csv -Path namekey.txt -Delimiter ";" -Encoding UTF8


$Members = Get-IpPbxGroupMember -GroupName "*EnterConfigurationgrouphere*"

Foreach ($Member in $Members) {
Foreach ($Key in $Keys) {
$NameKey = New-IpPbxSpeedDialKey -ClearBeforeDialing -DialImmediately:$false -Number $key.Nummer -Label $key.Name
Add-IpPbxSpeedDialKey -SpeedDialKey $NameKey -UserName $Member.Name -SpeedDialKeyId $Key.Idx
}


}

Note: - UTF-8 encoding for the text file is only realy needed for germans (or others) who use these silly Umlauts äöü in their names :P:lol:


         - speeddialkey attributes (-ClearBeforeDialing -DialImmediately ) can be turned off via the :$false parameter behind it.


 


Edit: - The textfile needs the username ; internalphonenumber ; namekeynumber    seperated via the delimiter ; in the textfile.


 


This hopefully helps you and some others with their administrativ tasks :);)


Share this post


Link to post
Share on other sites

Could you maybe provide an example line of what the textfile should look like?


 


For my understanding: I need to build this textfile myself? I cannot use an exported speeddial list?


 


Also: does this only work for Swyx contacts with an internal number? I have a number of external contacts in the default skin/speeddiallist


Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this