deerjackie, like bobcat mentioned, the 512 callers were manufactured with 2 different sized cases. The main difference being what size batteries would fit in them and the bigger batteries are about double the amp hr. rating.
If the ub645 batteries are the same deminsions as the batteries that are in the caller now they will work and you have what I always called the *big case 512*.
I looked up the ub645 battery specs and according to my old notes they are the correct physical size to fit. The ub645 batts are very reasonably priced. Good find there.
Were the old original batteries in the caller Panasonic LCR-6V5P by some chance?
Some other notes I kept if you're interested.... The big case batteries (per 2) weigh 3 lbs, 13 oz
The small case batteries (per 2) weigh 1 lb 4 oz
Big case caller without speaker weighs 6 lbs 2 oz
Small case without speaker weighs 4 lbs 3 oz
Hope that helped.