Well, you do get a EVENT_CATEGORY_NOTIFY event after you subscribe only if the other UA (Publisher) PUBLISH'es it's state change by sending a PUBLISH to the server (This PUBLISH has to be periodic, even if there is no state change, the PUBLISH should go out from the PUBLISH'er)
RFC Session Initiation Protocol (SIP) Extension for Event State Publication Section 4.3 A publication refresh only extends the expiration time of already existing event state. It does not affect that event state in any other way. Therefore, a PUBLISH request that refreshes event state MUST NOT have a body. . The server in turn NOTIFY's the SUBSCRIBE'r of the event change using NOTIFY requests. You let other users know of your state change by sending a PUBLISH out from the application layer. -Amith On 7/5/07, KUMAR <[EMAIL PROTECTED]> wrote:
Hi all, I think I was unclear(maybe mistaken) while writing my previous post. When I Subscribe, I receive a 202 Accepted from the other end, as well as NOTIFY. But at the application level, I only get EVENT_CATEGORY_SUB_STATUS. Shouldn't I also be getting an EVENT_CATEGORY_NOTIFY type event. Also, I would like to know how to let other users know when I change my presence status ? Thank you kumar ---------- Forwarded message ---------- From: KUMAR <[EMAIL PROTECTED]> Date: Jul 5, 2007 9:56 AM Subject: Presence To: [email protected] Hi all, I'm trying to write a UA, with end-to-end presence support. I'm a bit confused about it. Here's what I'm doing. I want to be notified when the user at the other end changes his/her status. sipxPublisherCreate(h_UA,&h_Pub,"sip:[EMAIL PROTECTED] ","presence","application/pidf+xml","Online",6); sipxConfigSubscribe(h_UA,h_Line,"sip:[EMAIL PROTECTED] ","presence","application/pidf+xml",CONTACT_AUTO,&h_Sub); Now, when this code executes, a SUBSCRIBE message is sent to user [EMAIL PROTECTED], I get a NOTIFY, which raises SUBSCRIPTION_ACTIVE event. At no time do i get an EVENT_CATEGORY_NOTIFY. Even when the user at other end ([EMAIL PROTECTED]) changes his status, no NOTIFY gets send. I'm doing sipxPublisherUpdate(h_Pub,"application/pidf+xml","Busy",4); at the other end when status is changed. My question is, how do I make the API send NOTIFY when the user changes his status ? Thank you kumar _______________________________________________ sipxtapi-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
_______________________________________________ sipxtapi-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
