res_pjsip_outbound_registration: Make max random delay configurable.
Currently, PJSIP will randomly wait up to 10 seconds for each outbound registration's initial attempt. The reason for this is to avoid having all outbound registrations attempt to register simultaneously. This can create limitations with the test suite where we need to be able to receive inbound calls potentially within 10 seconds of starting up. For instance, we might register to another server and then try to receive a call through the registration, but if the registration hasn't happened yet, this will fail, and hence this inconsistent behavior can cause tests to fail. Ultimately, this requires a smaller random value because there may be no good reason to wait for up to 10 seconds in these circumstances. To address this, a new config option is introduced which makes this maximum delay configurable. This allows, for instance, this to be set to a very small value in test systems to ensure that registrations happen immediately without an unnecessary delay, and can be used more generally to control how "tight" the initial outbound registrations are. ASTERISK-29965 #close Change-Id: Iab989a8e94323e645f3a21cbb6082287c7b2f3fd
parent
5f0581c5
No related branches found
No related tags found
Showing
- configs/samples/pjsip.conf.sample 5 additions, 0 deletionsconfigs/samples/pjsip.conf.sample
- contrib/ast-db-manage/config/versions/18e0805d367f_max_random_initial_delay.py 21 additions, 0 deletions.../config/versions/18e0805d367f_max_random_initial_delay.py
- res/res_pjsip_outbound_registration.c 16 additions, 1 deletionres/res_pjsip_outbound_registration.c
Loading
Please register or sign in to comment