1
|
<?
|
2
|
class WebService_NGNPro_SipPort extends SOAP_Client
|
3
|
{
|
4
|
function WebService_NGNPro_SipPort($path = 'https://mdns.sipthor.net/ngnpro/')
|
5
|
{
|
6
|
$this->SOAP_Client($path, 0);
|
7
|
}
|
8
|
function &addGateway($gateway)
|
9
|
{
|
10
|
|
11
|
|
12
|
$gateway = new SOAP_Value('gateway', '{urn:AGProjects:NGNPro}Gateway', $gateway);
|
13
|
$result = $this->call('addGateway',
|
14
|
$v = array('gateway' => $gateway),
|
15
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
16
|
'soapaction' => '',
|
17
|
'style' => 'rpc',
|
18
|
'use' => 'encoded'));
|
19
|
return $result;
|
20
|
}
|
21
|
function &updateGateway($gateway)
|
22
|
{
|
23
|
|
24
|
|
25
|
$gateway = new SOAP_Value('gateway', '{urn:AGProjects:NGNPro}Gateway', $gateway);
|
26
|
$result = $this->call('updateGateway',
|
27
|
$v = array('gateway' => $gateway),
|
28
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
29
|
'soapaction' => '',
|
30
|
'style' => 'rpc',
|
31
|
'use' => 'encoded'));
|
32
|
return $result;
|
33
|
}
|
34
|
function &deleteGateway($id)
|
35
|
{
|
36
|
$result = $this->call('deleteGateway',
|
37
|
$v = array('id' => $id),
|
38
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
39
|
'soapaction' => '',
|
40
|
'style' => 'rpc',
|
41
|
'use' => 'encoded'));
|
42
|
return $result;
|
43
|
}
|
44
|
function &getGateways($query)
|
45
|
{
|
46
|
|
47
|
|
48
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}GatewayQuery', $query);
|
49
|
$result = $this->call('getGateways',
|
50
|
$v = array('query' => $query),
|
51
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
52
|
'soapaction' => '',
|
53
|
'style' => 'rpc',
|
54
|
'use' => 'encoded'));
|
55
|
return $result;
|
56
|
}
|
57
|
function &addGatewayRule($rule)
|
58
|
{
|
59
|
|
60
|
|
61
|
$rule = new SOAP_Value('rule', '{urn:AGProjects:NGNPro}GatewayRule', $rule);
|
62
|
$result = $this->call('addGatewayRule',
|
63
|
$v = array('rule' => $rule),
|
64
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
65
|
'soapaction' => '',
|
66
|
'style' => 'rpc',
|
67
|
'use' => 'encoded'));
|
68
|
return $result;
|
69
|
}
|
70
|
function &updateGatewayRule($rule)
|
71
|
{
|
72
|
|
73
|
|
74
|
$rule = new SOAP_Value('rule', '{urn:AGProjects:NGNPro}GatewayRule', $rule);
|
75
|
$result = $this->call('updateGatewayRule',
|
76
|
$v = array('rule' => $rule),
|
77
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
78
|
'soapaction' => '',
|
79
|
'style' => 'rpc',
|
80
|
'use' => 'encoded'));
|
81
|
return $result;
|
82
|
}
|
83
|
function &deleteGatewayRule($id)
|
84
|
{
|
85
|
$result = $this->call('deleteGatewayRule',
|
86
|
$v = array('id' => $id),
|
87
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
88
|
'soapaction' => '',
|
89
|
'style' => 'rpc',
|
90
|
'use' => 'encoded'));
|
91
|
return $result;
|
92
|
}
|
93
|
function &getGatewayRules($query)
|
94
|
{
|
95
|
|
96
|
|
97
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}GatewayRuleQuery', $query);
|
98
|
$result = $this->call('getGatewayRules',
|
99
|
$v = array('query' => $query),
|
100
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
101
|
'soapaction' => '',
|
102
|
'style' => 'rpc',
|
103
|
'use' => 'encoded'));
|
104
|
return $result;
|
105
|
}
|
106
|
function &addCarrier($carrier)
|
107
|
{
|
108
|
|
109
|
|
110
|
$carrier = new SOAP_Value('carrier', '{urn:AGProjects:NGNPro}Carrier', $carrier);
|
111
|
$result = $this->call('addCarrier',
|
112
|
$v = array('carrier' => $carrier),
|
113
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
114
|
'soapaction' => '',
|
115
|
'style' => 'rpc',
|
116
|
'use' => 'encoded'));
|
117
|
return $result;
|
118
|
}
|
119
|
function &updateCarrier($carrier)
|
120
|
{
|
121
|
|
122
|
|
123
|
$carrier = new SOAP_Value('carrier', '{urn:AGProjects:NGNPro}Carrier', $carrier);
|
124
|
$result = $this->call('updateCarrier',
|
125
|
$v = array('carrier' => $carrier),
|
126
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
127
|
'soapaction' => '',
|
128
|
'style' => 'rpc',
|
129
|
'use' => 'encoded'));
|
130
|
return $result;
|
131
|
}
|
132
|
function &deleteCarrier($id)
|
133
|
{
|
134
|
$result = $this->call('deleteCarrier',
|
135
|
$v = array('id' => $id),
|
136
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
137
|
'soapaction' => '',
|
138
|
'style' => 'rpc',
|
139
|
'use' => 'encoded'));
|
140
|
return $result;
|
141
|
}
|
142
|
function &getCarriers($query)
|
143
|
{
|
144
|
|
145
|
|
146
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}CarrierQuery', $query);
|
147
|
$result = $this->call('getCarriers',
|
148
|
$v = array('query' => $query),
|
149
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
150
|
'soapaction' => '',
|
151
|
'style' => 'rpc',
|
152
|
'use' => 'encoded'));
|
153
|
return $result;
|
154
|
}
|
155
|
function &addRoutes($routes)
|
156
|
{
|
157
|
|
158
|
|
159
|
$routes = new SOAP_Value('routes', '{urn:AGProjects:NGNPro}RouteArray', $routes);
|
160
|
$result = $this->call('addRoutes',
|
161
|
$v = array('routes' => $routes),
|
162
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
163
|
'soapaction' => '',
|
164
|
'style' => 'rpc',
|
165
|
'use' => 'encoded'));
|
166
|
return $result;
|
167
|
}
|
168
|
function &updateRoutes($routes)
|
169
|
{
|
170
|
|
171
|
|
172
|
$routes = new SOAP_Value('routes', '{urn:AGProjects:NGNPro}RouteArray', $routes);
|
173
|
$result = $this->call('updateRoutes',
|
174
|
$v = array('routes' => $routes),
|
175
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
176
|
'soapaction' => '',
|
177
|
'style' => 'rpc',
|
178
|
'use' => 'encoded'));
|
179
|
return $result;
|
180
|
}
|
181
|
function &deleteRoutes($routes)
|
182
|
{
|
183
|
|
184
|
|
185
|
$routes = new SOAP_Value('routes', '{urn:AGProjects:NGNPro}RouteArray', $routes);
|
186
|
$result = $this->call('deleteRoutes',
|
187
|
$v = array('routes' => $routes),
|
188
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
189
|
'soapaction' => '',
|
190
|
'style' => 'rpc',
|
191
|
'use' => 'encoded'));
|
192
|
return $result;
|
193
|
}
|
194
|
function &getRoutes($query)
|
195
|
{
|
196
|
|
197
|
|
198
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}RouteQuery', $query);
|
199
|
$result = $this->call('getRoutes',
|
200
|
$v = array('query' => $query),
|
201
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
202
|
'soapaction' => '',
|
203
|
'style' => 'rpc',
|
204
|
'use' => 'encoded'));
|
205
|
return $result;
|
206
|
}
|
207
|
function &addDomain($domain)
|
208
|
{
|
209
|
|
210
|
|
211
|
$domain = new SOAP_Value('domain', '{urn:AGProjects:NGNPro}SipDomain', $domain);
|
212
|
$result = $this->call('addDomain',
|
213
|
$v = array('domain' => $domain),
|
214
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
215
|
'soapaction' => '',
|
216
|
'style' => 'rpc',
|
217
|
'use' => 'encoded'));
|
218
|
return $result;
|
219
|
}
|
220
|
function &updateDomain($domain)
|
221
|
{
|
222
|
|
223
|
|
224
|
$domain = new SOAP_Value('domain', '{urn:AGProjects:NGNPro}SipDomain', $domain);
|
225
|
$result = $this->call('updateDomain',
|
226
|
$v = array('domain' => $domain),
|
227
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
228
|
'soapaction' => '',
|
229
|
'style' => 'rpc',
|
230
|
'use' => 'encoded'));
|
231
|
return $result;
|
232
|
}
|
233
|
function &deleteDomain($domain)
|
234
|
{
|
235
|
$result = $this->call('deleteDomain',
|
236
|
$v = array('domain' => $domain),
|
237
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
238
|
'soapaction' => '',
|
239
|
'style' => 'rpc',
|
240
|
'use' => 'encoded'));
|
241
|
return $result;
|
242
|
}
|
243
|
function &getDomains($query)
|
244
|
{
|
245
|
|
246
|
|
247
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}SipDomainQuery', $query);
|
248
|
$result = $this->call('getDomains',
|
249
|
$v = array('query' => $query),
|
250
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
251
|
'soapaction' => '',
|
252
|
'style' => 'rpc',
|
253
|
'use' => 'encoded'));
|
254
|
return $result;
|
255
|
}
|
256
|
function &addTrustedPeer($peer)
|
257
|
{
|
258
|
|
259
|
|
260
|
$peer = new SOAP_Value('peer', '{urn:AGProjects:NGNPro}TrustedPeer', $peer);
|
261
|
$result = $this->call('addTrustedPeer',
|
262
|
$v = array('peer' => $peer),
|
263
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
264
|
'soapaction' => '',
|
265
|
'style' => 'rpc',
|
266
|
'use' => 'encoded'));
|
267
|
return $result;
|
268
|
}
|
269
|
function &deleteTrustedPeer($ip)
|
270
|
{
|
271
|
$result = $this->call('deleteTrustedPeer',
|
272
|
$v = array('ip' => $ip),
|
273
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
274
|
'soapaction' => '',
|
275
|
'style' => 'rpc',
|
276
|
'use' => 'encoded'));
|
277
|
return $result;
|
278
|
}
|
279
|
function &getTrustedPeers($query)
|
280
|
{
|
281
|
|
282
|
|
283
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}TrustedPeerQuery', $query);
|
284
|
$result = $this->call('getTrustedPeers',
|
285
|
$v = array('query' => $query),
|
286
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
287
|
'soapaction' => '',
|
288
|
'style' => 'rpc',
|
289
|
'use' => 'encoded'));
|
290
|
return $result;
|
291
|
}
|
292
|
function &addAccount($account)
|
293
|
{
|
294
|
|
295
|
|
296
|
$account = new SOAP_Value('account', '{urn:AGProjects:NGNPro}SipAccount', $account);
|
297
|
$result = $this->call('addAccount',
|
298
|
$v = array('account' => $account),
|
299
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
300
|
'soapaction' => '',
|
301
|
'style' => 'rpc',
|
302
|
'use' => 'encoded'));
|
303
|
return $result;
|
304
|
}
|
305
|
function &updateAccount($account)
|
306
|
{
|
307
|
|
308
|
|
309
|
$account = new SOAP_Value('account', '{urn:AGProjects:NGNPro}SipAccount', $account);
|
310
|
$result = $this->call('updateAccount',
|
311
|
$v = array('account' => $account),
|
312
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
313
|
'soapaction' => '',
|
314
|
'style' => 'rpc',
|
315
|
'use' => 'encoded'));
|
316
|
return $result;
|
317
|
}
|
318
|
function &deleteAccount($sipId)
|
319
|
{
|
320
|
|
321
|
|
322
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
323
|
$result = $this->call('deleteAccount',
|
324
|
$v = array('sipId' => $sipId),
|
325
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
326
|
'soapaction' => '',
|
327
|
'style' => 'rpc',
|
328
|
'use' => 'encoded'));
|
329
|
return $result;
|
330
|
}
|
331
|
function &getAccount($sipId)
|
332
|
{
|
333
|
|
334
|
|
335
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
336
|
$result = $this->call('getAccount',
|
337
|
$v = array('sipId' => $sipId),
|
338
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
339
|
'soapaction' => '',
|
340
|
'style' => 'rpc',
|
341
|
'use' => 'encoded'));
|
342
|
return $result;
|
343
|
}
|
344
|
function &getAccounts($query)
|
345
|
{
|
346
|
|
347
|
|
348
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}SipQuery', $query);
|
349
|
$result = $this->call('getAccounts',
|
350
|
$v = array('query' => $query),
|
351
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
352
|
'soapaction' => '',
|
353
|
'style' => 'rpc',
|
354
|
'use' => 'encoded'));
|
355
|
return $result;
|
356
|
}
|
357
|
function &addAlias($alias)
|
358
|
{
|
359
|
|
360
|
|
361
|
$alias = new SOAP_Value('alias', '{urn:AGProjects:NGNPro}SipAlias', $alias);
|
362
|
$result = $this->call('addAlias',
|
363
|
$v = array('alias' => $alias),
|
364
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
365
|
'soapaction' => '',
|
366
|
'style' => 'rpc',
|
367
|
'use' => 'encoded'));
|
368
|
return $result;
|
369
|
}
|
370
|
function &updateAlias($alias)
|
371
|
{
|
372
|
|
373
|
|
374
|
$alias = new SOAP_Value('alias', '{urn:AGProjects:NGNPro}SipAlias', $alias);
|
375
|
$result = $this->call('updateAlias',
|
376
|
$v = array('alias' => $alias),
|
377
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
378
|
'soapaction' => '',
|
379
|
'style' => 'rpc',
|
380
|
'use' => 'encoded'));
|
381
|
return $result;
|
382
|
}
|
383
|
function &deleteAlias($id)
|
384
|
{
|
385
|
|
386
|
|
387
|
$id = new SOAP_Value('id', '{urn:AGProjects:NGNPro}SipId', $id);
|
388
|
$result = $this->call('deleteAlias',
|
389
|
$v = array('id' => $id),
|
390
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
391
|
'soapaction' => '',
|
392
|
'style' => 'rpc',
|
393
|
'use' => 'encoded'));
|
394
|
return $result;
|
395
|
}
|
396
|
function &getAlias($id)
|
397
|
{
|
398
|
|
399
|
|
400
|
$id = new SOAP_Value('id', '{urn:AGProjects:NGNPro}SipId', $id);
|
401
|
$result = $this->call('getAlias',
|
402
|
$v = array('id' => $id),
|
403
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
404
|
'soapaction' => '',
|
405
|
'style' => 'rpc',
|
406
|
'use' => 'encoded'));
|
407
|
return $result;
|
408
|
}
|
409
|
function &getAliases($query)
|
410
|
{
|
411
|
|
412
|
|
413
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}AliasQuery', $query);
|
414
|
$result = $this->call('getAliases',
|
415
|
$v = array('query' => $query),
|
416
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
417
|
'soapaction' => '',
|
418
|
'style' => 'rpc',
|
419
|
'use' => 'encoded'));
|
420
|
return $result;
|
421
|
}
|
422
|
function &addToGroup($sipId, $group)
|
423
|
{
|
424
|
|
425
|
|
426
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
427
|
$result = $this->call('addToGroup',
|
428
|
$v = array('sipId' => $sipId, 'group' => $group),
|
429
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
430
|
'soapaction' => '',
|
431
|
'style' => 'rpc',
|
432
|
'use' => 'encoded'));
|
433
|
return $result;
|
434
|
}
|
435
|
function &removeFromGroup($sipId, $group)
|
436
|
{
|
437
|
|
438
|
|
439
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
440
|
$result = $this->call('removeFromGroup',
|
441
|
$v = array('sipId' => $sipId, 'group' => $group),
|
442
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
443
|
'soapaction' => '',
|
444
|
'style' => 'rpc',
|
445
|
'use' => 'encoded'));
|
446
|
return $result;
|
447
|
}
|
448
|
function &getGroups($sipId)
|
449
|
{
|
450
|
|
451
|
|
452
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
453
|
$result = $this->call('getGroups',
|
454
|
$v = array('sipId' => $sipId),
|
455
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
456
|
'soapaction' => '',
|
457
|
'style' => 'rpc',
|
458
|
'use' => 'encoded'));
|
459
|
return $result;
|
460
|
}
|
461
|
function &addBalance($sipId, $value, $description)
|
462
|
{
|
463
|
|
464
|
|
465
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
466
|
$result = $this->call('addBalance',
|
467
|
$v = array('sipId' => $sipId, 'value' => $value, 'description' => $description),
|
468
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
469
|
'soapaction' => '',
|
470
|
'style' => 'rpc',
|
471
|
'use' => 'encoded'));
|
472
|
return $result;
|
473
|
}
|
474
|
function &addBalanceFromVoucher($sipId, $card)
|
475
|
{
|
476
|
|
477
|
|
478
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
479
|
|
480
|
|
481
|
$card = new SOAP_Value('card', '{urn:AGProjects:NGNPro}PrepaidCard', $card);
|
482
|
$result = $this->call('addBalanceFromVoucher',
|
483
|
$v = array('sipId' => $sipId, 'card' => $card),
|
484
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
485
|
'soapaction' => '',
|
486
|
'style' => 'rpc',
|
487
|
'use' => 'encoded'));
|
488
|
return $result;
|
489
|
}
|
490
|
function &getPrepaidStatus($sipIds)
|
491
|
{
|
492
|
|
493
|
|
494
|
$sipIds = new SOAP_Value('sipIds', '{urn:AGProjects:NGNPro}SipIdArray', $sipIds);
|
495
|
$result = $this->call('getPrepaidStatus',
|
496
|
$v = array('sipIds' => $sipIds),
|
497
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
498
|
'soapaction' => '',
|
499
|
'style' => 'rpc',
|
500
|
'use' => 'encoded'));
|
501
|
return $result;
|
502
|
}
|
503
|
function &getCreditHistory($sipId, $count)
|
504
|
{
|
505
|
|
506
|
|
507
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
508
|
$result = $this->call('getCreditHistory',
|
509
|
$v = array('sipId' => $sipId, 'count' => $count),
|
510
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
511
|
'soapaction' => '',
|
512
|
'style' => 'rpc',
|
513
|
'use' => 'encoded'));
|
514
|
return $result;
|
515
|
}
|
516
|
function &addPhonebookEntry($sipId, $entry)
|
517
|
{
|
518
|
|
519
|
|
520
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
521
|
|
522
|
|
523
|
$entry = new SOAP_Value('entry', '{urn:AGProjects:NGNPro}PhonebookEntry', $entry);
|
524
|
$result = $this->call('addPhonebookEntry',
|
525
|
$v = array('sipId' => $sipId, 'entry' => $entry),
|
526
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
527
|
'soapaction' => '',
|
528
|
'style' => 'rpc',
|
529
|
'use' => 'encoded'));
|
530
|
return $result;
|
531
|
}
|
532
|
function &updatePhonebookEntry($sipId, $entry)
|
533
|
{
|
534
|
|
535
|
|
536
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
537
|
|
538
|
|
539
|
$entry = new SOAP_Value('entry', '{urn:AGProjects:NGNPro}PhonebookEntry', $entry);
|
540
|
$result = $this->call('updatePhonebookEntry',
|
541
|
$v = array('sipId' => $sipId, 'entry' => $entry),
|
542
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
543
|
'soapaction' => '',
|
544
|
'style' => 'rpc',
|
545
|
'use' => 'encoded'));
|
546
|
return $result;
|
547
|
}
|
548
|
function &deletePhonebookEntry($sipId, $uri)
|
549
|
{
|
550
|
|
551
|
|
552
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
553
|
$result = $this->call('deletePhonebookEntry',
|
554
|
$v = array('sipId' => $sipId, 'uri' => $uri),
|
555
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
556
|
'soapaction' => '',
|
557
|
'style' => 'rpc',
|
558
|
'use' => 'encoded'));
|
559
|
return $result;
|
560
|
}
|
561
|
function &getPhonebookEntries($sipId, $match, $range)
|
562
|
{
|
563
|
|
564
|
|
565
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
566
|
|
567
|
|
568
|
$match = new SOAP_Value('match', '{urn:AGProjects:NGNPro}PhonebookEntry', $match);
|
569
|
|
570
|
|
571
|
$range = new SOAP_Value('range', '{urn:AGProjects:NGNPro}Range', $range);
|
572
|
$result = $this->call('getPhonebookEntries',
|
573
|
$v = array('sipId' => $sipId, 'match' => $match, 'range' => $range),
|
574
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
575
|
'soapaction' => '',
|
576
|
'style' => 'rpc',
|
577
|
'use' => 'encoded'));
|
578
|
return $result;
|
579
|
}
|
580
|
function &setRejectMembers($sipId, $members)
|
581
|
{
|
582
|
|
583
|
|
584
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
585
|
|
586
|
|
587
|
$members = new SOAP_Value('members', '{urn:AGProjects:NGNPro}StringArray', $members);
|
588
|
$result = $this->call('setRejectMembers',
|
589
|
$v = array('sipId' => $sipId, 'members' => $members),
|
590
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
591
|
'soapaction' => '',
|
592
|
'style' => 'rpc',
|
593
|
'use' => 'encoded'));
|
594
|
return $result;
|
595
|
}
|
596
|
function &getRejectMembers($sipId)
|
597
|
{
|
598
|
|
599
|
|
600
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
601
|
$result = $this->call('getRejectMembers',
|
602
|
$v = array('sipId' => $sipId),
|
603
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
604
|
'soapaction' => '',
|
605
|
'style' => 'rpc',
|
606
|
'use' => 'encoded'));
|
607
|
return $result;
|
608
|
}
|
609
|
function &setAcceptRules($sipId, $rules)
|
610
|
{
|
611
|
|
612
|
|
613
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
614
|
|
615
|
|
616
|
$rules = new SOAP_Value('rules', '{urn:AGProjects:NGNPro}AcceptRules', $rules);
|
617
|
$result = $this->call('setAcceptRules',
|
618
|
$v = array('sipId' => $sipId, 'rules' => $rules),
|
619
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
620
|
'soapaction' => '',
|
621
|
'style' => 'rpc',
|
622
|
'use' => 'encoded'));
|
623
|
return $result;
|
624
|
}
|
625
|
function &getAcceptRules($sipId)
|
626
|
{
|
627
|
|
628
|
|
629
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
630
|
$result = $this->call('getAcceptRules',
|
631
|
$v = array('sipId' => $sipId),
|
632
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
633
|
'soapaction' => '',
|
634
|
'style' => 'rpc',
|
635
|
'use' => 'encoded'));
|
636
|
return $result;
|
637
|
}
|
638
|
function &setBarringPrefixes($sipId, $prefixes)
|
639
|
{
|
640
|
|
641
|
|
642
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
643
|
|
644
|
|
645
|
$prefixes = new SOAP_Value('prefixes', '{urn:AGProjects:NGNPro}StringArray', $prefixes);
|
646
|
$result = $this->call('setBarringPrefixes',
|
647
|
$v = array('sipId' => $sipId, 'prefixes' => $prefixes),
|
648
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
649
|
'soapaction' => '',
|
650
|
'style' => 'rpc',
|
651
|
'use' => 'encoded'));
|
652
|
return $result;
|
653
|
}
|
654
|
function &getBarringPrefixes($sipId)
|
655
|
{
|
656
|
|
657
|
|
658
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
659
|
$result = $this->call('getBarringPrefixes',
|
660
|
$v = array('sipId' => $sipId),
|
661
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
662
|
'soapaction' => '',
|
663
|
'style' => 'rpc',
|
664
|
'use' => 'encoded'));
|
665
|
return $result;
|
666
|
}
|
667
|
function &setCallDiversions($sipId, $diversions)
|
668
|
{
|
669
|
|
670
|
|
671
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
672
|
|
673
|
|
674
|
$diversions = new SOAP_Value('diversions', '{urn:AGProjects:NGNPro}CallDiversions', $diversions);
|
675
|
$result = $this->call('setCallDiversions',
|
676
|
$v = array('sipId' => $sipId, 'diversions' => $diversions),
|
677
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
678
|
'soapaction' => '',
|
679
|
'style' => 'rpc',
|
680
|
'use' => 'encoded'));
|
681
|
return $result;
|
682
|
}
|
683
|
function &getCallDiversions($sipId)
|
684
|
{
|
685
|
|
686
|
|
687
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
688
|
$result = $this->call('getCallDiversions',
|
689
|
$v = array('sipId' => $sipId),
|
690
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
691
|
'soapaction' => '',
|
692
|
'style' => 'rpc',
|
693
|
'use' => 'encoded'));
|
694
|
return $result;
|
695
|
}
|
696
|
function &getCalls($sipId, $query)
|
697
|
{
|
698
|
|
699
|
|
700
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
701
|
|
702
|
|
703
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}CallsQuery', $query);
|
704
|
$result = $this->call('getCalls',
|
705
|
$v = array('sipId' => $sipId, 'query' => $query),
|
706
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
707
|
'soapaction' => '',
|
708
|
'style' => 'rpc',
|
709
|
'use' => 'encoded'));
|
710
|
return $result;
|
711
|
}
|
712
|
function &getCallStatistics($sipId, $query)
|
713
|
{
|
714
|
|
715
|
|
716
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
717
|
|
718
|
|
719
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}CallsQuery', $query);
|
720
|
$result = $this->call('getCallStatistics',
|
721
|
$v = array('sipId' => $sipId, 'query' => $query),
|
722
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
723
|
'soapaction' => '',
|
724
|
'style' => 'rpc',
|
725
|
'use' => 'encoded'));
|
726
|
return $result;
|
727
|
}
|
728
|
function &getSipDeviceLocations($sipIds)
|
729
|
{
|
730
|
|
731
|
|
732
|
$sipIds = new SOAP_Value('sipIds', '{urn:AGProjects:NGNPro}SipIdArray', $sipIds);
|
733
|
$result = $this->call('getSipDeviceLocations',
|
734
|
$v = array('sipIds' => $sipIds),
|
735
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
736
|
'soapaction' => '',
|
737
|
'style' => 'rpc',
|
738
|
'use' => 'encoded'));
|
739
|
return $result;
|
740
|
}
|
741
|
function &getSipTrace($filter)
|
742
|
{
|
743
|
|
744
|
|
745
|
$filter = new SOAP_Value('filter', '{urn:AGProjects:NGNPro}SipTraceFilter', $filter);
|
746
|
$result = $this->call('getSipTrace',
|
747
|
$v = array('filter' => $filter),
|
748
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
749
|
'soapaction' => '',
|
750
|
'style' => 'rpc',
|
751
|
'use' => 'encoded'));
|
752
|
return $result;
|
753
|
}
|
754
|
function &getMediaTrace($filter)
|
755
|
{
|
756
|
|
757
|
|
758
|
$filter = new SOAP_Value('filter', '{urn:AGProjects:NGNPro}MediaTraceFilter', $filter);
|
759
|
$result = $this->call('getMediaTrace',
|
760
|
$v = array('filter' => $filter),
|
761
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
762
|
'soapaction' => '',
|
763
|
'style' => 'rpc',
|
764
|
'use' => 'encoded'));
|
765
|
return $result;
|
766
|
}
|
767
|
function &getMediaSummary()
|
768
|
{
|
769
|
$result = $this->call('getMediaSummary',
|
770
|
$v = null,
|
771
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
772
|
'soapaction' => '',
|
773
|
'style' => 'rpc',
|
774
|
'use' => 'encoded'));
|
775
|
return $result;
|
776
|
}
|
777
|
function &getMediaSessions()
|
778
|
{
|
779
|
$result = $this->call('getMediaSessions',
|
780
|
$v = null,
|
781
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
782
|
'soapaction' => '',
|
783
|
'style' => 'rpc',
|
784
|
'use' => 'encoded'));
|
785
|
return $result;
|
786
|
}
|
787
|
}
|
788
|
class WebService_NGNPro_VoicemailPort extends SOAP_Client
|
789
|
{
|
790
|
function WebService_NGNPro_VoicemailPort($path = 'https://mdns.sipthor.net/ngnpro/voicemail/')
|
791
|
{
|
792
|
$this->SOAP_Client($path, 0);
|
793
|
}
|
794
|
function &addAccount($account)
|
795
|
{
|
796
|
|
797
|
|
798
|
$account = new SOAP_Value('account', '{urn:AGProjects:NGNPro}VoicemailAccount', $account);
|
799
|
$result = $this->call('addAccount',
|
800
|
$v = array('account' => $account),
|
801
|
array('namespace' => 'urn:AGProjects:NGNPro:Voicemail',
|
802
|
'soapaction' => '',
|
803
|
'style' => 'rpc',
|
804
|
'use' => 'encoded'));
|
805
|
return $result;
|
806
|
}
|
807
|
function &updateAccount($account)
|
808
|
{
|
809
|
|
810
|
|
811
|
$account = new SOAP_Value('account', '{urn:AGProjects:NGNPro}VoicemailAccount', $account);
|
812
|
$result = $this->call('updateAccount',
|
813
|
$v = array('account' => $account),
|
814
|
array('namespace' => 'urn:AGProjects:NGNPro:Voicemail',
|
815
|
'soapaction' => '',
|
816
|
'style' => 'rpc',
|
817
|
'use' => 'encoded'));
|
818
|
return $result;
|
819
|
}
|
820
|
function &deleteAccount($sipId)
|
821
|
{
|
822
|
|
823
|
|
824
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
825
|
$result = $this->call('deleteAccount',
|
826
|
$v = array('sipId' => $sipId),
|
827
|
array('namespace' => 'urn:AGProjects:NGNPro:Voicemail',
|
828
|
'soapaction' => '',
|
829
|
'style' => 'rpc',
|
830
|
'use' => 'encoded'));
|
831
|
return $result;
|
832
|
}
|
833
|
function &getAccount($sipId)
|
834
|
{
|
835
|
|
836
|
|
837
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
838
|
$result = $this->call('getAccount',
|
839
|
$v = array('sipId' => $sipId),
|
840
|
array('namespace' => 'urn:AGProjects:NGNPro:Voicemail',
|
841
|
'soapaction' => '',
|
842
|
'style' => 'rpc',
|
843
|
'use' => 'encoded'));
|
844
|
return $result;
|
845
|
}
|
846
|
function &setAnnouncement($sipId, $message)
|
847
|
{
|
848
|
|
849
|
|
850
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
851
|
$result = $this->call('setAnnouncement',
|
852
|
$v = array('sipId' => $sipId, 'message' => $message),
|
853
|
array('namespace' => 'urn:AGProjects:NGNPro:Voicemail',
|
854
|
'soapaction' => '',
|
855
|
'style' => 'rpc',
|
856
|
'use' => 'encoded'));
|
857
|
return $result;
|
858
|
}
|
859
|
}
|
860
|
class WebService_NGNPro_EnumPort extends SOAP_Client
|
861
|
{
|
862
|
function WebService_NGNPro_EnumPort($path = 'https://mdns.sipthor.net/ngnpro/')
|
863
|
{
|
864
|
$this->SOAP_Client($path, 0);
|
865
|
}
|
866
|
function &addRange($range)
|
867
|
{
|
868
|
|
869
|
|
870
|
$range = new SOAP_Value('range', '{urn:AGProjects:NGNPro}EnumRange', $range);
|
871
|
$result = $this->call('addRange',
|
872
|
$v = array('range' => $range),
|
873
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
874
|
'soapaction' => '',
|
875
|
'style' => 'rpc',
|
876
|
'use' => 'encoded'));
|
877
|
return $result;
|
878
|
}
|
879
|
function &updateRange($range)
|
880
|
{
|
881
|
|
882
|
|
883
|
$range = new SOAP_Value('range', '{urn:AGProjects:NGNPro}EnumRange', $range);
|
884
|
$result = $this->call('updateRange',
|
885
|
$v = array('range' => $range),
|
886
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
887
|
'soapaction' => '',
|
888
|
'style' => 'rpc',
|
889
|
'use' => 'encoded'));
|
890
|
return $result;
|
891
|
}
|
892
|
function &deleteRange($range)
|
893
|
{
|
894
|
|
895
|
|
896
|
$range = new SOAP_Value('range', '{urn:AGProjects:NGNPro}EnumRangeId', $range);
|
897
|
$result = $this->call('deleteRange',
|
898
|
$v = array('range' => $range),
|
899
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
900
|
'soapaction' => '',
|
901
|
'style' => 'rpc',
|
902
|
'use' => 'encoded'));
|
903
|
return $result;
|
904
|
}
|
905
|
function &getRanges($query)
|
906
|
{
|
907
|
|
908
|
|
909
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}EnumRangeQuery', $query);
|
910
|
$result = $this->call('getRanges',
|
911
|
$v = array('query' => $query),
|
912
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
913
|
'soapaction' => '',
|
914
|
'style' => 'rpc',
|
915
|
'use' => 'encoded'));
|
916
|
return $result;
|
917
|
}
|
918
|
function &addNumber($number)
|
919
|
{
|
920
|
|
921
|
|
922
|
$number = new SOAP_Value('number', '{urn:AGProjects:NGNPro}EnumNumber', $number);
|
923
|
$result = $this->call('addNumber',
|
924
|
$v = array('number' => $number),
|
925
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
926
|
'soapaction' => '',
|
927
|
'style' => 'rpc',
|
928
|
'use' => 'encoded'));
|
929
|
return $result;
|
930
|
}
|
931
|
function &updateNumber($number)
|
932
|
{
|
933
|
|
934
|
|
935
|
$number = new SOAP_Value('number', '{urn:AGProjects:NGNPro}EnumNumber', $number);
|
936
|
$result = $this->call('updateNumber',
|
937
|
$v = array('number' => $number),
|
938
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
939
|
'soapaction' => '',
|
940
|
'style' => 'rpc',
|
941
|
'use' => 'encoded'));
|
942
|
return $result;
|
943
|
}
|
944
|
function &deleteNumber($enumId)
|
945
|
{
|
946
|
|
947
|
|
948
|
$enumId = new SOAP_Value('enumId', '{urn:AGProjects:NGNPro}EnumId', $enumId);
|
949
|
$result = $this->call('deleteNumber',
|
950
|
$v = array('enumId' => $enumId),
|
951
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
952
|
'soapaction' => '',
|
953
|
'style' => 'rpc',
|
954
|
'use' => 'encoded'));
|
955
|
return $result;
|
956
|
}
|
957
|
function &getNumber($enumId)
|
958
|
{
|
959
|
|
960
|
|
961
|
$enumId = new SOAP_Value('enumId', '{urn:AGProjects:NGNPro}EnumId', $enumId);
|
962
|
$result = $this->call('getNumber',
|
963
|
$v = array('enumId' => $enumId),
|
964
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
965
|
'soapaction' => '',
|
966
|
'style' => 'rpc',
|
967
|
'use' => 'encoded'));
|
968
|
return $result;
|
969
|
}
|
970
|
function &getNumbers($query)
|
971
|
{
|
972
|
|
973
|
|
974
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}EnumNumberQuery', $query);
|
975
|
$result = $this->call('getNumbers',
|
976
|
$v = array('query' => $query),
|
977
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
978
|
'soapaction' => '',
|
979
|
'style' => 'rpc',
|
980
|
'use' => 'encoded'));
|
981
|
return $result;
|
982
|
}
|
983
|
}
|
984
|
class WebService_NGNPro_DnsPort extends SOAP_Client
|
985
|
{
|
986
|
function WebService_NGNPro_DnsPort($path = 'https://mdns.sipthor.net/ngnpro/')
|
987
|
{
|
988
|
$this->SOAP_Client($path, 0);
|
989
|
}
|
990
|
function &addZone($zone)
|
991
|
{
|
992
|
|
993
|
|
994
|
$zone = new SOAP_Value('zone', '{urn:AGProjects:NGNPro}DnsZone', $zone);
|
995
|
$result = $this->call('addZone',
|
996
|
$v = array('zone' => $zone),
|
997
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
998
|
'soapaction' => '',
|
999
|
'style' => 'rpc',
|
1000
|
'use' => 'encoded'));
|
1001
|
return $result;
|
1002
|
}
|
1003
|
function &updateZone($zone)
|
1004
|
{
|
1005
|
|
1006
|
|
1007
|
$zone = new SOAP_Value('zone', '{urn:AGProjects:NGNPro}DnsZone', $zone);
|
1008
|
$result = $this->call('updateZone',
|
1009
|
$v = array('zone' => $zone),
|
1010
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
1011
|
'soapaction' => '',
|
1012
|
'style' => 'rpc',
|
1013
|
'use' => 'encoded'));
|
1014
|
return $result;
|
1015
|
}
|
1016
|
function &deleteZone($zone)
|
1017
|
{
|
1018
|
$result = $this->call('deleteZone',
|
1019
|
$v = array('zone' => $zone),
|
1020
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
1021
|
'soapaction' => '',
|
1022
|
'style' => 'rpc',
|
1023
|
'use' => 'encoded'));
|
1024
|
return $result;
|
1025
|
}
|
1026
|
function &getZone($zone)
|
1027
|
{
|
1028
|
$result = $this->call('getZone',
|
1029
|
$v = array('zone' => $zone),
|
1030
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
1031
|
'soapaction' => '',
|
1032
|
'style' => 'rpc',
|
1033
|
'use' => 'encoded'));
|
1034
|
return $result;
|
1035
|
}
|
1036
|
function &getZones($query)
|
1037
|
{
|
1038
|
|
1039
|
|
1040
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}DnsZoneQuery', $query);
|
1041
|
$result = $this->call('getZones',
|
1042
|
$v = array('query' => $query),
|
1043
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
1044
|
'soapaction' => '',
|
1045
|
'style' => 'rpc',
|
1046
|
'use' => 'encoded'));
|
1047
|
return $result;
|
1048
|
}
|
1049
|
function &addRecord($record)
|
1050
|
{
|
1051
|
|
1052
|
|
1053
|
$record = new SOAP_Value('record', '{urn:AGProjects:NGNPro}DnsRecord', $record);
|
1054
|
$result = $this->call('addRecord',
|
1055
|
$v = array('record' => $record),
|
1056
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
1057
|
'soapaction' => '',
|
1058
|
'style' => 'rpc',
|
1059
|
'use' => 'encoded'));
|
1060
|
return $result;
|
1061
|
}
|
1062
|
function &addFancyRecord($record)
|
1063
|
{
|
1064
|
|
1065
|
|
1066
|
$record = new SOAP_Value('record', '{urn:AGProjects:NGNPro}DnsFancyRecord', $record);
|
1067
|
$result = $this->call('addFancyRecord',
|
1068
|
$v = array('record' => $record),
|
1069
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
1070
|
'soapaction' => '',
|
1071
|
'style' => 'rpc',
|
1072
|
'use' => 'encoded'));
|
1073
|
return $result;
|
1074
|
}
|
1075
|
function &updateRecord($record)
|
1076
|
{
|
1077
|
|
1078
|
|
1079
|
$record = new SOAP_Value('record', '{urn:AGProjects:NGNPro}DnsRecord', $record);
|
1080
|
$result = $this->call('updateRecord',
|
1081
|
$v = array('record' => $record),
|
1082
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
1083
|
'soapaction' => '',
|
1084
|
'style' => 'rpc',
|
1085
|
'use' => 'encoded'));
|
1086
|
return $result;
|
1087
|
}
|
1088
|
function &updateFancyRecord($record)
|
1089
|
{
|
1090
|
|
1091
|
|
1092
|
$record = new SOAP_Value('record', '{urn:AGProjects:NGNPro}DnsFancyRecord', $record);
|
1093
|
$result = $this->call('updateFancyRecord',
|
1094
|
$v = array('record' => $record),
|
1095
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
1096
|
'soapaction' => '',
|
1097
|
'style' => 'rpc',
|
1098
|
'use' => 'encoded'));
|
1099
|
return $result;
|
1100
|
}
|
1101
|
function &deleteRecord($recordId)
|
1102
|
{
|
1103
|
$result = $this->call('deleteRecord',
|
1104
|
$v = array('recordId' => $recordId),
|
1105
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
1106
|
'soapaction' => '',
|
1107
|
'style' => 'rpc',
|
1108
|
'use' => 'encoded'));
|
1109
|
return $result;
|
1110
|
}
|
1111
|
function &deleteFancyRecord($recordId)
|
1112
|
{
|
1113
|
$result = $this->call('deleteFancyRecord',
|
1114
|
$v = array('recordId' => $recordId),
|
1115
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
1116
|
'soapaction' => '',
|
1117
|
'style' => 'rpc',
|
1118
|
'use' => 'encoded'));
|
1119
|
return $result;
|
1120
|
}
|
1121
|
function &getRecord($recordId)
|
1122
|
{
|
1123
|
$result = $this->call('getRecord',
|
1124
|
$v = array('recordId' => $recordId),
|
1125
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
1126
|
'soapaction' => '',
|
1127
|
'style' => 'rpc',
|
1128
|
'use' => 'encoded'));
|
1129
|
return $result;
|
1130
|
}
|
1131
|
function &getFancyRecord($recordId)
|
1132
|
{
|
1133
|
$result = $this->call('getFancyRecord',
|
1134
|
$v = array('recordId' => $recordId),
|
1135
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
1136
|
'soapaction' => '',
|
1137
|
'style' => 'rpc',
|
1138
|
'use' => 'encoded'));
|
1139
|
return $result;
|
1140
|
}
|
1141
|
function &getRecords($query)
|
1142
|
{
|
1143
|
|
1144
|
|
1145
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}DnsRecordQuery', $query);
|
1146
|
$result = $this->call('getRecords',
|
1147
|
$v = array('query' => $query),
|
1148
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
1149
|
'soapaction' => '',
|
1150
|
'style' => 'rpc',
|
1151
|
'use' => 'encoded'));
|
1152
|
return $result;
|
1153
|
}
|
1154
|
function &getFancyRecords($query)
|
1155
|
{
|
1156
|
|
1157
|
|
1158
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}DnsFancyRecordQuery', $query);
|
1159
|
$result = $this->call('getFancyRecords',
|
1160
|
$v = array('query' => $query),
|
1161
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
1162
|
'soapaction' => '',
|
1163
|
'style' => 'rpc',
|
1164
|
'use' => 'encoded'));
|
1165
|
return $result;
|
1166
|
}
|
1167
|
}
|
1168
|
class WebService_NGNPro_RatingPort extends SOAP_Client
|
1169
|
{
|
1170
|
function WebService_NGNPro_RatingPort($path = 'https://mdns.sipthor.net/ngnpro/')
|
1171
|
{
|
1172
|
$this->SOAP_Client($path, 0);
|
1173
|
}
|
1174
|
function &setEntityProfiles($profiles)
|
1175
|
{
|
1176
|
|
1177
|
|
1178
|
$profiles = new SOAP_Value('profiles', '{urn:AGProjects:NGNPro}RatingEntityProfiles', $profiles);
|
1179
|
$result = $this->call('setEntityProfiles',
|
1180
|
$v = array('profiles' => $profiles),
|
1181
|
array('namespace' => 'urn:AGProjects:NGNPro:Rating',
|
1182
|
'soapaction' => '',
|
1183
|
'style' => 'rpc',
|
1184
|
'use' => 'encoded'));
|
1185
|
return $result;
|
1186
|
}
|
1187
|
function &deleteEntityProfiles($entity)
|
1188
|
{
|
1189
|
$result = $this->call('deleteEntityProfiles',
|
1190
|
$v = array('entity' => $entity),
|
1191
|
array('namespace' => 'urn:AGProjects:NGNPro:Rating',
|
1192
|
'soapaction' => '',
|
1193
|
'style' => 'rpc',
|
1194
|
'use' => 'encoded'));
|
1195
|
return $result;
|
1196
|
}
|
1197
|
function &getEntityProfiles($entity)
|
1198
|
{
|
1199
|
$result = $this->call('getEntityProfiles',
|
1200
|
$v = array('entity' => $entity),
|
1201
|
array('namespace' => 'urn:AGProjects:NGNPro:Rating',
|
1202
|
'soapaction' => '',
|
1203
|
'style' => 'rpc',
|
1204
|
'use' => 'encoded'));
|
1205
|
return $result;
|
1206
|
}
|
1207
|
}
|
1208
|
class WebService_NGNPro_CustomerPort extends SOAP_Client
|
1209
|
{
|
1210
|
function WebService_NGNPro_CustomerPort($path = 'https://mdns.sipthor.net/ngnpro/')
|
1211
|
{
|
1212
|
$this->SOAP_Client($path, 0);
|
1213
|
}
|
1214
|
function &addAccount($account)
|
1215
|
{
|
1216
|
|
1217
|
|
1218
|
$account = new SOAP_Value('account', '{urn:AGProjects:NGNPro}CustomerAccount', $account);
|
1219
|
$result = $this->call('addAccount',
|
1220
|
$v = array('account' => $account),
|
1221
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
1222
|
'soapaction' => '',
|
1223
|
'style' => 'rpc',
|
1224
|
'use' => 'encoded'));
|
1225
|
return $result;
|
1226
|
}
|
1227
|
function &updateAccount($account)
|
1228
|
{
|
1229
|
|
1230
|
|
1231
|
$account = new SOAP_Value('account', '{urn:AGProjects:NGNPro}CustomerAccount', $account);
|
1232
|
$result = $this->call('updateAccount',
|
1233
|
$v = array('account' => $account),
|
1234
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
1235
|
'soapaction' => '',
|
1236
|
'style' => 'rpc',
|
1237
|
'use' => 'encoded'));
|
1238
|
return $result;
|
1239
|
}
|
1240
|
function &deleteAccount($id)
|
1241
|
{
|
1242
|
$result = $this->call('deleteAccount',
|
1243
|
$v = array('id' => $id),
|
1244
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
1245
|
'soapaction' => '',
|
1246
|
'style' => 'rpc',
|
1247
|
'use' => 'encoded'));
|
1248
|
return $result;
|
1249
|
}
|
1250
|
function &getAccount($id)
|
1251
|
{
|
1252
|
$result = $this->call('getAccount',
|
1253
|
$v = array('id' => $id),
|
1254
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
1255
|
'soapaction' => '',
|
1256
|
'style' => 'rpc',
|
1257
|
'use' => 'encoded'));
|
1258
|
return $result;
|
1259
|
}
|
1260
|
function &getCustomers($query)
|
1261
|
{
|
1262
|
|
1263
|
|
1264
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}CustomerQuery', $query);
|
1265
|
$result = $this->call('getCustomers',
|
1266
|
$v = array('query' => $query),
|
1267
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
1268
|
'soapaction' => '',
|
1269
|
'style' => 'rpc',
|
1270
|
'use' => 'encoded'));
|
1271
|
return $result;
|
1272
|
}
|
1273
|
function &getResellers($query)
|
1274
|
{
|
1275
|
|
1276
|
|
1277
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}CustomerQuery', $query);
|
1278
|
$result = $this->call('getResellers',
|
1279
|
$v = array('query' => $query),
|
1280
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
1281
|
'soapaction' => '',
|
1282
|
'style' => 'rpc',
|
1283
|
'use' => 'encoded'));
|
1284
|
return $result;
|
1285
|
}
|
1286
|
function &setProperties($customer, $properties)
|
1287
|
{
|
1288
|
|
1289
|
|
1290
|
$properties = new SOAP_Value('properties', '{urn:AGProjects:NGNPro}CustomerPropertyArray', $properties);
|
1291
|
$result = $this->call('setProperties',
|
1292
|
$v = array('customer' => $customer, 'properties' => $properties),
|
1293
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
1294
|
'soapaction' => '',
|
1295
|
'style' => 'rpc',
|
1296
|
'use' => 'encoded'));
|
1297
|
return $result;
|
1298
|
}
|
1299
|
function &getProperties($customer)
|
1300
|
{
|
1301
|
$result = $this->call('getProperties',
|
1302
|
$v = array('customer' => $customer),
|
1303
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
1304
|
'soapaction' => '',
|
1305
|
'style' => 'rpc',
|
1306
|
'use' => 'encoded'));
|
1307
|
return $result;
|
1308
|
}
|
1309
|
}
|
1310
|
class WebService_NGNPro_NetworkPort extends SOAP_Client
|
1311
|
{
|
1312
|
function WebService_NGNPro_NetworkPort($path = 'https://mdns.sipthor.net/ngnpro/')
|
1313
|
{
|
1314
|
$this->SOAP_Client($path, 0);
|
1315
|
}
|
1316
|
function &getStatistics()
|
1317
|
{
|
1318
|
$result = $this->call('getStatistics',
|
1319
|
$v = null,
|
1320
|
array('namespace' => 'urn:AGProjects:NGNPro:Network',
|
1321
|
'soapaction' => '',
|
1322
|
'style' => 'rpc',
|
1323
|
'use' => 'encoded'));
|
1324
|
return $result;
|
1325
|
}
|
1326
|
function &getStatus()
|
1327
|
{
|
1328
|
$result = $this->call('getStatus',
|
1329
|
$v = null,
|
1330
|
array('namespace' => 'urn:AGProjects:NGNPro:Network',
|
1331
|
'soapaction' => '',
|
1332
|
'style' => 'rpc',
|
1333
|
'use' => 'encoded'));
|
1334
|
return $result;
|
1335
|
}
|
1336
|
}
|
1337
|
class WebService_NGNPro_InternalSipPort extends SOAP_Client
|
1338
|
{
|
1339
|
function WebService_NGNPro_InternalSipPort($path = 'http://ngnpro.sipthor.net:9200/')
|
1340
|
{
|
1341
|
$this->SOAP_Client($path, 0);
|
1342
|
}
|
1343
|
function &addGateway($gateway)
|
1344
|
{
|
1345
|
|
1346
|
|
1347
|
$gateway = new SOAP_Value('gateway', '{urn:AGProjects:NGNPro}Gateway', $gateway);
|
1348
|
$result = $this->call('addGateway',
|
1349
|
$v = array('gateway' => $gateway),
|
1350
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1351
|
'soapaction' => '',
|
1352
|
'style' => 'rpc',
|
1353
|
'use' => 'encoded'));
|
1354
|
return $result;
|
1355
|
}
|
1356
|
function &updateGateway($gateway)
|
1357
|
{
|
1358
|
|
1359
|
|
1360
|
$gateway = new SOAP_Value('gateway', '{urn:AGProjects:NGNPro}Gateway', $gateway);
|
1361
|
$result = $this->call('updateGateway',
|
1362
|
$v = array('gateway' => $gateway),
|
1363
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1364
|
'soapaction' => '',
|
1365
|
'style' => 'rpc',
|
1366
|
'use' => 'encoded'));
|
1367
|
return $result;
|
1368
|
}
|
1369
|
function &deleteGateway($id)
|
1370
|
{
|
1371
|
$result = $this->call('deleteGateway',
|
1372
|
$v = array('id' => $id),
|
1373
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1374
|
'soapaction' => '',
|
1375
|
'style' => 'rpc',
|
1376
|
'use' => 'encoded'));
|
1377
|
return $result;
|
1378
|
}
|
1379
|
function &getGateways($query)
|
1380
|
{
|
1381
|
|
1382
|
|
1383
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}GatewayQuery', $query);
|
1384
|
$result = $this->call('getGateways',
|
1385
|
$v = array('query' => $query),
|
1386
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1387
|
'soapaction' => '',
|
1388
|
'style' => 'rpc',
|
1389
|
'use' => 'encoded'));
|
1390
|
return $result;
|
1391
|
}
|
1392
|
function &addGatewayRule($rule)
|
1393
|
{
|
1394
|
|
1395
|
|
1396
|
$rule = new SOAP_Value('rule', '{urn:AGProjects:NGNPro}GatewayRule', $rule);
|
1397
|
$result = $this->call('addGatewayRule',
|
1398
|
$v = array('rule' => $rule),
|
1399
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1400
|
'soapaction' => '',
|
1401
|
'style' => 'rpc',
|
1402
|
'use' => 'encoded'));
|
1403
|
return $result;
|
1404
|
}
|
1405
|
function &updateGatewayRule($rule)
|
1406
|
{
|
1407
|
|
1408
|
|
1409
|
$rule = new SOAP_Value('rule', '{urn:AGProjects:NGNPro}GatewayRule', $rule);
|
1410
|
$result = $this->call('updateGatewayRule',
|
1411
|
$v = array('rule' => $rule),
|
1412
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1413
|
'soapaction' => '',
|
1414
|
'style' => 'rpc',
|
1415
|
'use' => 'encoded'));
|
1416
|
return $result;
|
1417
|
}
|
1418
|
function &deleteGatewayRule($id)
|
1419
|
{
|
1420
|
$result = $this->call('deleteGatewayRule',
|
1421
|
$v = array('id' => $id),
|
1422
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1423
|
'soapaction' => '',
|
1424
|
'style' => 'rpc',
|
1425
|
'use' => 'encoded'));
|
1426
|
return $result;
|
1427
|
}
|
1428
|
function &getGatewayRules($query)
|
1429
|
{
|
1430
|
|
1431
|
|
1432
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}GatewayRuleQuery', $query);
|
1433
|
$result = $this->call('getGatewayRules',
|
1434
|
$v = array('query' => $query),
|
1435
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1436
|
'soapaction' => '',
|
1437
|
'style' => 'rpc',
|
1438
|
'use' => 'encoded'));
|
1439
|
return $result;
|
1440
|
}
|
1441
|
function &addCarrier($carrier)
|
1442
|
{
|
1443
|
|
1444
|
|
1445
|
$carrier = new SOAP_Value('carrier', '{urn:AGProjects:NGNPro}Carrier', $carrier);
|
1446
|
$result = $this->call('addCarrier',
|
1447
|
$v = array('carrier' => $carrier),
|
1448
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1449
|
'soapaction' => '',
|
1450
|
'style' => 'rpc',
|
1451
|
'use' => 'encoded'));
|
1452
|
return $result;
|
1453
|
}
|
1454
|
function &updateCarrier($carrier)
|
1455
|
{
|
1456
|
|
1457
|
|
1458
|
$carrier = new SOAP_Value('carrier', '{urn:AGProjects:NGNPro}Carrier', $carrier);
|
1459
|
$result = $this->call('updateCarrier',
|
1460
|
$v = array('carrier' => $carrier),
|
1461
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1462
|
'soapaction' => '',
|
1463
|
'style' => 'rpc',
|
1464
|
'use' => 'encoded'));
|
1465
|
return $result;
|
1466
|
}
|
1467
|
function &deleteCarrier($id)
|
1468
|
{
|
1469
|
$result = $this->call('deleteCarrier',
|
1470
|
$v = array('id' => $id),
|
1471
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1472
|
'soapaction' => '',
|
1473
|
'style' => 'rpc',
|
1474
|
'use' => 'encoded'));
|
1475
|
return $result;
|
1476
|
}
|
1477
|
function &getCarriers($query)
|
1478
|
{
|
1479
|
|
1480
|
|
1481
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}CarrierQuery', $query);
|
1482
|
$result = $this->call('getCarriers',
|
1483
|
$v = array('query' => $query),
|
1484
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1485
|
'soapaction' => '',
|
1486
|
'style' => 'rpc',
|
1487
|
'use' => 'encoded'));
|
1488
|
return $result;
|
1489
|
}
|
1490
|
function &addRoutes($routes)
|
1491
|
{
|
1492
|
|
1493
|
|
1494
|
$routes = new SOAP_Value('routes', '{urn:AGProjects:NGNPro}RouteArray', $routes);
|
1495
|
$result = $this->call('addRoutes',
|
1496
|
$v = array('routes' => $routes),
|
1497
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1498
|
'soapaction' => '',
|
1499
|
'style' => 'rpc',
|
1500
|
'use' => 'encoded'));
|
1501
|
return $result;
|
1502
|
}
|
1503
|
function &updateRoutes($routes)
|
1504
|
{
|
1505
|
|
1506
|
|
1507
|
$routes = new SOAP_Value('routes', '{urn:AGProjects:NGNPro}RouteArray', $routes);
|
1508
|
$result = $this->call('updateRoutes',
|
1509
|
$v = array('routes' => $routes),
|
1510
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1511
|
'soapaction' => '',
|
1512
|
'style' => 'rpc',
|
1513
|
'use' => 'encoded'));
|
1514
|
return $result;
|
1515
|
}
|
1516
|
function &deleteRoutes($routes)
|
1517
|
{
|
1518
|
|
1519
|
|
1520
|
$routes = new SOAP_Value('routes', '{urn:AGProjects:NGNPro}RouteArray', $routes);
|
1521
|
$result = $this->call('deleteRoutes',
|
1522
|
$v = array('routes' => $routes),
|
1523
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1524
|
'soapaction' => '',
|
1525
|
'style' => 'rpc',
|
1526
|
'use' => 'encoded'));
|
1527
|
return $result;
|
1528
|
}
|
1529
|
function &getRoutes($query)
|
1530
|
{
|
1531
|
|
1532
|
|
1533
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}RouteQuery', $query);
|
1534
|
$result = $this->call('getRoutes',
|
1535
|
$v = array('query' => $query),
|
1536
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1537
|
'soapaction' => '',
|
1538
|
'style' => 'rpc',
|
1539
|
'use' => 'encoded'));
|
1540
|
return $result;
|
1541
|
}
|
1542
|
function &addDomain($domain)
|
1543
|
{
|
1544
|
|
1545
|
|
1546
|
$domain = new SOAP_Value('domain', '{urn:AGProjects:NGNPro}SipDomain', $domain);
|
1547
|
$result = $this->call('addDomain',
|
1548
|
$v = array('domain' => $domain),
|
1549
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1550
|
'soapaction' => '',
|
1551
|
'style' => 'rpc',
|
1552
|
'use' => 'encoded'));
|
1553
|
return $result;
|
1554
|
}
|
1555
|
function &updateDomain($domain)
|
1556
|
{
|
1557
|
|
1558
|
|
1559
|
$domain = new SOAP_Value('domain', '{urn:AGProjects:NGNPro}SipDomain', $domain);
|
1560
|
$result = $this->call('updateDomain',
|
1561
|
$v = array('domain' => $domain),
|
1562
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1563
|
'soapaction' => '',
|
1564
|
'style' => 'rpc',
|
1565
|
'use' => 'encoded'));
|
1566
|
return $result;
|
1567
|
}
|
1568
|
function &deleteDomain($domain)
|
1569
|
{
|
1570
|
$result = $this->call('deleteDomain',
|
1571
|
$v = array('domain' => $domain),
|
1572
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1573
|
'soapaction' => '',
|
1574
|
'style' => 'rpc',
|
1575
|
'use' => 'encoded'));
|
1576
|
return $result;
|
1577
|
}
|
1578
|
function &getDomains($query)
|
1579
|
{
|
1580
|
|
1581
|
|
1582
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}SipDomainQuery', $query);
|
1583
|
$result = $this->call('getDomains',
|
1584
|
$v = array('query' => $query),
|
1585
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1586
|
'soapaction' => '',
|
1587
|
'style' => 'rpc',
|
1588
|
'use' => 'encoded'));
|
1589
|
return $result;
|
1590
|
}
|
1591
|
function &addTrustedPeer($peer)
|
1592
|
{
|
1593
|
|
1594
|
|
1595
|
$peer = new SOAP_Value('peer', '{urn:AGProjects:NGNPro}TrustedPeer', $peer);
|
1596
|
$result = $this->call('addTrustedPeer',
|
1597
|
$v = array('peer' => $peer),
|
1598
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1599
|
'soapaction' => '',
|
1600
|
'style' => 'rpc',
|
1601
|
'use' => 'encoded'));
|
1602
|
return $result;
|
1603
|
}
|
1604
|
function &deleteTrustedPeer($ip)
|
1605
|
{
|
1606
|
$result = $this->call('deleteTrustedPeer',
|
1607
|
$v = array('ip' => $ip),
|
1608
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1609
|
'soapaction' => '',
|
1610
|
'style' => 'rpc',
|
1611
|
'use' => 'encoded'));
|
1612
|
return $result;
|
1613
|
}
|
1614
|
function &getTrustedPeers($query)
|
1615
|
{
|
1616
|
|
1617
|
|
1618
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}TrustedPeerQuery', $query);
|
1619
|
$result = $this->call('getTrustedPeers',
|
1620
|
$v = array('query' => $query),
|
1621
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1622
|
'soapaction' => '',
|
1623
|
'style' => 'rpc',
|
1624
|
'use' => 'encoded'));
|
1625
|
return $result;
|
1626
|
}
|
1627
|
function &addAccount($account)
|
1628
|
{
|
1629
|
|
1630
|
|
1631
|
$account = new SOAP_Value('account', '{urn:AGProjects:NGNPro}SipAccount', $account);
|
1632
|
$result = $this->call('addAccount',
|
1633
|
$v = array('account' => $account),
|
1634
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1635
|
'soapaction' => '',
|
1636
|
'style' => 'rpc',
|
1637
|
'use' => 'encoded'));
|
1638
|
return $result;
|
1639
|
}
|
1640
|
function &updateAccount($account)
|
1641
|
{
|
1642
|
|
1643
|
|
1644
|
$account = new SOAP_Value('account', '{urn:AGProjects:NGNPro}SipAccount', $account);
|
1645
|
$result = $this->call('updateAccount',
|
1646
|
$v = array('account' => $account),
|
1647
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1648
|
'soapaction' => '',
|
1649
|
'style' => 'rpc',
|
1650
|
'use' => 'encoded'));
|
1651
|
return $result;
|
1652
|
}
|
1653
|
function &deleteAccount($sipId)
|
1654
|
{
|
1655
|
|
1656
|
|
1657
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1658
|
$result = $this->call('deleteAccount',
|
1659
|
$v = array('sipId' => $sipId),
|
1660
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1661
|
'soapaction' => '',
|
1662
|
'style' => 'rpc',
|
1663
|
'use' => 'encoded'));
|
1664
|
return $result;
|
1665
|
}
|
1666
|
function &getAccount($sipId)
|
1667
|
{
|
1668
|
|
1669
|
|
1670
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1671
|
$result = $this->call('getAccount',
|
1672
|
$v = array('sipId' => $sipId),
|
1673
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1674
|
'soapaction' => '',
|
1675
|
'style' => 'rpc',
|
1676
|
'use' => 'encoded'));
|
1677
|
return $result;
|
1678
|
}
|
1679
|
function &getAccounts($query)
|
1680
|
{
|
1681
|
|
1682
|
|
1683
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}SipQuery', $query);
|
1684
|
$result = $this->call('getAccounts',
|
1685
|
$v = array('query' => $query),
|
1686
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1687
|
'soapaction' => '',
|
1688
|
'style' => 'rpc',
|
1689
|
'use' => 'encoded'));
|
1690
|
return $result;
|
1691
|
}
|
1692
|
function &addAlias($alias)
|
1693
|
{
|
1694
|
|
1695
|
|
1696
|
$alias = new SOAP_Value('alias', '{urn:AGProjects:NGNPro}SipAlias', $alias);
|
1697
|
$result = $this->call('addAlias',
|
1698
|
$v = array('alias' => $alias),
|
1699
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1700
|
'soapaction' => '',
|
1701
|
'style' => 'rpc',
|
1702
|
'use' => 'encoded'));
|
1703
|
return $result;
|
1704
|
}
|
1705
|
function &updateAlias($alias)
|
1706
|
{
|
1707
|
|
1708
|
|
1709
|
$alias = new SOAP_Value('alias', '{urn:AGProjects:NGNPro}SipAlias', $alias);
|
1710
|
$result = $this->call('updateAlias',
|
1711
|
$v = array('alias' => $alias),
|
1712
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1713
|
'soapaction' => '',
|
1714
|
'style' => 'rpc',
|
1715
|
'use' => 'encoded'));
|
1716
|
return $result;
|
1717
|
}
|
1718
|
function &deleteAlias($id)
|
1719
|
{
|
1720
|
|
1721
|
|
1722
|
$id = new SOAP_Value('id', '{urn:AGProjects:NGNPro}SipId', $id);
|
1723
|
$result = $this->call('deleteAlias',
|
1724
|
$v = array('id' => $id),
|
1725
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1726
|
'soapaction' => '',
|
1727
|
'style' => 'rpc',
|
1728
|
'use' => 'encoded'));
|
1729
|
return $result;
|
1730
|
}
|
1731
|
function &getAlias($id)
|
1732
|
{
|
1733
|
|
1734
|
|
1735
|
$id = new SOAP_Value('id', '{urn:AGProjects:NGNPro}SipId', $id);
|
1736
|
$result = $this->call('getAlias',
|
1737
|
$v = array('id' => $id),
|
1738
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1739
|
'soapaction' => '',
|
1740
|
'style' => 'rpc',
|
1741
|
'use' => 'encoded'));
|
1742
|
return $result;
|
1743
|
}
|
1744
|
function &getAliases($query)
|
1745
|
{
|
1746
|
|
1747
|
|
1748
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}AliasQuery', $query);
|
1749
|
$result = $this->call('getAliases',
|
1750
|
$v = array('query' => $query),
|
1751
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1752
|
'soapaction' => '',
|
1753
|
'style' => 'rpc',
|
1754
|
'use' => 'encoded'));
|
1755
|
return $result;
|
1756
|
}
|
1757
|
function &addToGroup($sipId, $group)
|
1758
|
{
|
1759
|
|
1760
|
|
1761
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1762
|
$result = $this->call('addToGroup',
|
1763
|
$v = array('sipId' => $sipId, 'group' => $group),
|
1764
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1765
|
'soapaction' => '',
|
1766
|
'style' => 'rpc',
|
1767
|
'use' => 'encoded'));
|
1768
|
return $result;
|
1769
|
}
|
1770
|
function &removeFromGroup($sipId, $group)
|
1771
|
{
|
1772
|
|
1773
|
|
1774
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1775
|
$result = $this->call('removeFromGroup',
|
1776
|
$v = array('sipId' => $sipId, 'group' => $group),
|
1777
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1778
|
'soapaction' => '',
|
1779
|
'style' => 'rpc',
|
1780
|
'use' => 'encoded'));
|
1781
|
return $result;
|
1782
|
}
|
1783
|
function &getGroups($sipId)
|
1784
|
{
|
1785
|
|
1786
|
|
1787
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1788
|
$result = $this->call('getGroups',
|
1789
|
$v = array('sipId' => $sipId),
|
1790
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1791
|
'soapaction' => '',
|
1792
|
'style' => 'rpc',
|
1793
|
'use' => 'encoded'));
|
1794
|
return $result;
|
1795
|
}
|
1796
|
function &addBalance($sipId, $value, $description)
|
1797
|
{
|
1798
|
|
1799
|
|
1800
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1801
|
$result = $this->call('addBalance',
|
1802
|
$v = array('sipId' => $sipId, 'value' => $value, 'description' => $description),
|
1803
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1804
|
'soapaction' => '',
|
1805
|
'style' => 'rpc',
|
1806
|
'use' => 'encoded'));
|
1807
|
return $result;
|
1808
|
}
|
1809
|
function &addBalanceFromVoucher($sipId, $card)
|
1810
|
{
|
1811
|
|
1812
|
|
1813
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1814
|
|
1815
|
|
1816
|
$card = new SOAP_Value('card', '{urn:AGProjects:NGNPro}PrepaidCard', $card);
|
1817
|
$result = $this->call('addBalanceFromVoucher',
|
1818
|
$v = array('sipId' => $sipId, 'card' => $card),
|
1819
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1820
|
'soapaction' => '',
|
1821
|
'style' => 'rpc',
|
1822
|
'use' => 'encoded'));
|
1823
|
return $result;
|
1824
|
}
|
1825
|
function &getPrepaidStatus($sipIds)
|
1826
|
{
|
1827
|
|
1828
|
|
1829
|
$sipIds = new SOAP_Value('sipIds', '{urn:AGProjects:NGNPro}SipIdArray', $sipIds);
|
1830
|
$result = $this->call('getPrepaidStatus',
|
1831
|
$v = array('sipIds' => $sipIds),
|
1832
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1833
|
'soapaction' => '',
|
1834
|
'style' => 'rpc',
|
1835
|
'use' => 'encoded'));
|
1836
|
return $result;
|
1837
|
}
|
1838
|
function &getCreditHistory($sipId, $count)
|
1839
|
{
|
1840
|
|
1841
|
|
1842
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1843
|
$result = $this->call('getCreditHistory',
|
1844
|
$v = array('sipId' => $sipId, 'count' => $count),
|
1845
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1846
|
'soapaction' => '',
|
1847
|
'style' => 'rpc',
|
1848
|
'use' => 'encoded'));
|
1849
|
return $result;
|
1850
|
}
|
1851
|
function &addPhonebookEntry($sipId, $entry)
|
1852
|
{
|
1853
|
|
1854
|
|
1855
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1856
|
|
1857
|
|
1858
|
$entry = new SOAP_Value('entry', '{urn:AGProjects:NGNPro}PhonebookEntry', $entry);
|
1859
|
$result = $this->call('addPhonebookEntry',
|
1860
|
$v = array('sipId' => $sipId, 'entry' => $entry),
|
1861
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1862
|
'soapaction' => '',
|
1863
|
'style' => 'rpc',
|
1864
|
'use' => 'encoded'));
|
1865
|
return $result;
|
1866
|
}
|
1867
|
function &updatePhonebookEntry($sipId, $entry)
|
1868
|
{
|
1869
|
|
1870
|
|
1871
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1872
|
|
1873
|
|
1874
|
$entry = new SOAP_Value('entry', '{urn:AGProjects:NGNPro}PhonebookEntry', $entry);
|
1875
|
$result = $this->call('updatePhonebookEntry',
|
1876
|
$v = array('sipId' => $sipId, 'entry' => $entry),
|
1877
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1878
|
'soapaction' => '',
|
1879
|
'style' => 'rpc',
|
1880
|
'use' => 'encoded'));
|
1881
|
return $result;
|
1882
|
}
|
1883
|
function &deletePhonebookEntry($sipId, $uri)
|
1884
|
{
|
1885
|
|
1886
|
|
1887
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1888
|
$result = $this->call('deletePhonebookEntry',
|
1889
|
$v = array('sipId' => $sipId, 'uri' => $uri),
|
1890
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1891
|
'soapaction' => '',
|
1892
|
'style' => 'rpc',
|
1893
|
'use' => 'encoded'));
|
1894
|
return $result;
|
1895
|
}
|
1896
|
function &getPhonebookEntries($sipId, $match, $range)
|
1897
|
{
|
1898
|
|
1899
|
|
1900
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1901
|
|
1902
|
|
1903
|
$match = new SOAP_Value('match', '{urn:AGProjects:NGNPro}PhonebookEntry', $match);
|
1904
|
|
1905
|
|
1906
|
$range = new SOAP_Value('range', '{urn:AGProjects:NGNPro}Range', $range);
|
1907
|
$result = $this->call('getPhonebookEntries',
|
1908
|
$v = array('sipId' => $sipId, 'match' => $match, 'range' => $range),
|
1909
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1910
|
'soapaction' => '',
|
1911
|
'style' => 'rpc',
|
1912
|
'use' => 'encoded'));
|
1913
|
return $result;
|
1914
|
}
|
1915
|
function &setRejectMembers($sipId, $members)
|
1916
|
{
|
1917
|
|
1918
|
|
1919
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1920
|
|
1921
|
|
1922
|
$members = new SOAP_Value('members', '{urn:AGProjects:NGNPro}StringArray', $members);
|
1923
|
$result = $this->call('setRejectMembers',
|
1924
|
$v = array('sipId' => $sipId, 'members' => $members),
|
1925
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1926
|
'soapaction' => '',
|
1927
|
'style' => 'rpc',
|
1928
|
'use' => 'encoded'));
|
1929
|
return $result;
|
1930
|
}
|
1931
|
function &getRejectMembers($sipId)
|
1932
|
{
|
1933
|
|
1934
|
|
1935
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1936
|
$result = $this->call('getRejectMembers',
|
1937
|
$v = array('sipId' => $sipId),
|
1938
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1939
|
'soapaction' => '',
|
1940
|
'style' => 'rpc',
|
1941
|
'use' => 'encoded'));
|
1942
|
return $result;
|
1943
|
}
|
1944
|
function &setAcceptRules($sipId, $rules)
|
1945
|
{
|
1946
|
|
1947
|
|
1948
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1949
|
|
1950
|
|
1951
|
$rules = new SOAP_Value('rules', '{urn:AGProjects:NGNPro}AcceptRules', $rules);
|
1952
|
$result = $this->call('setAcceptRules',
|
1953
|
$v = array('sipId' => $sipId, 'rules' => $rules),
|
1954
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1955
|
'soapaction' => '',
|
1956
|
'style' => 'rpc',
|
1957
|
'use' => 'encoded'));
|
1958
|
return $result;
|
1959
|
}
|
1960
|
function &getAcceptRules($sipId)
|
1961
|
{
|
1962
|
|
1963
|
|
1964
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1965
|
$result = $this->call('getAcceptRules',
|
1966
|
$v = array('sipId' => $sipId),
|
1967
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1968
|
'soapaction' => '',
|
1969
|
'style' => 'rpc',
|
1970
|
'use' => 'encoded'));
|
1971
|
return $result;
|
1972
|
}
|
1973
|
function &setBarringPrefixes($sipId, $prefixes)
|
1974
|
{
|
1975
|
|
1976
|
|
1977
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1978
|
|
1979
|
|
1980
|
$prefixes = new SOAP_Value('prefixes', '{urn:AGProjects:NGNPro}StringArray', $prefixes);
|
1981
|
$result = $this->call('setBarringPrefixes',
|
1982
|
$v = array('sipId' => $sipId, 'prefixes' => $prefixes),
|
1983
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1984
|
'soapaction' => '',
|
1985
|
'style' => 'rpc',
|
1986
|
'use' => 'encoded'));
|
1987
|
return $result;
|
1988
|
}
|
1989
|
function &getBarringPrefixes($sipId)
|
1990
|
{
|
1991
|
|
1992
|
|
1993
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
1994
|
$result = $this->call('getBarringPrefixes',
|
1995
|
$v = array('sipId' => $sipId),
|
1996
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
1997
|
'soapaction' => '',
|
1998
|
'style' => 'rpc',
|
1999
|
'use' => 'encoded'));
|
2000
|
return $result;
|
2001
|
}
|
2002
|
function &setCallDiversions($sipId, $diversions)
|
2003
|
{
|
2004
|
|
2005
|
|
2006
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
2007
|
|
2008
|
|
2009
|
$diversions = new SOAP_Value('diversions', '{urn:AGProjects:NGNPro}CallDiversions', $diversions);
|
2010
|
$result = $this->call('setCallDiversions',
|
2011
|
$v = array('sipId' => $sipId, 'diversions' => $diversions),
|
2012
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
2013
|
'soapaction' => '',
|
2014
|
'style' => 'rpc',
|
2015
|
'use' => 'encoded'));
|
2016
|
return $result;
|
2017
|
}
|
2018
|
function &getCallDiversions($sipId)
|
2019
|
{
|
2020
|
|
2021
|
|
2022
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
2023
|
$result = $this->call('getCallDiversions',
|
2024
|
$v = array('sipId' => $sipId),
|
2025
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
2026
|
'soapaction' => '',
|
2027
|
'style' => 'rpc',
|
2028
|
'use' => 'encoded'));
|
2029
|
return $result;
|
2030
|
}
|
2031
|
function &getCalls($sipId, $query)
|
2032
|
{
|
2033
|
|
2034
|
|
2035
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
2036
|
|
2037
|
|
2038
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}CallsQuery', $query);
|
2039
|
$result = $this->call('getCalls',
|
2040
|
$v = array('sipId' => $sipId, 'query' => $query),
|
2041
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
2042
|
'soapaction' => '',
|
2043
|
'style' => 'rpc',
|
2044
|
'use' => 'encoded'));
|
2045
|
return $result;
|
2046
|
}
|
2047
|
function &getCallStatistics($sipId, $query)
|
2048
|
{
|
2049
|
|
2050
|
|
2051
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
2052
|
|
2053
|
|
2054
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}CallsQuery', $query);
|
2055
|
$result = $this->call('getCallStatistics',
|
2056
|
$v = array('sipId' => $sipId, 'query' => $query),
|
2057
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
2058
|
'soapaction' => '',
|
2059
|
'style' => 'rpc',
|
2060
|
'use' => 'encoded'));
|
2061
|
return $result;
|
2062
|
}
|
2063
|
function &getSipDeviceLocations($sipIds)
|
2064
|
{
|
2065
|
|
2066
|
|
2067
|
$sipIds = new SOAP_Value('sipIds', '{urn:AGProjects:NGNPro}SipIdArray', $sipIds);
|
2068
|
$result = $this->call('getSipDeviceLocations',
|
2069
|
$v = array('sipIds' => $sipIds),
|
2070
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
2071
|
'soapaction' => '',
|
2072
|
'style' => 'rpc',
|
2073
|
'use' => 'encoded'));
|
2074
|
return $result;
|
2075
|
}
|
2076
|
function &getSipTrace($filter)
|
2077
|
{
|
2078
|
|
2079
|
|
2080
|
$filter = new SOAP_Value('filter', '{urn:AGProjects:NGNPro}SipTraceFilter', $filter);
|
2081
|
$result = $this->call('getSipTrace',
|
2082
|
$v = array('filter' => $filter),
|
2083
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
2084
|
'soapaction' => '',
|
2085
|
'style' => 'rpc',
|
2086
|
'use' => 'encoded'));
|
2087
|
return $result;
|
2088
|
}
|
2089
|
function &getMediaTrace($filter)
|
2090
|
{
|
2091
|
|
2092
|
|
2093
|
$filter = new SOAP_Value('filter', '{urn:AGProjects:NGNPro}MediaTraceFilter', $filter);
|
2094
|
$result = $this->call('getMediaTrace',
|
2095
|
$v = array('filter' => $filter),
|
2096
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
2097
|
'soapaction' => '',
|
2098
|
'style' => 'rpc',
|
2099
|
'use' => 'encoded'));
|
2100
|
return $result;
|
2101
|
}
|
2102
|
function &getMediaSummary()
|
2103
|
{
|
2104
|
$result = $this->call('getMediaSummary',
|
2105
|
$v = null,
|
2106
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
2107
|
'soapaction' => '',
|
2108
|
'style' => 'rpc',
|
2109
|
'use' => 'encoded'));
|
2110
|
return $result;
|
2111
|
}
|
2112
|
function &getMediaSessions()
|
2113
|
{
|
2114
|
$result = $this->call('getMediaSessions',
|
2115
|
$v = null,
|
2116
|
array('namespace' => 'urn:AGProjects:NGNPro:Sip',
|
2117
|
'soapaction' => '',
|
2118
|
'style' => 'rpc',
|
2119
|
'use' => 'encoded'));
|
2120
|
return $result;
|
2121
|
}
|
2122
|
}
|
2123
|
class WebService_NGNPro_InternalVoicemailPort extends SOAP_Client
|
2124
|
{
|
2125
|
function WebService_NGNPro_InternalVoicemailPort($path = 'http://ngnpro.sipthor.net:9200/')
|
2126
|
{
|
2127
|
$this->SOAP_Client($path, 0);
|
2128
|
}
|
2129
|
function &addAccount($account)
|
2130
|
{
|
2131
|
|
2132
|
|
2133
|
$account = new SOAP_Value('account', '{urn:AGProjects:NGNPro}VoicemailAccount', $account);
|
2134
|
$result = $this->call('addAccount',
|
2135
|
$v = array('account' => $account),
|
2136
|
array('namespace' => 'urn:AGProjects:NGNPro:Voicemail',
|
2137
|
'soapaction' => '',
|
2138
|
'style' => 'rpc',
|
2139
|
'use' => 'encoded'));
|
2140
|
return $result;
|
2141
|
}
|
2142
|
function &updateAccount($account)
|
2143
|
{
|
2144
|
|
2145
|
|
2146
|
$account = new SOAP_Value('account', '{urn:AGProjects:NGNPro}VoicemailAccount', $account);
|
2147
|
$result = $this->call('updateAccount',
|
2148
|
$v = array('account' => $account),
|
2149
|
array('namespace' => 'urn:AGProjects:NGNPro:Voicemail',
|
2150
|
'soapaction' => '',
|
2151
|
'style' => 'rpc',
|
2152
|
'use' => 'encoded'));
|
2153
|
return $result;
|
2154
|
}
|
2155
|
function &deleteAccount($sipId)
|
2156
|
{
|
2157
|
|
2158
|
|
2159
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
2160
|
$result = $this->call('deleteAccount',
|
2161
|
$v = array('sipId' => $sipId),
|
2162
|
array('namespace' => 'urn:AGProjects:NGNPro:Voicemail',
|
2163
|
'soapaction' => '',
|
2164
|
'style' => 'rpc',
|
2165
|
'use' => 'encoded'));
|
2166
|
return $result;
|
2167
|
}
|
2168
|
function &getAccount($sipId)
|
2169
|
{
|
2170
|
|
2171
|
|
2172
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
2173
|
$result = $this->call('getAccount',
|
2174
|
$v = array('sipId' => $sipId),
|
2175
|
array('namespace' => 'urn:AGProjects:NGNPro:Voicemail',
|
2176
|
'soapaction' => '',
|
2177
|
'style' => 'rpc',
|
2178
|
'use' => 'encoded'));
|
2179
|
return $result;
|
2180
|
}
|
2181
|
function &setAnnouncement($sipId, $message)
|
2182
|
{
|
2183
|
|
2184
|
|
2185
|
$sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
|
2186
|
$result = $this->call('setAnnouncement',
|
2187
|
$v = array('sipId' => $sipId, 'message' => $message),
|
2188
|
array('namespace' => 'urn:AGProjects:NGNPro:Voicemail',
|
2189
|
'soapaction' => '',
|
2190
|
'style' => 'rpc',
|
2191
|
'use' => 'encoded'));
|
2192
|
return $result;
|
2193
|
}
|
2194
|
}
|
2195
|
class WebService_NGNPro_InternalEnumPort extends SOAP_Client
|
2196
|
{
|
2197
|
function WebService_NGNPro_InternalEnumPort($path = 'http://ngnpro.sipthor.net:9200/')
|
2198
|
{
|
2199
|
$this->SOAP_Client($path, 0);
|
2200
|
}
|
2201
|
function &addRange($range)
|
2202
|
{
|
2203
|
|
2204
|
|
2205
|
$range = new SOAP_Value('range', '{urn:AGProjects:NGNPro}EnumRange', $range);
|
2206
|
$result = $this->call('addRange',
|
2207
|
$v = array('range' => $range),
|
2208
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
2209
|
'soapaction' => '',
|
2210
|
'style' => 'rpc',
|
2211
|
'use' => 'encoded'));
|
2212
|
return $result;
|
2213
|
}
|
2214
|
function &updateRange($range)
|
2215
|
{
|
2216
|
|
2217
|
|
2218
|
$range = new SOAP_Value('range', '{urn:AGProjects:NGNPro}EnumRange', $range);
|
2219
|
$result = $this->call('updateRange',
|
2220
|
$v = array('range' => $range),
|
2221
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
2222
|
'soapaction' => '',
|
2223
|
'style' => 'rpc',
|
2224
|
'use' => 'encoded'));
|
2225
|
return $result;
|
2226
|
}
|
2227
|
function &deleteRange($range)
|
2228
|
{
|
2229
|
|
2230
|
|
2231
|
$range = new SOAP_Value('range', '{urn:AGProjects:NGNPro}EnumRangeId', $range);
|
2232
|
$result = $this->call('deleteRange',
|
2233
|
$v = array('range' => $range),
|
2234
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
2235
|
'soapaction' => '',
|
2236
|
'style' => 'rpc',
|
2237
|
'use' => 'encoded'));
|
2238
|
return $result;
|
2239
|
}
|
2240
|
function &getRanges($query)
|
2241
|
{
|
2242
|
|
2243
|
|
2244
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}EnumRangeQuery', $query);
|
2245
|
$result = $this->call('getRanges',
|
2246
|
$v = array('query' => $query),
|
2247
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
2248
|
'soapaction' => '',
|
2249
|
'style' => 'rpc',
|
2250
|
'use' => 'encoded'));
|
2251
|
return $result;
|
2252
|
}
|
2253
|
function &addNumber($number)
|
2254
|
{
|
2255
|
|
2256
|
|
2257
|
$number = new SOAP_Value('number', '{urn:AGProjects:NGNPro}EnumNumber', $number);
|
2258
|
$result = $this->call('addNumber',
|
2259
|
$v = array('number' => $number),
|
2260
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
2261
|
'soapaction' => '',
|
2262
|
'style' => 'rpc',
|
2263
|
'use' => 'encoded'));
|
2264
|
return $result;
|
2265
|
}
|
2266
|
function &updateNumber($number)
|
2267
|
{
|
2268
|
|
2269
|
|
2270
|
$number = new SOAP_Value('number', '{urn:AGProjects:NGNPro}EnumNumber', $number);
|
2271
|
$result = $this->call('updateNumber',
|
2272
|
$v = array('number' => $number),
|
2273
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
2274
|
'soapaction' => '',
|
2275
|
'style' => 'rpc',
|
2276
|
'use' => 'encoded'));
|
2277
|
return $result;
|
2278
|
}
|
2279
|
function &deleteNumber($enumId)
|
2280
|
{
|
2281
|
|
2282
|
|
2283
|
$enumId = new SOAP_Value('enumId', '{urn:AGProjects:NGNPro}EnumId', $enumId);
|
2284
|
$result = $this->call('deleteNumber',
|
2285
|
$v = array('enumId' => $enumId),
|
2286
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
2287
|
'soapaction' => '',
|
2288
|
'style' => 'rpc',
|
2289
|
'use' => 'encoded'));
|
2290
|
return $result;
|
2291
|
}
|
2292
|
function &getNumber($enumId)
|
2293
|
{
|
2294
|
|
2295
|
|
2296
|
$enumId = new SOAP_Value('enumId', '{urn:AGProjects:NGNPro}EnumId', $enumId);
|
2297
|
$result = $this->call('getNumber',
|
2298
|
$v = array('enumId' => $enumId),
|
2299
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
2300
|
'soapaction' => '',
|
2301
|
'style' => 'rpc',
|
2302
|
'use' => 'encoded'));
|
2303
|
return $result;
|
2304
|
}
|
2305
|
function &getNumbers($query)
|
2306
|
{
|
2307
|
|
2308
|
|
2309
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}EnumNumberQuery', $query);
|
2310
|
$result = $this->call('getNumbers',
|
2311
|
$v = array('query' => $query),
|
2312
|
array('namespace' => 'urn:AGProjects:NGNPro:Enum',
|
2313
|
'soapaction' => '',
|
2314
|
'style' => 'rpc',
|
2315
|
'use' => 'encoded'));
|
2316
|
return $result;
|
2317
|
}
|
2318
|
}
|
2319
|
class WebService_NGNPro_InternalDnsPort extends SOAP_Client
|
2320
|
{
|
2321
|
function WebService_NGNPro_InternalDnsPort($path = 'http://ngnpro.sipthor.net:9200/')
|
2322
|
{
|
2323
|
$this->SOAP_Client($path, 0);
|
2324
|
}
|
2325
|
function &addZone($zone)
|
2326
|
{
|
2327
|
|
2328
|
|
2329
|
$zone = new SOAP_Value('zone', '{urn:AGProjects:NGNPro}DnsZone', $zone);
|
2330
|
$result = $this->call('addZone',
|
2331
|
$v = array('zone' => $zone),
|
2332
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2333
|
'soapaction' => '',
|
2334
|
'style' => 'rpc',
|
2335
|
'use' => 'encoded'));
|
2336
|
return $result;
|
2337
|
}
|
2338
|
function &updateZone($zone)
|
2339
|
{
|
2340
|
|
2341
|
|
2342
|
$zone = new SOAP_Value('zone', '{urn:AGProjects:NGNPro}DnsZone', $zone);
|
2343
|
$result = $this->call('updateZone',
|
2344
|
$v = array('zone' => $zone),
|
2345
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2346
|
'soapaction' => '',
|
2347
|
'style' => 'rpc',
|
2348
|
'use' => 'encoded'));
|
2349
|
return $result;
|
2350
|
}
|
2351
|
function &deleteZone($zone)
|
2352
|
{
|
2353
|
$result = $this->call('deleteZone',
|
2354
|
$v = array('zone' => $zone),
|
2355
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2356
|
'soapaction' => '',
|
2357
|
'style' => 'rpc',
|
2358
|
'use' => 'encoded'));
|
2359
|
return $result;
|
2360
|
}
|
2361
|
function &getZone($zone)
|
2362
|
{
|
2363
|
$result = $this->call('getZone',
|
2364
|
$v = array('zone' => $zone),
|
2365
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2366
|
'soapaction' => '',
|
2367
|
'style' => 'rpc',
|
2368
|
'use' => 'encoded'));
|
2369
|
return $result;
|
2370
|
}
|
2371
|
function &getZones($query)
|
2372
|
{
|
2373
|
|
2374
|
|
2375
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}DnsZoneQuery', $query);
|
2376
|
$result = $this->call('getZones',
|
2377
|
$v = array('query' => $query),
|
2378
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2379
|
'soapaction' => '',
|
2380
|
'style' => 'rpc',
|
2381
|
'use' => 'encoded'));
|
2382
|
return $result;
|
2383
|
}
|
2384
|
function &addRecord($record)
|
2385
|
{
|
2386
|
|
2387
|
|
2388
|
$record = new SOAP_Value('record', '{urn:AGProjects:NGNPro}DnsRecord', $record);
|
2389
|
$result = $this->call('addRecord',
|
2390
|
$v = array('record' => $record),
|
2391
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2392
|
'soapaction' => '',
|
2393
|
'style' => 'rpc',
|
2394
|
'use' => 'encoded'));
|
2395
|
return $result;
|
2396
|
}
|
2397
|
function &addFancyRecord($record)
|
2398
|
{
|
2399
|
|
2400
|
|
2401
|
$record = new SOAP_Value('record', '{urn:AGProjects:NGNPro}DnsFancyRecord', $record);
|
2402
|
$result = $this->call('addFancyRecord',
|
2403
|
$v = array('record' => $record),
|
2404
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2405
|
'soapaction' => '',
|
2406
|
'style' => 'rpc',
|
2407
|
'use' => 'encoded'));
|
2408
|
return $result;
|
2409
|
}
|
2410
|
function &updateRecord($record)
|
2411
|
{
|
2412
|
|
2413
|
|
2414
|
$record = new SOAP_Value('record', '{urn:AGProjects:NGNPro}DnsRecord', $record);
|
2415
|
$result = $this->call('updateRecord',
|
2416
|
$v = array('record' => $record),
|
2417
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2418
|
'soapaction' => '',
|
2419
|
'style' => 'rpc',
|
2420
|
'use' => 'encoded'));
|
2421
|
return $result;
|
2422
|
}
|
2423
|
function &updateFancyRecord($record)
|
2424
|
{
|
2425
|
|
2426
|
|
2427
|
$record = new SOAP_Value('record', '{urn:AGProjects:NGNPro}DnsFancyRecord', $record);
|
2428
|
$result = $this->call('updateFancyRecord',
|
2429
|
$v = array('record' => $record),
|
2430
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2431
|
'soapaction' => '',
|
2432
|
'style' => 'rpc',
|
2433
|
'use' => 'encoded'));
|
2434
|
return $result;
|
2435
|
}
|
2436
|
function &deleteRecord($recordId)
|
2437
|
{
|
2438
|
$result = $this->call('deleteRecord',
|
2439
|
$v = array('recordId' => $recordId),
|
2440
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2441
|
'soapaction' => '',
|
2442
|
'style' => 'rpc',
|
2443
|
'use' => 'encoded'));
|
2444
|
return $result;
|
2445
|
}
|
2446
|
function &deleteFancyRecord($recordId)
|
2447
|
{
|
2448
|
$result = $this->call('deleteFancyRecord',
|
2449
|
$v = array('recordId' => $recordId),
|
2450
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2451
|
'soapaction' => '',
|
2452
|
'style' => 'rpc',
|
2453
|
'use' => 'encoded'));
|
2454
|
return $result;
|
2455
|
}
|
2456
|
function &getRecord($recordId)
|
2457
|
{
|
2458
|
$result = $this->call('getRecord',
|
2459
|
$v = array('recordId' => $recordId),
|
2460
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2461
|
'soapaction' => '',
|
2462
|
'style' => 'rpc',
|
2463
|
'use' => 'encoded'));
|
2464
|
return $result;
|
2465
|
}
|
2466
|
function &getFancyRecord($recordId)
|
2467
|
{
|
2468
|
$result = $this->call('getFancyRecord',
|
2469
|
$v = array('recordId' => $recordId),
|
2470
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2471
|
'soapaction' => '',
|
2472
|
'style' => 'rpc',
|
2473
|
'use' => 'encoded'));
|
2474
|
return $result;
|
2475
|
}
|
2476
|
function &getRecords($query)
|
2477
|
{
|
2478
|
|
2479
|
|
2480
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}DnsRecordQuery', $query);
|
2481
|
$result = $this->call('getRecords',
|
2482
|
$v = array('query' => $query),
|
2483
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2484
|
'soapaction' => '',
|
2485
|
'style' => 'rpc',
|
2486
|
'use' => 'encoded'));
|
2487
|
return $result;
|
2488
|
}
|
2489
|
function &getFancyRecords($query)
|
2490
|
{
|
2491
|
|
2492
|
|
2493
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}DnsFancyRecordQuery', $query);
|
2494
|
$result = $this->call('getFancyRecords',
|
2495
|
$v = array('query' => $query),
|
2496
|
array('namespace' => 'urn:AGProjects:NGNPro:Dns',
|
2497
|
'soapaction' => '',
|
2498
|
'style' => 'rpc',
|
2499
|
'use' => 'encoded'));
|
2500
|
return $result;
|
2501
|
}
|
2502
|
}
|
2503
|
class WebService_NGNPro_InternalRatingPort extends SOAP_Client
|
2504
|
{
|
2505
|
function WebService_NGNPro_InternalRatingPort($path = 'http://ngnpro.sipthor.net:9200/')
|
2506
|
{
|
2507
|
$this->SOAP_Client($path, 0);
|
2508
|
}
|
2509
|
function &setEntityProfiles($profiles)
|
2510
|
{
|
2511
|
|
2512
|
|
2513
|
$profiles = new SOAP_Value('profiles', '{urn:AGProjects:NGNPro}RatingEntityProfiles', $profiles);
|
2514
|
$result = $this->call('setEntityProfiles',
|
2515
|
$v = array('profiles' => $profiles),
|
2516
|
array('namespace' => 'urn:AGProjects:NGNPro:Rating',
|
2517
|
'soapaction' => '',
|
2518
|
'style' => 'rpc',
|
2519
|
'use' => 'encoded'));
|
2520
|
return $result;
|
2521
|
}
|
2522
|
function &deleteEntityProfiles($entity)
|
2523
|
{
|
2524
|
$result = $this->call('deleteEntityProfiles',
|
2525
|
$v = array('entity' => $entity),
|
2526
|
array('namespace' => 'urn:AGProjects:NGNPro:Rating',
|
2527
|
'soapaction' => '',
|
2528
|
'style' => 'rpc',
|
2529
|
'use' => 'encoded'));
|
2530
|
return $result;
|
2531
|
}
|
2532
|
function &getEntityProfiles($entity)
|
2533
|
{
|
2534
|
$result = $this->call('getEntityProfiles',
|
2535
|
$v = array('entity' => $entity),
|
2536
|
array('namespace' => 'urn:AGProjects:NGNPro:Rating',
|
2537
|
'soapaction' => '',
|
2538
|
'style' => 'rpc',
|
2539
|
'use' => 'encoded'));
|
2540
|
return $result;
|
2541
|
}
|
2542
|
}
|
2543
|
class WebService_NGNPro_InternalCustomerPort extends SOAP_Client
|
2544
|
{
|
2545
|
function WebService_NGNPro_InternalCustomerPort($path = 'http://ngnpro.sipthor.net:9200/')
|
2546
|
{
|
2547
|
$this->SOAP_Client($path, 0);
|
2548
|
}
|
2549
|
function &addAccount($account)
|
2550
|
{
|
2551
|
|
2552
|
|
2553
|
$account = new SOAP_Value('account', '{urn:AGProjects:NGNPro}CustomerAccount', $account);
|
2554
|
$result = $this->call('addAccount',
|
2555
|
$v = array('account' => $account),
|
2556
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
2557
|
'soapaction' => '',
|
2558
|
'style' => 'rpc',
|
2559
|
'use' => 'encoded'));
|
2560
|
return $result;
|
2561
|
}
|
2562
|
function &updateAccount($account)
|
2563
|
{
|
2564
|
|
2565
|
|
2566
|
$account = new SOAP_Value('account', '{urn:AGProjects:NGNPro}CustomerAccount', $account);
|
2567
|
$result = $this->call('updateAccount',
|
2568
|
$v = array('account' => $account),
|
2569
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
2570
|
'soapaction' => '',
|
2571
|
'style' => 'rpc',
|
2572
|
'use' => 'encoded'));
|
2573
|
return $result;
|
2574
|
}
|
2575
|
function &deleteAccount($id)
|
2576
|
{
|
2577
|
$result = $this->call('deleteAccount',
|
2578
|
$v = array('id' => $id),
|
2579
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
2580
|
'soapaction' => '',
|
2581
|
'style' => 'rpc',
|
2582
|
'use' => 'encoded'));
|
2583
|
return $result;
|
2584
|
}
|
2585
|
function &getAccount($id)
|
2586
|
{
|
2587
|
$result = $this->call('getAccount',
|
2588
|
$v = array('id' => $id),
|
2589
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
2590
|
'soapaction' => '',
|
2591
|
'style' => 'rpc',
|
2592
|
'use' => 'encoded'));
|
2593
|
return $result;
|
2594
|
}
|
2595
|
function &getCustomers($query)
|
2596
|
{
|
2597
|
|
2598
|
|
2599
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}CustomerQuery', $query);
|
2600
|
$result = $this->call('getCustomers',
|
2601
|
$v = array('query' => $query),
|
2602
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
2603
|
'soapaction' => '',
|
2604
|
'style' => 'rpc',
|
2605
|
'use' => 'encoded'));
|
2606
|
return $result;
|
2607
|
}
|
2608
|
function &getResellers($query)
|
2609
|
{
|
2610
|
|
2611
|
|
2612
|
$query = new SOAP_Value('query', '{urn:AGProjects:NGNPro}CustomerQuery', $query);
|
2613
|
$result = $this->call('getResellers',
|
2614
|
$v = array('query' => $query),
|
2615
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
2616
|
'soapaction' => '',
|
2617
|
'style' => 'rpc',
|
2618
|
'use' => 'encoded'));
|
2619
|
return $result;
|
2620
|
}
|
2621
|
function &setProperties($customer, $properties)
|
2622
|
{
|
2623
|
|
2624
|
|
2625
|
$properties = new SOAP_Value('properties', '{urn:AGProjects:NGNPro}CustomerPropertyArray', $properties);
|
2626
|
$result = $this->call('setProperties',
|
2627
|
$v = array('customer' => $customer, 'properties' => $properties),
|
2628
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
2629
|
'soapaction' => '',
|
2630
|
'style' => 'rpc',
|
2631
|
'use' => 'encoded'));
|
2632
|
return $result;
|
2633
|
}
|
2634
|
function &getProperties($customer)
|
2635
|
{
|
2636
|
$result = $this->call('getProperties',
|
2637
|
$v = array('customer' => $customer),
|
2638
|
array('namespace' => 'urn:AGProjects:NGNPro:Customer',
|
2639
|
'soapaction' => '',
|
2640
|
'style' => 'rpc',
|
2641
|
'use' => 'encoded'));
|
2642
|
return $result;
|
2643
|
}
|
2644
|
}
|
2645
|
class WebService_NGNPro_InternalNetworkPort extends SOAP_Client
|
2646
|
{
|
2647
|
function WebService_NGNPro_InternalNetworkPort($path = 'http://ngnpro.sipthor.net:9200/')
|
2648
|
{
|
2649
|
$this->SOAP_Client($path, 0);
|
2650
|
}
|
2651
|
function &getStatistics()
|
2652
|
{
|
2653
|
$result = $this->call('getStatistics',
|
2654
|
$v = null,
|
2655
|
array('namespace' => 'urn:AGProjects:NGNPro:Network',
|
2656
|
'soapaction' => '',
|
2657
|
'style' => 'rpc',
|
2658
|
'use' => 'encoded'));
|
2659
|
return $result;
|
2660
|
}
|
2661
|
function &getStatus()
|
2662
|
{
|
2663
|
$result = $this->call('getStatus',
|
2664
|
$v = null,
|
2665
|
array('namespace' => 'urn:AGProjects:NGNPro:Network',
|
2666
|
'soapaction' => '',
|
2667
|
'style' => 'rpc',
|
2668
|
'use' => 'encoded'));
|
2669
|
return $result;
|
2670
|
}
|
2671
|
}
|
2672
|
?>
|