< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate-users] Presence.winfo


Hi all, now I'm trying to implement the presence agent, I have a question, when I received a NOTIFY message from server as below, the sip:example11@xxxxxxxxxxxxx want to see my presence status, it's a pending request in watcher list, how to accept this pending request to allows sip:example11@xxxxxxxxxxxxx see my presence status ? 

Thanks



NOTIFY sip:example11@xxxxxxxxxxxxx:37065 SIP/2.0
Via: SIP/2.0/UDP 196.34.94.131:5060;branch=z9hG4bK63854;rport
Max-Forwards: 69
From: <sip:example11@xxxxxxxxxxxxx>;tag=269D9EE346838510
To: <sip:example11@xxxxxxxxxxxxx>;tag=0b40a71d
Call-ID: MzM5MjZlNzYxOTU5NWI1ZjE2YzAzODE1Y2M0NTZkNWU.
CSeq: 1 NOTIFY
Subscription-State: active;expires=3600
Event: presence.winfo
Contact: <sip:example11@xxxxxxxxxxxxx>
User-Agent: CommuniGatePro-notify/5.3c3
Content-Type: application/watcherinfo+xml
Content-Length: 522

<?xml version="1.0"?>
<watcherinfo xmlns="urn:ietf:params:xml:ns:watcherinfo" version="0" state="full">
<watcher-list resource="sip:example11@xxxxxxxxxxxxx" package="presence">
<watcher status="pending" id="2ADBF78C" event="subscribe" expiration="1711">example12@xxxxxxxxxxxxx</watcher>
</watcher-list>
</watcherinfo>