Project

General

Profile

Sip settings » History » Version 26

Adrian Georgescu, 07/13/2010 02:59 PM

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