It is not illegal and you can not get paid when on stand by. However if your organization has asked you to leave any other job and work for them when they want you to, then it's a legal requirement for the employer to pay you. Otherwise it is not illegal.