Ice not found in Baresip WebRTC Demo on openwrt and MIPS.

237 views
Skip to first unread message

Ismael Bonato

unread,
May 20, 2021, 2:27:19 PM5/20/21
to baresip
Hello,

I'm working on porting webRTC demo to Mediatec MIPS architecture using OpenWRT, I've write a new makefile and it compiles, but when I run the executable it has these errors.

root@OpenWrt:/# baresip-webrtc  
Local network address:  IPv4=wlan0|192.168.1.1  
dtls_srtp: failed to enable SRTP profile (Function not implemented)
module dtls_srtp.so: Function not implemented
could not pre-load module 'dtls_srtp' (Function not implemented)
aucodec: opus/48000/2
aucodec: G722/16000/1
ausrc: aufile
vidsrc: fakevideo
vidisp: fakevideo
dl: mod: /usr/lib/baresip/modules/avformat.so (Error loading shared library /usr/lib/baresip/modules)
module avformat.so: No such file or directory
could not pre-load module 'avformat' (No such file or directory)
dl: mod: /usr/lib/baresip/modules/v4l2.so (Error loading shared library /usr/lib/baresip/modules/v4l)
module v4l2.so: No such file or directory
could not pre-load module 'v4l2' (No such file or directory)
ausrc: alsa
auplay: alsa
demo: medianat 'ice' not found
failed to init demo: No such file or directory

I'm struggle to understand why the demo cannot find the ice module?

I've updated baresip to the newer version 1.0.0 in the openwrt repository

My Makefile is simple as you can see.

TARGET:=baresip-webrtc

SOURCES:=\
    src/demo.c \
    src/session.c \
    src/main.c \
    src/util.c

OBJECTS:=\
    demo.o \
    session.o \
    main.o \
    util.o

#CFLAGS  := -I$(TARGET_DIR)/usr/include/
#CFLAGS  += -I$(TARGET_DIR)/usr/include/re/
#CFLAGS  += -I$(TARGET_DIR)/usr/include/gpiohal/
#LDFLAGS += -L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib
#LDFLAGS += -L$(TARGET_DIR)/usr/lib/ -L$(TARGET_DIR)/lib/
LDFLAGS += -lbaresip -lre -lrem
#LDFLAGS += -L.

all: build $(TARGET)

build:
    $(CC) $(CFLAGS) $(LDFLAGS) -fPIC $(SOURCES) -c

$(TARGET):
    $(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) src/main.c -o $(TARGET)

clean:
    rm *.o $(TARGET)

Best regards.

Alfred E. Heggestad

unread,
May 22, 2021, 9:18:27 AM5/22/21
to Ismael Bonato, baresip
hi,

have you tested this on a regular host system first,
such as OSX or Linux ?


you should check the first error, and then fix that first.


which version of OpenSSL are you using ?


make sure re is compiled with this flag enabled:

USE_OPENSSL_SRTP





/alfred
> --
> You received this message because you are subscribed to the Google Groups "baresip" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to baresip+u...@googlegroups.com
> <mailto:baresip+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/baresip/1ba56814-c8ca-4b9d-8fa0-9f00e6adba21n%40googlegroups.com
> <https://groups.google.com/d/msgid/baresip/1ba56814-c8ca-4b9d-8fa0-9f00e6adba21n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Ismael Bonato

unread,
May 27, 2021, 3:37:06 PM5/27/21
to baresip
Hi,

We are using OpenSSL version 1.0.2s on Openwrt and on ubuntu 18.04 we are using version 1.1.1.

I'm going to try to use this flag.


Thank you very much.
Reply all
Reply to author
Forward
0 new messages