Snom 4S Administrator's Manual page 43

Sip proxy/registrar version 2.30
Table of Contents

Advertisement

[
S N O M
parse_user, parse_host, parse_port, parse_scheme
These functions extract parts of the URL. If the URL is enclosed
in "<" and ">" and part of a display-name representation, the pure URL is
retrieved first. See the specification in RFC3261 for details on URL.
Example: parse_user("<sip:abc@stoneage.org>") returns "abc",
parse_user("sip:host:5068")
returns "tel", parse_port("sip:abc@stoneage.org") returns "",parse_
port("sip:abc@stoneage.org:5052") returns "5052", parse_host("sip:
abc@stoneage.org:5061") returns "stoneage.org".
parse_name
This function extracts the display-name.
Examples:
ff@stoneage.org>" returns "Fred \"F.\" Feuerstein".
parse_cparm, parse_uparm
This function extracts the contact parameters (parse_cparm) or
the URL parameters (parse_uparm) of a string.
The contact parameters are not part of the URL and are only
present if the url is protected by the "<" and ">" symbols. If these symbols
are not present, the parameters are assumed to be part of the URL.
The result is a list of space-separated elements representing the
parameters.
Example: parse_cparm("F Feuer <sip:ff@bla.com>;tag=123;par
m=456") returns "tag=123 parm=456".
parse_header
This function extracts the contact header arguments of a string.
The header arguments are behind the "?" and separated by "&" characters
(see http URL). The result is also a list of space separated elements.
Example: parse_header ("sip:ff@bla.com?p1=1&p2=2") returns
"p1=1 p2=2".
4 S P
/ R
R O X Y
E G I S T R A R
returns
parse_name("Fred
M
]
A N U A L
"",
parse_scheme("tel:1234")
\\\"F.\\\"
Feuerstein
snom technology AG • 43
<sip:

Advertisement

Table of Contents
loading

Table of Contents