ngnpro_soap_lib.php

Tijmen de Mes, 10/11/2012 07:47 pm

Download (119.5 kB)

 
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
        // gateway is a ComplexType Gateway,
11
        // refer to wsdl for more info
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
        // gateway is a ComplexType Gateway,
24
        // refer to wsdl for more info
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
        // query is a ComplexType GatewayQuery,
47
        // refer to wsdl for more info
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
        // rule is a ComplexType GatewayRule,
60
        // refer to wsdl for more info
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
        // rule is a ComplexType GatewayRule,
73
        // refer to wsdl for more info
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
        // query is a ComplexType GatewayRuleQuery,
96
        // refer to wsdl for more info
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
        // carrier is a ComplexType Carrier,
109
        // refer to wsdl for more info
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
        // carrier is a ComplexType Carrier,
122
        // refer to wsdl for more info
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
        // query is a ComplexType CarrierQuery,
145
        // refer to wsdl for more info
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
        // routes is a ComplexType RouteArray,
158
        // refer to wsdl for more info
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
        // routes is a ComplexType RouteArray,
171
        // refer to wsdl for more info
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
        // routes is a ComplexType RouteArray,
184
        // refer to wsdl for more info
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
        // query is a ComplexType RouteQuery,
197
        // refer to wsdl for more info
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
        // domain is a ComplexType SipDomain,
210
        // refer to wsdl for more info
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
        // domain is a ComplexType SipDomain,
223
        // refer to wsdl for more info
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
        // query is a ComplexType SipDomainQuery,
246
        // refer to wsdl for more info
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
        // peer is a ComplexType TrustedPeer,
259
        // refer to wsdl for more info
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
        // query is a ComplexType TrustedPeerQuery,
282
        // refer to wsdl for more info
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
        // account is a ComplexType SipAccount,
295
        // refer to wsdl for more info
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
        // account is a ComplexType SipAccount,
308
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
321
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
334
        // refer to wsdl for more info
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
        // query is a ComplexType SipQuery,
347
        // refer to wsdl for more info
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
        // alias is a ComplexType SipAlias,
360
        // refer to wsdl for more info
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
        // alias is a ComplexType SipAlias,
373
        // refer to wsdl for more info
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
        // id is a ComplexType SipId,
386
        // refer to wsdl for more info
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
        // id is a ComplexType SipId,
399
        // refer to wsdl for more info
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
        // query is a ComplexType AliasQuery,
412
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
425
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
438
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
451
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
464
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
477
        // refer to wsdl for more info
478
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
479
        // card is a ComplexType PrepaidCard,
480
        // refer to wsdl for more info
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
        // sipIds is a ComplexType SipIdArray,
493
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
506
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
519
        // refer to wsdl for more info
520
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
521
        // entry is a ComplexType PhonebookEntry,
522
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
535
        // refer to wsdl for more info
536
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
537
        // entry is a ComplexType PhonebookEntry,
538
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
551
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
564
        // refer to wsdl for more info
565
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
566
        // match is a ComplexType PhonebookEntry,
567
        // refer to wsdl for more info
568
        $match = new SOAP_Value('match', '{urn:AGProjects:NGNPro}PhonebookEntry', $match);
569
        // range is a ComplexType Range,
570
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
583
        // refer to wsdl for more info
584
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
585
        // members is a ComplexType StringArray,
586
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
599
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
612
        // refer to wsdl for more info
613
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
614
        // rules is a ComplexType AcceptRules,
615
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
628
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
641
        // refer to wsdl for more info
642
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
643
        // prefixes is a ComplexType StringArray,
644
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
657
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
670
        // refer to wsdl for more info
671
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
672
        // diversions is a ComplexType CallDiversions,
673
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
686
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
699
        // refer to wsdl for more info
700
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
701
        // query is a ComplexType CallsQuery,
702
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
715
        // refer to wsdl for more info
716
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
717
        // query is a ComplexType CallsQuery,
718
        // refer to wsdl for more info
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
        // sipIds is a ComplexType SipIdArray,
731
        // refer to wsdl for more info
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
        // filter is a ComplexType SipTraceFilter,
744
        // refer to wsdl for more info
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
        // filter is a ComplexType MediaTraceFilter,
757
        // refer to wsdl for more info
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
        // account is a ComplexType VoicemailAccount,
797
        // refer to wsdl for more info
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
        // account is a ComplexType VoicemailAccount,
810
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
823
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
836
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
849
        // refer to wsdl for more info
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
        // range is a ComplexType EnumRange,
869
        // refer to wsdl for more info
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
        // range is a ComplexType EnumRange,
882
        // refer to wsdl for more info
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
        // range is a ComplexType EnumRangeId,
895
        // refer to wsdl for more info
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
        // query is a ComplexType EnumRangeQuery,
908
        // refer to wsdl for more info
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
        // number is a ComplexType EnumNumber,
921
        // refer to wsdl for more info
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
        // number is a ComplexType EnumNumber,
934
        // refer to wsdl for more info
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
        // enumId is a ComplexType EnumId,
947
        // refer to wsdl for more info
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
        // enumId is a ComplexType EnumId,
960
        // refer to wsdl for more info
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
        // query is a ComplexType EnumNumberQuery,
973
        // refer to wsdl for more info
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
        // zone is a ComplexType DnsZone,
993
        // refer to wsdl for more info
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
        // zone is a ComplexType DnsZone,
1006
        // refer to wsdl for more info
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
        // query is a ComplexType DnsZoneQuery,
1039
        // refer to wsdl for more info
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
        // record is a ComplexType DnsRecord,
1052
        // refer to wsdl for more info
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
        // record is a ComplexType DnsFancyRecord,
1065
        // refer to wsdl for more info
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
        // record is a ComplexType DnsRecord,
1078
        // refer to wsdl for more info
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
        // record is a ComplexType DnsFancyRecord,
1091
        // refer to wsdl for more info
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
        // query is a ComplexType DnsRecordQuery,
1144
        // refer to wsdl for more info
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
        // query is a ComplexType DnsFancyRecordQuery,
1157
        // refer to wsdl for more info
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
        // profiles is a ComplexType RatingEntityProfiles,
1177
        // refer to wsdl for more info
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
        // account is a ComplexType CustomerAccount,
1217
        // refer to wsdl for more info
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
        // account is a ComplexType CustomerAccount,
1230
        // refer to wsdl for more info
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
        // query is a ComplexType CustomerQuery,
1263
        // refer to wsdl for more info
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
        // query is a ComplexType CustomerQuery,
1276
        // refer to wsdl for more info
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
        // properties is a ComplexType CustomerPropertyArray,
1289
        // refer to wsdl for more info
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
        // gateway is a ComplexType Gateway,
1346
        // refer to wsdl for more info
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
        // gateway is a ComplexType Gateway,
1359
        // refer to wsdl for more info
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
        // query is a ComplexType GatewayQuery,
1382
        // refer to wsdl for more info
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
        // rule is a ComplexType GatewayRule,
1395
        // refer to wsdl for more info
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
        // rule is a ComplexType GatewayRule,
1408
        // refer to wsdl for more info
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
        // query is a ComplexType GatewayRuleQuery,
1431
        // refer to wsdl for more info
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
        // carrier is a ComplexType Carrier,
1444
        // refer to wsdl for more info
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
        // carrier is a ComplexType Carrier,
1457
        // refer to wsdl for more info
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
        // query is a ComplexType CarrierQuery,
1480
        // refer to wsdl for more info
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
        // routes is a ComplexType RouteArray,
1493
        // refer to wsdl for more info
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
        // routes is a ComplexType RouteArray,
1506
        // refer to wsdl for more info
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
        // routes is a ComplexType RouteArray,
1519
        // refer to wsdl for more info
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
        // query is a ComplexType RouteQuery,
1532
        // refer to wsdl for more info
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
        // domain is a ComplexType SipDomain,
1545
        // refer to wsdl for more info
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
        // domain is a ComplexType SipDomain,
1558
        // refer to wsdl for more info
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
        // query is a ComplexType SipDomainQuery,
1581
        // refer to wsdl for more info
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
        // peer is a ComplexType TrustedPeer,
1594
        // refer to wsdl for more info
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
        // query is a ComplexType TrustedPeerQuery,
1617
        // refer to wsdl for more info
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
        // account is a ComplexType SipAccount,
1630
        // refer to wsdl for more info
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
        // account is a ComplexType SipAccount,
1643
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1656
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1669
        // refer to wsdl for more info
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
        // query is a ComplexType SipQuery,
1682
        // refer to wsdl for more info
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
        // alias is a ComplexType SipAlias,
1695
        // refer to wsdl for more info
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
        // alias is a ComplexType SipAlias,
1708
        // refer to wsdl for more info
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
        // id is a ComplexType SipId,
1721
        // refer to wsdl for more info
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
        // id is a ComplexType SipId,
1734
        // refer to wsdl for more info
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
        // query is a ComplexType AliasQuery,
1747
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1760
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1773
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1786
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1799
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1812
        // refer to wsdl for more info
1813
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
1814
        // card is a ComplexType PrepaidCard,
1815
        // refer to wsdl for more info
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
        // sipIds is a ComplexType SipIdArray,
1828
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1841
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1854
        // refer to wsdl for more info
1855
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
1856
        // entry is a ComplexType PhonebookEntry,
1857
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1870
        // refer to wsdl for more info
1871
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
1872
        // entry is a ComplexType PhonebookEntry,
1873
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1886
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1899
        // refer to wsdl for more info
1900
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
1901
        // match is a ComplexType PhonebookEntry,
1902
        // refer to wsdl for more info
1903
        $match = new SOAP_Value('match', '{urn:AGProjects:NGNPro}PhonebookEntry', $match);
1904
        // range is a ComplexType Range,
1905
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1918
        // refer to wsdl for more info
1919
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
1920
        // members is a ComplexType StringArray,
1921
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1934
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1947
        // refer to wsdl for more info
1948
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
1949
        // rules is a ComplexType AcceptRules,
1950
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1963
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1976
        // refer to wsdl for more info
1977
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
1978
        // prefixes is a ComplexType StringArray,
1979
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
1992
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
2005
        // refer to wsdl for more info
2006
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
2007
        // diversions is a ComplexType CallDiversions,
2008
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
2021
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
2034
        // refer to wsdl for more info
2035
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
2036
        // query is a ComplexType CallsQuery,
2037
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
2050
        // refer to wsdl for more info
2051
        $sipId = new SOAP_Value('sipId', '{urn:AGProjects:NGNPro}SipId', $sipId);
2052
        // query is a ComplexType CallsQuery,
2053
        // refer to wsdl for more info
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
        // sipIds is a ComplexType SipIdArray,
2066
        // refer to wsdl for more info
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
        // filter is a ComplexType SipTraceFilter,
2079
        // refer to wsdl for more info
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
        // filter is a ComplexType MediaTraceFilter,
2092
        // refer to wsdl for more info
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
        // account is a ComplexType VoicemailAccount,
2132
        // refer to wsdl for more info
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
        // account is a ComplexType VoicemailAccount,
2145
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
2158
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
2171
        // refer to wsdl for more info
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
        // sipId is a ComplexType SipId,
2184
        // refer to wsdl for more info
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
        // range is a ComplexType EnumRange,
2204
        // refer to wsdl for more info
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
        // range is a ComplexType EnumRange,
2217
        // refer to wsdl for more info
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
        // range is a ComplexType EnumRangeId,
2230
        // refer to wsdl for more info
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
        // query is a ComplexType EnumRangeQuery,
2243
        // refer to wsdl for more info
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
        // number is a ComplexType EnumNumber,
2256
        // refer to wsdl for more info
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
        // number is a ComplexType EnumNumber,
2269
        // refer to wsdl for more info
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
        // enumId is a ComplexType EnumId,
2282
        // refer to wsdl for more info
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
        // enumId is a ComplexType EnumId,
2295
        // refer to wsdl for more info
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
        // query is a ComplexType EnumNumberQuery,
2308
        // refer to wsdl for more info
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
        // zone is a ComplexType DnsZone,
2328
        // refer to wsdl for more info
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
        // zone is a ComplexType DnsZone,
2341
        // refer to wsdl for more info
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
        // query is a ComplexType DnsZoneQuery,
2374
        // refer to wsdl for more info
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
        // record is a ComplexType DnsRecord,
2387
        // refer to wsdl for more info
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
        // record is a ComplexType DnsFancyRecord,
2400
        // refer to wsdl for more info
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
        // record is a ComplexType DnsRecord,
2413
        // refer to wsdl for more info
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
        // record is a ComplexType DnsFancyRecord,
2426
        // refer to wsdl for more info
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
        // query is a ComplexType DnsRecordQuery,
2479
        // refer to wsdl for more info
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
        // query is a ComplexType DnsFancyRecordQuery,
2492
        // refer to wsdl for more info
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
        // profiles is a ComplexType RatingEntityProfiles,
2512
        // refer to wsdl for more info
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
        // account is a ComplexType CustomerAccount,
2552
        // refer to wsdl for more info
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
        // account is a ComplexType CustomerAccount,
2565
        // refer to wsdl for more info
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
        // query is a ComplexType CustomerQuery,
2598
        // refer to wsdl for more info
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
        // query is a ComplexType CustomerQuery,
2611
        // refer to wsdl for more info
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
        // properties is a ComplexType CustomerPropertyArray,
2624
        // refer to wsdl for more info
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
?>