forked from nickvsnetworking/pyhss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault_sh_user_data.xml
More file actions
342 lines (339 loc) · 21 KB
/
default_sh_user_data.xml
File metadata and controls
342 lines (339 loc) · 21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--This is the default iFC template used by PyHSS, variables come from the Jinja2 template passed inside diameter.py where you can additional variables if required -->
<Sh-Data>
<IMSPrivateUserIdentity>{{ Sh_template_vars['imsi'] }}@ims.mnc{{ Sh_template_vars['mnc'] }}.mcc{{ Sh_template_vars['mcc'] }}.3gppnetwork.org</IMSPrivateUserIdentity>
<!-- This provides the Public Identifiers to the Application Server -->
<PublicIdentifiers>
<IMSPublicIdentity>sip:{{ Sh_template_vars['msisdn'] }}@ims.mnc{{ Sh_template_vars['mnc'] }}.mcc{{ Sh_template_vars['mcc'] }}.3gppnetwork.org</IMSPublicIdentity>
<MSISDN>{{ Sh_template_vars['msisdn'] }}</MSISDN>
</PublicIdentifiers>
<!-- This optional extension provides the Location of the serving MME for this subscriber and the TAC for the ULA -->
<Extension>
<EPSLocationInformation>{% if Sh_template_vars['serving_mme'] is not none %}
<E-UTRANCellGlobalId></E-UTRANCellGlobalId>
<TrackingAreaId></TrackingAreaId>
<MMEName>{{ Sh_template_vars['serving_mme'] }}</MMEName>
<AgeOfLocationInformation>0</AgeOfLocationInformation>
<Extension>
<VisitedPLMNID></VisitedPLMNID>
</Extension>{% endif %}
</EPSLocationInformation>
</Extension>
<Sh-IMS-Data>
<S-CSCFName>{{ Sh_template_vars['scscf'] }}</S-CSCFName>
<IMSUserState>{{ Sh_template_vars['imsUserState'] }}</IMSUserState>
<!-- The following values are not 3gpp-standardised. Remove if your deployment requires 3gpp-compliant XML. -->
<InboundCommunicationBarred>{{ Sh_template_vars['inboundCommunicationBarred'] }}</InboundCommunicationBarred>
<OutboundCommunicationBarred>{{ Sh_template_vars['outboundCommunicationBarred'] }}</OutboundCommunicationBarred>
<CallForwardActive>{{ Sh_template_vars['callForwarding']['enabled'] }}</CallForwardActive>
<CallForwardUnconditional>{{ Sh_template_vars['callForwarding']['unconditional'] }}</CallForwardUnconditional>
<CallForwardNotRegistered>{{ Sh_template_vars['callForwarding']['notRegistered'] }}</CallForwardNotRegistered>
<CallForwardNoAnswer>{{ Sh_template_vars['callForwarding']['noAnswer'] }}</CallForwardNoAnswer>
<CallForwardBusy>{{ Sh_template_vars['callForwarding']['busy'] }}</CallForwardBusy>
<CallForwardNotReachable>{{ Sh_template_vars['callForwarding']['notReachable'] }}</CallForwardNotReachable>
<CallForwardNoReplyTimer>{{ Sh_template_vars['callForwarding']['noReplyTimer'] }}</CallForwardNoReplyTimer>
</Sh-IMS-Data>
{% if Sh_template_vars['repository_data'] is none %}
<RepositoryData>
<ServiceIndication>MMTEL-Services</ServiceIndication>
<SequenceNumber>0</SequenceNumber>
<ServiceData>
<ss:MMTelServices xmlns:ss="http://uri.etsi.org/ngn/params/xml/simservs/xcap"
xmlns:cp="urn:ietf:params:xml:ns:common-policy">
<!--Optional:-->
<ss:complete-originating-identity-presentation>
<ss:originating-identity-presentation active="true"/>
<ss:operator-originating-identity-presentation authorized="false">
<!--Optional:-->
<ss:restriction-override>override-active</ss:restriction-override>
</ss:operator-originating-identity-presentation>
</ss:complete-originating-identity-presentation>
<!--Optional:-->
<ss:complete-originating-identity-restriction>
<ss:originating-identity-presentation-restriction active="true">
<!--Optional:-->
<ss:default-behaviour>presentation-restricted</ss:default-behaviour>
</ss:originating-identity-presentation-restriction>
<ss:operator-originating-identity-presentation-restriction authorized="true">
<ss:mode>permanent</ss:mode>
<ss:restriction>only-identity</ss:restriction>
</ss:operator-originating-identity-presentation-restriction>
</ss:complete-originating-identity-restriction>
<!--Optional:-->
<ss:complete-terminating-identity-presentation>
<ss:terminating-identity-presentation active="true"/>
<ss:operator-terminating-identity-presentation authorized="true">
<!--Optional:-->
<ss:restriction-override>override-not-active</ss:restriction-override>
</ss:operator-terminating-identity-presentation>
</ss:complete-terminating-identity-presentation>
<!--Optional:-->
<ss:complete-terminating-identity-restriction>
<ss:terminating-identity-presentation-restriction active="true">
<!--Optional:-->
<ss:default-behaviour>presentation-not-restricted</ss:default-behaviour>
</ss:terminating-identity-presentation-restriction>
<ss:operator-terminating-identity-presentation-restriction authorized="false">
<ss:mode>permanent</ss:mode>
</ss:operator-terminating-identity-presentation-restriction>
</ss:complete-terminating-identity-restriction>
<!--Optional:-->
<ss:complete-malicious-communication-identification>
<ss:operator-malicious-communication-identification authorized="true">
<ss:mode>temporary</ss:mode>
</ss:operator-malicious-communication-identification>
</ss:complete-malicious-communication-identification>
<!--Optional:-->
<ss:complete-communication-diversion>
<ss:communication-diversion active="true">
<!--Optional:-->
<ss:NoReplyTimer>180</ss:NoReplyTimer>
<!--Optional:-->
<cp:ruleset>
<!--Zero or more repetitions:-->
<cp:rule id="string1">
<!--Optional:-->
<cp:conditions>
<!--You have a CHOICE of the next 4 items at this level-->
<!--Optional:-->
<cp:identity>
<!--You have a CHOICE of the next 3 items at this level-->
<cp:one id="https://www.test.com/foedere/ferant">
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:one>
<cp:many domain="string">
<!--You have a CHOICE of the next 2 items at this level-->
<cp:except domain="string"
id="https://www.corp.org/et/turbine"/>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:many>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:identity>
<!--Optional:-->
<cp:sphere value="string"/>
<!--Optional:-->
<cp:validity>
<cp:from>2010-03-18T17:05:32</cp:from>
<cp:until>2018-12-28T20:51:14+01:00</cp:until>
</cp:validity>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:conditions>
<!--Optional:-->
<cp:actions>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:actions>
<!--Optional:-->
<cp:transformations>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:transformations>
</cp:rule>
</cp:ruleset>
</ss:communication-diversion>
<ss:operator-communication-diversion authorized="false">
<ss:communication-retention-on-invocation>
retain-until-alerting-at-diverted-to-user
</ss:communication-retention-on-invocation>
<ss:retention-when-diverting-rejected-at-diverted-to-user>
no-action-at-diverting-user
</ss:retention-when-diverting-rejected-at-diverted-to-user>
<ss:total-number-of-diversions-for-each-communication>100
</ss:total-number-of-diversions-for-each-communication>
<ss:cdiv-indication-timer>60</ss:cdiv-indication-timer>
<ss:communication-forwarding-on-no-reply-timer>100
</ss:communication-forwarding-on-no-reply-timer>
</ss:operator-communication-diversion>
</ss:complete-communication-diversion>
<!--Optional:-->
<ss:complete-communication-waiting>
<ss:communication-waiting active="true"/>
<ss:operator-communication-waiting authorized="false">
<ss:calling-user-receives-notification-his-call-is-waiting>false
</ss:calling-user-receives-notification-his-call-is-waiting>
</ss:operator-communication-waiting>
</ss:complete-communication-waiting>
<!--Optional:-->
<ss:complete-communication-hold>
<ss:operator-communication-hold authorized="false"/>
</ss:complete-communication-hold>
<!--Optional:-->
<ss:complete-communication-barring>
<ss:incoming-communication-barring active="true" password-required="false">
<!--Optional:-->
<cp:ruleset>
<!--Zero or more repetitions:-->
<cp:rule id="string2">
<!--Optional:-->
<cp:conditions>
<!--You have a CHOICE of the next 4 items at this level-->
<!--Optional:-->
<cp:identity>
<!--You have a CHOICE of the next 3 items at this level-->
<cp:one id="https://www.sample.com/aris/coniunx">
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:one>
<cp:many domain="string">
<!--You have a CHOICE of the next 2 items at this level-->
<cp:except domain="string"
id="https://www.any.com/claustra/circum"/>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:many>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:identity>
<!--Optional:-->
<cp:sphere value="string"/>
<!--Optional:-->
<cp:validity>
<cp:from>2017-08-17T07:44:20</cp:from>
<cp:until>2012-04-24T23:37:57+02:00</cp:until>
</cp:validity>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:conditions>
<!--Optional:-->
<cp:actions>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:actions>
<!--Optional:-->
<cp:transformations>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:transformations>
</cp:rule>
</cp:ruleset>
</ss:incoming-communication-barring>
<ss:outgoing-communication-barring active="true" password-required="false">
<!--Optional:-->
<cp:ruleset>
<!--Zero or more repetitions:-->
<cp:rule id="string">
<!--Optional:-->
<cp:conditions>
<!--You have a CHOICE of the next 4 items at this level-->
<!--Optional:-->
<cp:identity>
<!--You have a CHOICE of the next 3 items at this level-->
<cp:one id="https://www.test.org/pectore/talia">
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:one>
<cp:many domain="string">
<!--You have a CHOICE of the next 2 items at this level-->
<cp:except domain="string"
id="https://www.corp.edu/annos/sciret"/>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:many>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:identity>
<!--Optional:-->
<cp:sphere value="string"/>
<!--Optional:-->
<cp:validity>
<cp:from>2018-07-19T10:02:25+02:00</cp:from>
<cp:until>2004-12-06T04:41:44+01:00</cp:until>
</cp:validity>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:conditions>
<!--Optional:-->
<cp:actions>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:actions>
<!--Optional:-->
<cp:transformations>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</cp:transformations>
</cp:rule>
</cp:ruleset>
</ss:outgoing-communication-barring>
<ss:operator-incoming-communication-barring authorized="true"/>
<ss:operator-outgoing-communication-barring authorized="true"/>
</ss:complete-communication-barring>
<!--Optional:-->
<ss:complete-completion-of-communication-busy-subscriber>
<ss:operator-completion-of-communication-busy-subscriber authorized="true"/>
</ss:complete-completion-of-communication-busy-subscriber>
<!--Optional:-->
<ss:complete-completion-of-communication-no-reply>
<ss:operator-completion-of-communication-no-reply authorized="true"/>
</ss:complete-completion-of-communication-no-reply>
<!--Optional:-->
<ss:complete-message-waiting-indication>
<ss:operator-message-waiting-indication authorized="false"/>
</ss:complete-message-waiting-indication>
<!--Optional:-->
<ss:complete-conference>
<ss:operator-conference authorized="true"/>
</ss:complete-conference>
<!--Optional:-->
<ss:complete-advice-of-charge>
<ss:operator-advice-of-charge authorized="true">
<ss:service-type>
<!--Optional:-->
<ss:operator-aoc-d activated="true">
<ss:aoc-obligatory-type>AoCI</ss:aoc-obligatory-type>
</ss:operator-aoc-d>
<!--Optional:-->
<ss:operator-aoc-e activated="false">
<ss:aoc-obligatory-type>AoCI</ss:aoc-obligatory-type>
</ss:operator-aoc-e>
<!--Optional:-->
<ss:operator-aoc-s activated="false">
<ss:aoc-obligatory-type>AoCI</ss:aoc-obligatory-type>
</ss:operator-aoc-s>
</ss:service-type>
<ss:Currency>EUR</ss:Currency>
</ss:operator-advice-of-charge>
</ss:complete-advice-of-charge>
<!--Optional:-->
<ss:complete-explicit-communication-transfer>
<ss:operator-explicit-communication-transfer authorized="true"/>
</ss:complete-explicit-communication-transfer>
<!--Optional:-->
<ss:complete-customized-alerting-tone>
<ss:operator-customized-alerting-tone authorized="true"/>
</ss:complete-customized-alerting-tone>
<!--Optional:-->
<ss:complete-flexible-alerting>
<ss:flexible-alerting-default active="true"/>
<ss:flexible-alerting-specific active="true">
<!--Zero or more repetitions:-->
<ss:identity active="true">https://www.corp.org/iovisque/in</ss:identity>
<!--You may enter ANY elements at this point-->
<!--AnyElement/-->
</ss:flexible-alerting-specific>
<!--You have a CHOICE of the next 2 items at this level-->
<ss:operator-flexible-alerting authorized="true">
<ss:default-group>https://www.my.edu/coniunx/adorat</ss:default-group>
</ss:operator-flexible-alerting>
<ss:operator-flexible-alerting-group authorized="true">
<ss:identity>https://www.your.com/aris/nimborum</ss:identity>
<ss:group-type>multiple-users</ss:group-type>
<ss:membership>demand</ss:membership>
<ss:members>
<!--Zero or more repetitions:-->
<ss:member active="true">https://www.test.edu/molemque/ferant
</ss:member>
</ss:members>
</ss:operator-flexible-alerting-group>
</ss:complete-flexible-alerting>
</ss:MMTelServices>
</ServiceData>
</RepositoryData>
{% else %}
{{ Sh_template_vars['repository_data'] }}
{% endif %}
</Sh-Data>