SipSettingsApi

Version 50 (Adrian Georgescu, 06/09/2012 12:59 pm)

1 49 Adrian Georgescu
h1. SIP Account API
2 46 Adrian Georgescu
3 49 Adrian Georgescu
This API can be used from third party applications that wish to interact with the SIP account data stored on the server. Data can be read or modified by calling various functions.
4 46 Adrian Georgescu
5 49 Adrian Georgescu
h2. Server API Address
6 46 Adrian Georgescu
7 1 Adrian Georgescu
To access the API, a client must connect using HTTP protocol to the following address: 
8 1 Adrian Georgescu
9 1 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml
10 1 Adrian Georgescu
11 1 Adrian Georgescu
The return is encoded using "json":http://json.org.
12 1 Adrian Georgescu
13 1 Adrian Georgescu
h2. API Functions
14 46 Adrian Georgescu
15 50 Adrian Georgescu
The following actions are supported:
16 49 Adrian Georgescu
17 49 Adrian Georgescu
h3. Identity
18 1 Adrian Georgescu
19 1 Adrian Georgescu
# Return identity information:
20 1 Adrian Georgescu
<pre>
21 1 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=get_identity
22 46 Adrian Georgescu
</pre>
23 50 Adrian Georgescu
24 50 Adrian Georgescu
h3. SIP aliases
25 50 Adrian Georgescu
26 1 Adrian Georgescu
# Return the SIP aliases:
27 1 Adrian Georgescu
<pre>
28 1 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=get_aliases
29 1 Adrian Georgescu
</pre>
30 50 Adrian Georgescu
31 50 Adrian Georgescu
# Add an alias to our own account 
32 50 Adrian Georgescu
<pre>
33 50 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=add_alias&username=alice
34 50 Adrian Georgescu
</pre>
35 50 Adrian Georgescu
36 50 Adrian Georgescu
h3. ENUM numbers
37 50 Adrian Georgescu
38 46 Adrian Georgescu
# Return the ENUM numbers:
39 1 Adrian Georgescu
<pre>
40 46 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=get_enum
41 46 Adrian Georgescu
</pre>
42 50 Adrian Georgescu
43 50 Adrian Georgescu
h3. Call history
44 50 Adrian Georgescu
45 46 Adrian Georgescu
# Returns call history:
46 1 Adrian Georgescu
<pre>
47 1 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=get_history
48 48 Adrian Georgescu
</pre>
49 50 Adrian Georgescu
50 50 Adrian Georgescu
h3. Registered devices
51 50 Adrian Georgescu
52 46 Adrian Georgescu
# Return the list of registered devices
53 47 Adrian Georgescu
<pre>
54 46 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=get_devices
55 46 Adrian Georgescu
</pre>
56 50 Adrian Georgescu
57 50 Adrian Georgescu
h3. Prepaid
58 50 Adrian Georgescu
59 46 Adrian Georgescu
# Return the prepaid balance and active calls:
60 46 Adrian Georgescu
<pre>
61 9 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=get_prepaid
62 46 Adrian Georgescu
</pre>
63 46 Adrian Georgescu
# Return the history of prepaid balance:
64 1 Adrian Georgescu
<pre>
65 1 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=get_balance_history
66 1 Adrian Georgescu
</pre>
67 46 Adrian Georgescu
# Return the curent monthly usage:
68 10 Adrian Georgescu
<pre>
69 46 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=get_monthly_usage
70 46 Adrian Georgescu
</pre>
71 50 Adrian Georgescu
72 50 Adrian Georgescu
h3. Call forwarding
73 50 Adrian Georgescu
74 1 Adrian Georgescu
# Return the call forwarding settings:
75 1 Adrian Georgescu
<pre>
76 1 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=get_call_forwarding
77 1 Adrian Georgescu
</pre>
78 50 Adrian Georgescu
79 50 Adrian Georgescu
# Set call forwarding
80 50 Adrian Georgescu
<pre>
81 50 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=set_call_forwarding&FUNC=target&FBUS=target&...
82 50 Adrian Georgescu
</pre>
83 50 Adrian Georgescu
<pre>
84 50 Adrian Georgescu
FUNC = Forward unconditional all calls
85 50 Adrian Georgescu
FBUS = Forward on Busy
86 50 Adrian Georgescu
FNOL = Forward on Not Online
87 50 Adrian Georgescu
FNOA = Forward on No Answer
88 50 Adrian Georgescu
FUNV = Forward when Not Available based on Accept rules
89 50 Adrian Georgescu
90 50 Adrian Georgescu
Pre-defined keywords for diversion targets:
91 50 Adrian Georgescu
92 50 Adrian Georgescu
<voice-mailbox>
93 50 Adrian Georgescu
<mobile-number>
94 50 Adrian Georgescu
95 50 Adrian Georgescu
</pre>
96 50 Adrian Georgescu
97 50 Adrian Georgescu
h3. Call filtering
98 50 Adrian Georgescu
 
99 46 Adrian Georgescu
# Return the list of accept rules:
100 1 Adrian Georgescu
<pre>
101 1 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=get_accept_rules
102 1 Adrian Georgescu
</pre>
103 1 Adrian Georgescu
# Return the list of reject rules:
104 46 Adrian Georgescu
<pre>
105 46 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=get_reject_rules
106 46 Adrian Georgescu
</pre>
107 50 Adrian Georgescu
108 50 Adrian Georgescu
h3. Voicemail settings
109 50 Adrian Georgescu
110 1 Adrian Georgescu
# Return the voicemail settings:
111 46 Adrian Georgescu
<pre>
112 46 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=get_voicemail
113 46 Adrian Georgescu
</pre>
114 50 Adrian Georgescu
115 50 Adrian Georgescu
h3. Do not disturb
116 50 Adrian Georgescu
117 46 Adrian Georgescu
# Enabled Do Not Disturb
118 1 Adrian Georgescu
<pre>
119 46 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=set_dnd_on
120 46 Adrian Georgescu
</pre>
121 46 Adrian Georgescu
# Disable Do Not Disturb
122 1 Adrian Georgescu
<pre>
123 1 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=set_dnd_off
124 1 Adrian Georgescu
</pre>
125 1 Adrian Georgescu
# Enable Do Not Disturb for 60 minutes
126 46 Adrian Georgescu
<pre>
127 46 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=set_dnd_on&duration=60
128 1 Adrian Georgescu
</pre>
129 50 Adrian Georgescu
130 50 Adrian Georgescu
h3. Privacy
131 50 Adrian Georgescu
132 1 Adrian Georgescu
# Enabled privacy (hide Caller Id for outgoing calls)
133 1 Adrian Georgescu
<pre>
134 1 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=set_privacy_on
135 1 Adrian Georgescu
</pre>
136 1 Adrian Georgescu
# Disable privacy
137 1 Adrian Georgescu
<pre>
138 1 Adrian Georgescu
https://enrollment.sipthor.net/settings.phtml?action=set_privacy_off
139 46 Adrian Georgescu
</pre>