Customize SUBSCRIBE callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 6, 2008 at 4:30 PM, Johan Drevet <johandrevet at gmail.com> wrote:

> Hi,
>
> I develop an UA and I want to customize some callbacks. For most callbacks,
> I simply link my new callback function in the '*pjsua_callback*' of '*
> pjsua_config*' before the initialisation of the pjsua.
>

Yep.


> But I can't find how I can do it for the SUBSCRIBE callback. I think *
> pres_on_rx_request()* in *pjsua_pres.c* is called when SUSCRIBE request is
> received, but I haven't found how I can use my own callback function.
>

You're right again, such callback doesn't exist in 0.9. But I've added that
recently, if you want you can grab the latest SVN code and try it out. The
callback is pjsua_callback.on_incoming_subscribe(), and the rest is
described in the doxygen comment for that callback.

Cheers
 Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080806/813e5ff0/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux