Record routes in SUBSCRIBE is not honored in NOTIFY, In my case i am having 3 record routes in SUBSCRIBE, but only one i.e top record route is used for NOTIFY is causing routing issue. I am using freeswitch version 1.6.17 for testing.
SUBSCRIBE sip:500@52.64.221.219:5060;transport=tcp SIP/2.0
Record-Route: <sip:10.1.30.27:5060;transport=tcp;ftag=46baee66;lr>
Record-Route: <sip:10.1.30.174;transport=tcp;r2=on;lr=on>
Record-Route: <sip:10.1.30.178:5061;transport=tls;r2=on;lr=on>
Via: SIP/2.0/TCP 10.1.30.199;branch=z9hG4bKc038.62a9c22ab84694b453503a45210a1392.0;i=1
Via: SIP/2.0/TCP 10.1.30.174;branch=z9hG4bKc038.8d466a0ae4f1821a3f0d08e6602cdadc.0;i=82
Via: SIP/2.0/TLS 10.1.30.146:51890;received=10.1.30.146;rport=51890;branch=z9hG4bKd1633fda00007
CSeq: 1805684444 SUBSCRIBE
Max-Forwards: 69
Contact: "RamanTest"<sip:ramantest@10.1.30.146:51890;transport=tls>
User-Agent: TestConference
Event: conference
Expires: 3600
Allow: INVITE,ACK,BYE,CANCEL,REFER,NOTIFY,OPTIONS,PRACK,UPDATE,INFO,MESSAGE,SUBSCRIBE,PUBLISH
Allow-Events: refer, presence
Supported: replaces, timer, gruu, join
Date: Tue, 13 Jun 2017 08:24:00 GMT
Content-Length: 0
##
SIP/2.0 202 Accepted
Via: SIP/2.0/TCP 10.1.30.199;branch=z9hG4bKc038.62a9c22ab84694b453503a45210a1392.0;i=1;received=10.1.30.27;rport=55503
Via: SIP/2.0/TCP 10.1.30.174;branch=z9hG4bKc038.8d466a0ae4f1821a3f0d08e6602cdadc.0;i=82
Via: SIP/2.0/TLS 10.1.30.146:51890;received=10.1.30.146;rport=51890;branch=z9hG4bKd1633fda00007
Record-Route: <sip:10.1.30.27:5060;transport=tcp;ftag=46baee66;lr>
Record-Route: <sip:10.1.30.174;transport=tcp;r2=on;lr=on>
Record-Route: <sip:10.1.30.178:5061;transport=tls;r2=on;lr=on>
CSeq: 1805684444 SUBSCRIBE
Contact: <sip:500@52.64.221.219:5060;transport=tcp>
Expires: 3600
User-Agent: FreeSWITCH-mod_sofia/1.6.17~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Subscription-State: active;expires=3600
Content-Length: 0
####
NOTIFY sip:ramantest@10.1.30.146:51890;transport=tls SIP/2.0
Via: SIP/2.0/TCP 52.64.221.219;rport;branch=z9hG4bKvr9Kyp8Fe829g
Max-Forwards: 70
CSeq: 705660701 NOTIFY
Contact: <sip:500@52.64.221.219:5060;transport=tcp>;isfocus
User-Agent: FreeSWITCH-mod_sofia/1.6.17~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Event: conference
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Subscription-State: active;expires=3600
Content-Type: application/conference-info+xml
Content-Length: 1028
<?xml version="1.0"?>
<conference-info version="1" state="full" xmlns="urn:ietf:params:xml:ns:conference-info" entity="
sip:500@freeconf.com">
<conference-description>
<display-text>FreeSWITCH Conference</display-text>
<conf-uris>
<entry>
</entry>
</conf-uris>
</conference-description>
<conference-state>
<user-count>1</user-count>
<active>true</active>
</conference-state>
<users>
<display-text>RamanTest</display-text>
<display-text>RamanTest</display-text>
<status>connected</status>
<joining-info>
<when>2017-06-13T08:20:13+00:00</when>
</joining-info>
<media id="2a">
<type>audio</type>
<src-id>4048072604</src-id>
<status>sendrecv</status>
</media>
</endpoint>
</user>
</users>
</conference-info>