我在网上有一个星号(在网站上只有电话)工作,在PC上,但当我在我的Android 5上运行相同的客户端没有声音,至少不在我的机器人,它确实发送语音到PC,但只是无法重现这种倾听的声音。
我的星号似乎很好,它在电话中显示:
servidor-asterisk*CLI> core show channels
Channel Location State Application(Data)
SIP/002670-0000003d (None) Up AppDial((Outgoing Line))
SIP/000001-0000003c 002670@from-internal Up Dial(SIP/002670,60)
2 active channels
1 active call
31 calls processed
但是在eclipse控制台中我收到来自android的代码405:
"__tsip_transport_ws_onmessage", source: http://IP/videoNodeJs/scripts/sip_api.js (1)
"recv=OPTIONS sip:000001@df7jal23ls0d.invalid;rtcweb-breaker=no;transport=ws SIP/2.0
"Not implemented", source: http://IP/videoNodeJs/scripts/sip_api.js (1)
"SEND: SIP/2.0 405 Method Not Allowed
有什么建议吗?
更新:
SIPML5客户端:
<audio id="audio-remote"/>
var opcoes_chamada = {
audio_remote: document.getElementById('audio-remote'),
screencast_window_id: 0x00000000, // entire desktop
bandwidth: { audio:undefined, video:undefined },
video_size: { minWidth:undefined, minHeight:undefined, maxWidth:undefined, maxHeight:undefined },
events_listener: { events: '*', listener: sipEventsListener },
sip_caps: [
{ name: '+g.oma.sip-im' },
{ name: 'language', value: '\"en,fr\"' }
]
};
拨打电话:
callSession = sipStack.newSession('call-audio', opcoes_chamada);
callSession.call(sip_id_d);
致电:
e.newSession.setConfiguration(opcoes_chamada);
e.newSession.accept();
405方法不允许
The method specified in the Request-Line is understood, but not
allowed for the address identified by the Request-URI.
The response MUST include an Allow header field containing a
list of valid methods for the indicated address.
对此的一些解释,任何一次机会都很好,但音频TAG是移动客户端的问题?如果不是,那么'Request-URI'标识的地址是什么?
答案 0 :(得分:0)
所以,它正在发挥作用。
这是交易,SIP很好,客户端。洞问题是一个限制铬限制,需要用户点击浏览器播放任何声音,它是这样的:
我有我的音频标签:
<audio id="audio-remote"/>
后来我用sipml5:
提供源代码var opcoes_chamada = {
audio_remote: document.getElementById('audio-remote'),
screencast_window_id: 0x00000000, // entire desktop
bandwidth: { audio:undefined, video:undefined },
video_size: { minWidth:undefined, minHeight:undefined, maxWidth:undefined, maxHeight:undefined },
events_listener: { events: '*', listener: sipEventsListener },
sip_caps: [
{ name: '+g.oma.sip-im' },
{ name: 'language', value: '\"en,fr\"' }
]
};
这是捕获,它是用SIPML5源提供的音频标签,但只要用户不给出onclick动作,它就会暂停(或保持,不知道是什么......)我要添加一个按钮,然后拨打2行:
onClick="document.getElementById('audio-remote').play();"
并且终于有效了!