Mr. McMaster , South Carolina 's attorney general , said that his office was investigating whether some of the phone calls violated a state law that prohibits making automated calls directly to people and not to just their answering machines .