09-19-2011 10:39 PM - edited 03-15-2019 05:19 AM
I've been trying to integrate a Lync server with a Cisco CUCM using a Direct SIP trunk. The key word there is trying.
I followed the Microsoft document for the integration of Lync with Cisco 8.5. See attached file.
When I dial from the callmanager to the Lync, I see the traffic, I get the following error on the Lync Server.
TL_INFO(TF_PROTOCOL) [0]08E0.1794::09/19/2011-17:13:51.606.000108cc (SIPStack,SIPAdminLog::TraceProtocolRecord:SIPAdminLog.cpp(125))$$begin_record
Trace-Correlation-Id: 1854706246
Instance-Id: 00002C96
Direction: outgoing;source="local"
Peer: 172.16.200.100:60097
Message-Type: response
Start-Line: SIP/2.0 401 Unauthorized
From: <sip:8004@172.16.200.100>;tag=1055~2248b267-7874-4b2e-9b0f-b9e83134f64b-30262725
To: <sip:+19105557111@172.16.200.141>;tag=BC185DA828677767E1FE2F280D0D7FA3
CSeq: 101 INVITE
Call-ID:
38bb7180-e7713cb8-58-64c810ac@172.16.200.100
Date: Mon, 19 Sep 2011 17:13:51 GMT
WWW-Authenticate: NTLM realm="SIP Communications Service", targetname="WIN2008LYNC.ncnetworkers.com", version=4
WWW-Authenticate: Kerberos realm="SIP Communications Service", targetname="sip/WIN2008LYNC.ncnetworkers.com", version=4
WWW-Authenticate: TLS-DSK realm="SIP Communications Service", targetname="WIN2008LYNC.ncnetworkers.com", version=4, sts-uri="
https://WIN2008Lync.ncnetworkers.com:443/CertProv/CertProvisioningService.svc
"
Via: SIP/2.0/TCP 172.16.200.100:5060;branch=z9hG4bK58428bf502;ms-received-port=60097;ms-received-cid=CDB00
Server: RTC/4.0
Content-Length: 0
Message-Body: –
$$end_record
403 Forbidden
ms-diagnostics: 12004;reason="The user is not authorized to call the specified number.";source="LyncServer.mydomain.local";appName="OutboundRouting";OriginalPresenceState="0";CurrentPresenceState="0";MeInsideUser="Yes";ConversationInitiatedBy="0";SourceNetwork
TL_INFO(TF_PROTOCOL) [0]08E0.1794::09/19/2011-17:13:51.606.000108cc (SIPStack,SIPAdminLog::TraceProtocolRecord:SIPAdminLog.cpp(125))$$begin_record
Trace-Correlation-Id: 1854706246
Instance-Id: 00002C96
Direction: outgoing;source="local"
Peer: 172.16.200.100:60097
Message-Type: response
Start-Line: SIP/2.0 401 Unauthorized
From: <sip:8004@172.16.200.100>;tag=1055~2248b267-7874-4b2e-9b0f-b9e83134f64b-30262725
To: <sip:+19105557111@172.16.200.141>;tag=BC185DA828677767E1FE2F280D0D7FA3
CSeq: 101 INVITE
Call-ID: 38bb7180-e7713cb8-58-64c810ac@172.16.200.100
Date: Mon, 19 Sep 2011 17:13:51 GMT
WWW-Authenticate: NTLM realm="SIP Communications Service", targetname="WIN2008LYNC.ncnetworkers.com", version=4
WWW-Authenticate: Kerberos realm="SIP Communications Service", targetname="sip/WIN2008LYNC.ncnetworkers.com", version=4
WWW-Authenticate: TLS-DSK realm="SIP Communications Service", targetname="WIN2008LYNC.ncnetworkers.com", version=4, sts-uri="https://WIN2008Lync.ncnetworkers.com:443/CertProv/CertProvisioningService.svc"
Via: SIP/2.0/TCP 172.16.200.100:5060;branch=z9hG4bK58428bf502;ms-received-port=60097;ms-received-cid=CDB00
Server: RTC/4.0
Content-Length: 0
Message-Body: –
$$end_record
On the Lync client side I get a different error:
403 Forbidden
ms-diagnostics: 12004;reason="The user is not authorized to call the specified number.";source="LyncServer.mydomain.local";appName="OutboundRouting";OriginalPresenceState="0";CurrentPresenceState="0";MeInsideUser="Yes";ConversationInitiatedBy="0";SourceNetwork..
I can't make nor receive a call on either side of the trunk. However, I have no issues calling from within each domain, Lync and Cisco.
Any help would be greatly appreciated,
Thanks,
Mitch
10-06-2011 01:25 PM
did you find a solution ?
10-06-2011 08:47 PM
No I didn't. I haven't had the time to go any further into this issue. I do hope that the next few weeks provide me ith a bit of time to delve a bit deeper into this problem.
If/when I do sort this out, I will post the solution here.
04-06-2012 09:25 AM
I ran into this same issue and found that by default Lync requires encryption and does not support SRTP with Cisco.
You should run the following commands on the Lync Server's -- Run As Administrator Lync Power Shell Window....
There are three parameters that need to be configured through the Windows PowerShell® command line interface because they are not configurable on Lync Server Control Panel:
Set-CsTrunkConfiguration –identity
Set-CsTrunkConfiguration –identity
Set-CsMediaConfiguration –identity Global -EncryptionLevel SupportEncryption
After this command is run please make sure and use 5068 as Mediation Server listening port if Co Located.... and of course make sure Mediation Server Service is running via the Control Panel on Lync.
Hope this helps!
Chris
07-17-2012 07:56 AM
same issue here... CUCM8.6 and LYNC 2010 and there is no way to set up a sip trunk. on the sip trunk in CUCM - which port are you using (5060 or 5068).
Has anyone else fixed this problem?
07-17-2012 10:39 AM
Yes this can be done.... use the intruction above to turn off SRTP
5068 should be the listening port on CUCM ...if Lync Mediation is coexisted then this should not be changed.
Let me know if this helps!
The doc listed below have all the info needed.
http://tech.rundtomrundt.com/2010/11/microsoft-lync-server-2010-with-cucm-8.html
You should run the following commands on the Lync Server's -- Run As Administrator Lync Power Shell Window....
There are three parameters that need to be configured through the Windows PowerShell® command line interface because they are not configurable on Lync Server Control Panel:
Set-CsTrunkConfiguration –identity
Set-CsTrunkConfiguration –identity
Set-CsMediaConfiguration –identity Global -EncryptionLevel SupportEncryption
After this command is run please make sure and use 5068 as Mediation Server listening port if Co Located.... and of course make sure Mediation Server Service is running via the Control Panel on Lync.
Hope this helps!
Chris
08-24-2012 03:59 AM
I’m trying to set this up and have a strange issue.
Calls from Lync into CUCM work fine. However calls from CUCM to Lync fail (busy tone).
When I pull the RTMT logs I can see a DigitAnalysis for the call but no real SIP messages (as far as I can tell). Also the logging on the Lync side does not see any SIP messages coming in.
Any ideas?
Thanks in advance.
Matt
09-26-2012 07:32 AM
I'm running into the same issue as mmoulson1. Calls from CUCM Sip phone such as 9971 model to Lync get a fast busy tone. However, SCCP phones and Sip phones model 7945 is able to call to Lync fine. My initial though would be the trunk need enable early offer or required MTP settings. When I try to enable early offer I would get the reorder tone so now I'm just going through the logs. Anyone having this issue and can suggest a quick fix?
09-26-2012 07:39 AM
Hi khanhluu82,
We ended up pushing the calls between CUCM & Lync via our CUBE router.
We did open a TAC case but that was not much help!
Matty
Have a look at this:
http://voipnorm.blogspot.co.uk/2011/05/important-settings-to-know-when.html
09-26-2012 09:09 AM
I fixed it on our site :-)
the problem was, that i just added one server as sip destination on lync site, but we are running a cluster, and the phones have been connected to the other server.. I've added the subscriber to the trunk and everything was fine.
09-27-2012 06:59 AM
Figured out my issue with the sip phones 9971, 9951, and 8961. It was the firmware 9.3(1) that was causing the calls to Lync failed. I don't have time to troubleshoot the problem so all I did was to revert the phone back to firmware 9-2-1.
Khanh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide