Как звонить без видео по linphonec? - PullRequest
0 голосов
/ 06 марта 2019

Я собираю Linphone с официального сайта Debian:

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

$ ./linphonec --version
version: 3.12.0

Я пытаюсь сделать голосовой вызов на 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.

Ладно, можно включить настройку только голоса? Да, это возможно:

> 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.

Хороший вариант - только для аудио . Попробуйте:

> 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.

Эта опция не работает.

В: Как отключить видео в LinphoneCallParams по умолчанию? Как это сделать?

1 Ответ

0 голосов
/ 13 апреля 2019

Я столкнулся с подобной проблемой, и решение, которое я нашел, может помочь.

Моя проблема:

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

Решением было включить домен.Для меня это было:

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).
...