Jump to content

new users can't see Status info


BigDaveH
 Share


Go to solution Solved by Tom Wellige,

Recommended Posts

  • Most Valued User

I would like to add user with a generated powershell script. All goes well but if the User logges on, there are no status shown on the Netphone Client.

 

image.png.ae5ec0bf373cadb4dd8ecb77baeb0995.png that should have been Green.

 

Can I force it so get the Status Info ?

 

I have manually added the User without Phonenumber. And then ran the Script where I changed the top line


$NewUser=Get-IpPbxUser -UserName "Test, Nethpone"

image.png.5c82d85428622057f5b4fe748b73be89.png And now I see the Status.

Is there a bug in the $New

 

 

Script

 

Import-Module IpPbx

Connect-IpPbx "netphone.badhandel.local"


$NewUser = New-IpPbxUser -Name "Test, Nethpone" -EmailAddress "n.test@reuter.de" -Comment "Hotline"
$NewUser.LocationID = 5
$NewUser.SecondCallEnabled=0
$NewUser.FwdOnBusy =$False

$NewUser.FwdOnBusyNumber = "210"
$NewUser.FwdOnNoAnswer =$False
$NewUser.FwdOnNoAnswerNumber = "210"
$NewUser.FwdOnNoAnswerTimeout = 15
$CreatedUser = Add-IpPbxUser $NewUser -Passthru
Add-IpPbxUserWindowsAccount -UserEntry $CreatedUser -NTAccount "BADHANDEL\NethponeTest"

 

Connect-IpPbx "netphone.badhandel.local"
$InternalNumber = New-IpPbxInternalNumber -InternalNumber 244
$InternalNumber.Hide=$False
Add-IpPbxInternalNumberToUser -InternalNumberEntry $InternalNumber -UserEntry $CreatedUser  # "Test, Nethpone"

$PublicNumber=New-IpPbxPublicNumber -PublicNumber "+49xxxxxx244"
Add-IpPbxPublicNumber -InternalNumber "244" -PublicNumberEntry $PublicNumber
$InternalNumber2 = New-IpPbxInternalNumber -InternalNumber 9844
$InternalNumber2.Hide=$True
Add-IpPbxInternalNumberToUser -InternalNumberEntry $InternalNumber2 -UserEntry $CreatedUser
$PublicNumber2=New-IpPbxPublicNumber -PublicNumber "+492xxxxxxx844"
Add-IpPbxPublicNumber -InternalNumber "9844" -PublicNumberEntry $PublicNumber2

 

$UserData = Get-IpPbxUser -UserName "Hotline Vorlage" | Get-IpPbxUserData
Set-IpPbxUserData -UserData $UserData -UserName "Test, Nethpone"  

Set-IpPbxUserData -UserEntry $CreatedUser -UserData $userdata

$templateUser = Get-IpPbxUser -UserName "Hotline Vorlage"
Copy-IpPbxUserCallRouting -SourceUserEntry $templateUser -TargetUserEntry $CreatedUser -Overwrite -Confirm:$false


Add-IpPbxGroupMember -UserEntry $CreatedUser -GroupName "Vertrieb (810)"
Add-IpPbxGroupMember -UserEntry $CreatedUser -GroupName "Vertrieb EN (816)"
Add-IpPbxGroupMember -UserEntry $CreatedUser -GroupName "Vertrieb FR (815)"
Add-IpPbxGroupMember -UserEntry $CreatedUser -GroupName "Hotline (814)"
Add-IpPbxGroupMember -UserEntry $CreatedUser -GroupName "Hotline (818)"
Add-IpPbxGroupMember -UserEntry $CreatedUser -GroupName "Service (850)"

Link to comment
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
 Share


×
×
  • 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.