|
@@ -26,14 +26,14 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
private readonly INewRockClient _newRockClient;
|
|
|
private readonly ICallRepository _callRepository;
|
|
|
- private readonly IOptionsSnapshot<DeviceConfigs> _options;
|
|
|
+ private readonly IOptionsSnapshot<CallCenterConfiguration> _options;
|
|
|
private readonly IMapper _mapper;
|
|
|
private readonly ITelGroupRepository _telGroupRepository;
|
|
|
private readonly IUserCacheManager _userCacheManager;
|
|
|
private readonly ITelRestRepository _telRestRepository;
|
|
|
private readonly ITelCacheManager _telCacheManager;
|
|
|
|
|
|
- public DeviceManager(INewRockClient newRockClient, IOptionsSnapshot<DeviceConfigs> options, IMapper mapper, ICallRepository callRepository, ITelGroupRepository telGroupRepository,IUserCacheManager userCacheManager, ITelRestRepository telRestRepository, ITelCacheManager telCacheManager)
|
|
|
+ public DeviceManager(INewRockClient newRockClient, IOptionsSnapshot<CallCenterConfiguration> options, IMapper mapper, ICallRepository callRepository, ITelGroupRepository telGroupRepository,IUserCacheManager userCacheManager, ITelRestRepository telRestRepository, ITelCacheManager telCacheManager)
|
|
|
{
|
|
|
_newRockClient = newRockClient;
|
|
|
_options = options;
|
|
@@ -53,7 +53,7 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
var result = await _newRockClient.QueryExt(
|
|
|
new QueryExtRequest() { Attribute = "Query", Ext = new Ext { Id = TelNo } },
|
|
|
- _options.Value.ReceiveKey, _options.Value.Expired, cancellationToken);
|
|
|
+ _options.Value.DeviceConfigs.ReceiveKey, _options.Value.DeviceConfigs.Expired, cancellationToken);
|
|
|
|
|
|
if (result?.Ext.Outer != null)
|
|
|
{
|
|
@@ -127,7 +127,7 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
var result = await _newRockClient.QueryExt(
|
|
|
new QueryExtRequest() { Attribute = "Query", Ext = new Ext { Id = TelNo } },
|
|
|
- _options.Value.ReceiveKey, _options.Value.Expired, cancellationToken);
|
|
|
+ _options.Value.DeviceConfigs.ReceiveKey, _options.Value.DeviceConfigs.Expired, cancellationToken);
|
|
|
|
|
|
switch (result.Ext.State)
|
|
|
{
|
|
@@ -156,8 +156,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
var result = await _newRockClient.QueryDeviceInfo(
|
|
|
new QueryDeviceInfoRequest { Attribute = "Query", DeviceInfo = string.Empty },
|
|
|
- _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
var exts = result.Devices.Ext;
|
|
|
return _mapper.Map<List<Tel>>(exts);
|
|
@@ -172,8 +172,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
var result = await _newRockClient.QueryDeviceInfo(
|
|
|
new QueryDeviceInfoRequest { Attribute = "Query", DeviceInfo = string.Empty },
|
|
|
- _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
|
|
|
var groups = result.Devices.Group;
|
|
@@ -191,8 +191,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Query",
|
|
|
VoiceFile = "",
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
return result?.VoiceFile;
|
|
|
}
|
|
@@ -201,8 +201,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
await _newRockClient.QueryExtGroup(new QueryExtGroupRequest()
|
|
|
{ Attribute = "Query", Group = new QueryExtGroup() { Id = groupId } },
|
|
|
- _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken
|
|
|
);
|
|
|
}
|
|
@@ -223,8 +223,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Query",
|
|
|
Ext = new Ext() { Id = telNo }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
|
|
|
if (telModel == null)
|
|
@@ -232,8 +232,8 @@ namespace Hotline.NewRock
|
|
|
|
|
|
await _newRockClient.ConfigExt(
|
|
|
new AssginConfigExtRequest() { Attribute = "Assign", Ext = new ConfigExt() { Lineid = telModel.Ext.LineId, Groups=Enumerable.Select<QueryExtGroup, string>(telModel.Ext.Group, x=>x.Id).ToList(), No_Disturb = "On" } },
|
|
|
- _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -249,8 +249,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Query",
|
|
|
Ext = new Ext() { Id = telNo }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
|
|
|
if (telModel == null)
|
|
@@ -258,8 +258,8 @@ namespace Hotline.NewRock
|
|
|
|
|
|
await _newRockClient.ConfigExt(
|
|
|
new AssginConfigExtRequest() { Attribute = "Assign", Ext = new ConfigExt() { Lineid = telModel.Ext.LineId, Groups = Enumerable.Select<QueryExtGroup, string>(telModel.Ext.Group, x => x.Id).ToList(), No_Disturb = "Off" } },
|
|
|
- _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -275,8 +275,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Remove",
|
|
|
VoiceFile = voiceName
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -318,8 +318,8 @@ namespace Hotline.NewRock
|
|
|
Exit = exit,
|
|
|
Repeat = repeat,
|
|
|
}
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -367,8 +367,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Assign",
|
|
|
Group = groupModel
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -391,7 +391,7 @@ namespace Hotline.NewRock
|
|
|
|
|
|
#region 清除分机组设置
|
|
|
|
|
|
- await _newRockClient.ConfigExtGroup(new AssginConfigGroupRequest() { Attribute = "Assign", Group = new Group() { Id = groupId } }, _options.Value.ReceiveKey, _options.Value.Expired, cancellationToken);
|
|
|
+ await _newRockClient.ConfigExtGroup(new AssginConfigGroupRequest() { Attribute = "Assign", Group = new Group() { Id = groupId } }, _options.Value.DeviceConfigs.ReceiveKey, _options.Value.DeviceConfigs.Expired, cancellationToken);
|
|
|
|
|
|
#endregion
|
|
|
|
|
@@ -445,8 +445,8 @@ namespace Hotline.NewRock
|
|
|
groupModel.Ext = exts;
|
|
|
await _newRockClient.ConfigExtGroup(
|
|
|
new AssginConfigGroupRequest() { Attribute = "Assign", Group = groupModel, },
|
|
|
- _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken
|
|
|
);
|
|
|
}
|
|
@@ -464,8 +464,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Query",
|
|
|
Ext = new Ext() { Id = telNo }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
|
|
|
if (telModel == null)
|
|
@@ -473,8 +473,8 @@ namespace Hotline.NewRock
|
|
|
|
|
|
await _newRockClient.ConfigExt(
|
|
|
new AssginConfigExtRequest() { Attribute = "Assign", Ext = new ConfigExt() { Id = telNo,Lineid = lineId, Staffid = staffNo } },
|
|
|
- _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
#endregion
|
|
@@ -490,8 +490,8 @@ namespace Hotline.NewRock
|
|
|
public async Task HoldAsync(string telNo, CancellationToken cancellationToken)
|
|
|
{
|
|
|
await _newRockClient.HoldOrUnHold(
|
|
|
- new HoldSetRequest() { Attribute = "Hold", Ext = new Ext() { Id = telNo } }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ new HoldSetRequest() { Attribute = "Hold", Ext = new Ext() { Id = telNo } }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -504,8 +504,8 @@ namespace Hotline.NewRock
|
|
|
public async Task UnHoldAsync(string telNo, CancellationToken cancellationToken)
|
|
|
{
|
|
|
await _newRockClient.HoldOrUnHold(
|
|
|
- new HoldSetRequest() { Attribute = "Unhold", Ext = new Ext() { Id = telNo } }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ new HoldSetRequest() { Attribute = "Unhold", Ext = new Ext() { Id = telNo } }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -518,8 +518,8 @@ namespace Hotline.NewRock
|
|
|
public async Task MuteAsync(string telNo, CancellationToken cancellationToken)
|
|
|
{
|
|
|
await _newRockClient.MuteOrUnMute(
|
|
|
- new MuteSetRequest() { Attribute = "Mute", Ext = new Ext() { Id = telNo } }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ new MuteSetRequest() { Attribute = "Mute", Ext = new Ext() { Id = telNo } }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -533,8 +533,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
await _newRockClient.MuteOrUnMute(
|
|
|
new MuteSetRequest() { Attribute = "Unmute", Ext = new Ext() { Id = telNo } },
|
|
|
- _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -553,8 +553,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Id = extId
|
|
|
}
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -570,8 +570,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Clear",
|
|
|
Visitor = new ClearCallVisitor() { Id = visitorId }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -587,8 +587,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Clear",
|
|
|
Outer = new ClearCallOuter() { Id = outerId }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -604,8 +604,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Accept",
|
|
|
Visitor = new AcceptVisitorModel() { Id = visitorId }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
#endregion
|
|
@@ -626,8 +626,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Connect",
|
|
|
Exts = new List<ExtToExtExt>() { new ExtToExtExt() { Id = from }, new ExtToExtExt() { Id = to } }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -649,8 +649,8 @@ namespace Hotline.NewRock
|
|
|
Outer = new ExtToOuterOuterRequest() { To = to },
|
|
|
Trunk = new ExtToOuterTrunkRequest() { Id = trunkid }
|
|
|
},
|
|
|
- _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -669,8 +669,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Connect",
|
|
|
Visitor = new VisitorToExtVisitor() { Id = visitorId },
|
|
|
Ext = new VisitorToExtExt() { Id = telNo }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -691,8 +691,8 @@ namespace Hotline.NewRock
|
|
|
Visitor = new VisitorToOuterVisitor() { Id = visitorId },
|
|
|
Outer = new VisitorToOuterOuter() { To = outerPhoneNum, Display = display },
|
|
|
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -711,8 +711,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Connect",
|
|
|
Visitor = new VisitorToMenuVisitor() { Id = visitorId },
|
|
|
Menu = new VisitorToMenuMenu() { Id = menuId }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -730,8 +730,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Queue",
|
|
|
Visitor = new VisitorToGroupQueueVisitor() { Id = visitorId },
|
|
|
Group = new VisitorToGroupQueueGroup() { Id = groupId }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -750,8 +750,8 @@ namespace Hotline.NewRock
|
|
|
Outer = new OuterToExtOuter() { Id = outerId },
|
|
|
Ext = new OuterToExtExt() { Id = telNo }
|
|
|
},
|
|
|
- _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -772,8 +772,8 @@ namespace Hotline.NewRock
|
|
|
new OuterToOuterOuterModel() { Id = outerId },
|
|
|
new OuterToOuterOuterModel() { To = outerPhoneNum }
|
|
|
},
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -792,8 +792,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Connect",
|
|
|
Menu = new MenuToExtMenu() { Id = menuId },
|
|
|
Ext = new MenuToExtExt() { Id = telNo }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -812,8 +812,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Connect",
|
|
|
Menu = new MenuToOuterMenu() { Id = menuId },
|
|
|
Outer = new MenuToOuterOuter() { To = outerPhoneNum }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -834,8 +834,8 @@ namespace Hotline.NewRock
|
|
|
new TwoWayOuterOuter(){ To = outerOne},
|
|
|
new TwoWayOuterOuter(){ To = outerTwo}
|
|
|
}
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -853,8 +853,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Connect",
|
|
|
VoiceFile = voiceFileName,
|
|
|
Ext = new VoiceNewsFlashExt() { Id = telNo }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -874,8 +874,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Connect",
|
|
|
VoiceFile = voiceFileName,
|
|
|
Visitor = new VoiceNewsFlashVisitor() { Id = visitorId }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -894,8 +894,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Connect",
|
|
|
VoiceFile = voiceFileName,
|
|
|
Outer = new VoiceNewsFlashOuter() { Id = outerId }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -911,8 +911,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Conference",
|
|
|
Ext = new ConferenceMeetingExt() { Id = telNo }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -950,8 +950,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Monitor",
|
|
|
Exts = new List<Ext>() { new Ext() { Id=firstTelNo },new Ext() { Id=secondTelNo } }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken) ;
|
|
|
}
|
|
|
|
|
@@ -970,8 +970,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Talk",
|
|
|
Ext = new Ext() { Id = telNo }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken) ;
|
|
|
}
|
|
|
|
|
@@ -991,8 +991,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Listen",
|
|
|
Ext = new Ext() { Id = telNo }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -1017,8 +1017,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Bargein",
|
|
|
Exts = new List<Ext>() { new Ext() { Id = firstTelNo },new Ext() { Id=secondTelNo } }
|
|
|
- }, _options.Value.ReceiveKey,
|
|
|
- _options.Value.Expired,
|
|
|
+ }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
+ _options.Value.DeviceConfigs.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|