我有一个星号表示网络(只在网站上打电话)在PC上工作,但当我在android 5上运行同一个客户端时,没有声音,至少在我的android中没有,它确实向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.对此的一些解释,是否任何事情都是好的,但音频标签是问题的移动客户端?如果不是,‘由请求-URI标识的地址’是什么?
发布于 2015-03-24 13:48:43
所以,它起作用了。
这是交易,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操作,那么就在接下来的两行要做的和回答之后,我添加了一个按钮:
onClick="document.getElementById('audio-remote').play();"最后一切都成功了!
https://stackoverflow.com/questions/29221345
复制相似问题