Thanks for your quick reply and also for your excellent programming work :-) Best regards Johan 2008/8/6 Benny Prijono <bennylp at pjsip.org> > 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 > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080806/d9c54744/attachment.html