"; switch(@$_REQUEST['Digits']) { // Customer Service Department IVR case 1: echo "We are about to connect you with customer service department. Please wait for a moment."; echo "{$customer_service_number}"; break; // Technical support IVR case 2: echo "We are about to connect you with techical support. Please wait for a moment."; echo "{$techical_support_number}"; break; // Sales Department IVR case 3: echo "We are about to connect you with sales department. Please wait for a moment."; echo "{$sales_number}"; break; // Will trigger IVR for default (when none of the options are passed) // and any other case, including 4 default: echo "http://path-to-original-gather-inboundxml-document"; break; } echo "";