Open ludivinefafournoux opened 4 years ago
I managed to implement this yesterday.
Go to VSLAccount.m file
Find configureWithAccountConfiguration
method
add these below lines some where in this method
acc_cfg.reg_timeout = 9000;
acc_cfg.reg_retry_interval = 5;
acc_cfg.reg_retry_random_interval = 5;
yes I did it, but i'm trying to add it in my SipUser like sipRegisterOnAdd, but no success now
I've added property in VSLAccountConfiguration.h
:
@property (nonatomic) unsigned int retryIntervalSec;
In VialerSIPLib.h
:
@property (readonly, nonatomic) unsigned int retryIntervalSec;
And in my SipUser
init I've added this parameter, and I put the value in Keys but I have the value 0 ! I don't understand (It's the first time I'm doing Objective-C)
Why did you include in VSLAccountConfiguration.h
?
I used these members in my VSLAccount.m
and Im done. This is now Global Settings. Every register account will be have same Retry Intervals.
Yes, but I would like this to be configurable from the SipUser, like other parameters and maybe add it to the lib
File
In
pjsua.h
there isreg_retry_random_interval
, I think it's that I have to modify, but I don't know where and how.Expected behavior
I want to modify the delay between two registrations, if the registration fails.
Actual behavior
Now the delay is 300 seconds, after the first retry
💛 WARNING 16:12:57.999 [VSLEndpoint void logCallBack(int, const char *, int):553] pjsua_acc.c ...SIP registration failed, status=408 (Request Timeout)
💚 DEBUG 16:12:58.001 [VSLEndpoint void logCallBack(int, const char *, int):559] pjsua_acc.c ...Scheduling re-registration retry for acc 0 in 308 seconds..