<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Gregorio,<br>
<br>
This means there's a problem when OpenXCAP should send this command to
OpenSER. First, check if the XMLRPC server in OpenSER is working, if
you can connect to it. Then, make sure that in OpenXCAP's configuration
file you have backend = OpenSER under [Server] section, and that
xmlrpc_url under [OpenSER] section is set to the address where the
XMLRPC server is listening.<br>
<br>
Gregorio wrote:
<blockquote
 cite="mid000501c87f78$d542b160$7fc81420$@villalba@dialcom.com"
 type="cite">
  <pre wrap="">Hi Anca et all,

I have repeated the same test described in the first name with the debug
level set to 7 and I couldn't find the string 'mi_refreshWatchers' in the
debbug messages. I can't attach the debug messages file because it is too
large.
I am using OpenSer 1.3 and openXcap 0.99. My configuration related to
presence is this:

modparam("presence|usrloc",
"db_url",<a class="moz-txt-link-rfc2396E" href="mailto:mysql://openser:password@127.0.0.1/openser">"mysql://openser:password@127.0.0.1/openser"</a>)
modparam("presence", "presentity_table", "presentity") 
modparam("presence", "active_watchers_table", "active_watchers") 
modparam("presence", "watchers_table", "watchers")
 modparam("presence", "clean_period", 100) 
modparam("presence", "max_expires", 3600) 
modparam("presence", "server_address", "sip:192.168.1.210:5060") 
modparam("presence", "fallback2db", 1)

#MI_XMLRPC
modparam("mi_xmlrpc", "log_file", "/var/log/openser-xmlrpc.log") 
modparam("mi_xmlrpc", "port", 8080)

modparam("pua", "db_url", <a class="moz-txt-link-rfc2396E" href="mailto:mysql://openser:password@127.0.0.1/openser">"mysql://openser:password@127.0.0.1/openser"</a>)

# -- xcap params --
modparam("presence_xml", "db_url",
<a class="moz-txt-link-rfc2396E" href="mailto:mysql://openser:password@127.0.0.1/openser">"mysql://openser:password@127.0.0.1/openser"</a>)
modparam("presence_xml", "force_active", 0) #0 Activates permissions for
subscriptions 
modparam("presence_xml", "xcap_table", "xcap") modparam("presence_xml",
"integrated_xcap_server", 1)

If someone needs the debug messages I can send it to personal mail accounts,
and thank you very much for helping.
Regards,
Gregorio.



-----Mensaje original-----
De: <a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.openser.org">users-bounces@lists.openser.org</a> [<a class="moz-txt-link-freetext" href="mailto:users-bounces@lists.openser.org">mailto:users-bounces@lists.openser.org</a>]
En nombre de Anca Vamanu
Enviado el: jueves, 06 de marzo de 2008 10:34
Para: greg.co
CC: <a class="moz-txt-link-abbreviated" href="mailto:users@lists.openser.org">users@lists.openser.org</a>
Asunto: Re: [OpenSER-Users] OpenSER + OpenXcap for pres-rules: no NOTIFY

Hi,

I think you might be right about the problem source.
The real time update in OpenSER is triggered by OpenXCAP with an mi 
command: "mi_refreshWatchers". You could set the 'debug' in config file 
to 7 and search in the log for 'mi_refreshWatchers' string and send the 
debug messages printed while processing.

regards,
Anca Vamanu

greg.co wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi all,

I am stuck with a presence authorization problem using openSer 1.3 and
openXcap 0.9.9. I have read some similar posts in the mailing list but I
couldn't find a solution, so I'll try to explain my scenario to see if it
    </pre>
  </blockquote>
  <pre wrap=""><!---->is
  </pre>
  <blockquote type="cite">
    <pre wrap="">my mistake or it is a bug.

I explain the scenario:
User test1 and test2 successfully register and sunscribe to
    </pre>
  </blockquote>
  <pre wrap=""><!---->presence.winfo.
  </pre>
  <blockquote type="cite">
    <pre wrap="">Both receive a NOTIFY informing that their winfo subscriptions are active.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">Test2 adds test1 as a contact so he subscribes to test1's presence, then
test1 receives a winfo NOTIFY requesting authorization for test2. Test1
    </pre>
  </blockquote>
  <pre wrap=""><!---->does
  </pre>
  <blockquote type="cite">
    <pre wrap="">it sending a XCAP document to openXcap the document is correctly stored in
openSer xcap table.

User test2 receives a presence NOTIFY in pending state, even if user test1
publishes other presence state, the subscription state of test2 remains
pending forever.

If we look the data base in that moment:


    </pre>
  </blockquote>
  <pre wrap=""><!---->+------+--------------------------+------------------+----------------+-----
----+----------------+----------------+----------+----------------------+---
------------+--------------------------------------+------------+-----------
--+-------------------+--------------+------------+--------+--------+-------
--+------------------------+------------------------+
  </pre>
  <blockquote type="cite">
    <pre wrap="">| id   | presentity_uri           | watcher_username | watcher_domain |
to_user | to_domain      | event          | event_id | to_tag
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">| from_tag      | callid                               | local_cseq |
remote_cseq | contact           | record_route | expires    | status |
reason | version | socket_info            | local_contact          |

    </pre>
  </blockquote>
  <pre wrap=""><!---->+------+--------------------------+------------------+----------------+-----
----+----------------+----------------+----------+----------------------+---
------------+--------------------------------------+------------+-----------
--+-------------------+--------------+------------+--------+--------+-------
--+------------------------+------------------------+
  </pre>
  <blockquote type="cite">
    <pre wrap="">| 1177 | sip:test2@Mydomain          | test2            | Mydomain              |
    </pre>
  </blockquote>
  <pre wrap=""><!---->test2  
  </pre>
  <blockquote type="cite">
    <pre wrap="">| Mydomain       | presence.winfo | NULL     | 10.2670.1209516359.7 |
cvvUDerBXK1Qc | b4c2997e-64ac-122b-2780-39a48cb53b8d |          1 |   
96206117 | sip:192.168.1.222 | NULL         | 1209519959 |      1 |
    </pre>
  </blockquote>
  <pre wrap=""><!---->|      
  </pre>
  <blockquote type="cite">
    <pre wrap="">1 | udp:192.168.1.210:5060 | sip:192.168.1.210:5060 |

    </pre>
  </blockquote>
  <pre wrap=""><!---->+------+--------------------------+------------------+----------------+-----
----+----------------+----------------+----------+----------------------+---
------------+--------------------------------------+------------+-----------
--+-------------------+--------------+------------+--------+--------+-------
--+------------------------+------------------------+
  </pre>
  <blockquote type="cite">
    <pre wrap="">
WATCHERS

    </pre>
  </blockquote>
  <pre wrap=""><!---->+----+--------------------------+------------------+----------------+-------
---+--------+--------+---------------+
  </pre>
  <blockquote type="cite">
    <pre wrap="">| id | presentity_uri           | watcher_username | watcher_domain |
    </pre>
  </blockquote>
  <pre wrap=""><!---->event   
  </pre>
  <blockquote type="cite">
    <pre wrap="">| status | reason | inserted_time |

    </pre>
  </blockquote>
  <pre wrap=""><!---->+----+--------------------------+------------------+----------------+-------
---+--------+--------+---------------+
  </pre>
  <blockquote type="cite">
    <pre wrap="">| 80 | sip:test1@Mydomain       | test2            | Mydomain       |
presence |      2 | NULL   |    1209516407 |

    </pre>
  </blockquote>
  <pre wrap=""><!---->+----+--------------------------+------------------+----------------+-------
---+--------+--------+---------------+
  </pre>
  <blockquote type="cite">
    <pre wrap="">
XCAP

    </pre>
  </blockquote>
  <pre wrap=""><!---->+-----+----------+----------------+-----------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
------------------------------------------------------------------+---------
-+----------------------------------+--------+-------------+------+
  </pre>
  <blockquote type="cite">
    <pre wrap="">| id  | username | domain         | doc
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">| doc_type | etag                             | source | doc_uri     |
    </pre>
  </blockquote>
  <pre wrap=""><!---->port
  </pre>
  <blockquote type="cite">
    <pre wrap="">|

    </pre>
  </blockquote>
  <pre wrap=""><!---->+-----+----------+----------------+-----------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
------------------------------------------------------------------+---------
-+----------------------------------+--------+-------------+------+
  </pre>
  <blockquote type="cite">
    <pre wrap="">| 190 | test2    | Mydomain | &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"&gt;&lt;list
name="Users"&gt;&lt;entry

    </pre>
  </blockquote>
  <pre wrap=""><!---->uri="sip:test1@Mydomain"&gt;&lt;display-name&gt;test1&lt;/display-name&gt;&lt;/entry&gt;&lt;/list&gt;&lt;/
resource-lists&gt;
  </pre>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">|        4 | 8ea82eeb40e00fcf626dbe17d1961ad5 |      0 | buddies.xml |
    </pre>
  </blockquote>
  <pre wrap=""><!---->0
  </pre>
  <blockquote type="cite">
    <pre wrap="">|
| 191 | test2    | Mydomain | &lt;?xml version='1.0'
    </pre>
  </blockquote>
  <pre wrap=""><!---->encoding='UTF-8'?&gt;&lt;ruleset 
  </pre>
  <blockquote type="cite">
    <pre wrap="">xmlns='urn:ietf:params:xml:ns:common-policy' 
xmlns:pr='urn:ietf:params:xml:ns:pres-rules'&gt;&lt;rule

    </pre>
  </blockquote>
  <pre wrap=""><!---->id='whitelist'&gt;&lt;conditions&gt;&lt;identity&gt;&lt;/identity&gt;&lt;/conditions&gt;&lt;actions&gt;&lt;pr:su
b-handling&gt;allow&lt;/pr:sub-handling&gt;&lt;/actions&gt;&lt;/rule&gt;&lt;rule
  </pre>
  <pre wrap=""><!---->id='politeblocklist'&gt;&lt;conditions&gt;&lt;identity&gt;&lt;/identity&gt;&lt;/conditions&gt;&lt;actions&gt;
&lt;pr:sub-handling&gt;polite-block&lt;/pr:sub-handling&gt;&lt;/actions&gt;&lt;/rule&gt;&lt;rule
  </pre>
  <pre wrap=""><!---->id='blacklist'&gt;&lt;conditions&gt;&lt;identity&gt;&lt;/identity&gt;&lt;/conditions&gt;&lt;actions&gt;&lt;pr:su
b-handling&gt;block&lt;/pr:sub-handling&gt;&lt;/actions&gt;&lt;/rule&gt;&lt;/ruleset&gt;
  </pre>
  <blockquote type="cite">
    <pre wrap="">|        2 | 46353b3b55d23d24fd4d9c87a5ff7ba4 |      0 | index.xml   |
    </pre>
  </blockquote>
  <pre wrap=""><!---->0
  </pre>
  <blockquote type="cite">
    <pre wrap="">|
| 192 | test1    | Mydomain | &lt;?xml version='1.0'
encoding='UTF-8'?&gt;&lt;resource-lists
xmlns='urn:ietf:params:xml:ns:resource-lists'&gt;&lt;list
name='Users'&gt;&lt;/list&gt;&lt;/resource-lists&gt;
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">|        4 | f854971d48ed1a8913e20b3409a6b723 |      0 | buddies.xml |
    </pre>
  </blockquote>
  <pre wrap=""><!---->0
  </pre>
  <blockquote type="cite">
    <pre wrap="">|
| 193 | test1    | Mydomain | &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;ruleset xmlns="urn:ietf:params:xml:ns:common-policy"
xmlns:pr="urn:ietf:params:xml:ns:pres-rules"&gt;&lt;rule
id="whitelist"&gt;&lt;conditions&gt;&lt;identity&gt;&lt;one

    </pre>
  </blockquote>
  <pre wrap=""><!---->id="sip:test2@Mydomain"/&gt;&lt;/identity&gt;&lt;/conditions&gt;&lt;actions&gt;&lt;pr:sub-handling&gt;a
llow&lt;/pr:sub-handling&gt;&lt;/actions&gt;&lt;/rule&gt;&lt;rule
  </pre>
  <pre wrap=""><!---->id="politeblocklist"&gt;&lt;conditions/&gt;&lt;actions&gt;&lt;pr:sub-handling&gt;polite-block&lt;/pr
:sub-handling&gt;&lt;/actions&gt;&lt;/rule&gt;&lt;rule
  </pre>
  <pre wrap=""><!---->id="blacklist"&gt;&lt;conditions/&gt;&lt;actions&gt;&lt;pr:sub-handling&gt;block&lt;/pr:sub-handling
  </pre>
  <blockquote type="cite">
    <pre wrap="">&lt;/actions&gt;&lt;/rule&gt;&lt;/ruleset&gt;
                             |        2 | 8afbf7f0464de1273303bbea554404ff
    </pre>
  </blockquote>
  <pre wrap=""><!---->|     
  </pre>
  <blockquote type="cite">
    <pre wrap="">0 | index.xml   |    0 |

    </pre>
  </blockquote>
  <pre wrap=""><!---->+-----+----------+----------------+-----------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
------------------------------------------------------------------+---------
-+----------------------------------+--------+-------------+------+
  </pre>
  <blockquote type="cite">
    <pre wrap="">We can see in 'WATCHERS' table that test2 has a pending presence
subscription but as can be seen in 'XCAP' table user test1 has authorized
test2 to see his presence.

My thinking is that once test1 changes his authorization rule, the
    </pre>
  </blockquote>
  <pre wrap=""><!---->presence
  </pre>
  <blockquote type="cite">
    <pre wrap="">subscription should chage to active, am I right?

My conclusion is that something between the presence rules authorization
    </pre>
  </blockquote>
  <pre wrap=""><!---->and
  </pre>
  <blockquote type="cite">
    <pre wrap="">the subscriptions is not working fine, or I did something wrong and I
haven't noticed it.
Please, I really need help with that as I have been stuck here for weeks.

Thanks in advance!!
Gregorio
  
    </pre>
  </blockquote>
  <pre wrap=""><!---->

_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.openser.org">Users@lists.openser.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openser.org/cgi-bin/mailman/listinfo/users">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a>


_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.openser.org">Users@lists.openser.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openser.org/cgi-bin/mailman/listinfo/users">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a>
  </pre>
</blockquote>
<br>
</body>
</html>