twilio client
을 사용하여 &에서 브라우저 호출을 수락합니다. 여기 내 제어 그게 전부의 코드는이 전화를 받고 보여줄 때 실행됩니다의 2683클라이언트 호출을 수락 할 때 Twilio 클라이언트 오류가 발생했습니다.
: twilio.js - 라인 @
Uncaught Twilio.Exception: 401: Unable to determine account.
- 나는 동의 페이지를 실행할 때, 나는 브라우저에서 자바 스크립트 오류 페이지 /보기 -
def prepare_accept_call
# create the twilio capability object
capability = Twilio::Util::Capability.new TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN
# guessing this is not needed for accepting calls, but added to see if it fixes my issue and it doesnt :(
capability.allow_client_outgoing TWILIO_APP_SID
capability.allow_client_incoming "some-client-identifier"
# use this token for client JS - Twilio.Device.setup("#{@token}");
@token = capability.generate
end
참고 : - 나는 성공적으로 전화 걸기 페이지를 표시 할 수 있어요, 더 자바 스크립트 오류가 없다 - 내가 통화 버튼을 클릭 할 때 나는 플래시 마이크 권한 팝업을 얻을. 내 열쇠, 토큰 등을 짐작하면 괜찮습니다.
여기에 무슨 일이 일어날 지 모릅니다.
토큰을 생성 할 때 accountsids와 토큰을 어디에 지정합니까? –
바로 여기 - Twilio :: Util :: Capability.new TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN – kapso
TWILIO_APP_SID가 정확한지 확인하셨습니까? – CaseySoftware