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

[reSIProcate] RES: ClientSubscriptionHandler


Hi,

 

OnUpdatePending is called after the client receives a Subscription-State header with pending value. This generally occurs when the Presence Server is consulting the presentity if you will be authorized to see his presence.

OnUpdateActive is called after the client receives a Subscription-State header with active value. The Pidf or RPID document will be in message body.

OnUpdateExtension, I don’t know.

 

What should I return in onRequestRetry (should I return the retrySeconds value)?

 

-1 for don’t retry (error will be generated), 0 for retry immediately, 0> for seconds to wait for retry.

 

Am I correct that for dealing with a ClientSubscription which was implicitly created through REFER, it is sufficient to wait for ClientSubscriptionHandler::onTerminated, then create a SIP message from the sipfrag and use this message’s response code to determine if the REFER was successful or not?

 

Don’t know.

 

Regards,

 

 

Gustavo Honorato

Software Engineer

Inovax Engenharia de Sistemas

Brazil, Rio de Janeiro

 


De: Matthias Moetje [mailto:moetje@xxxxxxxxxxxx]
Enviada em: sexta-feira, 25 de maio de 2007 12:56
Para: resiprocate-devel@xxxxxxxxxxxxxxxxxxxx
Assunto: [reSIProcate] ClientSubscriptionHandler

 

Hi,

 

could someone please shed some light on the callback functions of the ClientSubscriptionHandler? Some are easy to understand but when are:

 

onUpdatePending, onUpdateActive and onUpdateExtension actually called?

 

What should I return in onRequestRetry (should I return the retrySeconds value)?

 

Am I correct that for dealing with a ClientSubscription which was implicitly created through REFER, it is sufficient to wait for ClientSubscriptionHandler::onTerminated, then create a SIP message from the sipfrag and use this message’s response code to determine if the REFER was successful or not?

 

 

Thanks for any help,

 

Matthias Moetje

cid:809010616@21122006-3519

TERASENS GmbH
Augustenstraße 24
80333 Munich
GERMANY

 

Phone:
Fax:
e-mail:
Web:

 

+49.89.143370-0
+49.89.143370-22
info@xxxxxxxxxxxx
www.terasens.com