SIPWhiteList
Methods
AddSipWhiteListItem
Adds a new network address to the SIP white list.
To call this method, make sure your service account has one of the following roles:
Parameters
description:
string
OptionalThe network address description
sip_whitelist_network:
string
The network address in format A.B.C.D/L or A.B.C.D/a.b.c.d (example 192.168.1.5/16)
Returns
result:
number
1
sip_whitelist_id:
number
The SIP white list item ID
DelSipWhiteListItem
Deletes the network address from the SIP white list.
To call this method, make sure your service account has one of the following roles:
Parameters
sip_whitelist_id:
number
The SIP white list item ID to delete
Returns
result:
number
1
GetSipWhiteList
Gets the SIP white list.
To call this method, make sure your service account has one of the following roles:
Parameters
count:
number
OptionalDefaults on:Â Â 20The max returning record count
offset:
number
OptionalDefaults on:Â Â 0The first N records are skipped in the output
sip_whitelist_id:
number
OptionalThe SIP white list item ID to filter
Returns
count:
number
The returned networks count
result:
total_count:
number
The total found networks count
SetSipWhiteListItem
Edits the SIP white list.
To call this method, make sure your service account has one of the following roles:
Parameters
description:
string
OptionalThe network address description
sip_whitelist_id:
number
The SIP white list item ID
sip_whitelist_network:
string
The new network address in format A.B.C.D/L or A.B.C.D/a.b.c.d (example 192.168.1.5/16)
Returns
result:
number
1