Giter VIP home page Giter VIP logo

Comments (15)

gmaruzz avatar gmaruzz commented on June 15, 2024

(on ubuntu)

from baresip.

alfredh avatar alfredh commented on June 15, 2024

You have reported 2 issues, are they they overlapping ?

Please include more information as indicated here:

https://github.com/baresip/baresip/wiki/Guidelines-for-reporting-Issues

from baresip.

gmaruzz avatar gmaruzz commented on June 15, 2024

Hello!

Thanks for your reply, and for baresip!

I don't think the two issues have a common cause or are overlapping.

The terminal is left inconsistent even if baresip exit correctly, eg in any case

Seems to me I reported all relevant info, please let me know what can I add.

from baresip.

alfredh avatar alfredh commented on June 15, 2024

We need to see the console log and your config file, in order to debug the problem.

Have you considered to use start-stop-daemon program to start baresip?

https://man7.org/linux/man-pages/man8/start-stop-daemon.8.html

from baresip.

gmaruzz avatar gmaruzz commented on June 15, 2024

As you asked

CONSOLE (last line is repeated ENTERs, the console is borked up to a "reset", and you cannot see what you type):

gmaruzz@t590:~  $ baresip -a SIP.js -d -f /home/gmaruzz/baresipconf
baresip v3.5.1 Copyright (C) 2010 - 2023 Alfred E. Heggestad et al.
Local network addresses:
    bridge0:  192.168.1.61
        wg0:  10.20.30.2
    docker0:  172.17.0.1
    bridge0:  fe80::5c9e:f37b:d4d4:8dd
 vethuux8WP:  fe80::fc7f:81ff:fe86:59ba
 vethhEUuJd:  fe80::fc0d:9aff:feb8:4fd
ua: adding SIP CA file: /etc/ssl/certs/ca-certificates.crt
ua: adding SIP CA path: 
aucodec: PCMU/8000/1
aucodec: PCMA/8000/1
ausrc: alsa
auplay: alsa
vidcodec: H264
vidcodec: H264
vidcodec: H265
avcodec: using H.264 encoder 'libx264' -- libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
avcodec: using H.264 decoder 'h264' -- H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
avcodec: using H.265 encoder 'libx265' -- libx265 H.265 / HEVC
avcodec: using H.265 decoder 'hevc' -- HEVC (High Efficiency Video Coding)
vidcodec: VP8
vidsrc: v4l2
vidsrc: fakevideo
vidisp: fakevideo
medianat: stun
medianat: turn
medianat: ice
mediaenc: srtp
mediaenc: srtp-mand
mediaenc: srtp-mandf
dtls_srtp: use prime256v1 for elliptic curve cryptography
mediaenc: dtls_srtp
1053@ciaociao: Using medianat 'ice'
1053@ciaociao: Using media encryption 'dtls_srtp'
Populated 1 account
Populated 3 contacts
Populated 2 audio codecs
Populated 0 audio filters
Populated 4 video codecs
Populated 0 video filters
gmaruzz@t590:~  $ gmaruzz@t590:~  $ gmaruzz@t590:~  $ gmaruzz@t590:~  $ gmaruzz@t590:~  $ gmaruzz@t590:~  $ gmaruzz@t590:~  $ 

CONFIG
config.txt

config file in attachment as config.txt

=================

from baresip.

alfredh avatar alfredh commented on June 15, 2024

Can you please try to not load stdio.so ?

from baresip.

gmaruzz avatar gmaruzz commented on June 15, 2024

changed config not to load stdio

result is same:

baresip -a SIP.js -d -f /home/gmaruzz/baresipconf
baresip v3.5.1 Copyright (C) 2010 - 2023 Alfred E. Heggestad et al.
Local network addresses:
    bridge0:  192.168.1.61
        wg0:  10.20.30.2
    docker0:  172.17.0.1
    bridge0:  fe80::5c9e:f37b:d4d4:8dd
 vethuux8WP:  fe80::fc7f:81ff:fe86:59ba
 vethhEUuJd:  fe80::fc0d:9aff:feb8:4fd
ua: adding SIP CA file: /etc/ssl/certs/ca-certificates.crt
ua: adding SIP CA path:
aucodec: PCMU/8000/1
aucodec: PCMA/8000/1
ausrc: alsa
auplay: alsa
vidcodec: H264
vidcodec: H264
vidcodec: H265
avcodec: using H.264 encoder 'libx264' -- libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
avcodec: using H.264 decoder 'h264' -- H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
avcodec: using H.265 encoder 'libx265' -- libx265 H.265 / HEVC
avcodec: using H.265 decoder 'hevc' -- HEVC (High Efficiency Video Coding)
vidcodec: VP8
vidsrc: v4l2
vidsrc: fakevideo
vidisp: fakevideo
medianat: stun
medianat: turn
medianat: ice
mediaenc: srtp
mediaenc: srtp-mand
mediaenc: srtp-mandf
dtls_srtp: use prime256v1 for elliptic curve cryptography
mediaenc: dtls_srtp
1053@ciaociao: Using medianat 'ice'
1053@ciaociao: Using media encryption 'dtls_srtp'
Populated 1 account
Populated 3 contacts
Populated 2 audio codecs
Populated 0 audio filters
Populated 4 video codecs
Populated 0 video filters
gmaruzz@t590:~  $ gmaruzz@t590:~  $ gmaruzz@t590:~  $ gmaruzz@t590:~  $ gmaruzz@t590:~  $ gmaruzz@t590:~  $ gmaruzz@t590:~  $ 

from baresip.

sreimers avatar sreimers commented on June 15, 2024

Can you try:

baresip -a SIP.js -d -f /home/gmaruzz/baresipconf 2>err.log 1>out.log

And upload both logs here (use binary upload no copy paste)

from baresip.

alfredh avatar alfredh commented on June 15, 2024

I tested on Debian 12 with daemon mode and no stdio.so module, and the terminal is not b0rked.

Please note that the stdio.so module disables character echo mode:

https://github.com/baresip/baresip/blob/main/modules/stdio/stdio.c#L95

from baresip.

gmaruzz avatar gmaruzz commented on June 15, 2024

Hello Alfred,

thanks a lot for your answer.

please find attached the two files (out.log is empty)
err.log
out.log

the bizarre thing is that I have not loaded stdio.so, but character echo mode was disabled anyway

but if I pressed ENTER, it was going next line
also, if I gave commands, it gave me the result of commands (not the command)

I executed baresip, then I gave the command "ls", then the command "reset",
in another teminal, I gave the command: "echo "/quit" | netcat -N 127.0.0.1 5555"

gmaruzz@t590:~/alfred  $ baresip -a SIP.js -d -f /home/gmaruzz/baresipconf 2>err.log 1>out.log
gmaruzz@t590:~/alfred  $ err.log  out.log
gmaruzz@t590:~/alfred  $

from baresip.

gmaruzz avatar gmaruzz commented on June 15, 2024

I attach the new config as config2.txt, without stdio
config2.txt

from baresip.

alfredh avatar alfredh commented on June 15, 2024

I have tested again with Debian and macOS. When the stdio.so module is NOT loaded, the terminal
is working just fine and it is not broken.

Can you please try again on 2-3 different platforms or terminals and see if the result is consistent ?

If anyone else wants to test this, please test and share your result here.

Please also share the exact Ubuntu version and terminal name.

from baresip.

sreimers avatar sreimers commented on June 15, 2024

I can not reproduce this with zsh and Arch Linux here, works fine.

from baresip.

gmaruzz avatar gmaruzz commented on June 15, 2024

ok, then no problem

from baresip.

gmaruzz avatar gmaruzz commented on June 15, 2024

FWIW:
Ubuntu 20.04.6 LTS (GNU/Linux 5.15.0-88-generic x86_64)
xterm version 353

from baresip.

Related Issues (20)

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.