diff --git a/sflphone-common/src/audio/audiortp/AudioZrtpSession.cpp b/sflphone-common/src/audio/audiortp/AudioZrtpSession.cpp index 2b5fe9eb74e1b59599432fa7be2abea351a5c8cd..e0c4da8d178b17022566b95b03799e28f24c56b3 100644 --- a/sflphone-common/src/audio/audiortp/AudioZrtpSession.cpp +++ b/sflphone-common/src/audio/audiortp/AudioZrtpSession.cpp @@ -47,8 +47,11 @@ namespace sfl { throw ZrtpZidException(); } - std::string zidCompleteFilename = std::string(HOMEDIR) + DIR_SEPARATOR_STR + "." + PROGDIR + "/" + _zidFilename; + std::string zidCompleteFilename = std::string(HOMEDIR) + DIR_SEPARATOR_STR + ".cache" + DIR_SEPARATOR_STR + PROGDIR + "/" + _zidFilename; + _debug("Initialize Zid: try to find zid in: %s\n", zidCompleteFilename.c_str()); + + if(initialize(zidCompleteFilename.c_str()) >= 0) { _debug("Register callbacks\n"); setEnableZrtp(true);