New settings of a registered account are not taken into consideration

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

 



Hi Samuel,

If only the register timeout is changed, the reregistration process by
pjsua_modify_acc() is just a normal register refresh (without
unregister step), so the call should not be stopped.

BR,
nanang


On Sat, Apr 14, 2012 at 5:22 PM, Samuel Vinson <samuelv at laposte.net> wrote:
> Hi Nanang,
>
> Thanks for the fix. What happens if there is a call (in progress), and the
> settings are changed ?
> I suppose that the call is stopped, because the registration is stopped and
> restarted.
>
> This case could arrive on iOS, when the application goes in background, and
> we change the register timeout.
> Maybe the new register should wait that the current call stops.
>
> Regards
>
> Samuel
>
> Le 12/04/12 11:10, Nanang Izzuddin a ?crit :
>>
>> Hi Samuel,
>>
>>
>> Just fixed this in https://trac.pjsip.org/repos/ticket/1484.
>>
>> Thanks for the report!
>>
>> BR,
>> nanang
>>
>>
>> On Mon, Mar 5, 2012 at 1:04 AM, Samuel Vinson<samuelv at laposte.net> ?wrote:
>>>
>>> Dear all,
>>>
>>> I would like to change some settings of a registered account, like
>>> "register
>>> timeout".
>>> For that I call pjsua_acc_modify function with the unmodified and new
>>> settings.
>>> For some settings, the pjsua_acc_set_registration is automatically called
>>> but for
>>> other settings (like "register timeout") the pjsua_acc_set_registration
>>> function has
>>> to be manually called.
>>>
>>> Unfortunately, the new settings are not taken into account during the new
>>> registration,
>>> because the regc (field of the pjsua_acc structure) is not NULL. And in
>>> this
>>> case,
>>> the register message header is not rebuilt (like Expires header), because
>>> the
>>> pjsua_regc_init function is not called.
>>>
>>> How can I change some settings of a registered account (like register
>>> timeout) without
>>> unregister and register the account ?
>>>
>>> Regards
>>>
>>> Samuel
>>>
>>> _______________________________________________
>>> 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
>>
>



[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