Author Posts

January 1, 2012 at 12:00 am

by Hamish at 2013-02-18 17:39:19

Hi There,

Just adding my enterprise voice configuration for Lync 2013 in a very simple PS script, but one thing I'm wondering is am I able to add 2 PSTNGateways at the same time to a voice route via the -PSTNGatewaylist method?
I know you can do this:
New-CsVoiceRoute -Identity 'Local-FailoverRT' -Description 'DR route' -PstnGatewayList 'PstnGateway:' -PstnUsage 'Local-FailoverPU' -NumberPattern '^\+647'
Set-CsVoiceRoute -Identity 'Local-FailoverRT' -PSTNGatewayList @{add='
'}

But I thought I must be able to specify more than one gateway when doing this other than copying a new line?

Is that possible? (Believe it or not I have nothing to test on, and I can't find anyone that has tried to do this on the internet.

Cheers!

by DonJ at 2013-02-19 04:57:31

Looking at the help for the command, it does not seem to accept multiple values.

by Hamish at 2013-02-19 12:45:22

Thanks Don! 🙂
I just ended up putting an extra line in to add the additional gateway.