Problems updating user credentials

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a problem trying to update the password of a given account (which is
already registered).

The code I'm using is:

    pjsua_acc_config acc_cfg;

    pjsua_acc_config_dup(pool, &acc_cfg, &pjsua_var.acc[acc_id].cfg);

    acc_cfg.cred_info[0].data = pj_str((char *)newPassword);

    pj_status_t retValue = pjsua_acc_modify(acc_id, &acc_cfg);


After calling pjsua_acc_modify, the value in pjsua_var is updated but when
the re-registration timer fires and a REGISTER is sent, it is using the old
credentials.

Browsing the code I saw that when the REGISTER request is built, it takes a
"credential cache" which might be using the old password.

sip_reg.c:485

/* Add cached authorization headers. */
> pjsip_auth_clt_init_req( &regc->auth_sess, tdata );


Is there any way to force that cache to be rebuilt?
Is this the right approach to change the user password?

Thanks!
Roberto.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130325/26a29616/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux