Hi Anca<br>I am using 1.5.1 version of opensips and I have pua_xmpp_req_winfo call in my cfg file. I get NOTIFY for Watcher Info with the watcherinfo+xml payoad. But there is no presence state communication sent from Jabber2 server to opensips. Did you look at the debug output document that I sent you ?. That should have it all.<br>
<br>Here is my config file.<br><br><br># main request routing logic<br><br>route{<br><br>        # initial sanity checks -- messages with<br>        # max_forwards==0, or excessively long requests<br>        if (!mf_process_maxfwd_header(&quot;10&quot;)) {<br>
                sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;);<br>                exit;<br>        };<br><br>        #if (msg:len &gt;=  2048 ) {<br>        #       sl_send_reply(&quot;513&quot;, &quot;Message too big&quot;);<br>
        #       exit;<br>        #};<br><br>        # we record-route all messages -- to make sure that<br>        # subsequent messages will go through our proxy; that&#39;s<br>        # particularly good if upstream and downstream entities<br>
        # use different transport protocol<br>        if (!method==&quot;REGISTER&quot;)<br>                record_route();<br><br>        # subsequent messages withing a dialog should take the<br>        # path determined by record-routing<br>
        if (loose_route()) {<br>                # mark routing logic in request<br>                append_hf(&quot;P-hint: rr-enforced\r\n&quot;);<br>                route(1);<br>        };<br>        if(method == &quot;INVITE&quot;)<br>
                setflag(5);<br><br>        if( uri=~&quot;<a href="mailto:sip%3A.%2B@sip-xmpp.smithmicro.com">sip:.+@sip-xmpp.smithmicro.com</a>&quot; ||<br>                 uri=~&quot;<a href="mailto:sip%3A.%2B@sip-xmpp.smithmicro.com">sip:.+@sip-xmpp.smithmicro.com</a>&quot; ||<br>
                 uri=~&quot;<a href="mailto:sip%3A.%2B@sips01.smithmicro.com">sip:.+@sips01.smithmicro.com</a>&quot;)<br>        {<br>                if( is_method(&quot;PUBLISH|SUBSCRIBE|NOTIFY&quot;))<br>                        route(2);<br>
        }<br><br>        if( uri=~&quot;<a href="mailto:sip%3A.%2B@sip-xmpp.smithmicro.com">sip:.+@sip-xmpp.smithmicro.com</a>&quot;)<br>        {<br>                # absorb retransmissions ###<br>                if (!t_newtran()) {<br>
                        sl_reply_error();<br>                        return;<br>                }<br>        if (method == &quot;MESSAGE&quot;) {<br>                        log(&quot;*** xmpp-handled MESSAGE message.\n&quot;);<br>
                        if (xmpp_send_message()) {<br>                                t_reply(&quot;200&quot;, &quot;Accepted&quot;);<br>                        } else {<br>                                t_reply(&quot;404&quot;, &quot;Not found&quot;);<br>
                        }<br>                        return;<br>                }else {<br>                        t_reply(&quot;403&quot;,&quot;not supported&quot;);<br>                        exit;<br>                }<br>
<br>        }<br><br>        if (!uri==myself) {<br>                # mark routing logic in request<br>                append_hf(&quot;P-hint: outbound\r\n&quot;);<br>                # if you have some interdomain connections via TLS<br>
                #if(uri=~&quot;@<a href="http://tls_domain1.net">tls_domain1.net</a>&quot;) {<br>                #       t_relay(&quot;tls:<a href="http://domain1.net">domain1.net</a>&quot;);<br>                #       exit;<br>
                #} else if(uri=~&quot;@<a href="http://tls_domain2.net">tls_domain2.net</a>&quot;) {<br>                #       t_relay(&quot;tls:<a href="http://domain2.net">domain2.net</a>&quot;);<br>                #       exit;<br>
                #}<br>                route(1);<br>        };<br><br>        # if the request is for other domain use UsrLoc<br>        # (in case, it does not work, use the following command<br>        # with proper names and addresses in it)<br>
        if (uri==myself) {<br><br>                if( is_method(&quot;PUBLISH|SUBSCRIBE|NOTIFY&quot;))<br>                        route(2);<br><br>                if (method==&quot;REGISTER&quot;) {<br><br>                        if (!www_authorize(&quot;&quot;, &quot;subscriber&quot;))<br>
                        {<br>                                www_challenge(&quot;&quot;, &quot;0&quot;);<br>                                exit;<br>                        }<br><br>                        if (!check_to())<br>
                        {<br>                                sl_send_reply(&quot;403&quot;,&quot;Forbidden auth ID&quot;);<br>                                exit;<br>                        }<br><br>                        if (!save(&quot;location&quot;))<br>
                                sl_reply_error();<br><br>                        exit;<br>                };<br><br>                # native SIP destinations are handled using our USRLOC DB<br>                if (!lookup(&quot;location&quot;)) {<br>
                        sl_send_reply(&quot;404&quot;, &quot;Not Found&quot;);<br>                        exit;<br>                };<br>                append_hf(&quot;P-hint: usrloc applied\r\n&quot;);<br>        };<br>
<br>        route(1);<br>}<br><br>route[1] {<br>        # send it out now; use stateful forwarding as it works reliably<br>        # even for UDP2TCP<br>        if (!t_relay()) {<br>                sl_reply_error();<br>        };<br>
        exit;<br>}<br><br>route[2]<br>{<br>        if ( !t_newtran() ){<br>        sl_reply_error();<br>        exit;<br>     };<br><br>        if( is_method(&quot;NOTIFY&quot;) &amp;&amp; uri=~&quot;<a href="mailto:sip%3A.%2B@sip-xmpp.smithmicro.com">sip:.+@sip-xmpp.smithmicro.com</a>&quot;){<br>
                pua_xmpp_notify();<br>                t_reply(&quot;200&quot;, &quot;OK&quot;);<br>                exit;<br>        }<br><br>        if(is_method(&quot;PUBLISH&quot;)){<br>                handle_publish();<br>
                #t_release();<br>                /* the call to t_release is no longer needed in 1.5 */<br>        }<br>        else<br>        if( is_method(&quot;SUBSCRIBE&quot;)){<br>                handle_subscribe();<br>
                if( uri=~&quot;<a href="mailto:sip%3A.%2B@sip-xmpp.smithmicro.com">sip:.+@sip-xmpp.smithmicro.com</a>&quot; &amp;&amp; $hdr(Event)== &quot;pres                                                  ence&quot;){<br>
                        pua_xmpp_req_winfo(&quot;$ruri&quot;, &quot;$hdr(Expires)&quot;);<br>                }<br>                #t_release();<br>                /* the call to t_release is no longer needed in 1.5 */<br>
        }<br>        exit;<br>}<br><br><br><div class="gmail_quote">On Thu, Jun 25, 2009 at 7:26 AM, Anca Vamanu <span dir="ltr">&lt;<a href="mailto:anca@opensips.org">anca@opensips.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Mani,<br>
<br>
I order to have opensips send subscribe messages to jabber, you need to call &#39;pua_xmpp_req_winfo(&quot;$ruri&quot;, &quot;$hdr(Expires)&quot;);&#39; when you see from the script that a Subscribe request is sent to a jabber contact. This is the function responsible for sending subscribe messages to jabber.<br>

<br>
What opensips version are you using?<div class="im"><br>
<br>
regards,<br>
Anca<br>
<br>
mani sivaraman wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hi Anca<br>
I do not see any xmpp subscribe packet request sent from opensips to jabber server. That&#39;s the reason why jabber server is not sending any presence notify to opensips. Jabber sends the xmpp status to other clients like pidgin.<br>

<br>
When I add a xmpp buddy to sip client, I get the Subscriber/200 OK response. I can see the output saying subscribe sent in behalf of xmpp buddy.. etc. But this is just a sip subscribe output. I do not see any xmpp subscribe sent to jabber server from opensips. What is blocking opensips from sendsing the xmpp subscribes to jabber server ?<br>

<br>
Please let me know.<br>
<br></div><div class="im">
On Wed, Jun 24, 2009 at 11:12 AM, mani sivaraman &lt;<a href="mailto:mani.opensips@gmail.com" target="_blank">mani.opensips@gmail.com</a> &lt;mailto:<a href="mailto:mani.opensips@gmail.com" target="_blank">mani.opensips@gmail.com</a>&gt;&gt; wrote:<br>

<br>
    Oh wait, this xml packet is destined to &quot;<a href="mailto:jabb2@xmpp.smithmicro.com" target="_blank">jabb2@xmpp.smithmicro.com</a><br></div>
    &lt;<a href="http://jabb2" target="_blank">http://jabb2</a>@<a href="http://xmpp.smithmicro.com/275c37159368" target="_blank">xmpp.smithmicro.com/275c37159368</a>&gt;&quot; , not opensips<div class="im"><br>
    c2s interface. Since all status goes out from 5347 to all xmpp<br>
    clients, I have to separate out the opensips port connected to<br>
    5347 and then try. I found it to be dynamic port 59284. After<br>
    doing ngrep on that port I see opensips sending all status update<br>
    to 5347, but not other way. The only packet from 5347 to 59284 is<br>
    a probe to know if the an offline sip buddy is available (last<br>
    couple of packets)<br>
<br>
    Here is the ngrep output<br>
<br>
    sips01:/etc/jabberd2# ngrep -d lo port 59284<br></div>
    interface: lo (<a href="http://127.0.0.0/255.0.0.0" target="_blank">127.0.0.0/255.0.0.0</a> &lt;<a href="http://127.0.0.0/255.0.0.0" target="_blank">http://127.0.0.0/255.0.0.0</a>&gt;)<div class="im"><br>
    filter: (ip or ip6) and ( port 59284 )<br>
    #<br></div>
    T <a href="http://172.16.0.139:59284" target="_blank">172.16.0.139:59284</a> &lt;<a href="http://172.16.0.139:59284" target="_blank">http://172.16.0.139:59284</a>&gt; -&gt;<br>
    <a href="http://172.16.0.139:5347" target="_blank">172.16.0.139:5347</a> &lt;<a href="http://172.16.0.139:5347" target="_blank">http://172.16.0.139:5347</a>&gt; [AP]<div class="im"><br>
      &lt;presence to=&quot;<a href="mailto:jabb2@xmpp.smithmicro.com" target="_blank">jabb2@xmpp.smithmicro.com</a><br></div>
    &lt;mailto:<a href="mailto:jabb2@xmpp.smithmicro.com" target="_blank">jabb2@xmpp.smithmicro.com</a>&gt;&quot;<div class="im"><br>
    from=&quot;rboxall*<a href="http://sips01.smithmicro.com" target="_blank">sips01.smithmicro.com</a><br></div>
    &lt;<a href="http://sips01.smithmicro.com" target="_blank">http://sips01.smithmicro.com</a>&gt;@<a href="http://xmpp-sip.smithmicro.com" target="_blank">xmpp-sip.smithmicro.com</a><br>
    &lt;<a href="http://xmpp-sip.smithmicro.com" target="_blank">http://xmpp-sip.smithmicro.com</a>&gt;&quot;<br>
      type=&quot;unavailable&quot;/&gt;<br>
    ##<br>
    T <a href="http://172.16.0.139:59284" target="_blank">172.16.0.139:59284</a> &lt;<a href="http://172.16.0.139:59284" target="_blank">http://172.16.0.139:59284</a>&gt; -&gt;<br>
    <a href="http://172.16.0.139:5347" target="_blank">172.16.0.139:5347</a> &lt;<a href="http://172.16.0.139:5347" target="_blank">http://172.16.0.139:5347</a>&gt; [AP]<div class="im"><br>
      &lt;presence to=&quot;<a href="mailto:jabb1@xmpp.smithmicro.com" target="_blank">jabb1@xmpp.smithmicro.com</a><br></div>
    &lt;mailto:<a href="mailto:jabb1@xmpp.smithmicro.com" target="_blank">jabb1@xmpp.smithmicro.com</a>&gt;&quot;<div class="im"><br>
    from=&quot;rboxall*<a href="http://sips01.smithmicro.com" target="_blank">sips01.smithmicro.com</a><br></div>
    &lt;<a href="http://sips01.smithmicro.com" target="_blank">http://sips01.smithmicro.com</a>&gt;@<a href="http://xmpp-sip.smithmicro.com" target="_blank">xmpp-sip.smithmicro.com</a><br>
    &lt;<a href="http://xmpp-sip.smithmicro.com" target="_blank">http://xmpp-sip.smithmicro.com</a>&gt;&quot;<br>
      type=&quot;unavailable&quot;/&gt;<br>
    ##<br>
    T <a href="http://172.16.0.139:59284" target="_blank">172.16.0.139:59284</a> &lt;<a href="http://172.16.0.139:59284" target="_blank">http://172.16.0.139:59284</a>&gt; -&gt;<br>
    <a href="http://172.16.0.139:5347" target="_blank">172.16.0.139:5347</a> &lt;<a href="http://172.16.0.139:5347" target="_blank">http://172.16.0.139:5347</a>&gt; [AP]<div class="im"><br>
      &lt;presence to=&quot;<a href="mailto:jabb2@xmpp.smithmicro.com" target="_blank">jabb2@xmpp.smithmicro.com</a><br></div>
    &lt;mailto:<a href="mailto:jabb2@xmpp.smithmicro.com" target="_blank">jabb2@xmpp.smithmicro.com</a>&gt;&quot;<div class="im"><br>
    from=&quot;rboxall*<a href="http://sips01.smithmicro.com" target="_blank">sips01.smithmicro.com</a><br></div>
    &lt;<a href="http://sips01.smithmicro.com" target="_blank">http://sips01.smithmicro.com</a>&gt;@<a href="http://xmpp-sip.smithmicro.com" target="_blank">xmpp-sip.smithmicro.com</a><br>
    &lt;<a href="http://xmpp-sip.smithmicro.com" target="_blank">http://xmpp-sip.smithmicro.com</a>&gt;&quot;&gt;<div class="im"><br>
      .    &lt;status&gt;hi there !!!&lt;/status&gt;.       &lt;priority&gt;0.00&lt;/priority&gt;.  &lt;/presence&gt;<br>
    ##<br></div>
    T <a href="http://172.16.0.139:59284" target="_blank">172.16.0.139:59284</a> &lt;<a href="http://172.16.0.139:59284" target="_blank">http://172.16.0.139:59284</a>&gt; -&gt;<br>
    <a href="http://172.16.0.139:5347" target="_blank">172.16.0.139:5347</a> &lt;<a href="http://172.16.0.139:5347" target="_blank">http://172.16.0.139:5347</a>&gt; [AP]<div class="im"><br>
      &lt;presence to=&quot;<a href="mailto:jabb1@xmpp.smithmicro.com" target="_blank">jabb1@xmpp.smithmicro.com</a><br></div>
    &lt;mailto:<a href="mailto:jabb1@xmpp.smithmicro.com" target="_blank">jabb1@xmpp.smithmicro.com</a>&gt;&quot;<div class="im"><br>
    from=&quot;rboxall*<a href="http://sips01.smithmicro.com" target="_blank">sips01.smithmicro.com</a><br></div>
    &lt;<a href="http://sips01.smithmicro.com" target="_blank">http://sips01.smithmicro.com</a>&gt;@<a href="http://xmpp-sip.smithmicro.com" target="_blank">xmpp-sip.smithmicro.com</a><br>
    &lt;<a href="http://xmpp-sip.smithmicro.com" target="_blank">http://xmpp-sip.smithmicro.com</a>&gt;&quot;&gt;<div class="im"><br>
      .    &lt;status&gt;hi there !!!&lt;/status&gt;.       &lt;priority&gt;0.00&lt;/priority&gt;.  &lt;/presence&gt;<br>
    ##<br></div>
    T <a href="http://172.16.0.139:5347" target="_blank">172.16.0.139:5347</a> &lt;<a href="http://172.16.0.139:5347" target="_blank">http://172.16.0.139:5347</a>&gt; -&gt;<br>
    <a href="http://172.16.0.139:59284" target="_blank">172.16.0.139:59284</a> &lt;<a href="http://172.16.0.139:59284" target="_blank">http://172.16.0.139:59284</a>&gt; [AP]<div class="im"><br>
      &lt;presence xmlns=&#39;jabber:client&#39; type=&#39;probe&#39;<br>
    to=&#39;rboxall*<a href="http://sips01.smithmicro.com" target="_blank">sips01.smithmicro.com</a><br></div>
    &lt;<a href="http://sips01.smithmicro.com" target="_blank">http://sips01.smithmicro.com</a>&gt;@<a href="http://xmpp-sip.smithmicro.com" target="_blank">xmpp-sip.smithmicro.com</a><br>
    &lt;<a href="http://xmpp-sip.smithmicro.com" target="_blank">http://xmpp-sip.smithmicro.com</a>&gt;&#39; from=&#39;jabb1<br>
      @<a href="http://xmpp.smithmicro.com" target="_blank">xmpp.smithmicro.com</a> &lt;<a href="http://xmpp.smithmicro.com" target="_blank">http://xmpp.smithmicro.com</a>&gt;&#39;/&gt;<br>
    ##<br>
    T <a href="http://172.16.0.139:59284" target="_blank">172.16.0.139:59284</a> &lt;<a href="http://172.16.0.139:59284" target="_blank">http://172.16.0.139:59284</a>&gt; -&gt;<br>
    <a href="http://172.16.0.139:5347" target="_blank">172.16.0.139:5347</a> &lt;<a href="http://172.16.0.139:5347" target="_blank">http://172.16.0.139:5347</a>&gt; [AP]<div class="im"><br>
      &lt;presence to=&quot;<a href="mailto:jabb1@xmpp.smithmicro.com" target="_blank">jabb1@xmpp.smithmicro.com</a><br></div>
    &lt;mailto:<a href="mailto:jabb1@xmpp.smithmicro.com" target="_blank">jabb1@xmpp.smithmicro.com</a>&gt;&quot;<div class="im"><br>
    from=&quot;rboxall*<a href="http://sips01.smithmicro.com" target="_blank">sips01.smithmicro.com</a><br></div>
    &lt;<a href="http://sips01.smithmicro.com" target="_blank">http://sips01.smithmicro.com</a>&gt;@<a href="http://xmpp-sip.smithmicro.com" target="_blank">xmpp-sip.smithmicro.com</a><br>
    &lt;<a href="http://xmpp-sip.smithmicro.com" target="_blank">http://xmpp-sip.smithmicro.com</a>&gt;&quot;&gt;.    &lt;status&gt;<div class="im"><br>
      hi there !!!&lt;/status&gt;.    &lt;priority&gt;0.00&lt;/priority&gt;.  &lt;/presence&gt;<br>
    ##<br></div>
    T <a href="http://172.16.0.139:5347" target="_blank">172.16.0.139:5347</a> &lt;<a href="http://172.16.0.139:5347" target="_blank">http://172.16.0.139:5347</a>&gt; -&gt;<br>
    <a href="http://172.16.0.139:59284" target="_blank">172.16.0.139:59284</a> &lt;<a href="http://172.16.0.139:59284" target="_blank">http://172.16.0.139:59284</a>&gt; [AP]<div class="im"><br>
      &lt;presence xmlns=&#39;jabber:client&#39; type=&#39;probe&#39;<br>
    to=&#39;msivaraman*<a href="http://sips01.smithmicro.com" target="_blank">sips01.smithmicro.com</a><br></div>
    &lt;<a href="http://sips01.smithmicro.com" target="_blank">http://sips01.smithmicro.com</a>&gt;@<a href="http://xmpp-sip.smithmicro.com" target="_blank">xmpp-sip.smithmicro.com</a><br>
    &lt;<a href="http://xmpp-sip.smithmicro.com" target="_blank">http://xmpp-sip.smithmicro.com</a>&gt;&#39; from=&#39;ja<br>
      <a href="mailto:bb1@xmpp.smithmicro.com" target="_blank">bb1@xmpp.smithmicro.com</a> &lt;mailto:<a href="mailto:bb1@xmpp.smithmicro.com" target="_blank">bb1@xmpp.smithmicro.com</a>&gt;&#39;/&gt;<br>
    #<br>
    T <a href="http://172.16.0.139:59284" target="_blank">172.16.0.139:59284</a> &lt;<a href="http://172.16.0.139:59284" target="_blank">http://172.16.0.139:59284</a>&gt; -&gt;<br>
    <a href="http://172.16.0.139:5347" target="_blank">172.16.0.139:5347</a> &lt;<a href="http://172.16.0.139:5347" target="_blank">http://172.16.0.139:5347</a>&gt; [AP]<div class="im"><br>
      &lt;presence to=&quot;<a href="mailto:jabb1@xmpp.smithmicro.com" target="_blank">jabb1@xmpp.smithmicro.com</a><br></div>
    &lt;mailto:<a href="mailto:jabb1@xmpp.smithmicro.com" target="_blank">jabb1@xmpp.smithmicro.com</a>&gt;&quot;<div class="im"><br>
    from=&quot;msivaraman*<a href="http://sips01.smithmicro.com" target="_blank">sips01.smithmicro.com</a><br></div>
    &lt;<a href="http://sips01.smithmicro.com" target="_blank">http://sips01.smithmicro.com</a>&gt;@<a href="http://xmpp-sip.smithmicro.com" target="_blank">xmpp-sip.smithmicro.com</a><br>
    &lt;<a href="http://xmpp-sip.smithmicro.com" target="_blank">http://xmpp-sip.smithmicro.com</a>&gt;&quot; type=&quot;unav<br>
      ailable&quot;/&gt;<br>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br>