Hi Vaclav,

Thank you, so that was my misunderstanding of 'time_interval':)
But When my UAa subscribes to the presence of another UAb wich is already registered
the NOTIFY message contains tuple with the closed state indicated for UAb.
Only after the UAb sends PUBLISH message there is an updated NOTIFY sent to UAa with status 'open'.
Shouldn't it be like this that if 'auth' module parameter is "none" and the user is registered the NOFITY message for
for this user contains tuple with status open??

Cheers
tomasz

Vaclav Kubart pisze:
Hi Tomasz,
the 'timer_interval' parameter specifies the interval after which PA
checks changes in the list of presentites (changed presence state,
changed/expired subscriptions, ...). If there is a change, NOTIFY
corresponding with the change is sent, but if no change found, no NOTIFY
is sent. Isn't this your problem?

    Vaclav

On Mon, Jun 04, 2007 at 05:02:12PM +0200, tzieleniewski wrote:
  
Hi,

I am using SER rel_2_0_0.
I am trying to set up a presence server as a simple PA.

I am using xlite UA and when UA registers and subscribes to a particular user presence Event SER doesn't sent a NOTIFY according to the 'time_interval' module parameter. It only responses with the 'immediate NOTIFY' with the closed status tuple. According to my configuration SER should sent a NOTIFY every 15 seconds and it doesn't do it at all.
I kindly ask for your feedback.

Below I attached my module configuration and messages exchanged with UA.
# -- pa params --
modparam("pa", "default_expires",300)
modparam("pa", "max_subscription_expiration", 3600)
modparam("pa", "max_publish_expiration", 3600)
modparam("pa", "use_db", 1)
modparam("pa", "use_callbacks", 1)
modparam("pa", "watcherinfo_notify", 0)
modparam("pa", "use_offline_winfo", 0)
modparam("pa", "offline_winfo_expiration", 259200)
modparam("pa", "auth", "none")
modparam("pa", "winfo_auth", "implicit")
modparam("pa", "pres_rules_file", "presence-rules.xml")
modparam("pa", "ignore_408_on_notify", 0)
modparam("pa", "timer_interval", 15)
modparam("pa", "default_priority_percentage", 0)
modparam("pa", "auth_rules_refresh_time", 300)
modparam("pa", "async_auth_queries", 1)
modparam("pa", "max_auth_requests_per_tick", 600)


#
U 2007/06/04 16:52:16.423720 192.168.0.229:7060 -> 192.168.0.165:5160
SUBSCRIBE sip:sen@voip.rd.touk.pl SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.229:7060;branch=z9hG4bK-d87543-da69e92af464fa08-1--d87543-;rport.
Max-Forwards: 70.
Contact: <sip:hulk@192.168.0.229:7060>.
To: <sip:sen@voip.rd.touk.pl>.
From: "hulk@voip.rd.touk.pl"<sip:hulk@voip.rd.touk.pl>;tag=8e1a6d2f.
Call-ID: MGYxYTg5ZjEyYWM1NzA4NjgwOGRlODNjNTNiZmZkNmQ..
CSeq: 1 SUBSCRIBE.
Expires: 300.
Accept: multipart/related, application/rlmi+xml, application/pidf+xml.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.
User-Agent: X-Lite release 1006e stamp 34025.
Event: presence.
Content-Length: 0.
.

#
U 2007/06/04 16:52:16.471312 192.168.0.165:5160 -> 192.168.0.229:7060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.0.229:7060;branch=z9hG4bK-d87543-da69e92af464fa08-1--d87543-;rport=7060.
To: <sip:sen@voip.rd.touk.pl>;tag=5b4167208bb1319f0333e26fe8df2283-d4d1.
From: "hulk@voip.rd.touk.pl"<sip:hulk@voip.rd.touk.pl>;tag=8e1a6d2f.
Call-ID: MGYxYTg5ZjEyYWM1NzA4NjgwOGRlODNjNTNiZmZkNmQ..
CSeq: 1 SUBSCRIBE.
Expires: 300.
Contact: <sip:192.168.0.165:5160>.
Server: Sip EXpress router (2.0.0-rc2 (x86_64/linux)).
Content-Length: 0.
Warning: 392 192.168.0.165:5160 "Noisy feedback tells:  pid=25995 req_src_ip=192.168.0.229 req_src_port=7060 in_uri=sip:sen@voip.rd.touk.pl out_uri=sip:sen@voip.rd.touk.pl via_cnt==1".
.

#
U 2007/06/04 16:52:16.471328 192.168.0.165:5160 -> 192.168.0.229:7060
NOTIFY sip:hulk@192.168.0.229:7060 SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.165:5160;branch=z9hG4bK967b.6e9cb884.0.
To: "hulk@voip.rd.touk.pl"<sip:hulk@voip.rd.touk.pl>;tag=8e1a6d2f.
From: <sip:sen@voip.rd.touk.pl>;tag=5b4167208bb1319f0333e26fe8df2283-d4d1.
CSeq: 10 NOTIFY.
Call-ID: MGYxYTg5ZjEyYWM1NzA4NjgwOGRlODNjNTNiZmZkNmQ..
Content-Length: 208.
User-Agent: Sip EXpress router(2.0.0-rc2 (x86_64/linux)).
Max-Forwards: 70.
Event: presence.
Content-Type: application/pidf+xml;charset="UTF-8".
Contact: <sip:192.168.0.165:5160>.
Subscription-State: active;expires=300.
.
<?xml version="1.0" encoding="UTF-8"?>.
<presence xmlns="urn:ietf:params:xml:ns:pidf" entity="pres:sen@voip.rd.touk.pl">.
.<tuple id="none">.
..<status><basic>closed</basic></status>.
.</tuple>.
</presence>.

#
U 2007/06/04 16:52:16.572189 192.168.0.229:7060 -> 192.168.0.165:5160
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.0.165:5160;branch=z9hG4bK967b.6e9cb884.0.
Contact: <sip:hulk@192.168.0.229:7060>.
To: "hulk@voip.rd.touk.pl"<sip:hulk@voip.rd.touk.pl>;tag=8e1a6d2f.
From: <sip:sen@voip.rd.touk.pl>;tag=5b4167208bb1319f0333e26fe8df2283-d4d1.
Call-ID: MGYxYTg5ZjEyYWM1NzA4NjgwOGRlODNjNTNiZmZkNmQ..
CSeq: 10 NOTIFY.
User-Agent: X-Lite release 1006e stamp 34025.
Content-Length: 0.
.
.
Cheers TOmasz

_______________________________________________
Serusers mailing list
Serusers@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers