forked from Montesuma80/3cx-web-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdnregs.cs
More file actions
30 lines (28 loc) · 747 Bytes
/
dnregs.cs
File metadata and controls
30 lines (28 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Text;
using TCX.Configuration;
using TCX.PBXAPI;
using System.Threading;
using System.IO;
using System.Reflection;
using System.Linq;
using System.Net;
namespace WebAPI
{
public class getdnregs
{
public static string status(string args1)
{
var dn = PhoneSystem.Root.GetDNByNumber(args1);
RegistrarRecord[] rr = dn.GetRegistrarContactsEx();
foreach (var r in rr)
{
string result = $"{r.ID}-{r.Contact}-{r.UserAgent}";
Logger.WriteLine(result);
return result;
}
return "error";
}
}
}