Twilio 経由で電話をかけることがうまくできません... オフィスにいる間にボタンをクリックして、Web ページに入力した顧客番号にアクセスできるようにしたいです。
「クリックして電話をかける」ことができます: http://www.twilio.com/docs/howto/click-to-call、しかしそれはユーザーが会社に電話するためのものです - 私が求めているのは私の会社の電話番号ですユーザーを呼び出します。
InitiateOutboundCall で From/To フィールドを設定し、URL フィールドを空白のままにする単純なケースだと思いました。まったくうまくいきませんでした。
次に、空の XML ページで試してみました。「通話が接続されたときに、システムにメッセージを発するなど、他のことは何もさせたくないので、2 人で話してもらいたいだけです!
例えば:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Response> </Response>
するとお客様の電話が鳴り、「X社」と書いてありますが、受話器を取ると鳴り止み、
私はこれで試しました:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Response>
<Dial>
<Number>123456</Number>
</Dial>
</Response>
そして、クライアントの電話に電話をかけ、次にスタッフの電話に電話をかけましたが、それは前述のクリック ツー コールです。
助けてください!
Protected sub makeCall()
Dim options As New CallOptions()
Dim ACCOUNT_SID = ""
Dim AUTH_TOKEN = ""
options.Url = xxxxxxxxxxxxxxxxxxxx?
options.From = "+Number listed in Twilio callers page"
options.To = "+My mobile number"
WriteLine(""):WriteLine(""):WriteLine("")
Dim TwilClient As New TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
WriteLine("TwilClient created.")
Dim outboundCall = TwilClient.InitiateOutboundCall(options)
WriteLine("Call created.")
WriteLine("Call status: " & outboundCall.Status)
If Not IsNothing(outboundCall.RestException )
WriteLine("ERROR!: " & outboundCall.RestException.Message)
End If
IndentLevel +=1
WriteLine("")
WriteLine("SID: " & outboundCall.Sid)
Session("mycallsid") = outboundCall.Sid
Unindent
End Sub