2011-08-25 1 views
2

나는 브라우저에서 전화를 걸기 위해 http://www.twilio.com/docs/quickstart/client/browser-to-browser-calls을 팔로우하고 있습니다.twilio bhrowser가 브라우저 호출 문제가 있습니까?

와 문서를 열고 두 브라우저에 따르면

The both browser couldn't able to connect but it a call connect to the the sandbox number. 

I을 : 나는 샌드 박스 APP ID를 사용하고 때

http://127.0.0.1/client.php?client=test1 및 127.0.0.1/client.php?client=test2

내 응용 프로그램 ID를 사용하고 있습니다 : 다음 오류가 표시됩니다 :

Component: TwiML errors 
httpResponse: 502 
ErrorCode: 11200 
url: http://127.0.0.1/demo.php 



Request: What Twilio sent your server 
     HTTP Method: GET 
     HTTP URL: http://127.0.0.1/demo.php 
     HTTP BODY: Key Value 
     AccountSid xxxxxxxxxxxxxxxxxxxxxxxxx 
     ApplicationSid dddddddddddddddddddddddddd 
     Caller client:jenny 
     CallStatus ringing 
     Called 
     To 
     PhoneNumber tommy 
     CallSid cccccccccccccccccccccccccccc 
     From client:jenny 
     Direction inbound 
     ApiVersion 2010-04-01 

Response: What your web application responded with to Twilio 
     HTTP Headers: Key Value 
     Date Thu, 25 Aug 2011 11:36:22 GMT 
     Content-Length 137 
     Connection close 
     Content-Type text/html 
     Server TwilioProxy/0.7 

with <html><head><title>502 Bad Gateway</title></head> 
<body><h1>Bad Gateway</h1>An upstream server returned an invalid response.</body></html> 

답변

0

애플리케이션에 할당 된 VoiceURL은 Twilio 서버가 연결할 수 있도록 공개적으로 액세스 가능한 URL이어야합니다. 로컬 컴퓨터에서만 액세스 할 수있는 127.0.0.1 만 실행 중이며 연결할 수 없습니다.

로컬 서버를 공개 할 수있는 localtunnel.com 또는 ngrok과 같은 것이 좋습니다.

+0

알겠습니다. 건배 :) –

관련 문제