The Future of VoIP - Virtual Call Center - Cloud API for Voice - Skype~Google Voice~SMS - Easy Come Easy Go
本帖最後由 TsinTsin 於 2011-12-5 01:03 編輯
Tropo Application - IVR- <!--?php
- wait(1000);
- $result = ask("Welcome to the VPN Best! Press 1 for Administrator, Press 2 for hold music, Press 3 to hangup the call", array(
- "choices" =--> "1, 2, 3",
- "attempts" => 3,
- "mode" => "dtmf"
- )
- );
-
- if ($result->value == "1")
- {
- say("Connecting you to Administrator");
- transfer("sip:vpnbest@getonsip.com", array(
- "playvalue" => "http://www.phono.com/audio/holdmusic.mp3 http://www.phono.com/audio/holdmusic.mp3",
- "timeout" => 30,
- "onTimeout" => "timeoutFCN"
- )
- );
- }
- elseif ($result->value == "2")
- {
- say("http://www.phono.com/audio/troporocks.mp3 Here's some hold music! http://www.phono.com/audio/holdmusic.mp3");
- }
- elseif ($result->value == "3")
- {
- say("Thank you for calling VPN Best. Goodbye.");
- hangup( );
- }
- function timeoutFCN($event) {
- say("Sorry, but nobody answered. Thank you for calling VPN Best. Goodbye.");
- }
- ?>
複製代碼 Try this IVR
Phone Numbers:
Skype Voice: +990009369996137695
SIP Voice: sip:9996137695@sip.tropo.com
INum Voice: +883510001836062 |