audio - 将chan_mobile与 Asterisk 一起使用时,两种方式均无声音

标签 audio mobile asterisk sip

我使用的是星号11,并按照此网页上的指南进行操作:
https://jtanx.github.io/2016/02/24/using-asterisk-to-route-calls-through-mobile/

我正在通过chan_mobile将所有来电转移到手机上的本地网络的sip帐户。(有效)

另外,我从sip帐户拨打的所有电话都会自动拨打电话,并且通话会继续进行。 (工作)
我正在使用带有内置蓝牙的Raspberry pi 3。
两种情况都可行,但两种方式都没有音频。
树莓派IP地址:192.168.1.136
PC IP地址上的SIP客户端:192.168.1.137

我读了一些文章,这可能与bluez5和树莓派内部蓝牙有关。

这是日志,请检查:


     == Using SIP RTP TOS bits 184
     == Using SIP RTP CoS mark 5
[2019-06-28 14:02:40] WARNING[1811][C-00000003]: chan_sip.c:33608 process_crypto: Ignoring crypto attribute in SDP because RTP transport is insecure
[2019-06-28 14:02:40] WARNING[1811][C-00000003]: chan_sip.c:33608 process_crypto: Ignoring crypto attribute in SDP because RTP transport is insecure
[2019-06-28 14:02:40] WARNING[1811][C-00000003]: chan_sip.c:33608 process_crypto: Ignoring crypto attribute in SDP because RTP transport is insecure
[2019-06-28 14:02:40] WARNING[1811][C-00000003]: chan_sip.c:33608 process_crypto: Ignoring crypto attribute in SDP because RTP transport is insecure
    -- Executing [76123123@test:1] Dial("SIP/test-00000003", "Mobile/WP530/76123123,45") in new stack
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,extra) VALUES ('CHAN_START',{ts '2019-06-28 14:02:40.814798'},'','test','','','','76123123','test','SIP/test-00000003','','',3,'','1561719760.6','1561719760.6','','','')]
    -- Called Mobile/WP530/76123123
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,extra) VALUES ('CHAN_START',{ts '2019-06-28 14:02:40.816320'},'WP530','','','','','s','incoming-mobile','Mobile/WP530-14c2','','',3,'','1561719760.7','1561719760.6','','','')]
    -- Mobile/WP530-14c2 is making progress passing it to SIP/test-00000003
       > 0x75e00750 -- Probation passed - setting RTP source address to 192.168.1.137:10006
    -- Mobile/WP530-14c2 is ringing
    -- Mobile/WP530-14c2 answered SIP/test-00000003
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,extra) VALUES ('ANSWER',{ts '2019-06-28 14:03:05.259138'},'','76123123','','','','76123123','incoming-mobile','Mobile/WP530-14c2','AppDial','(Outgoing Line)',3,'','1561719760.7','1561719760.6','','','')]
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,extra) VALUES ('ANSWER',{ts '2019-06-28 14:03:05.260611'},'','test','test','','76123123','76123123','test','SIP/test-00000003','Dial','Mobile/WP530/76123123,45',3,'','1561719760.6','1561719760.6','','','')]
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,extra) VALUES ('BRIDGE_START',{ts '2019-06-28 14:03:05.260774'},'','test','test','','76123123','76123123','test','SIP/test-00000003','Dial','Mobile/WP530/76123123,45',3,'','1561719760.6','1561719760.6','Mobile/WP530-14c2','','')]
[2019-06-28 14:03:06] WARNING[1811][C-00000003]: chan_sip.c:33608 process_crypto: Ignoring crypto attribute in SDP because RTP transport is insecure
[2019-06-28 14:03:06] WARNING[1811][C-00000003]: chan_sip.c:33608 process_crypto: Ignoring crypto attribute in SDP because RTP transport is insecure
[2019-06-28 14:03:06] WARNING[1811][C-00000003]: chan_sip.c:33608 process_crypto: Ignoring crypto attribute in SDP because RTP transport is insecure
[2019-06-28 14:03:06] WARNING[1811][C-00000003]: chan_sip.c:33608 process_crypto: Ignoring crypto attribute in SDP because RTP transport is insecure
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,extra) VALUES ('BRIDGE_END',{ts '2019-06-28 14:03:22.252067'},'','test','test','','76123123','76123123','test','SIP/test-00000003','Dial','Mobile/WP530/76123123,45',3,'','1561719760.6','1561719760.6','Mobile/WP530-14c2','','')]
       > [INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid) VALUES ({ ts '2019-06-28 14:02:40' },'test','test','76123123','test','SIP/test-00000003','Mobile/WP530-14c2','Dial','Mobile/WP530/76123123,45',42,17,'ANSWERED',3,'1561719760.6')]
  == Spawn extension (test, 76123123, 1) exited non-zero on 'SIP/test-00000003'
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,extra) VALUES ('HANGUP',{ts '2019-06-28 14:03:22.283725'},'','76123123','','','','','test','Mobile/WP530-14c2','AppDial','(Outgoing Line)',3,'','1561719760.7','1561719760.6','','','16,SIP/test-00000003,')]
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,extra) VALUES ('CHAN_END',{ts '2019-06-28 14:03:22.284029'},'','76123123','','','','','test','Mobile/WP530-14c2','AppDial','(Outgoing Line)',3,'','1561719760.7','1561719760.6','','','')]
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,extra) VALUES ('HANGUP',{ts '2019-06-28 14:03:22.284735'},'','test','test','','76123123','76123123','test','SIP/test-00000003','','',3,'','1561719760.6','1561719760.6','','','16,SIP/test-00000003,ANSWER')]
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,extra) VALUES ('CHAN_END',{ts '2019-06-28 14:03:22.284815'},'','test','test','','76123123','76123123','test','SIP/test-00000003','','',3,'','1561719760.6','1561719760.6','','','')]
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,extra) VALUES ('LINKEDID_END',{ts '2019-06-28 14:03:22.284862'},'','test','test','','76123123','76123123','test','SIP/test-00000003','','',3,'','1561719760.6','1561719760.6','','','')]

最佳答案

Chan_mobile是非常特别的 channel 。

它没有支持。

它实际上取决于硬件-检查工作设备列表。某些设备可能仅由于固件版本不正确而无法工作。

它取决于蓝牙模块及其固件。

因此,没有任何一种方法可以确定您到底在做什么错。

关于audio - 将chan_mobile与 Asterisk 一起使用时,两种方式均无声音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56830461/

相关文章:

rest - Asterisk ARI 创建外呼

Asterisk-使用发起命令创建调用并传递参数并设置调用者 ID

mobile - 智能手机 3D 功能数据库

ios - PJSIP 不响应 401 的身份验证

c# - 使用Windows Phone 8.1媒体编辑API的音频合成

ios - Swift 开发过程中,资源文件放在哪里?

javascript - 当屏幕太小时用图像替换视频

javascript - trigger.io - 在触摸/点击事件上隐藏 html 元素

audio - 从音频信号了解共振峰

android - 如何在Android平台上将声音文件(.wav,.oog)转换为48KHZ输出