diff options
author | George Joseph <george.joseph@fairview5.com> | 2016-02-11 10:01:05 -0700 |
---|---|---|
committer | George Joseph <george.joseph@fairview5.com> | 2016-02-19 17:56:27 -0700 |
commit | d2a1457e0b4ecdd512fe58fdb55ecc07fd141bea (patch) | |
tree | db97ca4b365f3bd4bad2110c69a0e4ff9fe268a7 /configs | |
parent | b4fdf93d06753c580b4ef7e34fe07670a8e4aff4 (diff) |
res_pjsip/config_transport: Allow reloading transports.
The 'reload' mechanism actually involves closing the underlying
socket and calling the appropriate udp, tcp or tls start functions
again. Only outbound_registration, pubsub and session needed work
to reset the transport before sending requests to insure that the
pjsip transport didn't get pulled out from under them.
In my testing, no calls were dropped when a transport was changed
for any of the 3 transport types even if ip addresses or ports were
changed. To be on the safe side however, a new transport option was
added (allow_reload) which defaults to 'no'. Unless it's explicitly
set to 'yes' for a transport, changes to that transport will be ignored
on a reload of res_pjsip. This should preserve the current behavior.
Change-Id: I5e759850e25958117d4c02f62ceb7244d7ec9edf
Diffstat (limited to 'configs')
-rw-r--r-- | configs/samples/pjsip.conf.sample | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configs/samples/pjsip.conf.sample b/configs/samples/pjsip.conf.sample index 5d128cbf1..ebbd199e7 100644 --- a/configs/samples/pjsip.conf.sample +++ b/configs/samples/pjsip.conf.sample @@ -810,6 +810,12 @@ ; clients are slow to process the received ; information. Value is in milliseconds; default ; is 100 ms. +;allow_reload=no ; Although transports can now be reloaded, that may not be + ; desirable because of the slight possibility of dropped + ; calls. To make sure there are no unintentional drops, if + ; this option is set to 'no' (the default) changes to the + ; particular transport will be ignored. If set to 'yes', + ; changes (if any) will be applied. ;==========================AOR SECTION OPTIONS========================= ;[aor] |