To identify Session Initiation Protocol (SIP) servers that will
receive keepalive packets from the SIP gateway, use the
keepalive target command in SIP user-agent configuration mode. To disable the
keepalive targetcommand behavior, use the
no form of this command.
Examples
The following example sets the primary SIP server address and
defaults to the UDP transport:
sip-ua
keepalive target ipv4:172.16.0.10
The following example sets the primary SIP server address and the
transport to UDP:
sip-ua
keepalive target ipv4:172.16.0.10 udp
The following example sets both the primary and secondary SIP server
address and the transport to UDP:
sip-ua
keepalive target ipv4:172.16.0.10 udp
keepalive target ipv4:172.16.0.20 udp secondary
The following example sets both the primary and secondary SIP server
addresses and defaults to the UDP transport:
sip-ua
keepalive target ipv4:172.16.0.10
keepalive target ipv4:172.16.0.20 secondary
The following example sets the primary SIP server address and the
transport to TCP:
sip-ua
keepalive target ipv4:172.16.0.10 tcp
The following example sets both the primary and secondary SIP server
addresses and the transport to TCP:
sip-ua
keepalive target ipv4:172.16.0.10 tcp
keepalive target ipv4:172.16.0.20 tcp secondary
The following example sets the primary SIP server address and the
transport to TCP and sets security to TLS mode:
sip-ua
keepalive target ipv4:172.16.0.10 tcp tls
The following example sets both the primary and secondary SIP server
addresses and the transport to TCP and sets security to the TLS mode:
sip-ua
keepalive target ipv4:172.16.0.10 tcp tls
keepalive target ipv4:172.16.0.20 tcp tls secondary