Hello,<br><br>mqybe is faster to fix the handling of subscriptions from openfire. Can you get the xmpp request with ngrep and paste it here -- maybe it is easy to find and fix the reason the parser in xmpp module fails to understand it.<br>
<br>I guess pua_xmpp has to know the dialog for the mapping between the sip and xmpp sides.<br><br>Cheers,<br>Daniel<br><br><div class="gmail_quote">On Fri, Mar 2, 2012 at 7:33 PM, Dan-Cristian Bogos <span dir="ltr">&lt;<a href="mailto:danb.lists@googlemail.com">danb.lists@googlemail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Guys,<br>
<br>
After my previous discovered issue (Kamailio not happy to talk with<br>
Openfire for subscriptions), trying to find work arounds, thought<br>
about using pua_mi to enforce subscriptions coming from XMPP side.<br>
<br>
The following events happen:<br>
 * I subscribe over mi interface successfully.<br>
 * Presence sends NOTIFY out.<br>
 * PUA_XMPP rejects the NOTIFY saying that it does not match an<br>
existing dialog.<br>
<br>
I was wondering where does PUA_XMPP check the existing dialogs and if<br>
there is other way to fix my issues?<br>
<br>
Bellow you can find commands, ngrep as well as kamailio error to syslog.<br>
<br>
Ta for any kind of tip,<br>
DanB<br>
<br>
&quot;&quot;&quot;<br>
<br>
###<br>
Console<br>
###<br>
kamctl fifo pua_subscribe <a href="mailto:sip%3Adan@hiddendom.com">sip:dan@hiddendom.com</a><br>
<a href="mailto:sip%3Auser01@hiddendom.com">sip:user01@hiddendom.com</a> presence 3600<br>
<br>
###<br>
Trace<br>
###<br>
<br>
<br>
U 2012/03/02 18:17:07.318753 <a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a> -&gt; <a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a><br>
SUBSCRIBE <a href="mailto:sip%3Adan@hiddendom.com">sip:dan@hiddendom.com</a> SIP/2.0.<br>
Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK5ddb.d2ee4046.0.<br>
To: <a href="mailto:sip%3Adan@hiddendom.com">sip:dan@hiddendom.com</a>.<br>
From: <a href="mailto:sip%3Auser01@hiddendom.com">sip:user01@hiddendom.com</a>;tag=7bcd2f0283a17a6a3eb34b70a7dbcaec-55da.<br>
CSeq: 10 SUBSCRIBE.<br>
Call-ID: 77d7b19267fdcae8.<br>
Content-Length: 0.<br>
User-Agent: kamailio (3.2.0 (x86_64/linux)).<br>
Max-Forwards: 70.<br>
Event: presence.<br>
Contact: &lt;<a href="mailto:sip%3Auser01@hiddendom.com">sip:user01@hiddendom.com</a>&gt;.<br>
Expires: 3610.<br>
.<br>
<br>
#<br>
T 2012/03/02 18:17:07.319501 <a href="http://127.0.0.1:35067" target="_blank">127.0.0.1:35067</a> -&gt; <a href="http://127.0.0.1:3306" target="_blank">127.0.0.1:3306</a> [AP]<br>
.....select status,reason from watchers where<br>
presentity_uri=&#39;<a href="mailto:sip%3Adan@hiddendom.com">sip:dan@hiddendom.com</a>&#39; AND watcher_username=&#39;user01&#39;<br>
AND watcher_domain=&#39;<a href="http://hiddendom.com" target="_blank">hiddendom.com</a>&#39; AND event=&#39;presence&#39;<br>
#<br>
T 2012/03/02 18:17:07.319795 <a href="http://127.0.0.1:3306" target="_blank">127.0.0.1:3306</a> -&gt; <a href="http://127.0.0.1:35067" target="_blank">127.0.0.1:35067</a> [AP]<br>
.....7....def.prxdb.watchers.watchers.status.status.?...........7....def.prxdb.watchers.watchers.reason.reason...@...........................<br>
##<br>
T 2012/03/02 18:17:07.319885 <a href="http://127.0.0.1:35067" target="_blank">127.0.0.1:35067</a> -&gt; <a href="http://127.0.0.1:3306" target="_blank">127.0.0.1:3306</a> [AP]<br>
.....insert into watchers<br>
(presentity_uri,watcher_username,watcher_domain,event,status,inserted_time<br>
) values (&#39;<a href="mailto:sip%3Adan@hiddendom.com">sip:dan@hiddendom.com</a>&#39;,&#39;user01&#39;,&#39;<a href="http://hiddendom.com" target="_blank">hiddendom.com</a>&#39;,&#39;presence&#39;,1,1330712227)<br>
#<br>
T 2012/03/02 18:17:07.320079 <a href="http://127.0.0.1:3306" target="_blank">127.0.0.1:3306</a> -&gt; <a href="http://127.0.0.1:35067" target="_blank">127.0.0.1:35067</a> [AP]<br>
...........<br>
#<br>
U 2012/03/02 18:17:07.320250 <a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a> -&gt; <a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a><br>
SIP/2.0 202 OK.<br>
Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK5ddb.d2ee4046.0;rport=5060.<br>
To: <a href="mailto:sip%3Adan@hiddendom.com">sip:dan@hiddendom.com</a>;tag=c87c23e595340de8a004872f7dfab287-19b1.<br>
From: <a href="mailto:sip%3Auser01@hiddendom.com">sip:user01@hiddendom.com</a>;tag=7bcd2f0283a17a6a3eb34b70a7dbcaec-55da.<br>
CSeq: 10 SUBSCRIBE.<br>
Call-ID: 77d7b19267fdcae8.<br>
Expires: 3600.<br>
Contact: &lt;sip:127.0.0.1&gt;.<br>
Server: kamailio (3.2.0 (x86_64/linux)).<br>
Content-Length: 0.<br>
.<br>
<br>
#<br>
T 2012/03/02 18:17:07.320317 <a href="http://127.0.0.1:35067" target="_blank">127.0.0.1:35067</a> -&gt; <a href="http://127.0.0.1:3306" target="_blank">127.0.0.1:3306</a> [AP]<br>
.....select body,expires,etag,sender from presentity where<br>
domain=&#39;<a href="http://hiddendom.com" target="_blank">hiddendom.com</a>&#39; AND username=&#39;dan&#39; AND event=&#39;presence&#39; order<br>
by received_time<br>
#<br>
T 2012/03/02 18:17:07.320541 <a href="http://127.0.0.1:3306" target="_blank">127.0.0.1:3306</a> -&gt; <a href="http://127.0.0.1:35067" target="_blank">127.0.0.1:35067</a> [AP]<br>
.....7....def.prxdb<br>
presentity<br>
presentity.body.body.?...........=....def.prxdb<br>
presentity<br>
presentity.expires.expires.?...........7....def.prxdb<br>
presentity<br>
presentity.etag.etag...@.....P...;....def.prxdb<br>
presentity<br>
presentity.sender.sender...........................Y.&lt;?xml version=&quot;1.0&quot;?&gt;<br>
&lt;presence xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot;<br>
xmlns:dm=&quot;urn:ietf:params:xml:ns:pidf:data-model&quot;<br>
xmlns:rpid=&quot;urn:ietf:params:xml:ns:pidf:rpid&quot;<br>
xmlns:c=&quot;urn:ietf:params:xml:ns:pidf:cipid&quot;<br>
entity=&quot;<a href="mailto:dan@hiddendom.com">dan@hiddendom.com</a>&quot;&gt;<br>
  &lt;tuple id=&quot;0x7f7e550f0d70&quot;&gt;<br>
    &lt;status&gt;<br>
      &lt;basic&gt;open&lt;/basic&gt;<br>
    &lt;/status&gt;<br>
  &lt;/tuple&gt;<br>
&lt;/presence&gt;<br>
<br>
1330712820.a.1330712207.16317.1.1..........<br>
#<br>
U 2012/03/02 18:17:07.320996 <a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a> -&gt; <a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a><br>
NOTIFY <a href="mailto:sip%3Auser01@hiddendom.com">sip:user01@hiddendom.com</a> SIP/2.0.<br>
Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bKae68.a038faa7.0.<br>
To: <a href="mailto:sip%3Auser01@hiddendom.com">sip:user01@hiddendom.com</a>;tag=7bcd2f0283a17a6a3eb34b70a7dbcaec-55da.<br>
From: <a href="mailto:sip%3Adan@hiddendom.com">sip:dan@hiddendom.com</a>;tag=c87c23e595340de8a004872f7dfab287-19b1.<br>
CSeq: 2 NOTIFY.<br>
Call-ID: 77d7b19267fdcae8.<br>
Content-Length: 345.<br>
User-Agent: kamailio (3.2.0 (x86_64/linux)).<br>
Max-Forwards: 70.<br>
Event: presence.<br>
Contact: &lt;sip:127.0.0.1&gt;.<br>
Subscription-State: active;expires=3670.<br>
Content-Type: application/pidf+xml.<br>
.<br>
&lt;?xml version=&quot;1.0&quot;?&gt;<br>
&lt;presence xmlns=&quot;urn:ietf:params:xml:ns:pidf&quot;<br>
xmlns:dm=&quot;urn:ietf:params:xml:ns:pidf:data-model&quot;<br>
xmlns:rpid=&quot;urn:ietf:params:xml:ns:pidf:rpid&quot;<br>
xmlns:c=&quot;urn:ietf:params:xml:ns:pidf:cipid&quot;<br>
entity=&quot;<a href="mailto:dan@hiddendom.com">dan@hiddendom.com</a>&quot;&gt;<br>
  &lt;tuple id=&quot;0x7f7e550f0d70&quot;&gt;<br>
    &lt;status&gt;<br>
      &lt;basic&gt;open&lt;/basic&gt;<br>
    &lt;/status&gt;<br>
  &lt;/tuple&gt;<br>
&lt;/presence&gt;<br>
<br>
<br>
<br>
<br>
<br>
<br>
#############<br>
kamailio.log:<br>
#############<br>
<br>
<br>
Mar  2 18:17:07 prx3 /usr/sbin/kamailio[16319]: INFO: presence<br>
[notify.c:1593]: NOTIFY <a href="mailto:sip%3Auser01@hiddendom.com">sip:user01@hiddendom.com</a> via<br>
<a href="mailto:sip%3Auser01@hiddendom.com">sip:user01@hiddendom.com</a> on behalf of <a href="mailto:sip%3Adan@hiddendom.com">sip:dan@hiddendom.com</a> for event<br>
presence<br>
Mar  2 18:17:07 prx3 /usr/sbin/kamailio[16317]: ERROR: pua_xmpp<br>
[simple2xmpp.c:198]: Notify in a non existing dialog<br>
<br>
&quot;&quot;&quot;<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Daniel-Constantin Mierla<br>  <a href="http://www.asipto.com">http://www.asipto.com</a><br>