I've been racking my brains but cannot think of a solution based on my knowledge.
My goal is the following,
A call comes in
a) depending on if the business is open (time of day) the call is hunted first to a phone, if busy or no answer the call is answered by an IVR in the unity system.
b) if the business is closed, the closed greeting is played within unity.
The current setup is as follows
A call comes in to 6000 which is a DN that is call forward all to unity. A call handler with number 6000 is configured to accept the call. If inside business hours the call is then forwarded to a single DN (a phone). If outside business hours the caller is played a we are closed message.
A separate call handler is configured for IVR but on a different number / extension within unity.
The problem I have is the number presented to unity is the original called number and not the number I'm forwarding to.
Unity doesn't say that AFAIK. It's CUCM (specifically the Annunciator service) telling you that what you have dialled can't be reached for some reason.
Check that you can reach the forwarding number (i.e. it's partition is in your CSS) and that the forwarding DN has a CFA CSS that includes the number you are forwarding to etc etc.