We have 2 PBX systems running asterisk. PBX A is in our Head office PBX B is at our outsource contact center that we want to transfer calls to after 5.
The connection between the 2 will be over the internet so it will be IP to IP.
At 5PM everyday we want all calls that come to us just to get forwarded to their PBX. They will setup their own vicidial at their side and will answer the calls as they come in.
You could use the Transfer() application, with two choices whether you answer the call before transferring or not. But I think it makes more sense to let the other box register with your service provider at 5 pm. The only thing to look at are the calls that are active at that time.
Yes, as @voip.com.vn wrote, this can be done without worrying about the trunk…
Search for GotoIfTime over the net, or I can help you if you are more specific on your case…
Without knowing how your dialplan implements this menu, it’s hard to say with any specificity what to do, but adding a ‘gotoiftime()’ in the sections that handle ‘1’ and ‘2’ sounds like the right thing to do.