Want to learn more? Schedule a Demo!The Importance of SIP Trunking in Today's Business WorldThe world of communication has come a long way in recent years, and businesses of all sizes are constantly seeking new ways to improve their communication systems. SIP...
Time based Call Forwarding
Time based Call Forwarding
With our CPAAS, you can create dynamic time based call forwarding. Whenever a customer call your number, our system will call webhook url defined for that number and you can dynamically send the number you want to forward the call to. Below is a small sample php script, you can setup call forwarding in minutes without even having a phone system.
Benefits of Scheduled call forwarding:
Forward business calls to any number, any device and, at any location, anytime.
- Automatically forward phone calls to any phone number, such as your call center on east coast, call center in Asia or South America, based on the time of the day to ensure your calls always get answered.
- Forward calls to any extension, phone number, group, or department simultaneously or sequentially.
- You can specify the number of times each phone rings before calls forward to the next telephone number.
- It’s easy to forward calls based on caller ID information, the time of day, date range, and more; ensuring important callers are prioritized and quickly routed to the right person or department.
Here is a sample php script to transfer call to 3 different location based on time.
Save this in your website as say “http://www.businessphoneservice.us/phone/callforwarding.php”
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<?php header("content-type: text/xml"); //Assuming PST Time zone if (time() >= strtotime("00:00:00") and time() <= strtotime("08:00:00") ) { $PHONENUMBERTODIAL = "19499300360" ; // Send call to Asia Call Center } elseif (time() >= strtotime("08:00:00") and time() <= strtotime("16:00:00") ) { $PHONENUMBERTODIAL = "18005797676" ; //Send call to east coast call center } else { $PHONENUMBERTODIAL = "18008393817" ; //Send calls to West coast center } echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; ?> <Response> <dial> <Say> Please hold while we connect your call </Say> <number><?php echo $PHONENUMBERTODIAL ?></number> </dial> </Response> |
Now all you need to do is update the DID routing to this web hook URL,
How to configure the Phone to webhook URL?
- Login your DIDForSale customer portal.
- Click on Manage Products
- Select the DID number you want to forward to your web URL.
- Choose DID action to “Update SMS Forwarding”
- Click on Save. Next time when a customer call the number, phone system will call the best url get the dial plan in xml format and connect the caller to the number.

Dynamically Call forwarding to another number.
New Posts
The Importance of SIP Trunking in Today’s Business World
A Comprehensive Guide to SIP Trunk Pricing Models
Want to learn more? Schedule a Demo!A Comprehensive Guide to SIP Trunk Pricing Models Introduction: SIP Trunking is a cost-effective way of connecting your business telecommunication system to the public switched telephone network (PSTN). It eliminates the need for...
The Cost-Saving Benefits of Using SIP Trunking for Your Business
Want to learn more? Schedule a Demo!The Cost-Saving Benefits of Using SIP Trunking for Your BusinessIn today's fast-paced business environment, effective communication is critical for success. However, maintaining a robust and reliable telecommunication system can be...
How to become VoIP Reseller?
Want to learn more? Schedule a Demo!Your guide to becoming a VoIP Reseller.COVID-19 pandemic has had a huge impact on conventional work settings. Two years ago the world as we all know had come to a halt. As much of the world was being affected by the outbreak of...
Learn more about our Products
Visit SIP Trunking Pricing to see which plan suits your business!
With so many options to pick from it can often be hard to decide what’s best.
Our plans have been packaged together to give you optimum output.
Our SIP Trunks are Compatible with wide range of PBX & Platforms.