Esempio n. 1
0
 /// <summary>
 /// Constructs a action that plays the sound file immediately to
 /// the specified legs of the given call.
 /// </summary>
 /// <param name="callID">The target call ID.</param>
 /// <param name="legs">Specifies the call legs to hear the sound.</param>
 /// <param name="filePath">Path to the sound file.</param>
 public BroadcastAction(Guid callID, CallLeg legs, string filePath)
     : this(legs, filePath)
 {
     this.CallID   = callID;
     this.legs     = legs;
     this.filePath = Switch.ExpandFilePath(filePath);
 }
Esempio n. 2
0
 /// <summary>
 /// Constructs an action that plays the sound file the specified call legs
 /// with the specified delay to a specific call.
 /// </summary>
 /// <param name="callID">The target call ID.</param>
 /// <param name="legs">Specifies the call legs to hear the sound.</param>
 /// <param name="filePath">Path to the sound file.</param>
 /// <param name="delay">The time to wait before playing the file.</param>
 public BroadcastAction(Guid callID, CallLeg legs, string filePath, TimeSpan delay)
 {
     this.CallID   = callID;
     this.legs     = legs;
     this.filePath = Switch.ExpandFilePath(filePath);
     this.delay    = delay;
 }
Esempio n. 3
0
 /// <summary>
 /// Constructs a dialplan action that plays the sound file immediately to
 /// the specified call legs.
 /// </summary>
 /// <param name="legs">Specifies the call legs to hear the sound.</param>
 /// <param name="filePath">Path to the sound file.</param>
 public BroadcastAction(CallLeg legs, string filePath)
     : base("sched_broadcast")
 {
     this.legs     = legs;
     this.filePath = Switch.ExpandFilePath(filePath);
 }