Cisco Cisco ASR 5000
ACS Charging Action Configuration Mode Commands
flow action ▀
Command Line Interface Reference, StarOS Release 18 ▄
411
terminate-session
Specifies to terminate the session.
When a rule pointing to a charging action configured with the terminate-session keyword is hit, then the
corresponding session will be terminated.
When a rule pointing to a charging action configured with the terminate-session keyword is hit, then the
corresponding session will be terminated.
url-readdress server ipv4_address [ port port_number ]
Configures the URL server to re-address for the specified charging action.
server ipv4_address
: Specifies the re-address server’s IPv4 address.
port port_number
: Specifies the re-address server’s port number.
port_number
must be an integer from 1 through 65535.
Usage
Use this command to specify the action to take on packets, for example to discard, terminate, or redirect.
When a readdress server is configured for a charging action, the
When a readdress server is configured for a charging action, the
show configuration
command will
display the readdress related configuration only if server address is configured. The
show configuration
verbose
command will display the readdress sever if configured, else will display “no flow action”.
The redirect-url option can be used to redirect SIP requests as well. The following is a sample configuration:
configure
active-charging service s1
charging-action ca_sip_redir
content-id 10
flow action redirect-url sip:test@sip.org
exit
ruledef sip_req
sip request packet = TRUE
exit
rulebase plan1
action priority 08 ruledef sip_req charging-action ca_sip_redir
/* other rules, routing rules for sip, etc */
end
This would mean any SIP request that hits the
sip_req
ruledef, would get redirected to the url given in
ca_sip_redir
. This involves creating a redirection packet with the following response line and “Contact”
header in the response.
SIP/2.0 302 Moved Temporarily
302 Moved Temporarily