[reSIProcate] Implementing presence with resiprocate
Dien Ba Quang
dienbaquang at gmail.com
Mon May 14 09:33:40 CDT 2007
Hi,
The name of all the callbacks implied its meaning, and you could take a look
at class SubscriptionHandler, it has some comments before each callback
functions. If you want more information you dig into dispatch() function in
two classes ClientSubscription.cxx and ServerSubscription.cxx:
Some main functions:
When your User Agent(UA) sends a SUBSCRIBE message -> call this callback
virtual void onNewSubscription(ClientSubscriptionHandle, const SipMessage&
notify)=0;
When your UA receives a SUBSCRIBE message -> call this callback
virtual void onNewSubscription(ServerSubscriptionHandle, const SipMessage&
sub)=0;
You can use ServerSubscriptionHandle to send back an ACCEPT and NOTIFY
message
When your UA receives a NOTIFY message -> call this callback
virtual void onUpdateActive(ClientSubscriptionHandle is, const SipMessage&
notify, bool outOfOrder)
Hope it's useful.
DBQ.
On 5/11/07, Gustavo Honorato <gustavo at inovax.com.br> wrote:
>
> Hi,
>
>
>
> I looked your code, it helped me a little. Basically, my difficulties are
> in discover the meaning of functions callbacks in ClientSubscriptionHandler,
> ServerSubscriptionHandler and ClientPublication and its parameters. If you
> have any Class Documentation for these classes it will help me a lot, or
> show me the trick that you used to understand the usage of this classes.
> JJJ
>
>
>
> Thanks and best regards,
>
>
>
> *Gustavo Honorato*
>
> Software Engineer
>
> Inovax Engenharia de Sistemas
>
> Brazil, Rio de Janeiro
>
>
>
>
> ------------------------------
>
> *De:* Dien Ba Quang [mailto:dienbaquang at gmail.com]
> *Enviada em:* quarta-feira, 9 de maio de 2007 19:11
> *Para:* Gustavo Honorato
> *Cc:* resiprocate-devel at list.resiprocate.org
> *Assunto:* Re: [reSIProcate] Implementing presence with resiprocate
>
>
>
> Hi,
> In my previous emails, I have some sample codes used for implementing
> presence. You should do a search in the mailing list.
>
> DBQ.
>
> On 5/7/07, *Gustavo Honorato *<gustavo at inovax.com.br> wrote:
>
> Hi,
>
>
>
> I'm trying to implement presence in my softphone. I couldn't find any test
> programs to help me how to use Resiprocate. Could anyone suggest one way to
> learn how make SUBSCRIBES, NOTIFIES and PUBLISHES?
>
>
>
> Thanks and best regards,
>
> Gustavo Honorato
>
>
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20070514/80702e93/attachment.htm>
More information about the resiprocate-devel
mailing list