Project

General

Profile

Sip settings » History » Version 30

Adrian Georgescu, 07/13/2010 03:12 PM

1 1 Adrian Georgescu
2 30 Adrian Georgescu
h2. sip-settings
3 1 Adrian Georgescu
4
5
6 30 Adrian Georgescu
7
> This script is available in _sipclients_ package that must be installed separately from SIP SIMPLE client SDK package.
8
9
10
h3. Description
11
12
13 28 Adrian Georgescu
Manages the configuration used by the middleware and Command Line Tools. 
14
15 30 Adrian Georgescu
For the complete lists of settings that can be managed see  [[SipConfigurationAPI#MiddlewareSettings|Middleware Settings]] and [[SipConfigurationAPI#SIPClientsSettings|SIP Clients Settings]]
16 1 Adrian Georgescu
17 30 Adrian Georgescu
<pre>
18 19 Adrian Georgescu
adigeo@ag-imac3:~$sip-settings 
19
Usage: sip-settings [--general|--account] [options] command [arguments]
20
       sip-settings --general show
21
       sip-settings --general set key1=value1 [key2=value2 ...]
22
       sip-settings --account list
23
       sip-settings --account add user@domain password
24
       sip-settings --account delete user@domain|ALL
25
       sip-settings --account show [user@domain|ALL]
26
       sip-settings --account set [user@domain|ALL] key1=value1|DEFAULT
27
       sip-settings --account default user@domain
28 1 Adrian Georgescu
29
This script is used to manage the SIP SIMPLE middleware settings.
30 10 Adrian Georgescu
31 16 Adrian Georgescu
Options:
32 1 Adrian Georgescu
  -h, --help            show this help message and exit
33 16 Adrian Georgescu
  -c FILE, --config-file=FILE
34
                        The path to a configuration file to use. This
35 1 Adrian Georgescu
                        overrides the default location of the configuration
36
                        file.
37
  -a, --account         Manage SIP accounts' settings
38 9 Adrian Georgescu
  -g, --general         Manage general SIP SIMPLE middleware settings
39 30 Adrian Georgescu
</pre>
40 1 Adrian Georgescu
41 9 Adrian Georgescu
To use the command line tools you must create at least one SIP account:
42 19 Adrian Georgescu
43 30 Adrian Georgescu
<pre>
44 1 Adrian Georgescu
sip-settings --account add user@domain password
45 30 Adrian Georgescu
</pre>
46 25 Adrian Georgescu
47 1 Adrian Georgescu
You can make an account the default account for outgoing calls with:
48
49 30 Adrian Georgescu
<pre>
50 25 Adrian Georgescu
sip-settings -a default user@domain
51 30 Adrian Georgescu
</pre>
52 25 Adrian Georgescu
53 1 Adrian Georgescu
Individual settings for the account can be set with:
54
55 30 Adrian Georgescu
<pre>
56 25 Adrian Georgescu
sip-settings -a set user@domain key=value
57 30 Adrian Georgescu
</pre>
58 1 Adrian Georgescu
59
To see which per account settings are available, use:
60 25 Adrian Georgescu
61 30 Adrian Georgescu
<pre>
62 25 Adrian Georgescu
sip-settings -a show
63 30 Adrian Georgescu
</pre>
64 25 Adrian Georgescu
65
The settings are organized in a hierarchy. Use dotted notation for the keys. 
66
For instance, the outbound_proxy setting in the sip group is written 
67
sip.outbound_proxy. Use the dotted form in the command-line:
68
69 30 Adrian Georgescu
<pre>
70 25 Adrian Georgescu
sip-settings -a set user@domain sip,outbound_proxy=proxy.sipthor.net
71 30 Adrian Georgescu
</pre>
72 25 Adrian Georgescu
73
Global settings are arranged the same way; for instance, to change the global 
74
outbound ringtone:
75
76 30 Adrian Georgescu
<pre>
77 25 Adrian Georgescu
sip-settings -g set sounds.audio_outbound=/path/to/wav
78 30 Adrian Georgescu
</pre>