|
@@ -19,6 +19,7 @@ using Group = NewRock.Sdk.Control.Request.Group;
|
|
|
using Hotline.Share.Dtos.CallCenter;
|
|
|
using Hotline.Share.Enums.CallCenter;
|
|
|
using Hotline.Caching.Interfaces;
|
|
|
+using Hotline.CallCenter.Configs;
|
|
|
|
|
|
namespace Hotline.NewRock
|
|
|
{
|
|
@@ -33,7 +34,15 @@ namespace Hotline.NewRock
|
|
|
private readonly ITelRestRepository _telRestRepository;
|
|
|
private readonly ITelCacheManager _telCacheManager;
|
|
|
|
|
|
- public DeviceManager(INewRockClient newRockClient, IOptionsSnapshot<CallCenterConfiguration> 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 +62,7 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
var result = await _newRockClient.QueryExt(
|
|
|
new QueryExtRequest() { Attribute = "Query", Ext = new Ext { Id = TelNo } },
|
|
|
- _options.Value.DeviceConfigs.ReceiveKey, _options.Value.DeviceConfigs.Expired, cancellationToken);
|
|
|
+ _options.Value.NewRock.ReceiveKey, _options.Value.NewRock.Expired, cancellationToken);
|
|
|
|
|
|
if (result?.Ext.Outer != null)
|
|
|
{
|
|
@@ -127,7 +136,7 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
var result = await _newRockClient.QueryExt(
|
|
|
new QueryExtRequest() { Attribute = "Query", Ext = new Ext { Id = TelNo } },
|
|
|
- _options.Value.DeviceConfigs.ReceiveKey, _options.Value.DeviceConfigs.Expired, cancellationToken);
|
|
|
+ _options.Value.NewRock.ReceiveKey, _options.Value.NewRock.Expired, cancellationToken);
|
|
|
|
|
|
switch (result.Ext.State)
|
|
|
{
|
|
@@ -156,8 +165,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
var result = await _newRockClient.QueryDeviceInfo(
|
|
|
new QueryDeviceInfoRequest { Attribute = "Query", DeviceInfo = string.Empty },
|
|
|
- _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
var exts = result.Devices.Ext;
|
|
|
return _mapper.Map<List<Tel>>(exts);
|
|
@@ -172,8 +181,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
var result = await _newRockClient.QueryDeviceInfo(
|
|
|
new QueryDeviceInfoRequest { Attribute = "Query", DeviceInfo = string.Empty },
|
|
|
- _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
|
|
|
var groups = result.Devices.Group;
|
|
@@ -191,8 +200,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Query",
|
|
|
VoiceFile = "",
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
return result?.VoiceFile;
|
|
|
}
|
|
@@ -201,8 +210,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
await _newRockClient.QueryExtGroup(new QueryExtGroupRequest()
|
|
|
{ Attribute = "Query", Group = new QueryExtGroup() { Id = groupId } },
|
|
|
- _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken
|
|
|
);
|
|
|
}
|
|
@@ -223,8 +232,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Query",
|
|
|
Ext = new Ext() { Id = telNo }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
|
|
|
if (telModel == null)
|
|
@@ -232,8 +241,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.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -249,8 +258,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Query",
|
|
|
Ext = new Ext() { Id = telNo }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
|
|
|
if (telModel == null)
|
|
@@ -258,8 +267,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.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -275,8 +284,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Remove",
|
|
|
VoiceFile = voiceName
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -318,8 +327,8 @@ namespace Hotline.NewRock
|
|
|
Exit = exit,
|
|
|
Repeat = repeat,
|
|
|
}
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -367,8 +376,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Assign",
|
|
|
Group = groupModel
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -391,7 +400,7 @@ namespace Hotline.NewRock
|
|
|
|
|
|
#region 清除分机组设置
|
|
|
|
|
|
- await _newRockClient.ConfigExtGroup(new AssginConfigGroupRequest() { Attribute = "Assign", Group = new Group() { Id = groupId } }, _options.Value.DeviceConfigs.ReceiveKey, _options.Value.DeviceConfigs.Expired, cancellationToken);
|
|
|
+ await _newRockClient.ConfigExtGroup(new AssginConfigGroupRequest() { Attribute = "Assign", Group = new Group() { Id = groupId } }, _options.Value.NewRock.ReceiveKey, _options.Value.NewRock.Expired, cancellationToken);
|
|
|
|
|
|
#endregion
|
|
|
|
|
@@ -445,8 +454,8 @@ namespace Hotline.NewRock
|
|
|
groupModel.Ext = exts;
|
|
|
await _newRockClient.ConfigExtGroup(
|
|
|
new AssginConfigGroupRequest() { Attribute = "Assign", Group = groupModel, },
|
|
|
- _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken
|
|
|
);
|
|
|
}
|
|
@@ -464,8 +473,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Query",
|
|
|
Ext = new Ext() { Id = telNo }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
|
|
|
if (telModel == null)
|
|
@@ -473,8 +482,8 @@ namespace Hotline.NewRock
|
|
|
|
|
|
await _newRockClient.ConfigExt(
|
|
|
new AssginConfigExtRequest() { Attribute = "Assign", Ext = new ConfigExt() { Id = telNo,Lineid = lineId, Staffid = staffNo } },
|
|
|
- _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
#endregion
|
|
@@ -490,8 +499,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.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ new HoldSetRequest() { Attribute = "Hold", Ext = new Ext() { Id = telNo } }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -504,8 +513,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.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ new HoldSetRequest() { Attribute = "Unhold", Ext = new Ext() { Id = telNo } }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -518,8 +527,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.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ new MuteSetRequest() { Attribute = "Mute", Ext = new Ext() { Id = telNo } }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -533,8 +542,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
await _newRockClient.MuteOrUnMute(
|
|
|
new MuteSetRequest() { Attribute = "Unmute", Ext = new Ext() { Id = telNo } },
|
|
|
- _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -553,8 +562,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Id = extId
|
|
|
}
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -570,8 +579,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Clear",
|
|
|
Visitor = new ClearCallVisitor() { Id = visitorId }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -587,8 +596,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Clear",
|
|
|
Outer = new ClearCallOuter() { Id = outerId }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -604,8 +613,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Accept",
|
|
|
Visitor = new AcceptVisitorModel() { Id = visitorId }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
#endregion
|
|
@@ -626,8 +635,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Connect",
|
|
|
Exts = new List<ExtToExtExt>() { new ExtToExtExt() { Id = from }, new ExtToExtExt() { Id = to } }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -649,8 +658,8 @@ namespace Hotline.NewRock
|
|
|
Outer = new ExtToOuterOuterRequest() { To = to },
|
|
|
Trunk = new ExtToOuterTrunkRequest() { Id = trunkid }
|
|
|
},
|
|
|
- _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -669,8 +678,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Connect",
|
|
|
Visitor = new VisitorToExtVisitor() { Id = visitorId },
|
|
|
Ext = new VisitorToExtExt() { Id = telNo }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -691,8 +700,8 @@ namespace Hotline.NewRock
|
|
|
Visitor = new VisitorToOuterVisitor() { Id = visitorId },
|
|
|
Outer = new VisitorToOuterOuter() { To = outerPhoneNum, Display = display },
|
|
|
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -711,8 +720,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Connect",
|
|
|
Visitor = new VisitorToMenuVisitor() { Id = visitorId },
|
|
|
Menu = new VisitorToMenuMenu() { Id = menuId }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -730,8 +739,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Queue",
|
|
|
Visitor = new VisitorToGroupQueueVisitor() { Id = visitorId },
|
|
|
Group = new VisitorToGroupQueueGroup() { Id = groupId }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -750,8 +759,8 @@ namespace Hotline.NewRock
|
|
|
Outer = new OuterToExtOuter() { Id = outerId },
|
|
|
Ext = new OuterToExtExt() { Id = telNo }
|
|
|
},
|
|
|
- _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -772,8 +781,8 @@ namespace Hotline.NewRock
|
|
|
new OuterToOuterOuterModel() { Id = outerId },
|
|
|
new OuterToOuterOuterModel() { To = outerPhoneNum }
|
|
|
},
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -792,8 +801,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Connect",
|
|
|
Menu = new MenuToExtMenu() { Id = menuId },
|
|
|
Ext = new MenuToExtExt() { Id = telNo }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -812,8 +821,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Connect",
|
|
|
Menu = new MenuToOuterMenu() { Id = menuId },
|
|
|
Outer = new MenuToOuterOuter() { To = outerPhoneNum }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -834,8 +843,8 @@ namespace Hotline.NewRock
|
|
|
new TwoWayOuterOuter(){ To = outerOne},
|
|
|
new TwoWayOuterOuter(){ To = outerTwo}
|
|
|
}
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -853,8 +862,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Connect",
|
|
|
VoiceFile = voiceFileName,
|
|
|
Ext = new VoiceNewsFlashExt() { Id = telNo }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -874,8 +883,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Connect",
|
|
|
VoiceFile = voiceFileName,
|
|
|
Visitor = new VoiceNewsFlashVisitor() { Id = visitorId }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -894,8 +903,8 @@ namespace Hotline.NewRock
|
|
|
Attribute = "Connect",
|
|
|
VoiceFile = voiceFileName,
|
|
|
Outer = new VoiceNewsFlashOuter() { Id = outerId }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -911,8 +920,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Conference",
|
|
|
Ext = new ConferenceMeetingExt() { Id = telNo }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -950,8 +959,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Monitor",
|
|
|
Exts = new List<Ext>() { new Ext() { Id=firstTelNo },new Ext() { Id=secondTelNo } }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken) ;
|
|
|
}
|
|
|
|
|
@@ -970,8 +979,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Talk",
|
|
|
Ext = new Ext() { Id = telNo }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken) ;
|
|
|
}
|
|
|
|
|
@@ -991,8 +1000,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Listen",
|
|
|
Ext = new Ext() { Id = telNo }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|
|
@@ -1017,8 +1026,8 @@ namespace Hotline.NewRock
|
|
|
{
|
|
|
Attribute = "Bargein",
|
|
|
Exts = new List<Ext>() { new Ext() { Id = firstTelNo },new Ext() { Id=secondTelNo } }
|
|
|
- }, _options.Value.DeviceConfigs.ReceiveKey,
|
|
|
- _options.Value.DeviceConfigs.Expired,
|
|
|
+ }, _options.Value.NewRock.ReceiveKey,
|
|
|
+ _options.Value.NewRock.Expired,
|
|
|
cancellationToken);
|
|
|
}
|
|
|
|