44 • Scripting
[
S N O M
4 S P
R O X Y
/ R
E G I S T R A R
M
A N U A L
]
snom technology AG • 45
[
S N O M
4 S P
R O X Y
/ R
E G I S T R A R
M
A N U A L
]
Example: conv_enum(“+49-30-39833-0”) returns “0.3.3.8.9.3.0
.3.9.4.e164.arpa”.
Registration Related Functions
known
The function known determines if the account name provided as
argument has an assigned username. This is the case if the account has
been set up on the proxy. It is not necessary that the password is set.
Example: known(“1234”) returns “true”
registered
The function registered is similar to the known function. However,
in this case the proxy checks if at least one registration exists for the
provided account name. That means that it will be possible to proxy a
request to this user.
Example: registered(“1234”) returns “false”
resolvable_contact
The function resolvable_contact does not take any parameters.
It checks if the contact in the current request can be resolved
from the proxy point of view. If the proxy has a NAT address, this function
will always return true. Otherwise, the proxy will check if the request
contains a Path header and if that is the case, it is assumed that the
contact is resolvable. If this is also not the case, the proxy will return false
if one of the contacts is a private address.
The proxy does not perform DNS resolution to check if a address
is a private address. The primary goal with this function is to avoid stupid
registration attempts from behind NAT so that customers receive a notice
when their network is not setup correctly for handling NAT.
register
The function register takes as parameter an account name. It
registers the contacts provided in the current request with the current
account and sends a success response back to the user agent client.
6.
Summary of Contents for 4S Media Server
Page 1: ...Administrator s Manual snom 4S SIP Proxy Registrar Version 2 30 ...
Page 14: ...14 VoIP Protocol S N O M 4 S P R O X Y R E G I S T R A R M A N U A L 1 ...
Page 84: ...84 Routing S N O M 4 S P R O X Y R E G I S T R A R M A N U A L 10 ...
Page 98: ...98 Maintenance S N O M 4 S P R O X Y R E G I S T R A R M A N U A L 13 ...