Lync 2013 Outbound Calling Fails

Summary

Lync 2013 outbound calling fails due to edge server connectivity failure at Lync frontend:

In  SIPStack and client uccpapilog files:

SIP 503 on SIP Invite to tel uri with the following error in the SIP 503 Message:

System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.



In Mediation Server Logging the following error is recorded:


TL_ERROR(TF_COMPONENT) [8]7CF0.4510::10/02/2013-21:00:14.239.0000b25b (MediationServer,ApplyMediaLineWorkitemAsyncResult.IWorkitem.Process:gatewaymedia.cs(1237))[62018458]62018458Caught exception when applying media line: Microsoft.RTC.MediationServerCore.MediaException: GatewayStream Initialize error. ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: No primary servers configured
at Microsoft.Rtc.Internal.Media.RtpEndpoint.ConvertRTPConnectivityServerInfo(Collection`1 value, IceServerArray_t* pIceServerArray)
at Microsoft.Rtc.Internal.Media.RtpEndpoint.ValidateConnectivityServers(Collection`1 value)
at Microsoft.Rtc.Internal.Media.RtpEndpoint.set_ConnectivityServers(Collection`1 value)
at Microsoft.RTC.MediationServerCore.GatewayStream.BeginInitialize(ApplyMediaLineWorkitemAsyncResult applyMediaLineResultWorkitem, MSMediaLineDescription mLineDescription, Boolean bSdpLessRetargeting)
--- End of inner exception stack trace ---
at Microsoft.RTC.MediationServerCore.GatewayStream.BeginInitialize(ApplyMediaLineWorkitemAsyncResult applyMediaLineResultWorkitem, MSMediaLineDescription mLineDescription, Boolean bSdpLessRetargeting)
at Microsoft.RTC.MediationServerCore.GatewayMedia.ProcessApplyMediaLineWorkItem(List`1 mediaLines, ApplyMediaLineWorkitemAsyncResult applyMediaLineResultWorkitem, RetargetingSettings bRetargetingSettings, Dictionary`2& gatewayStreamToDescriptionDic)
at Microsoft.RTC.MediationServerCore.ApplyMediaLineWorkitemAsyncResult.Microsoft.Rtc.Collaboration.AudioVideo.IWorkitem.Process()NULL
TL_VERBOSE(TF_COMPONENT) [10]7CF0.4510::10/02/2013-21:00:14.257.0000b25c (MediationServer,MediaAsyncResultT<Ex>.Complete:asyncresult.cs(625))(0000000001BF4F80)<ApplyMediaLineWorkitemAsyncResult_1BF4F80> Owner: <null> Completing operation: Microsoft.RTC.MediationServerCore.ApplyMediaLineWorkitemAsyncResult, Exception: MediaException [Exception: Microsoft.RTC.MediationServerCore.MediaException
> Message: GatewayStream Initialize error.
> TargetSite: Void BeginInitialize(Microsoft.RTC.MediationServerCore.ApplyMediaLineWorkitemAsyncResult, Microsoft.RTC.MediationServerCore.MSMediaLineDescription, Boolean)
> StackTrace: at Microsoft.RTC.MediationServerCore.GatewayStream.BeginInitialize(ApplyMediaLineWorkitemAsyncResult applyMediaLineResultWorkitem, MSMediaLineDescription mLineDescription, Boolean bSdpLessRetargeting)
at Microsoft.RTC.MediationServerCore.GatewayMedia.ProcessApplyMediaLineWorkItem(List`1 mediaLines, ApplyMediaLineWorkitemAsyncResult applyMediaLineResultWorkitem, RetargetingSettings bRetargetingSettings, Dictionary`2& gatewayStreamToDescriptionDic)
at Microsoft.RTC.MediationServerCore.ApplyMediaLineWorkitemAsyncResult.Microsoft.Rtc.Collaboration.AudioVideo.IWorkitem.Process()
> Source: Microsoft.RTC.MediationServerCore
> HResult: -2146232832
Inner Exception: System.ArgumentOutOfRangeException
> Message: Specified argument was out of the range of valid values.
Parameter name: No primary servers configured
> ParamName: No primary servers configured
> TargetSite: Void ConvertRTPConnectivityServerInfo(System.Collections.ObjectModel.Collection`1[Microsoft.Rtc.Internal.Media.RtpConnectivityServerInfo], IceServerArray_t*)
> StackTrace: at Microsoft.Rtc.Internal.Media.RtpEndpoint.ConvertRTPConnectivityServerInfo(Collection`1 value, IceServerArray_t* pIceServerArray)
at Microsoft.Rtc.Internal.Media.RtpEndpoint.ValidateConnectivityServers(Collection`1 value)
at Microsoft.Rtc.Internal.Media.RtpEndpoint.set_ConnectivityServers(Collection`1 value)
at Microsoft.RTC.MediationServerCore.GatewayStream.BeginInitialize(ApplyMediaLineWorkitemAsyncResult applyMediaLineResultWorkitem, MSMediaLineDescription mLineDescription, Boolean bSdpLessRetargeting)
> Source: Microsoft.Rtc.Internal.Media
> HResult: -2146233086
]
TL_INFO(TF_COMPONENT) [10]7CF0.4510::10/02/2013-21:00:14.257.0000b25d (MediationServer,MediaAsyncResultT<Ex>.MakeCallback:asyncresult.cs(696))(0000000001BF4F80)<ApplyMediaLineWorkitemAsyncResult_1BF4F80> Owner: <null> External callback=<AsyncCallback_3AEDE20>
TL_VERBOSE(TF_COMPONENT) [10]7CF0.4510::10/02/2013-21:00:14.257.0000b25e (MediationServer,GatewayCall.FinishApplyMediaLineDescriptions:gatewaycall.cs(1093))[62018458]62018458Complete applying media line descriptions, result: CompletedWithNonBWErrors.NULL
TL_ERROR(TF_PROTOCOL) [10]7CF0.4510::10/02/2013-21:00:14.257.0000b25f (MediationServer,GatewayCall.FinishApplyMediaLineDescriptions:gatewaycall.cs(1116))[62018458]62018458Media stack failed gateway side endpoint allocation because of a non-bandwidth related issue.NULL
TL_ERROR(TF_COMPONENT) [10]7CF0.4510::10/02/2013-21:00:14.257.0000b260 (MediationServer,GatewayCall.FinishApplyMediaLineDescriptions:gatewaycall.cs(1612))[62018458]62018458Exception: System.Exception: An exception has been thrown in processing BeginApplyMediaLines ---> Microsoft.RTC.MediationServerCore.MediaException: GatewayStream Initialize error. ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: No primary servers configured
at Microsoft.Rtc.Internal.Media.RtpEndpoint.ConvertRTPConnectivityServerInfo(Collection`1 value, IceServerArray_t* pIceServerArray)
at Microsoft.Rtc.Internal.Media.RtpEndpoint.ValidateConnectivityServers(Collection`1 value)
at Microsoft.Rtc.Internal.Media.RtpEndpoint.set_ConnectivityServers(Collection`1 value)
at Microsoft.RTC.MediationServerCore.GatewayStream.BeginInitialize(ApplyMediaLineWorkitemAsyncResult applyMediaLineResultWorkitem, MSMediaLineDescription mLineDescription, Boolean bSdpLessRetargeting)
--- End of inner exception stack trace ---
at Microsoft.RTC.MediationServerCore.GatewayStream.BeginInitialize(ApplyMediaLineWorkitemAsyncResult applyMediaLineResultWorkitem, MSMediaLineDescription mLineDescription, Boolean bSdpLessRetargeting)
at Microsoft.RTC.MediationServerCore.GatewayMedia.ProcessApplyMediaLineWorkItem(List`1 mediaLines, ApplyMediaLineWorkitemAsyncResult applyMediaLineResultWorkitem, RetargetingSettings bRetargetingSettings, Dictionary`2& gatewayStreamToDescriptionDic)
at Microsoft.RTC.MediationServerCore.ApplyMediaLineWorkitemAsyncResult.Microsoft.Rtc.Collaboration.AudioVideo.IWorkitem.Process()
--- End of inner exception stack trace ---
at Microsoft.RTC.MediationServerCore.GatewayCall.FinishApplyMediaLineDescriptions(IAsyncResult ar)NULL

Workaround

Configure Lync 2013 for Enterprise Voice. Configure and Edge Pool but do not create a DNS entry for the edge pool or block required ports to edge from the frontend. Exception and 503 message will be generated.
Properties

Article ID: 2985850 - Last Review: 23 Jul 2014 - Revision: 1

Feedback