### Client sends SUBSCRIBE to Proxy U 2009/03/23 17:52:41.385603 PHONE_IP:5060 -> PROXY_IP_PORT SUBSCRIBE sip:client200@mydomain.org SIP/2.0 Via: SIP/2.0/UDP 10.134.19.231:5060;branch=z9hG4bK-7893680 From: "Linksys 962" ;tag=3d066da577829dd8 To: Call-ID: f96f7f69-72a516e4@10.134.19.231 CSeq: 43407 SUBSCRIBE Max-Forwards: 70 Proxy-Authorization: Digest username="client202",realm="mydomain.org",nonce="49c7be77000000070eb041a3fbbe5cabf1d180e9b88d2013",uri="sip:client200@mydomain.org",algorithm=MD5,response="7dd32e0a30c3e7f0d98caadfe0d04389",qop=auth,nc=00000001,cnonce="9c8078ac" Contact: "Linksys 962" Accept: application/dialog-info+xml Expires: 60 Event: dialog User-Agent: Linksys/SPA962-6.1.3(a) Content-Length: 0 ### Proxy routes SUBSCRIBE to Asterisk adding Record-Route U 2009/03/23 17:52:41.386325 PROXY_IP_PORT -> ASTERISK_IP_PORT SUBSCRIBE sip:client200@ASTERISK_IP_PORT SIP/2.0 Record-Route: Via: SIP/2.0/UDP 222.111.19.45;branch=z9hG4bKe679.469107f5.0 Via: SIP/2.0/UDP 10.134.19.231:5060;rport=5060;received=PHONE_IP;branch=z9hG4bK-7893680 From: "Linksys 962" ;tag=3d066da577829dd8 To: Call-ID: f96f7f69-72a516e4@10.134.19.231 CSeq: 43407 SUBSCRIBE Max-Forwards: 69 Contact: "Linksys 962" Accept: application/dialog-info+xml Expires: 60 Event: dialog User-Agent: Linksys/SPA962-6.1.3(a) Content-Length: 0 ### Asterisk replies 200 and mirrors Record-Route in the reply (correct) U 2009/03/23 17:52:41.386683 ASTERISK_IP_PORT -> PROXY_IP_PORT SIP/2.0 200 OK Via: SIP/2.0/UDP 222.111.19.45;branch=z9hG4bKe679.469107f5.0;received=222.111.19.45 Via: SIP/2.0/UDP 10.134.19.231:5060;rport=5060;received=PHONE_IP;branch=z9hG4bK-7893680 Record-Route: From: "Linksys 962" ;tag=3d066da577829dd8 To: ;tag=as123c0553 Call-ID: f96f7f69-72a516e4@10.134.19.231 CSeq: 43407 SUBSCRIBE User-Agent: Asterisk Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Supported: replaces Expires: 60 Contact: ;expires=60 Content-Length: 0 ### Proxy routes teh 200 to the Client U 2009/03/23 17:52:41.387546 PROXY_IP_PORT -> PHONE_IP:5060 SIP/2.0 200 OK Via: SIP/2.0/UDP 10.134.19.231:5060;rport=5060;received=PHONE_IP;branch=z9hG4bK-7893680 Record-Route: From: "Linksys 962" ;tag=3d066da577829dd8 To: ;tag=as123c0553 Call-ID: f96f7f69-72a516e4@10.134.19.231 CSeq: 43407 SUBSCRIBE User-Agent: Asterisk Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Supported: replaces Expires: 60 Contact: ;expires=60 Content-Length: 0 ### Asterisk sends an in-dialog NOTIFY but doesn't add Route headers (wrong!!!) U 2009/03/23 17:52:41.386738 ASTERISK_IP_PORT -> PROXY_IP_PORT NOTIFY sip:client202@PHONE_IP:5060 SIP/2.0 Via: SIP/2.0/UDP ASTERISK_IP_PORT;branch=z9hG4bK19ea1e04;rport From: ;tag=as123c0553 To: "Linksys 962" ;tag=3d066da577829dd8 Contact: Call-ID: f96f7f69-72a516e4@10.134.19.231 CSeq: 102 NOTIFY User-Agent: Asterisk Max-Forwards: 70 Event: dialog Content-Type: application/dialog-info+xml Subscription-State: active Content-Length: 231 terminated ### The proxy refuses this NOTIFY since it has To_tag but no Route headers (correct behaviour in the proxy) U 2009/03/23 17:52:41.388205 PROXY_IP_PORT -> ASTERISK_IP_PORT SIP/2.0 403 To_tag but no loose routing, not here! Via: SIP/2.0/UDP ASTERISK_IP_PORT;branch=z9hG4bK19ea1e04;rport=5070 From: ;tag=as123c0553 To: "Linksys 962" ;tag=3d066da577829dd8 Call-ID: f96f7f69-72a516e4@10.134.19.231 CSeq: 102 NOTIFY Server: Kamailio (1.5.0-notls (x86_64/linux)) Content-Length: 0