Add support for lightweight NAT keepalive.

If enabled using the keepalive option in sip.conf a small packet will be sent
at a regular interval to keep the NAT mapping open. This is lightweight as the
remote side does not need to parse and handle a SIP message.

(closes issue AST-783)
Review: https://reviewboard.asterisk.org/r/1756/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@364500 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2012-04-28 20:24:45 +00:00
parent 19097a4b62
commit ae1502be33
4 changed files with 118 additions and 1 deletions

View File

@@ -273,6 +273,9 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
; Default: 100
;qualifypeers=1 ; Number of peers in a group to be qualified at the same time
; Default: 1
;keepalive=60 ; Interval at which keepalive packets should be sent to a peer
; Valid options are yes (60 seconds), no, or the number of seconds.
; Default: 0
;notifymimetype=text/plain ; Allow overriding of mime type in MWI NOTIFY
;buggymwi=no ; Cisco SIP firmware doesn't support the MWI RFC
; fully. Enable this option to not get error messages
@@ -1194,6 +1197,7 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
; host
; port
; qualify
; keepalive
; defaultip
; defaultuser
; rtptimeout