R0106-HP MSR Router Series Voice Command Reference(V7)
144
Views
VoIP entity view
Predefined user roles
network-admin
Parameters
up-interval seconds: Sets the interval for sending OPTIONS packets when the VoIP entity is available, in
the range of 5 to 1200 seconds. The default value is 60 seconds.
down-interval seconds: Sets the interval for sending OPTIONS packets when the VoIP entity is not
available, in the range of 5 to 1200 seconds. The default value is 30 seconds.
retry retries: Sets the number of retries to change the state for the VoIP entity.
Usage guidelines
After you enable the keepalive function for a VoIP entity, the UA sends OPTIONS packets at the
up-interval. If the UA receives a response within the up-interval, it considers the VoIP entity to be
available. If the UA receives no response within the up-interval, or receives a 408, 499, or 5XX response
(except for 500, 501, 502, 503, 504, and 513), it sends OPTIONS packets at the timers options interval.
If the UA still receives no responses after the maximum number of retries is reached, it considers the VoIP
entity to be unavailable.
Then, the UA sends OPTIONS packets at the down-interval. If the UA receives a response within the
down-interval, it sends OPTIONS packets at the timers options interval. If the UA still can receive
responses after the number of retries is reached, it considers the VoIP entity to be available.
The keepalive function does not take effect for a VoIP entity that has been shut down by using the
shutdown command.
Examples
# Enable the keepalive function for VoIP entity 10, and set the up-interval to 50 seconds, the
down-interval to 20 seconds, and the number of retries to 2.
<Sysname> system-view
[Sysname] voice-setup
[Sysname-voice] dial-program
[Sysname-voice-dial] entity 10 voip
[Sysname-voice-dial-entity10] voice-class sip options-keepalive up-interval 50
down-interval 20 retry 2
Related commands
timers options
voice-class sip url
Use voice-class sip url to configure a URL scheme used for outgoing SIP calls on a VoIP entity.
Use undo voice-class sip url to restore the default.
Syntax
voice-class sip url { sip | sips }
undo voice-class sip url