Subject: [Simple] <contact> URI in <tuple> of PUBLISH vs. 'To:' header in SUBSCRIBE

From: "Noga Tor" <[email-masked]>
Date: Tue, 2 May 2006 12:48:25 +0300

Hi

I wanted to know if the alias used in the "To:" part of the SUBSCRIBE
Request Header should be used in order to filter the different tuples of the
PUBLISH. In this case, only the tuples whose contact URI matches the URI
supplied in the "To:" of the subscribe will be sent in the notification.

For example: Presentity *'pres:[email-masked]' has published a
document, and watcher 'im:[email-masked]' subscribes to the im alias of the
presentity. what should the NOTIFY contain? see example:

PUBLISH
=======
PUBLISH sip:[email-masked] SIP/2.0
      Via: SIP/2.0/UDP pua.example.com;branch=z9hG4bK652hsge
      To: <sip:[email-masked]>
      From: <sip:[email-masked]>;tag=1234wxyz
      Call-ID: [email-masked]
      CSeq: 1 PUBLISH
      Max-Forwards: 70
      Expires: 3600
      Event: presence
      Content-Type: application/pidf+xml
      Content-Length: ...
<presence ... entity="pres:[email-masked]>
   <tuple id="ert4773">
   <status>
    <basic>open</basic>
   </status>
   <contact>im:[email-masked]</contact>
  </tuple>
  <tuple id="fhsdf8">
   <status>
    <basic>open</basic>
   </status>
   <contact>tel:[email-masked]</contact>
  </tuple>
</presence>

SUBSCRIBE
=========
  SUBSCRIBE sip:[email-masked] SIP/2.0
      Via: SIP/2.0/UDP host.example.com;branch=z9hG4bKnashds7
      To: <im:[email-masked]>
      From: <im:[email-masked]>;tag=12341234
      Call-ID: [email-masked]
      CSeq: 1 SUBSCRIBE
      Max-Forwards: 70
      Expires: 3600
      Event: presence
      Contact: sip:[email-masked]
      Content-Length: 0

HOW SHOULD THE NOTIFY BODY LOOK LIKE?  (Assuming policy allows all the
presence datato be shown)

OPTION 1
========
<presence ... entity="pres:[email-masked]>
    <tuple id="ert4773">
   <status>
    <basic>open</basic>
   </status>
   <contact>im:[email-masked]</contact>
  </tuple>
  <tuple id="fhsdf8">
   <status>
    <basic>open</basic>
   </status>
   <contact>tel:[email-masked]</contact>
  </tuple>
</presence>

 OPTION 2
========

<presence ... entity="pres:[email-masked]>    <tuple id="ert4773">
   <status>
    <basic>open</basic>
   </status>
   <contact>im:[email-masked]</contact>
  </tuple>
</presence>

Thanks
Noga
_______________________________________________
Simple mailing list
[email-masked]
https://www1.ietf.org/mailman/listinfo/simple