refactor voip rate api