Sip settings

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 1 Adrian Georgescu
5 1 Adrian Georgescu
6 30 Adrian Georgescu
7 30 Adrian Georgescu
> This script is available in _sipclients_ package that must be installed separately from SIP SIMPLE client SDK package.
8 30 Adrian Georgescu
9 30 Adrian Georgescu
10 30 Adrian Georgescu
h3. Description
11 30 Adrian Georgescu
12 30 Adrian Georgescu
13 28 Adrian Georgescu
Manages the configuration used by the middleware and Command Line Tools. 
14 28 Adrian Georgescu
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 19 Adrian Georgescu
Usage: sip-settings [--general|--account] [options] command [arguments]
20 19 Adrian Georgescu
       sip-settings --general show
21 19 Adrian Georgescu
       sip-settings --general set key1=value1 [key2=value2 ...]
22 19 Adrian Georgescu
       sip-settings --account list
23 19 Adrian Georgescu
       sip-settings --account add user@domain password
24 19 Adrian Georgescu
       sip-settings --account delete user@domain|ALL
25 19 Adrian Georgescu
       sip-settings --account show [user@domain|ALL]
26 19 Adrian Georgescu
       sip-settings --account set [user@domain|ALL] key1=value1|DEFAULT
27 19 Adrian Georgescu
       sip-settings --account default user@domain
28 1 Adrian Georgescu
29 1 Adrian Georgescu
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 16 Adrian Georgescu
                        The path to a configuration file to use. This
35 1 Adrian Georgescu
                        overrides the default location of the configuration
36 1 Adrian Georgescu
                        file.
37 1 Adrian Georgescu
  -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 1 Adrian Georgescu
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 1 Adrian Georgescu
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 1 Adrian Georgescu
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 25 Adrian Georgescu
The settings are organized in a hierarchy. Use dotted notation for the keys. 
66 25 Adrian Georgescu
For instance, the outbound_proxy setting in the sip group is written 
67 25 Adrian Georgescu
sip.outbound_proxy. Use the dotted form in the command-line:
68 25 Adrian Georgescu
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 25 Adrian Georgescu
Global settings are arranged the same way; for instance, to change the global 
74 25 Adrian Georgescu
outbound ringtone:
75 25 Adrian Georgescu
76 30 Adrian Georgescu
<pre>
77 25 Adrian Georgescu
sip-settings -g set sounds.audio_outbound=/path/to/wav
78 30 Adrian Georgescu
</pre>