On_Denial - Snom 4S Administrator's Manual

Sip proxy/registrar version 2.30
Table of Contents

Advertisement

[
S N O M
predict in beforehand which packets require_billing and which not. That is
the reason why the proxy calls the require billing function to determine if
it should do billing or not.
Requests which already contain a route are never subject to
billing. These requests are usually part of an ongoing call which did not
need any further billing checks. This approach does not introduce new
security problems, because if user agents is able to preset a route without
previous proxy interaction, but will also be able to bypass the proxy at
all.
Default Implementation
The default implementation merely checks if the request is an
INVITE request and if this is the case returns true. All other requests are
assumed not to require billing.
require_billing() {
return $method == "INVITE";
}

on_denial

Condition for Calling
When the RADIUS admission request has been denied, the proxy
calls the on_denial function. This function will usually generate an error
response explaining that the credit on the billing server has expired. It
may also include additional information like error information that will
make the user agents call the media server, which will explain what
happened.
Default Implementation
The default implementation merely returns in an error code "403
Forbidden".
on_denial() {
reject_request("403 Forbidden");
}
4 S P
/ R
R O X Y
E G I S T R A R
M
]
A N U A L
snom technology AG • 57

Advertisement

Table of Contents
loading

Table of Contents