res_pjsip_keepalive: Add runtime configurable keepalive module for connection-oriented transports.

This change adds a module which is configurable using the keep_alive_interval setting in the
global section that will send a CRLF keep alive to all active connection-oriented transports at
the provided interval. This is useful because it can help keep connections open through NATs.
This functionality also exists within PJSIP but can not be controlled at runtime and requires
recompiling it.

Review: https://reviewboard.asterisk.org/r/4084/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@425825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2014-10-17 13:17:58 +00:00
parent 86eea19c8f
commit 0d0e38a0e1
5 changed files with 299 additions and 0 deletions

View File

@@ -1964,4 +1964,11 @@ char *ast_sip_get_debug(void);
} \
} while(0)
/*!
* \brief Retrieve the system keep alive interval setting.
*
* \retval the keep alive interval.
*/
unsigned int ast_sip_get_keep_alive_interval(void);
#endif /* _RES_PJSIP_H */