06.12.2012 Views

F REQUENTLY A SKED Q UESTION - Snom

F REQUENTLY A SKED Q UESTION - Snom

F REQUENTLY A SKED Q UESTION - Snom

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

This function enables a user account<br />

(indicated in the variable “account”).<br />

Available Actions for the Proxy<br />

Versions 2.2x<br />

We highly recommend upgrading to<br />

proxy versions 2.3x or higher. However, if<br />

you do wish to continue operating the 2.2x<br />

or previous versions, you will need to use a<br />

different web interface.<br />

You can take a look at the html source<br />

code before pressing the “save” button to a<br />

web request in order to see which parameters<br />

are used to post a request. This chapter shows<br />

and explains to you which parameters are<br />

valid.<br />

Setting Parameters in 2.2x<br />

Setting parameters is carried out with<br />

the SAVE=Save parameter. The table on<br />

the next page shows which parameters are<br />

available (also see the manual). For example,<br />

to set the retry_t1 time, you would use:<br />

curl -d save=save -d retry_t1=400 -u<br />

user:pass myproxy.com:5068 >/dev/null<br />

Add a User<br />

To add a user, use the parameters<br />

Domain, Account, Username and Password<br />

as described in the snom 4S Proxy/Registrar<br />

manual and add the ADD_USER=Add/Edit<br />

parameter.<br />

Example to add a new user:<br />

curl -u user:pass -d ADD_USER=add/<br />

edit -d domain=bla.com -d account=testc<br />

-d username=testc -d password=1234<br />

myproxy.com:5068 >/dev/null<br />

Remove a User in 2.2x<br />

To remove a user, set the argument<br />

userdel to the account name of the user you<br />

want to remove. No additional parameters are<br />

required. Make sure that the domain name is<br />

[ F R E Q U E N T L Y A S K E D Q U E S T I O N ]<br />

separated from the user name by a space.<br />

Example:<br />

curl -d userdel=”bla.com testc” -u user:<br />

pass myproxy.com:5068 >/dev/null<br />

Add a Dial Plan Element in 2.2x<br />

Adding an element to the Dial Plan<br />

is similar to adding a user. The parameter<br />

SaveAdr must be set to Save.<br />

The values for the dial plan are stored<br />

in the variables apa[x], apb[x], apc[x] and<br />

apd[x]. x starts from 0 for the first entry and<br />

continues until a empty line has been found.<br />

apa elements may have the value allow,<br />

deny, incomplete, gateway or notfound<br />

according to the meaning described in the<br />

manual. apb, apc and apd have the values<br />

described in the manual.<br />

Add Error-Info Element in 2.2x<br />

The error-information list is handled in a<br />

similar fashion to the dial plan.<br />

The variables manipulated here have the<br />

name eia[x] and eib[x]. eia takes the error<br />

code (e.g. 404), eib the destination url.<br />

Parameters for 2.2x<br />

The following list shows the available<br />

parameters:<br />

Remote Control for snom 4S 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!