Hello,
"bind media source-interface" is not configured under "voice service voip" so CME chooses local SIP media interface based on route
to particular endpoint. This works correctly with CUCM and Asterisk.
While configuring SIP trunk media bypass with Lync 2013 I noticed that wrong interface is chosen, 192.168.126.230 is the Management interface.
SIP/2.0 183 Session Progress
.........
Contact: <sip:9XXXXXXX@192.168.126.230:5060;transport=tcp>
Supported: sdp-anat
Server: Cisco-SIPGateway/IOS-15.2.3.T2
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 267
v=0
o=CiscoSystemsSIP-GW-UserAgent 905 3964 IN IP4 192.168.126.230
s=SIP Call
c=IN IP4 192.168.126.230
t=0 0
m=audio 20628 RTP/AVP 8 13 101
c=IN IP4 192.168.126.230
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
In this case, Lync endpoint IP address is: 192.168.126.69.
sh ip route 192.168.126.69
Routing entry for 192.168.0.0/16, supernet
Known via "static", distance 1, metric 0
Routing Descriptor Blocks:
* 192.168.126.225
Route metric is 0, traffic share count is 1
interface GigabitEthernet0/2.830
description [ IP Telephony ]
encapsulation dot1Q 830
ip address 192.168.125.230 255.255.255.248
So, instead of 192.168.125.230 IP 192.168.126.230 is used.