usmmsupport
asked on
Lync 2010, Enabling SipServerTCPPort on 5060 not working
We get the following error when running the command 'set-csregistrar registrar:fqdn -sipservertcpport 5060" the current setting of this variable is null (blank) according to get-csservice -registrar. Here is the full error :
PS C:\Users\trichert> set-csregistrar -Identity Registrar:corplync01.corp. usmmll
c.com -SipServerTcpPort 5060
Set-CsRegistrar : GruuType must have a length of at least 1.
At line:1 char:16
+ set-csregistrar <<<< -Identity Registrar:corplync01.corp. usmmllc.co m -SipSer
verTcpPort 5060
+ CategoryInfo : InvalidArgument: (Registrar:corplync01.corp .usmm
llc.com:String) [Set-CsRegistrar], PropertyArgumentOutOfRange Exception
+ FullyQualifiedErrorId : InvalidUpdate,Microsoft.Rt c.Manageme nt.Xds.Set Re
gistrarCmdlet
PS C:\Users\trichert> set-csregistrar -Identity Registrar:corplync01.corp.
c.com -SipServerTcpPort 5060
Set-CsRegistrar : GruuType must have a length of at least 1.
At line:1 char:16
+ set-csregistrar <<<< -Identity Registrar:corplync01.corp.
verTcpPort 5060
+ CategoryInfo : InvalidArgument: (Registrar:corplync01.corp
llc.com:String) [Set-CsRegistrar], PropertyArgumentOutOfRange
+ FullyQualifiedErrorId : InvalidUpdate,Microsoft.Rt
gistrarCmdlet
hmm. Try the above script, but your code worked on my test server (using my pool FQDN). Interesting. It may still need quotes though because of the naming convention.
PS C:\Users\trichert> set-csregistrar -Identity "Registrar:corplync01.corp .usmmll
c.com" -SipServerTcpPort 5060
This may be a better options as the SipServerTCPPort fxn may be different than SipPort
c.com" -SipServerTcpPort 5060
This may be a better options as the SipServerTCPPort fxn may be different than SipPort
ASKER
djjack -- No, SIPPort is very different from SIPServerTcpPort
I've tried it with the " and with the -Identity, I get the same exact error. If i change the 5060 to $false, i get "You must specify a number greater than 1" so it is parsing the command ok.
I've tried it with the " and with the -Identity, I get the same exact error. If i change the 5060 to $false, i get "You must specify a number greater than 1" so it is parsing the command ok.
True. I didn't see sipservertcpport in the csregistrar cmdlet list. Where did you find it? Can it be done in the console?
ASKER
NAME
Set-CsRegistrar
SYNOPSIS
Enables you to modify the properties of one or more Registrars. Registrars
are used to authenticate logon requests, and to maintain information about
user status and availability.
SYNTAX
Set-CsRegistrar [-Identity <XdsGlobalRelativeIdentity >] [-ArchivingServer <
String>] [-BackupRegistrar <String>] [-Confirm [<SwitchParameter>]] [-EdgeS
erver <String>] [-EnableAutomaticFailover <$true | $false>] [-FailbackDetec
tionInterval <TimeSpan>] [-FailureDetectionInterval <TimeSpan>] [-Force <Sw
itchParameter>] [-MonitoringServer <String>] [-Registrar <String>] [-SipHea
lthPort <UInt16>] [-SipPort <UInt16>] [-SipServerTcpPort <UInt16>] [-UserSe
rver <String>] [-WebPort <UInt16>] [-WebServer <String>] [-WhatIf [<SwitchP
arameter>]] [<CommonParameters>]
It is there ;) I don't know if it can be done from the GUI, if it can I don't know how ..
Set-CsRegistrar
SYNOPSIS
Enables you to modify the properties of one or more Registrars. Registrars
are used to authenticate logon requests, and to maintain information about
user status and availability.
SYNTAX
Set-CsRegistrar [-Identity <XdsGlobalRelativeIdentity
String>] [-BackupRegistrar <String>] [-Confirm [<SwitchParameter>]] [-EdgeS
erver <String>] [-EnableAutomaticFailover <$true | $false>] [-FailbackDetec
tionInterval <TimeSpan>] [-FailureDetectionInterval
itchParameter>] [-MonitoringServer <String>] [-Registrar <String>] [-SipHea
lthPort <UInt16>] [-SipPort <UInt16>] [-SipServerTcpPort <UInt16>] [-UserSe
rver <String>] [-WebPort <UInt16>] [-WebServer <String>] [-WhatIf [<SwitchP
arameter>]] [<CommonParameters>]
It is there ;) I don't know if it can be done from the GUI, if it can I don't know how ..
Thanks for the training. I have never used that cmdlet before, I had never even heard of it until you brought it up so thanks for the education.
So if you do Get-CSService does anything show up there or is it still null?
So if you do Get-CSService does anything show up there or is it still null?
OK let's try it stepwise....
1. Use set-csregistrar "Registrar:corplync01.corp .usmmllc.c om" and see if you get an error. That way you know, like you mentioned before, that it is parsing the cmdlet.
2. If you don't get an error try.
set-csregistrar "Registrar:corplync01.corp .usmmllc.c om" -SipServerTcpPort 5060
It may just be a syntax issue but the Gruu Type message is troublseome. If I understand GRUU correct,it is basically a way to route information to a User Agent for SIP traffic. If you still get that error, that wil be the next step to hurdle.
Just thinking over chat here but..... GRUU attaches to a UA, or user agent, per device. What if some of the devices won't take unencrytped traffic. hmmm. This is a good one.
Let me know how the testing of the above steps go and we can see if we can work through each part.
1. Use set-csregistrar "Registrar:corplync01.corp
2. If you don't get an error try.
set-csregistrar "Registrar:corplync01.corp
It may just be a syntax issue but the Gruu Type message is troublseome. If I understand GRUU correct,it is basically a way to route information to a User Agent for SIP traffic. If you still get that error, that wil be the next step to hurdle.
Just thinking over chat here but..... GRUU attaches to a UA, or user agent, per device. What if some of the devices won't take unencrytped traffic. hmmm. This is a good one.
Let me know how the testing of the above steps go and we can see if we can work through each part.
ASKER
so if i do set-csregistrar registrar:corplync01.corp. usmmllc.co m -sipport 5060 , it works and changes the sipport (i changed it back as i dont want this changed) its on when trying to do the -sipservertcpport that it errors.
Is there a way to look at the cmdlet itself to see what it is trying to do? Is there a ps1 file somewhere with the cmdlet in it?
Is there a way to look at the cmdlet itself to see what it is trying to do? Is there a ps1 file somewhere with the cmdlet in it?
ok, try changing the SipServerTcpPort to another port other than 5060. maybe there is a sharing issue? You can always turn it off with -SipServerTcpPort $false.
ASKER
nope i tried 50 different ports between 1 and 65000 they all give the same error, and in fact if i use $false i get a different error :
Set-CsRegistrar : PortValue must be greater than or equal to 1.
Set-CsRegistrar : PortValue must be greater than or equal to 1.
The reason you are getting that error is becuase the value is already null, so it is expecting a value of 1 or higher. I still can't exaplin why you are getting the GruuType message.
I have tried to look into seeing the cmdlet itself but can't find much there. There are ps11 files located under common files\microsoft Lync Server 2010\modules\Lync but I don't know how much help these are going to be.
I have tried to look into seeing the cmdlet itself but can't find much there. There are ps11 files located under common files\microsoft Lync Server 2010\modules\Lync but I don't know how much help these are going to be.
man I am at a loss here. One other thing you can check is the services ont he servers. Go to Control Panel and Topology and make sure thos are ok.
After that the only thing I can thing of is that there is an issue somewhere else. Are you using devices?
After that the only thing I can thing of is that there is an issue somewhere else. Are you using devices?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try
PS C:\Users\trichert> set-csregistrar -Identity "Registrar:corplync01.corp
c.com" -SipPort 5060
Here is a link to the Syntax