Project

General

Profile

Sip settings » History » Version 29

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