Discussion:
[Linphone-developers] Initial Expire Value in Android Source Code
Yaakov Goldberg
2015-01-19 21:01:37 UTC
Permalink
Hi all,

I've asked this a while ago, but perhaps it slipped by. I'm trying to
create a new version with a default of 60 second registration expiration
time instead of 3600 seconds, but just can't seem to find where this is
initialized. I've searched through all the code in a number of ways,
but can't find anything that has 3600, 60 *mins, 1 * hours or similar.
I'm sure it's there, but can seem to get it. All I'm asking for is a
pointer to the source file please.

Thanks in advance,

Yaakov
jehan monnier
2015-01-20 07:42:51 UTC
Permalink
Hi,

You may try to add the following lines in linphonerc_factory file

[proxy_default_values]
reg_expires=60

Jehan
www.linphone.org
Post by Yaakov Goldberg
Hi all,
I've asked this a while ago, but perhaps it slipped by. I'm trying to create a new version with a default of 60 second registration expiration time instead of 3600 seconds, but just can't seem to find where this is initialized. I've searched through all the code in a number of ways, but can't find anything that has 3600, 60 *mins, 1 * hours or similar. I'm sure it's there, but can seem to get it. All I'm asking for is a pointer to the source file please.
Thanks in advance,
Yaakov
_______________________________________________
Linphone-developers mailing list
https://lists.nongnu.org/mailman/listinfo/linphone-developers
Yaakov Goldberg
2015-01-20 16:05:24 UTC
Permalink
Hi Jehan,

Thanks for answering, but is that in the Android source code? That's
where I'm trying to change it. Maybe it wasn't clear in the email
content, but that's what I mentioned in the subject.

Yaakov
Post by jehan monnier
Hi,
You may try to add the following lines in linphonerc_factory file
[proxy_default_values]
reg_expires=60
Jehan
www.linphone.org <http://www.linphone.org>
Post by Yaakov Goldberg
Hi all,
I've asked this a while ago, but perhaps it slipped by. I'm trying
to create a new version with a default of 60 second registration
expiration time instead of 3600 seconds, but just can't seem to find
where this is initialized. I've searched through all the code in a
number of ways, but can't find anything that has 3600, 60 *mins, 1 *
hours or similar. I'm sure it's there, but can seem to get it. All
I'm asking for is a pointer to the source file please.
Thanks in advance,
Yaakov
_______________________________________________
Linphone-developers mailing list
https://lists.nongnu.org/mailman/listinfo/linphone-developers
Yaakov Goldberg
2015-01-20 16:47:40 UTC
Permalink
OK, I found it under res/raw. Thanks, I will try it.
On the other hand, I was still looking for where the default 3600 was
coming from before I added THAT new default. I didn't find it in the
code, but then again I'm not sure how that "Factory" file is used.

Thanks,

Yaakov
Post by Yaakov Goldberg
Hi Jehan,
Thanks for answering, but is that in the Android source code? That's
where I'm trying to change it. Maybe it wasn't clear in the email
content, but that's what I mentioned in the subject.
Yaakov
Post by jehan monnier
Hi,
You may try to add the following lines in linphonerc_factory file
[proxy_default_values]
reg_expires=60
Jehan
www.linphone.org <http://www.linphone.org>
Post by Yaakov Goldberg
Hi all,
I've asked this a while ago, but perhaps it slipped by. I'm trying
to create a new version with a default of 60 second registration
expiration time instead of 3600 seconds, but just can't seem to find
where this is initialized. I've searched through all the code in a
number of ways, but can't find anything that has 3600, 60 *mins, 1 *
hours or similar. I'm sure it's there, but can seem to get it. All
I'm asking for is a pointer to the source file please.
Thanks in advance,
Yaakov
_______________________________________________
Linphone-developers mailing list
https://lists.nongnu.org/mailman/listinfo/linphone-developers
Yaakov Goldberg
2015-01-20 23:08:10 UTC
Permalink
Hi Jehan,

I wanted to thank you for that reference. Maybe it was obvious to
others, but I hadn't realized that the C-code was part of the Android
App. Now it's all much clearer. I was able to find the code I was
looking for, once you provided the string I should have been looking
for. I only found it in the C-code before and was ignoring that. Even
the "3600" default is there, plain as day (along with some other
defaults I wanted to tweak).

Thanks again for taking the time to respond.

Yaakov
Post by jehan monnier
Hi,
You may try to add the following lines in linphonerc_factory file
[proxy_default_values]
reg_expires=60
Jehan
www.linphone.org <http://www.linphone.org>
Post by Yaakov Goldberg
Hi all,
I've asked this a while ago, but perhaps it slipped by. I'm trying
to create a new version with a default of 60 second registration
expiration time instead of 3600 seconds, but just can't seem to find
where this is initialized. I've searched through all the code in a
number of ways, but can't find anything that has 3600, 60 *mins, 1 *
hours or similar. I'm sure it's there, but can seem to get it. All
I'm asking for is a pointer to the source file please.
Thanks in advance,
Yaakov
_______________________________________________
Linphone-developers mailing list
https://lists.nongnu.org/mailman/listinfo/linphone-developers
Loading...