# Transfer calls after office hours to another PABX

**URL:** <https://community.asterisk.org/t/transfer-calls-after-office-hours-to-another-pabx/89744>\
**Category:** Asterisk Support\
**Created:** [August 27, 2021, 4:25am UTC](https://community.asterisk.org/t/transfer-calls-after-office-hours-to-another-pabx/89744 "2021-08-27T04:25:29Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ftan](https://avatars.discourse-cdn.com/v4/letter/f/bc79bd/32.png) [@ftan](https://community.asterisk.org/u/ftan)\
**Post date:** [August 27, 2021, 4:25am UTC](https://community.asterisk.org/t/transfer-calls-after-office-hours-to-another-pabx/89744/1 "2021-08-27T04:25:29Z")

</div>

Hello,

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.

Any idea how to go about this?

---

<div class="post-metadata">

**Author:** ![EkFudrek](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@EkFudrek](https://community.asterisk.org/u/EkFudrek)\
**Post date:** [August 27, 2021, 4:38am UTC](https://community.asterisk.org/t/transfer-calls-after-office-hours-to-another-pabx/89744/2 "2021-08-27T04:38:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ftan](https://avatars.discourse-cdn.com/v4/letter/f/bc79bd/32.png) [@ftan](https://community.asterisk.org/u/ftan)\
**Post date:** [August 27, 2021, 4:43am UTC](https://community.asterisk.org/t/transfer-calls-after-office-hours-to-another-pabx/89744/3 "2021-08-27T04:43:20Z")

</div>

This will not be possible the other side is outsource and we transfer after 5 only if they press 2 or 3 at the prompt.

Our head office has no one in it after 5 so i just want all calls transferred to them after 5.

---

<div class="post-metadata">

**Author:** ![pethkaqeni](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/pethkaqeni/32/1722_2.png) [@pethkaqeni](https://community.asterisk.org/u/pethkaqeni)\
**Post date:** [August 27, 2021, 7:05am UTC](https://community.asterisk.org/t/transfer-calls-after-office-hours-to-another-pabx/89744/4 "2021-08-27T07:05:17Z")

</div>

You can use GotoIfTime…

---

<div class="post-metadata">

**Author:** ![ftan](https://avatars.discourse-cdn.com/v4/letter/f/bc79bd/32.png) [@ftan](https://community.asterisk.org/u/ftan)\
**Post date:** [August 27, 2021, 8:26am UTC](https://community.asterisk.org/t/transfer-calls-after-office-hours-to-another-pabx/89744/5 "2021-08-27T08:26:30Z")

</div>

can we do this using iax trunk?

---

<div class="post-metadata">

**Author:** ![voip.com.vn](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@voip.com.vn](https://community.asterisk.org/u/voip.com.vn)\
**Post date:** [August 27, 2021, 9:06am UTC](https://community.asterisk.org/t/transfer-calls-after-office-hours-to-another-pabx/89744/6 "2021-08-27T09:06:49Z")

</div>

Yes, dialplan not depend on what type of trunk you using.

You need check document for writing dialplan .

---

<div class="post-metadata">

**Author:** ![pethkaqeni](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/pethkaqeni/32/1722_2.png) [@pethkaqeni](https://community.asterisk.org/u/pethkaqeni)\
**Post date:** [August 27, 2021, 9:25am UTC](https://community.asterisk.org/t/transfer-calls-after-office-hours-to-another-pabx/89744/7 "2021-08-27T09:25:01Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![ftan](https://avatars.discourse-cdn.com/v4/letter/f/bc79bd/32.png) [@ftan](https://community.asterisk.org/u/ftan)\
**Post date:** [August 27, 2021, 5:07pm UTC](https://community.asterisk.org/t/transfer-calls-after-office-hours-to-another-pabx/89744/8 "2021-08-27T17:07:53Z")

</div>

They still need to go through the IVR and dial the prompts

---

<div class="post-metadata">

**Author:** ![sedwards](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@sedwards](https://community.asterisk.org/u/sedwards)\
**Post date:** [August 27, 2021, 6:35pm UTC](https://community.asterisk.org/t/transfer-calls-after-office-hours-to-another-pabx/89744/9 "2021-08-27T18:35:01Z")

</div>

> [@ftan](#):
>
> …we transfer after 5 only if they press 2 or 3 at the prompt.
> 
> Our head office has no one in it after 5 so i just want all calls transferred to them after 5.

This sounds inconsistent.

Are you saying you want all calls answered by A, run A’s dialplan, and if the caller selects 2 or 3 and it is after 5 pm, transfer the call to B?

---

<div class="post-metadata">

**Author:** ![ftan](https://avatars.discourse-cdn.com/v4/letter/f/bc79bd/32.png) [@ftan](https://community.asterisk.org/u/ftan)\
**Post date:** [August 28, 2021, 2:47am UTC](https://community.asterisk.org/t/transfer-calls-after-office-hours-to-another-pabx/89744/10 "2021-08-28T02:47:56Z")

</div>

yes the clients call the main line and they still get the prompts for dial 1 for sales and dial 2 for marketing.

if they dial 1 or 2 it gets routed to our PBX if after 5PM.

---

<div class="post-metadata">

**Author:** ![sedwards](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@sedwards](https://community.asterisk.org/u/sedwards)\
**Post date:** [August 31, 2021, 5:45pm UTC](https://community.asterisk.org/t/transfer-calls-after-office-hours-to-another-pabx/89744/11 "2021-08-31T17:45:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 30, 2021, 5:45pm UTC](https://community.asterisk.org/t/transfer-calls-after-office-hours-to-another-pabx/89744/12 "2021-09-30T17:45:48Z")

</div>

Closed on September 30, 2021, 5:45pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
