title: How to get "both" subscription type in openfire
body: <p>I am developing a simple android chat application.I am creating three users using asmack one by one
  and also providing roster entries at creation time using 
  <strong>roster.createEntry()</strong>; method</p>
  
  <p>first of all i create </p>
  
  <p>1.) user <strong>111</strong> with two roster entries <strong>(JID=222@localhost.localdomain,JID=333@localhost.localdomain)</strong></p>
  
  <p>then I create second user</p>
  
  <p>2.)user <strong>222</strong> with two roster entries <strong>(JID=111@localhost.localdomain,JID=333@localhost.localdomain)</strong></p>
  
  <p>then I create user 333</p>
  
  <p>3.) <strong>333</strong> with two roster entries <strong>(JID=111@localhost.localdomain,JID=222@localhost.localdomain)</strong></p>
  
  <p>here when I see roster entries of all three users then </p>
  
  <p><strong>for user 111</strong></p>
  
  <p>Subscription type for</p>
  
  <pre><code>                  JID=222@localhost.localdomain : "from"
  
                    JID=333@localhost.localdomain : "from"
  </code></pre>
  
  <p><strong>for user 222</strong></p>
  
  <p>Subscription type for </p>
  
  <pre><code>                  JID=111@localhost.localdomain : "to"
  
                    JID=333@localhost.localdomain : "from"
  </code></pre>
  
  <p><strong>for user 333</strong></p>
  
  <p>Subscription type for </p>
  
  <pre><code>                  JID=111@localhost.localdomain : "to"
  
                    JID=222@localhost.localdomain : "to"
  </code></pre>
  
  <p>So my problem is although all three users are online But the Presence is as follow</p>
  
  <p>a.)  111 is "available" for 222 and 333</p>
  
  <p>b.)  222 is "available" for only 333</p>
  
  <p>c.)  333 is not available for any user</p>
  
  <p>clearly this is due to "from" status .But I want that as all are online and all are added into each others roster list, so I need subscription status "both" for all three users roster list.So they will be "available" for each other if they are online.</p>
  
  <p>Please help me how can I achieve this.</p>