Hi, Thanks for the report. Have just fixed this in r4935 ( http://trac.pjsip.org/repos/changeset/4935). Regards, Ming On Fri, Sep 26, 2014 at 2:07 PM, Povilas Krilius <Povilas.Krilius at jotron.com > wrote: > Hi All, > > > > If we call Account::modify with > AccountMediaConfig.TransportConfig.publicAddress unchanged - the account > will be corrupted. That's because pjsua will not make a copy of the new > string: > > > > if (pj_stricmp(&acc->cfg.rtp_cfg.public_addr, > &cfg->rtp_cfg.public_addr) || > > pj_stricmp(&acc->cfg.rtp_cfg.bound_addr, > &cfg->rtp_cfg.bound_addr)) > > { > > pjsua_transport_config_dup(acc->pool, &acc->cfg.rtp_cfg, > > > &cfg->rtp_cfg); > > } else { > > /* ..to save memory by not using the pool */ > > acc->cfg.rtp_cfg = cfg->rtp_cfg; > > } > > > > > > thus after leaving Account::modify the pointer in > acc->cfg.rtp_cfg.public_addr will be no longer valid/corrupted. > > > > > > Thanks > > > > *Please consider the environment before printing this email * > > _______________________________________________ > 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/20141001/496c4744/attachment.html>