简体   繁体   English

如何通过linphonec拨打没有视频的电话?

[英]How to call without video by linphonec?

I am build Linphone from official site for Debian: 我是从Debian的官方网站构建Linphone的:

$ ./linphone --version
linphone 4.1.1-655-g95245907

$ ./linphonec --version
version: 3.12.0

I am try voice call in linphonec to test phone, but get error: 我尝试在linphonec中进行语音通话以测试电话,但收到错误消息:

> call 891********8
2019-03-06 17:13:20:391 liblinphone-error-LinphoneCore has video disabled for both capture and display, but video policy is to start the call with video. This is a possible mis-use of the API. In this case, video is disabled in default LinphoneCallParams
Error from linphone_core_invite.

Okay, may be enable set only voice? 好的,可以启用仅语音设置吗? Yes, it is possible: 对的,这是可能的:

> help call
'call <sip-url or number>  [options]'   : initiate a call to the specified destination.
Options can be:
--audio-only : initiate the call without video.
--early-media : sends audio and video stream immediately when remote proposes early media.

Good option --audio-only . 不错的选择--audio-only Try it: 试试吧:

> call 891********8 --audio-only
2019-03-06 17:14:01:951 liblinphone-error-LinphoneCore has video disabled for both capture and display, but video policy is to start the call with video. This is a possible mis-use of the API. In this case, video is disabled in default LinphoneCallParams
Error from linphone_core_invite.

This option is not work. 此选项不起作用。

Q: How to disable video in default LinphoneCallParams? 问:如何在默认的LinphoneCallParams中禁用视频? How to do it? 怎么做?

I ran into a similar problem and the solution I came up with may help. 我遇到了类似的问题,我想出的解决方案可能会有所帮助。

My problem: 我的问题:

linphonec> call 5201
2019-04-13 02:47:38:771 liblinphone-error-LinphoneCore has video disabled   for both capture and display, but video policy is to start the call with video.  This is a possible mis-use of the API. In this case, video is disabled in default LinphoneCallParams
Error from linphone_core_invite.     <----- THE REAL PROBLEM

The solution was to include the domain. 解决方案是包括域。 For me this was: 对我来说是:

linphonec> call sip:5201@172.31.0.1
2019-04-13 02:53:00:103 liblinphone-error-LinphoneCore has video disabled for both capture and display, but video policy is to start the call with video. This is a possible mis-use of the API. In this case, video is disabled in default LinphoneCallParams
Establishing call id to sip:5201@172.31.0.1, assigned id 2
Call 2 to sip:5201@172.31.0.1 in progress.
Media streams established with sip:5201@172.31.0.1 for call 2 (audio).

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM