Hi Klaus, You can probably make your life a bit easier if you use callbacks in C instead of C++. I do not have any personal experience with doing this sort of thing in C++, but it is not too difficult in C. Too make it easy on myself: have a look at this article: http://www.inquiry.com/techtips/cpp_pro/10min/10min0300.asp If this is still not helping you a lot, let me know and I'll post you some source code. One of the things that you have to keep in mind is that you may have to declare some functions in C-style (as in 'extern "C" { ... }) to make sure that you use the right calling convention. Cheers, Frank On Dec 12, 2007 3:16 PM, Klaus Darilion <klaus.mailinglists at pernau.at> wrote: > Hi! > > I'm trying to add pjsip to a QT C++ application. This gives me headaches > as I have no clue how to make callbacks in C++. There are lots of > different approaches (static member function as wrapper, templates ...). > > I tried the static member function wrapper with logging callbacks but my > application crashes ~50%. > > I wonder if someone have practical tips for my how to connect pjsip's > callbacks to member functions. > > thanks > klaus > > _______________________________________________ > 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/20071213/0ae4aa28/attachment.html