Git Product home page Git Product logo

baresip-android's Introduction

baresip README

Baresip Logo

Baresip is a portable and modular SIP User-Agent with audio and video support.
Copyright (c) 2010 - 2024 Alfred E. Heggestad and Contributors
Distributed under BSD license

Build Lint OpenSSL and LibreSSL Valgrind

Features:

  • Call features:

    • Unlimited number of SIP accounts
    • Unlimited number of calls
    • Unattended call transfer
    • Auto answer
    • Call hold and resume
    • Microphone mute
    • Call waiting
    • Call recording
    • Peer to peer calls
    • Video calls
    • Instant Messaging
    • Custom ring tones
    • Repeat last call (redial)
    • Message Waiting Indication (MWI)
    • Address book with presence
    • Conferencing
  • Signaling:

    • SIP protocol support
    • SIP outbound protocol for NAT-traversal
    • SIP Re-invite
    • SIP Routes
    • SIP early media support
    • DNS NAPTR/SRV support
    • Multiple accounts support
    • DTMF support (RTP, SIP INFO)
    • Multicast sending & receiving
  • Security:

    • Signalling encryption (TLS)
    • Audio and video encryption (Secure RTP)
    • DTLS-SRTP key exchange protocol
    • ZRTP key exchange protocol
    • SDES key exchange protocol
  • Audio:

    • Low latency audio pipeline
    • High definition audio codecs
    • Audio device configuration
    • Audio filter plugins
    • Internal audio resampler for fixed sampling rates
    • Linear 16 bit wave format support for ringtones
    • Packet loss concealment (PLC)
    • Configurable ringtone playback device
    • Automatic gain control (AGC) and Noise reducation
    • Acoustic echo control (AEC)
    • Configurable audio sample format (Signed 16-bit, 24-bit, Float etc)
    • EBU ACIP (Audio Contribution over IP) Profile
  • Audio-codecs:

    • AAC
    • aptX
    • AMR narrowband, AMR wideband
    • Codec2
    • G.711
    • G.722
    • G.726
    • L16
    • MPA
    • Opus
  • Audio-drivers:

    • Advanced Linux Sound Architecture (ALSA) audio-driver
    • PulseAudio POSIX OSes audio-driver
    • Android OpenSLES audio-driver
    • Gstreamer playbin input audio-driver
    • JACK Audio Connection Kit audio-driver
    • MacOSX/iOS coreaudio/audiounit audio-driver
    • Portaudio audio-driver
    • Windows winwave audio-driver
  • Video:

    • Support for H.264, H.265, VP8, VP9, AV1 Video
    • Configurable resolution/framerate/bitrate
    • Configurable video input/output
    • Support for asymmetric video
    • Configurable video pixel format
    • Hardware acceleration for video encoder/decoder
  • Video-codecs:

    • AV1
    • H.264
    • H.265
    • VP8
    • VP9
  • Video-drivers:

    • iOS avcapture video-source
    • FFmpeg/libav libavformat/avdevice input
    • Direct Show video-source
    • MacOSX AVCapture video-source
    • Linux V4L/V4L2 video-source
    • X11 grabber video-source
    • DirectFB video-output
    • SDL2 video-output
    • X11 video-output
  • NAT-traversal:

    • STUN support
    • TURN server support
    • ICE support
    • NATPMP support
    • PCP (Port Control Protocol) support
  • Networking:

    • multihoming, IPv4/IPv6
    • automatic network roaming
  • Management:

    • Embedded web-server with HTTP interface
    • Command-line console over UDP/TCP
    • Command line interface (CLI)
    • Simple configuration files
    • MQTT (Message Queue Telemetry Transport) module
  • Profiles:

    • EBU ACIP (Audio Contribution over IP) Profile

Building

baresip is using CMake, and the following packages must be installed before building:

See Wiki: Install Stable Release or Wiki: Install GIT Version for a full guide.

Build with debug enabled

$ cmake -B build
$ cmake --build build -j
$ cmake --install build

Build with release

$ cmake -B build -DCMAKE_BUILD_TYPE=Release 
$ cmake --build build -j

Build with selected modules

$ cmake -B build -DMODULES="menu;account;g711"
$ cmake --build build -j

Build with custom app modules

$ cmake -B build -DAPP_MODULES_DIR=../baresip-apps/modules -DAPP_MODULES="auloop;vidloop"
$ cmake --build build -j

Build with clang compiler

$ cmake -B build -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
$ cmake --build build -j

Build static

$ cmake -B build -DSTATIC=ON
$ cmake --build build -j

Modules will be built if external dependencies are installed. After building you can start baresip like this:

$ build/baresip

The config files in $HOME/.baresip are automatically generated the first time you run baresip.

Build documentation

The API documentation can be build using doxygen.

$ doxygen mk/Doxyfile

By default the documentation is written to ../baresip-dox, if you want to change the destination directory you can change the OUTPUT_DIRECTORY in mk/Doxyfile.

Examples

  • Configuration examples are available in the examples directory.
  • Documentation on configuring baresip can be found in the Wiki.

License

The baresip project is using the 3-clause BSD license.

Contributing

Patches can be sent via Github Pull-Requests or to the Baresip mailing-list.

Design goals:

  • Minimalistic and modular VoIP client
  • SIP, SDP, RTP/RTCP, STUN/TURN/ICE
  • IPv4 and IPv6 support
  • RFC-compliancy
  • Robust, fast, low footprint
  • Portable C99 and C11 source code

Modular Plugin Architecture:

aac           Advanced Audio Coding (AAC) audio codec
account       Account loader
alsa          ALSA audio driver
amr           Adaptive Multi-Rate (AMR) audio codec
aptx          Audio Processing Technology codec (aptX)
aubridge      Audio bridge module
auconv        Audio sample format converter
audiounit     AudioUnit audio driver for MacOSX/iOS
aufile        Audio module for using a WAV-file as audio input
auresamp      Audio resampler
ausine        Audio sine wave input module
av1           AV1 video codec
avcapture     Video source using iOS AVFoundation video capture
avcodec       Video codec using FFmpeg/libav libavcodec
avfilter      Video filter using FFmpeg libavfilter
avformat      Video source using FFmpeg/libav libavformat
codec2        Codec2 low bit rate speech codec
cons          UDP/TCP console UI driver
contact       Contacts module
coreaudio     Apple macOS Coreaudio driver
ctrl_dbus     Control interface using DBUS
ctrl_tcp      TCP control interface using JSON payload
debug_cmd     Debug commands
directfb      DirectFB video display module
dshow         Windows DirectShow video source
dtls_srtp     DTLS-SRTP end-to-end encryption
ebuacip       EBU ACIP (Audio Contribution over IP) Profile
echo          Echo server module
evdev         Linux input driver
fakevideo     Fake video input/output driver
g711          G.711 audio codec
g722          G.722 audio codec
g7221         G.722.1 audio codec
g726          G.726 audio codec
gst           Gstreamer audio source
gtk           GTK+ 3 menu-based UI
gzrtp         ZRTP module using GNU ZRTP C++ library
httpd         HTTP webserver UI-module
httpreq       HTTP request module
ice           ICE protocol for NAT Traversal
jack          JACK Audio Connection Kit audio-driver
l16           L16 audio codec
menu          Interactive menu
mixausrc      Mixes another audio source into audio stream
mixminus      Mixes N-1 audio streams for conferencing
mpa           MPA Speech and Audio Codec
mqtt          MQTT (Message Queue Telemetry Transport) module
mwi           Message Waiting Indication
natpmp        NAT Port Mapping Protocol (NAT-PMP) module
netroam       Detects and applies changes of the local network addresses
opensles      OpenSLES audio driver
opus          OPUS Interactive audio codec
opus_multistream    OPUS multistream audio codec
pcp           Port Control Protocol (PCP) module
plc           Packet Loss Concealment (PLC) using spandsp
portaudio     Portaudio driver
pulse         Pulseaudio driver
presence      Presence module
rtcpsummary   RTCP summary module
sdl           Simple DirectMedia Layer 2.0 (SDL) video output driver
selfview      Video selfview module
serreg        Serial registration
snapshot      Save video-stream as PNG images
sndfile       Audio dumper using libsndfile
sndio         Audio driver for OpenBSD
srtp          Secure RTP encryption (SDES) using libre SRTP-stack
stdio         Standard input/output UI driver
stun          Session Traversal Utilities for NAT (STUN) module
swscale       Video scaling using libswscale
syslog        Syslog module
turn          Obtaining Relay Addresses from STUN (TURN) module
uuid          UUID generator and loader
v4l2          Video4Linux2 video source
vidbridge     Video bridge module
vidinfo       Video info overlay module
vp8           VP8 video codec
vp9           VP9 video codec
vumeter       Display audio levels in console
webrtc_aec    Acoustic Echo Cancellation (AEC) using WebRTC SDK
webrtc_aecm   Acoustic Echo Cancellation (AEC) mobile using WebRTC SDK
wincons       Console input driver for Windows
winwave       Audio driver for Windows
x11           X11 video output driver

IETF RFC/I-Ds:

  • RFC 2250 RTP Payload Format for the mpa Speech and Audio Codec

  • RFC 3016 RTP Payload Format for MPEG-4 Audio/Visual Streams

  • RFC 3262 Reliability of Provisional Responses for SIP

  • RFC 3311 SIP UPDATE Method

  • RFC 3428 SIP Extension for Instant Messaging

  • RFC 3711 The Secure Real-time Transport Protocol (SRTP)

  • RFC 3640 RTP Payload Format for Transport of MPEG-4 Elementary Streams

  • RFC 3856 A Presence Event Package for SIP

  • RFC 3863 Presence Information Data Format (PIDF)

  • RFC 3891 The SIP "Replaces" Header

  • RFC 4145 TCP-Based Media Transport in SDP

  • RFC 4240 Basic Network Media Services with SIP (partly)

  • RFC 4347 Datagram Transport Layer Security

  • RFC 4568 SDP Security Descriptions for Media Streams

  • RFC 4572 Connection-Oriented Media Transport over TLS Protocol in SDP

  • RFC 4574 The SDP Label Attribute

  • RFC 4585 Extended RTP Profile for RTCP-Based Feedback (RTP/AVPF)

  • RFC 4587 RTP Payload Format for H.261 Video Streams

  • RFC 4796 The SDP Content Attribute

  • RFC 4867 RTP Payload Format for the AMR and AMR-WB Audio Codecs

  • RFC 4961 Symmetric RTP / RTP Control Protocol (RTCP)

  • RFC 5285 A General Mechanism for RTP Header Extensions

  • RFC 5373 Requesting Answering Modes for SIP

  • RFC 5506 Support for Reduced-Size RTCP

  • RFC 5576 Source-Specific Media Attributes in SDP

  • RFC 5577 RTP Payload Format for ITU-T Recommendation G.722.1

  • RFC 5626 Managing Client-Initiated Connections in SIP

  • RFC 5627 Obtaining and Using GRUUs in SIP

  • RFC 5761 Multiplexing RTP Data and Control Packets on a Single Port

  • RFC 5763 Framework for Establishing a SRTP Security Context Using DTLS

  • RFC 5764 DTLS Extension to Establish Keys for SRTP

  • RFC 5888 The SDP Grouping Framework

  • RFC 6157 IPv6 Transition in SIP

  • RFC 6184 RTP Payload Format for H.264 Video

  • RFC 6263 App. Mechanism for Keeping Alive NAT Associated with RTP / RTCP

  • RFC 6416 RTP Payload Format for MPEG-4 Audio/Visual Streams

  • RFC 6464 A RTP Header Extension for Client-to-Mixer Audio Level Indication

  • RFC 6716 Definition of the Opus Audio Codec

  • RFC 6886 NAT Port Mapping Protocol (NAT-PMP)

  • RFC 7064 URI Scheme for STUN Protocol

  • RFC 7065 TURN Uniform Resource Identifiers

  • RFC 7310 RTP Payload Format for Standard apt-X and Enhanced apt-X Codecs

  • RFC 7587 RTP Payload Format for the Opus Speech and Audio Codec

  • RFC 7741 RTP Payload Format for VP8 Video

  • RFC 7742 WebRTC Video Processing and Codec Requirements

  • RFC 7798 RTP Payload Format for High Efficiency Video Coding (HEVC)

  • RFC 8285 A General Mechanism for RTP Header Extensions

  • RFC 8843 Negotiating Media Multiplexing Using SDP

  • draft-ietf-payload-vp9-16

Supported platforms:

  • Android (6.0 or later)
  • Apple macOS (10.12+)
  • Apple iOS 9.0 or later
  • Linux (kernel 3.0 or later, and glibc 2.5.x or later)
  • OpenBSD
  • Windows 10 or later (mingw and VS2019)

Supported versions of C Standard library

  • Android bionic
  • BSD libc
  • GNU C Library (glibc)
  • Musl
  • Windows C Run-Time Libraries (CRT)
  • uClibc

Supported compilers:

  • gcc 4.9 or later
  • MSVC 2019
  • clang 3.x or later

Supported versions of OpenSSL

  • OpenSSL version 1.1.1
  • OpenSSL version 3.x.x
  • LibreSSL version 3.x

Related projects

References

baresip-android's People

Contributors

alfredh avatar juha-h avatar trampster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

baresip-android's Issues

Problems with load_library on Android

Hi,
I just discovered baresip and am extremely impressed with this library!

I wanted to create a tracking issue for my issues running baresip on Android.
After building and installing, I ran ./baresip -f bs-config, and I got the following errors:

dl: mod: ./account.so (Cannot load library: load_library(linker.cpp:745): library "./account.so" not found)
module: module account.so: No such file or directory
dl: mod: ./alsa.so (Cannot load library: load_library(linker.cpp:745): library "./alsa.so" not found)
module: module alsa.so: No such file or directory

In the Makefile, the STATIC=1 var is passed to the baresip build, so I'm not sure why it's trying to load the modules.

The accounts defined in my bs-config/accounts aren't being loaded.

'make openssl' fails with android-ndk-r16b

make of openssl fails with android-ndk-r16b, which is currently the latest version. something has changed from r14b to r16b regarding include files. 'make openssl' gives:

/usr/local/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -I. -Icrypto/include -Iinclude -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_DYNAMIC_ENGINE -DOPENSSL_PIC -DOPENSSLDIR=""/usr/local/ssl"" -DENGINESDIR=""/usr/local/lib/engines-1.1"" -Wall -O3 -pthread -mandroid -fPIC --sysroot=/usr/local/android-ndk-r16b/platforms/android-17/arch-arm -Wa,--noexecstack -fPIC -DOPENSSL_USE_NODELETE -c -o crypto/aes/aes_core.o crypto/aes/aes_core.c
crypto/aes/aes_core.c:39:20: fatal error: assert.h: No such file or directory
#include <assert.h>
^
compilation terminated.

assert.h does exist in ./sysroot/usr/include/assert.h, but is not found by gcc.

Perhaps a note should be added to README.md to use android-ndk-r14b until someone figures out how to modify baresip-android Makefile.

OPUS build needs quotes

When building on windows subsystem for linux the OPUS build fails because ProgramFiles (x86) is in the path, the open bracket is what breaks the build.

The solution is to put quotes around the variable paths.

dtmfio missing from EXTRA_MODULES

Default config created by first time start of baresip tries to load module_app dtmfio, but that module
is not complied by default by 'make baresip'. I therefore added dtmfio to Makefile EXTRA_MODULES:

EXTRA_MODULES := dtmfio g711 stdio opensles dtls_srtp echo aubridge

armv8-a build guidelines for Android platform

We would like to build for armv8-a for Android platform , Is there any guidelines available for the same ..
Any suggestion would be of great help.. Thanks

Thanking your for such nice work.
Regards
Pintu

opus codec bad voice quality

In my tests, opus coded voice quality has been very bad. Receiving opus audio works fine, but opus audio that baresip sends out is badly broken. I'm using opus_bitrate 28000.

Both G711 and G7221 work fine both ways so looks like the problem is not in opensles driver, but in opus codec itself.

Has anyone else observed this or is it only me or my devices (Anrdoid 5.1 and 7.1.1)? Any hints on how to find the cause the problem?

Could not build

I am trying to run
$ make openssl

Which gives me error as below :

cd openssl &&
CXX=E:/Softs/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ RANLIB=E:/Softs/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ranlib AR=E:/Softs/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ar
./Configure android-arm0v7 &&
ANDROID_DEV=E:/Softs/android-ndk-r17c/platforms/android-17/arch-arm/usr make build_libs
./Configure: line 2: exec: perl: not found
make: *** [Makefile:175: openssl] Error 127

I have gone through the ndk17 files where I cannot find "arm-linux-androideabi-gcc" this file which I think stops the command.

I am using windows system

No audio in DND mode

If I set my android phone to DND mode I can't hear anything if I start a call.
I think there is a workaround for this since other phone applications don't do this.
Would be great if you could fix this :) Great app BTW

minimal bandwidth codecs missing in android version (f-droid)

From searching the baresip issues, baresip seems to provide config file options to enable codecs that allow to reduce baresip's bandwidth requirement and provide compatibility with more low- and minimal-bandwidth sip clients.

Particularly:

#module			codec2.so
#module			ilbc.so

[ The speex codec is not among the listed options, but could still be superior to opus at the low bandwidth end, and is able to work at even lower bitrates then opus:
https://en.wikipedia.org/wiki/Opus_(audio_format)#/media/File:Opus_quality_comparison_colorblind_compatible.svg ]

Android unregister

Not able to release ( Unregister / Deactivate ) sip number from android app.
I am using below code to deactivate sip account.

String uri = ""; // SIP Account URL
String ua = Api.ua_alloc(uri);
Api.ua_unregister(ua);

Notification for unregistered usage.

To save battery I'd like to just be able to start calls and not receive calls.
I have added a sip server and do not register. Do I still need the notification? If not can you please add an option to disable the notification? I use sip only for long distance calls noone is calling this number ever.

getting compilation error android-ndk-17

i am getting error while running application after all configuration done

org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures.
	at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:358)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
	at org.gradle.initialization.DefaultGradleLauncher.runTasks(DefaultGradleLauncher.java:219)
	at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)
	at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:124)
	at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:77)
	at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:74)
	at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:154)
	at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:38)
	at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:96)
	at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:74)
	at org.gradle.tooling.internal.provider.runner.ClientProvidedBuildActionRunner.run(ClientProvidedBuildActionRunner.java:68)
	at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
	at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
	at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
	at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.run(RunAsBuildOperationBuildActionRunner.java:50)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
	at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)
	at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51)
	at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47)
	at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:44)
	at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:79)
	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:44)
	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
	at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39)
	at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25)
	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80)
	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53)
	at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:62)
	at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:34)
	at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
	at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
	at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
	at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
	at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59)
	at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
	at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59)
	at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44)
	at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:46)
	at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30)
	at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
	at org.gradle.util.Swapper.swap(Swapper.java:38)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
	at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:externalNativeBuildDebug'.
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)
	at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
	at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
	at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
	at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
	at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)
	at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191)
	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130)
	... 6 more
Caused by: org.gradle.internal.UncheckedException: Build command failed.
Error while executing process /home/jenya1/Android/Sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /home/jenya1/Downloads/baresip-studio-master/app/.externalNativeBuild/cmake/debug/arm64-v8a --target baresip}

ninja: error: '/home/jenya1/Downloads/baresip-studio-master/distribution/baresip/lib/arm64-v8a/libbaresip.a', needed by '/home/jenya1/Downloads/baresip-studio-master/app/build/intermediates/cmake/debug/obj/arm64-v8a/libbaresip.so', missing and no known rule to make it

	at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:63)
	at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:40)
	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:76)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
	at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:801)
	at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:768)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99)
	... 34 more
Caused by: Build command failed.
Error while executing process /home/jenya1/Android/Sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /home/jenya1/Downloads/baresip-studio-master/app/.externalNativeBuild/cmake/debug/arm64-v8a --target baresip}

ninja: error: '/home/jenya1/Downloads/baresip-studio-master/distribution/baresip/lib/arm64-v8a/libbaresip.a', needed by '/home/jenya1/Downloads/baresip-studio-master/app/build/intermediates/cmake/debug/obj/arm64-v8a/libbaresip.so', missing and no known rule to make it

	at com.android.build.gradle.internal.cxx.process.ProcessOutputJunction.execute(ProcessOutputJunction.kt:78)
	at com.android.build.gradle.internal.cxx.process.ProcessOutputJunction.execute(ProcessOutputJunction.kt:119)
	at com.android.build.gradle.tasks.ExternalNativeBuildTask.executeProcessBatch(ExternalNativeBuildTask.java:327)
	at com.android.build.gradle.tasks.ExternalNativeBuildTask.build(ExternalNativeBuildTask.java:195)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
	... 47 more

is there means to turn on echo cancellation?

Issue juha-h/baresip-studio#3 was opened on my baresip-studio project regarding echo cancellation on Android. I vaguely remember that this has been discussed earlier, but could not find a trace. What are the options? I have seen mentioned Speex AEC, GStreamer, and somehow attaching Android AudioManager to the audio session.

Makefile did not work in arm64, x86 and x86_64.

In the Makefile, compiling opus needs to use standalone toolchain, which is required to be platform-dependennt. However, in Makefile, the toolchain is constantly installed with "arm" as followed,
......
toolchain:
$(NDK_PATH)/build/tools/make_standalone_toolchain.py
--arch arm
--api $(API_LEVEL)
--install-dir $(PWD)/toolchain

The "--arch arm" needs to be changed to "x86", "x86_64" and "arm64" for different platforms.

re.h: No such file or directory

When I am using $ sudo make install command in Ubuntu, I am getting this error
fatal error: re.h: No such file or directory.
I am using android studio

How to publish Call Custom SIP Progress after ringing

example we got this progress,
call id: 3df4267af87c6b47
call: SIP Progress: 100 Giving a try (/)
call: SIP Progress: 180 Ringing (/)
sip:[email protected]: session closed: 486 Rejected

we want to add more progress after 180 Ringing, example

call id: 3df4267af87c6b47
call: SIP Progress: 100 Giving a try (/)
call: SIP Progress: 180 Ringing (/)
call: SIP Progress: 183 Session Progress (/)
sip:[email protected]: session closed: 486 Rejected

this was under Android Application, Also we will modify too native code as needed if needed, it must be under android app not via SIP Server, because some of reason ...

Build architecture 64 bits

Hello thanks for this work!

i would like to build for armv8-a and x86_64 but no one of my tests was a success

some help will be really apreciate for build it.

thanks

P.S: for the moment i think the most diffictult is to build openssl for this architecture

checking how to run the C preprocessor... /lib/cpp

I run make opus, error.

checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for arm-linux-androideabi-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/Users/jxy/important/baresip-src/opus':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
make: *** [opus] Error 1

My re version is v0.5.9.
I build it on macOS 10.13.6.

About Android.mk file

Hi,
I'm just a beginner in Android NDK and i'm trying to implement Baresip to my project.
I followed the construction. Put 4 libraries were downloaded to jni folder.
Them go to each folder run command "make".
Now I don't know how to config Android.mk file to build share library in this. Anyone can show me some ideas?

Registration issue in android pie

Registration is working perfectly on below Pie(Android 9), but it fails in android pie and android 10 with authentication issue.

JNIEXPORT jint JNICALL
Java_com_iotran_ioconnect_voipmodels_Api_ua_1register(JNIEnv *env, jobject thiz, jstring javaUA) {
const char *native_ua = (*env)->GetStringUTFChars(env, javaUA, 0);
struct ua *ua = (struct ua *) strtoul(native_ua, NULL, 10);
(*env)->ReleaseStringUTFChars(env, javaUA, native_ua);
LOGD("registering UA '%s'\n", native_ua);
return ua_register(ua);
}

above function should return zero but it returns non-zero value '22'

How to correct errors in studio 3.4

2019-08-08 17:31:44.881 10055-10055/lilin.com E/libc: Access denied finding property "net.dns1"
2019-08-08 17:31:44.881 10055-10055/lilin.com E/libc: Access denied finding property "net.dns2"
2019-08-08 17:31:44.881 10055-10055/lilin.com E/libc: Access denied finding property "net.dns3"
2019-08-08 17:31:44.881 10055-10055/lilin.com E/libc: Access denied finding property "net.dns4"
2019-08-08 17:31:44.882 10055-10072/lilin.com D/System.out.lilin: 22>
2019-08-08 17:31:44.882 10055-10072/lilin.com D/System.out.lilin: 22>linuxrt: Error in received packet
linuxrt: list: read from socket failed (Success)

i have add

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />


<uses-permission android:name="android.permission.RECORD_AUDIO" />


<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<uses-feature  android:name="android.hardware.telephony" android:required="false" />

<uses-permission android:name="android.permission.CAMERA" />


 <uses-feature  android:name="android.hardware.camera"  android:required="false" />

<uses-permission android:name="android.permission.READ_PHONE_STATE" />

retest not available

The sources for retest are not available anymore. Any advise on how to create a test program for android?

baeresip hangs after speex call

I'm able to make success call on my Android device using audio_codecs=speex/16000,speex/8000.
When the call is termnated, I get to console

call: terminate call 'xxx' with sip:yyy

and after that baresip hangs, i.e., does not respond to anything I press on console. baresip shows in 'ps' list, but not in 'top', i.e., it is not in a CPU loop.

Any pointers on how to debug this further?

Instructions to build video-related EXTRA_MODULES for android

Currently, the default Makefile does not seem to include any video codecs for android
EXTRA_MODULES="g711 stdio opensles dtls_srtp echo aubridge opus speex zrtp"

Any pointers in wiki or elsewhere on how to enable video-related EXTRA_MODULES ?

Invalid authentication password on use of %

Hi there,
Trying to set up the sip account the app is refusing to allow my password-> Invalid Authentication Password.
My password uses '%' sign.
If I remove the % sign the account data can be saved, but the account will not work.
I cannot change the password on the account.
Any solutions?

Audio output

Hello, i'm using baresip-android and i'm not a pro ;p ....
But i have a little problem, i saw that baresip play audio in media stream (channel) of android.
So i would like to have it in call stream to be able to enable handfree speaker and manage it from call volume.

I have no idea of where starting.
Even if somebody have a little idea of where starting, it will be nicely to help me.

thanks in advance and sorry for my english.

SYSROOT does not point to root

I tried to add zrtp build to Makefile, but got into complications, because SYSROOT does not point to root, but to /usr:

SYSROOT := $(NDK_PATH)/platforms/$(PLATFORM)/arch-arm/usr

Would it be OK to remove /usr from the end and append /usr to where $(SYSROOT) is currently used?

-- Juha

crash in audio.c

Sometimes upon call close, I get crash in aurx_stream_decode() function of audio.c:

********** Crash dump: **********
Build fingerprint: 'motorola/harpia/harpia:7.1.1/NPIS26.48-43-2/3:user/release-keys'
pid: 9475, tid: 9516, name: Thread-2  >>> com.tutpro.baresip <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xb5b5b5c1
Stack frame #00 pc 00074808  /data/app/com.tutpro.baresip-2/lib/arm/libbaresip.so: Routine aurx_stream_decode at /usr/src/baresip-android/baresip/src/audio.c:787

The line in question is the last one here:

	/* Process exactly one audio-frame in reverse list order */
	for (le = rx->filtl.tail; le; le = le->prev) {
		struct aufilt_dec_st *st = le->data;

I wonder if the location really is the one shown, but if it is, any idea why the crash might happen?

Android libre not sending big sdp (around 1670 bytes)

Im using libre for an android sip client. I have observed that is not sending big sdp(1670 bytes) when i test with tcp or udp. Is there any setting to be done specfic for android? I tested with a sample app in linux and its working fine.
How to debug the libre sip stack.?

Connect sip over websocket

Hi people, i'm try to connect with Android ndk but i'm new in this topic.

i have two questions.

  1. Exist any documentation for use the library in C?

  2. i am try to use the next functions to connect with websocket.

CREATE AGENT-->

static const char* AUDIO_CODECS = "PCMU/8000/1";
static const char* VIDEO_CODECS = "h264";
static const char* DEFAULT_TRANSPORT = "ws";
static const int DEFAULT_LIFETIME = 7200;
  char sipChar[1024];
    memset(sipChar, 0, sizeof(sipChar));

    snprintf(sipChar, sizeof(sipChar),
             "<sip:%s:%s@%s;transport=%s>;regint=%d;regq=0.5;answermode=manual;audio_codecs=%s",
             username, password,
             sip_server, DEFAULT_TRANSPORT, DEFAULT_LIFETIME,
             AUDIO_CODECS


    );
    LOGI("AGENT: %s", sipChar);

    int err = ua_alloc(&userAgent, sipChar);
    if(err) {
        LOGI("ERROR: create_agent error! %d", err);
        return EXIT_FAILURE;
    }
    return (long) &userAgent;

CALL -->

void start_audio_call(const char* peer) {
    ua_connect(userAgent, NULL, NULL, peer, 0);
}

But return session closed: Protocol error

i'm use to example this Demo but he used only tcp protocol (https://github.com/MobiSciLab/Baresip-DemoAudioCall)

Thanks for the help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.