返回列表 發帖

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
  1. <!--?php
  2. wait(1000);
  3. $result = ask("Welcome to the VPN Best! Press 1 for Administrator, Press 2 for hold music, Press 3 to hangup the call", array(
  4.    "choices" =--> "1, 2, 3",
  5.    "attempts" => 3,
  6.    "mode" => "dtmf"
  7.     )
  8. );

  9. if ($result->value == "1")
  10.    {
  11.    say("Connecting you to Administrator");
  12.    transfer("sip:vpnbest@getonsip.com", array(
  13.     "playvalue" => "http://www.phono.com/audio/holdmusic.mp3 http://www.phono.com/audio/holdmusic.mp3",
  14.     "timeout" => 30,
  15.     "onTimeout" => "timeoutFCN"
  16.     )
  17. );
  18.     }
  19. elseif ($result->value == "2")
  20.     {
  21.    say("http://www.phono.com/audio/troporocks.mp3 Here's some hold music! http://www.phono.com/audio/holdmusic.mp3");
  22.    }
  23. elseif ($result->value == "3")
  24.     {
  25.    say("Thank you for calling VPN Best. Goodbye.");
  26.    hangup( );
  27.     }
  28. function timeoutFCN($event) {
  29.     say("Sorry, but nobody answered. Thank you for calling VPN Best. Goodbye.");
  30.     }
  31. ?>
複製代碼
Try this IVR

Phone Numbers:
Skype Voice: +990009369996137695
SIP Voice: sip:9996137695@sip.tropo.com
INum Voice: +883510001836062

這是雲端的電話平台,不用安裝就可以客製 IVR,支援多種語言 JS/PHP/Ruby....,對於要學習 IVR 開發的人來說,這是個不錯入門平台。剛去申請了一個開發帳號,不錯挺有趣的。
這是申請的號碼,有興趣的人可以撥來試試
Voice & Messaging: (415) 889-8622
Skype Voice: +990009369996150821
SIP Voice: sip:9996150821@sip.tropo.com
INum Voice: +883510001842556
OSSLab Blog :: VoIP & IT Consultant

TOP

这是那个系统里面可以这样子设置这些参数的??

TOP

回復 1# TsinTsin


    I notice you have a skype number account. Do you buy skype for connect service? How many channels you buy? What is the qualiy? I read that it also needs skype in and skype out services to be functional.

TOP

本帖最後由 TsinTsin 於 2011-12-5 01:03 編輯

Google Voice with Tropo

Tropo is Cloud API for Voice, SMS, and Instant Messaging Services

create google_voice_transfer.php
create Google Voice Transfer Applications and map the php file

The php script like this. It will transfer the incoming call to your SIP-URI.
  1. <!--?php
  2. transfer(array("sip:vpnbest@getonsip.com"), array(
  3.     "playvalue" =--> "http://www.phono.com/audio/holdmusic.mp3",
  4.     "onTimeout" => "timeoutFCN"
  5.     )
  6. );
  7. function timeoutFCN($event) {
  8.     say("Sorry, but nobody answered. Goodbye.");
  9.     }
  10. ?>
複製代碼
Call my GV it will ring the tropo (818) 381-9336 and tranfer to my SIP-URI. Try it below:

Phone Numbers:
Voice & Messaging: (818) 835-0286
Skype Voice: +990009369996137498
SIP Voice: 9996137498@sip.tropo.com
INum Voice: +883510001836068

TOP

Tropo Application - Playing Audio Files

SIP incoming call welcome message
  1. <!--?php
  2. answer();
  3. wait(1000);
  4. say("Welcome to the VPN Best! Please wait we connect your call.");
  5. transfer(array("sip:vpnbest@getonsip.com"), array(
  6.     "playvalue" =--> "http://www.phono.com/audio/holdmusic.mp3",
  7.     "timeout" => 25,
  8.     "onTimeout" => "timeoutFCN"
  9.     )
  10. );
  11. function timeoutFCN($event) {
  12.     say("Sorry, but nobody answered. Thank you for calling VPN Best. Goodbye.");
  13.     }
  14. ?>
複製代碼
Try it:
Phone Numbers:
Voice & Messaging: (818) 835-0286
Skype Voice: +990009369996137498
SIP Voice: vpnbest@iptel.org
INum Voice: +883510001836068

TOP

返回列表