public void Run(params string[] args) { PBXConnection pbx = Utilities.CreatePbxConn(); //in sample, we take first available connection of the specified extension. ActiveConnection ac = PhoneSystem.Root.GetDNByNumber(args[2]).GetActiveConnections()[0]; pbx.BargeinCall(args[1], ac, PBXConnection.BargeInMode.BargeIn); }
public void Run(params string[] args) { PBXConnection pbx = Utilities.CreatePbxConn(); pbx.BargeinCall(System.Convert.ToInt32(args[1]), args[2], false); }