added reg.c-patch file

This commit is contained in:
Juha Heinanen
2018-07-14 21:32:12 +03:00
parent ffd90a5190
commit d705f9f9e6
2 changed files with 22 additions and 1 deletions

View File

@ -5,7 +5,9 @@ Currently includes TLS transport, PCMU/PCMA and opus codecs, as well as
ZRTP and (DTLS) SRTP media encapsulation. ZRTP and (DTLS) SRTP media encapsulation.
The static libraries and include files in distribution directory have The static libraries and include files in distribution directory have
been produced using https://github.com/alfredh/baresip-android. been produced using https://github.com/alfredh/baresip-android after
applying reg.c-patch to re/src/sipreg/reg.c. The patch is needed due to
re timer sometimes firing too late.
After cloning the project, in android-studio: After cloning the project, in android-studio:

19
reg.c-patch Normal file
View File

@ -0,0 +1,19 @@
*** /usr/src/orig/re/src/sipreg/reg.c 2018-07-14 21:21:09.622850976 +0300
--- reg.c 2018-07-14 21:22:01.979133613 +0300
***************
*** 188,194 ****
reg->wait = reg->expires;
sip_msg_hdr_apply(msg, true, SIP_HDR_CONTACT, contact_handler,
reg);
! reg->wait *= 900;
reg->failc = 0;
if (reg->regid > 0 && !reg->terminated && !reg->ka)
--- 188,194 ----
reg->wait = reg->expires;
sip_msg_hdr_apply(msg, true, SIP_HDR_CONTACT, contact_handler,
reg);
! reg->wait *= 200;
reg->failc = 0;
if (reg->regid > 0 && !reg->terminated && !reg->ka)