Comments (15)
(on ubuntu)
from baresip.
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.
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.
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.
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.
Can you please try to not load stdio.so
?
from baresip.
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.
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.
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.
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.
I attach the new config as config2.txt, without stdio
config2.txt
from baresip.
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.
I can not reproduce this with zsh and Arch Linux here, works fine.
from baresip.
ok, then no problem
from baresip.
FWIW:
Ubuntu 20.04.6 LTS (GNU/Linux 5.15.0-88-generic x86_64)
xterm version 353
from baresip.
Related Issues (20)
- mwi re-enters mwi_subscribe infinitely & w/no delay on PBX 404 response to SUBSCRIBE HOT 6
- 100rel yes/no issue HOT 13
- iOS Device: self signed certificate in certificate chain HOT 1
- Can not recieve Inbound Calls (Line is disconnected or unavailable) HOT 3
- Address family not supported by protocol HOT 3
- Mac os Ventura Version 13.0.1 audio=0/0 (bit/s) HOT 2
- install TARGETS given no BUNDLE DESTINATION for MACOSX_BUNDLE executable HOT 2
- build of main fails on Debian 12 HOT 2
- Sending too few video frames
- Wrong typical value for video_display in wiki HOT 1
- no ACK to re-INVITE 200 OK HOT 38
- debian version in debian/changelog has not been updated HOT 19
- GTK Module Status Icon HOT 4
- baresip -d do not exit correctly after a call HOT 5
- log before crash? HOT 5
- null pointer dereference when handling OPTIONS request HOT 2
- Unstable valgrind test HOT 3
- Wishlist Item: Prefer IPv6 if Dualstack is Available HOT 8
- Broken TCP/TLS sip registration on windows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baresip.