Project

General

Profile

Sip settings » History » Version 27

Adrian Georgescu, 07/13/2010 03:00 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 26 Adrian Georgescu
You can make an account the default account for outgoing calls with:
42 25 Adrian Georgescu
43
{{{
44
sip-settings -a default user@domain
45
}}}
46
47 26 Adrian Georgescu
Individual settings for the account can be set with:
48 25 Adrian Georgescu
49
{{{
50
sip-settings -a set user@domain key=value
51
}}}
52
53
To see which per account settings are available, use:
54
55
{{{
56
sip-settings -a show
57
}}}
58
59
The settings are organized in a hierarchy. Use dotted notation for the keys. 
60
For instance, the outbound_proxy setting in the sip group is written 
61
sip.outbound_proxy. Use the dotted form in the command-line:
62
63
{{{
64
sip-settings -a set user@domain sip,outbound_proxy=proxy.sipthor.net
65
}}}
66
67
Global settings are arranged the same way; for instance, to change the global 
68
outbound ringtone:
69
70
{{{
71
sip-settings -g set sounds.audio_outbound=/path/to/wav
72
}}}