2016-02-16 15:14 GMT+01:00 Shaul Kedem <shaul at yallo.com>: > What do you put in pjsua_logging_config ? do you pass it on to init ? > > I am not using plain pjsip libraries, but pjsua2 abstraction. In that sense, my init configuration code is like following. try { EpConfig *ep_cfg; ep_cfg = new EpConfig(); ep_cfg->logConfig.msgLogging=1; ep_cfg->logConfig.consoleLevel=5; ep_cfg->logConfig.level = 5; // ep_cfg->logConfig.filename = "THE.LOG"; // this line makes app to crash, probably because of write permissions ep->libInit(*ep_cfg); } catch(Error& err) { // ... } which is similar to the examples given, e.g. in pjsip-apps/src/samples/pjsua2_demp.cpp > On 16 Feb 2016, at 4:00 PM, Andres Perez <anpelo6 at gmail.com> wrote: > > Hi, > > I want to use pjsip for an android VoIP application. > I am using native functions to call libpjsua2.so methods. libpjsua2 was > obtained in the way described in Getting-Started/Android: first building > all pj* folders to obtain libpj*.a, and then running /pjsip-apps/src/swig/make > to build libpjsua2 and swig bindings (which I don't use anyway). > > I am unable to get any log message through LogCat. I am working with > Android Studio 1.5, gradle experimental 0.2.0. > > In the android documentation, under "Debugging native code with Eclipse", > it is advised to use the compiler flag CFLAGS += -g (for example by > adding it to user.mak when building static libraries). > I have followed that point, but I think it is even not necessary, since in > the output of ./configure-android says CFLAGS = -fpic > -ffunction-sections -funwind-tables -no-canonical-prefixes -march=armv7-a > -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb -Os -g (...) by default. > > I think that I'm having some kind of issue with libs compilation that does > not configure logs properly, but I could not find any further > documentation. > > Thank you for your attention. > > Best, > > Andr?s > > -- > *\A/* > _______________________________________________ > 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 > > > > _______________________________________________ > 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 > > -- *\A/* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20160216/bcf74909/attachment.html>