Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to implement this as headless on a server, baresip works can play wav however baresipy answers but no audio with an error after 20s #17

Open
Netgrom opened this issue Sep 13, 2024 · 0 comments

Comments

@Netgrom
Copy link

Netgrom commented Sep 13, 2024

It is using Baresip 1.0.0 from the Debian distribution not sure if this is old and I should try to compile the newest however

Baresip standalone can works and I can play a wave, however wrapper connects, answers and looks like it is working however not playing the audio and then I think throwing a file not found.

/ausrc aufile,/tmp/pybaresip.wav- DEBUG - [0:00:01] audio=0/0 (bit/s)
01:18:13.054 - baresipy:run:289 - DEBUG - no such audio-source: aufile

This is events.py running with debug:

01:17:29.816 - baresipy:run:289 - DEBUG - baresip v1.0.0 Copyright (C) 2010 - 2020 Alfred E. Heggestad et al.
01:17:29.817 - baresipy:run:289 - DEBUG - Local network address:  IPv4=eth0|192.168.1.167
01:17:29.817 - baresipy:run:289 - DEBUG - aucodec: PCMU/8000/1
01:17:29.817 - baresipy:run:289 - DEBUG - aucodec: PCMA/8000/1
01:17:29.818 - baresipy:run:289 - DEBUG - ausrc: alsa
01:17:29.818 - baresipy:run:289 - DEBUG - auplay: alsa
01:17:29.818 - baresipy:run:289 - DEBUG - ausrc: aubridge
01:17:29.818 - baresipy:run:289 - DEBUG - auplay: aubridge
01:17:29.819 - baresipy:run:289 - DEBUG - medianat: stun
01:17:29.819 - baresipy:run:289 - DEBUG - medianat: turn
01:17:29.819 - baresipy:run:289 - DEBUG - medianat: ice
01:17:29.819 - baresipy:run:289 - DEBUG - [email protected]: Using sipnat: 'outbound'
01:17:29.819 - baresipy:run:289 - DEBUG - Populated 1 account
01:17:29.820 - baresipy:run:289 - DEBUG - Populated 3 contacts
01:17:29.820 - baresipy:run:289 - DEBUG - Populated 2 audio codecs
01:17:29.820 - baresipy:run:289 - DEBUG - Populated 0 audio filters
01:17:29.820 - baresipy:run:289 - DEBUG - Populated 0 video codecs
01:17:29.820 - baresipy:run:289 - DEBUG - Populated 0 video filters
01:17:29.821 - baresipy:run:289 - DEBUG - baresip is ready.
01:17:29.821 - baresipy:handle_ready:262 - INFO - Ready for instructions
01:17:29.939 - baresipy:run:289 - DEBUG - [email protected]: {1/UDP/v4} 200 OK (Exetel-VoIP) [1 binding]
01:17:29.939 - baresipy:run:289 - DEBUG - All 1 useragent registered successfully! (128 ms)
01:17:29.940 - baresipy:handle_login_success:255 - INFO - Logged in!
01:17:46.601 - baresipy:run:289 - DEBUG - ua: using AF from sdp offer: af=AF_INET
01:17:46.601 - baresipy:run:289 - DEBUG - sip:[email protected]: Incoming call from:  sip:[email protected] - (press 'a' to accept)
01:17:46.652 - baresipy:handle_call_status:233 - DEBUG - Call Status: ESTABLISHED
01:17:46.652 - baresipy:run:289 - DEBUG - aubridge: created device 'default'
/accept6.653 - baresipy:run:289 - DEBUG - /
01:17:46.653 - baresipy:run:289 - DEBUG - sip:[email protected]: Answering incoming call
01:17:46.654 - baresipy:run:289 - DEBUG - call: answering call on line 1 from sip:[email protected] with 200
01:17:46.654 - baresipy:run:289 - DEBUG - stream: update 'audio'
01:17:46.654 - baresipy:run:289 - DEBUG - audio: Set audio decoder: PCMU 8000Hz 1ch
01:17:46.654 - baresipy:run:289 - DEBUG - aubridge: created device 'default'
01:17:46.655 - baresipy:run:289 - DEBUG - audio: player started with sample format S16LE
01:17:46.655 - baresipy:run:289 - DEBUG - audio: Set audio encoder: PCMU 8000Hz 1ch
01:17:46.655 - baresipy:run:289 - DEBUG - audio: source started with sample format S16LE
01:17:46.655 - baresipy:run:289 - DEBUG - audio tx pipeline:    aubridge ---> PCMU
01:17:46.655 - baresipy:run:289 - DEBUG - audio rx pipeline:    aubridge <--- PCMU
01:17:46.656 - baresipy:run:289 - DEBUG - aubridge: thread start: 8000 Hz, 1 channels, format=S16LE
01:17:46.686 - baresipy:run:289 - DEBUG - [email protected]: Call established: sip:[email protected]
01:17:47.187 - baresipy:send_dtmf:145 - INFO - Sending dtmf tones for 123
01:17:47.329 - baresipy:send_audio:164 - INFO - transmitting audio
01:17:51.033 - baresipy:speak:154 - INFO - Sending TTS for Welcome to the jokes bot
01:17:53.254 - baresipy:send_audio:164 - INFO - transmitting audio
01:17:56.609 - baresipy:speak:154 - INFO - Sending TTS for Two threads walk into a bar. The barkeeper looks up and yells, 'Hey, I want don't any conditions race like time last!'
01:17:59.446 - baresipy:send_audio:164 - INFO - transmitting audio
01:18:07.374 - baresipy:speak:154 - INFO - Sending TTS for Goodbye
01:18:09.436 - baresipy:send_audio:164 - INFO - transmitting audio
01:18:13.003 - baresipy:hang:73 - INFO - Hanging: sip:[email protected]
stream: incoming rtp for 'audio' established, receiving from 58.96.1.21:56054
/ausrc aufile,/tmp/pybaresip.wav- DEBUG - [0:00:01] audio=0/0 (bit/s)    
01:18:13.054 - baresipy:run:289 - DEBUG - no such audio-source: aufile
/ausrc alsa,default78/0 (bit/s)    EBUG - [0:00:01] audio=0/0 (bit/s)    
01:18:13.055 - baresipy:run:289 - DEBUG - switch audio device: alsa,default
01:18:13.055 - baresipy:run:289 - DEBUG - ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
01:18:13.055 - baresipy:run:289 - DEBUG - ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
01:18:13.055 - baresipy:run:289 - DEBUG - ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
01:18:13.056 - baresipy:run:289 - DEBUG - ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
01:18:13.056 - baresipy:run:289 - DEBUG - ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
01:18:13.056 - baresipy:run:289 - DEBUG - ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
01:18:13.056 - baresipy:run:289 - DEBUG - ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
01:18:13.056 - baresipy:run:289 - DEBUG - ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default
01:18:13.057 - baresipy:run:289 - DEBUG - alsa: could not open ausrc device 'default' (No such file or directory)
01:18:13.057 - baresipy:run:289 - DEBUG - audio: set_source failed (alsa.default): Unknown error -2
01:18:13.057 - baresipy:run:289 - DEBUG - failed to set audio-source (Unknown error -2)
/ausrc aufile,/tmp/pybaresip.wav/s)     - [0:00:05] audio=63978/0 (bit/s)    
01:18:13.058 - baresipy:run:289 - DEBUG - no such audio-source: aufile
/ausrc alsa,default4000 (bit/s)         - [0:00:07] audio=28160/64000 (bit/s)    
01:18:13.058 - baresipy:run:289 - DEBUG - switch audio device: alsa,default
01:18:13.059 - baresipy:run:289 - DEBUG - ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
01:18:13.059 - baresipy:run:289 - DEBUG - ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
01:18:13.059 - baresipy:run:289 - DEBUG - ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
01:18:13.059 - baresipy:run:289 - DEBUG - ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
01:18:13.059 - baresipy:run:289 - DEBUG - ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
01:18:13.060 - baresipy:run:289 - DEBUG - ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
01:18:13.060 - baresipy:run:289 - DEBUG - ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
01:18:13.060 - baresipy:run:289 - DEBUG - ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default
01:18:13.060 - baresipy:run:289 - DEBUG - alsa: could not open ausrc device 'default' (No such file or directory)
01:18:13.060 - baresipy:run:289 - DEBUG - audio: set_source failed (alsa.default): Unknown error -2
01:18:13.061 - baresipy:run:289 - DEBUG - failed to set audio-source (Unknown error -2)
/ausrc aufile,/tmp/pybaresip.wav   EBUG - [0:00:10] audio=0/64000 (bit/s)    
01:18:13.061 - baresipy:run:289 - DEBUG - no such audio-source: aufile
/ausrc alsa,default4000 (bit/s)    EBUG - [0:00:13] audio=0/64000 (bit/s)    
01:18:13.062 - baresipy:run:289 - DEBUG - switch audio device: alsa,default
01:18:13.062 - baresipy:run:289 - DEBUG - ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
01:18:13.062 - baresipy:run:289 - DEBUG - ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
01:18:13.063 - baresipy:run:289 - DEBUG - ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
01:18:13.063 - baresipy:run:289 - DEBUG - ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
01:18:13.063 - baresipy:run:289 - DEBUG - ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
01:18:13.064 - baresipy:run:289 - DEBUG - ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
01:18:13.064 - baresipy:run:289 - DEBUG - ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
01:18:13.064 - baresipy:run:289 - DEBUG - ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default
01:18:13.064 - baresipy:run:289 - DEBUG - alsa: could not open ausrc device 'default' (No such file or directory)
01:18:13.065 - baresipy:run:289 - DEBUG - audio: set_source failed (alsa.default): Unknown error -2
01:18:13.065 - baresipy:run:289 - DEBUG - failed to set audio-source (Unknown error -2)
/ausrc aufile,/tmp/pybaresip.wav   EBUG - [0:00:20] audio=0/64000 (bit/s)    
01:18:13.066 - baresipy:run:289 - DEBUG - no such audio-source: aufile
/ausrc alsa,default4000 (bit/s)    EBUG - [0:00:23] audio=0/64000 (bit/s)    
01:18:13.066 - baresipy:run:289 - DEBUG - switch audio device: alsa,default
01:18:13.067 - baresipy:run:289 - DEBUG - ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
01:18:13.067 - baresipy:run:289 - DEBUG - ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
01:18:13.067 - baresipy:run:289 - DEBUG - ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
01:18:13.068 - baresipy:run:289 - DEBUG - ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
01:18:13.068 - baresipy:run:289 - DEBUG - ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
01:18:13.068 - baresipy:run:289 - DEBUG - ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
01:18:13.069 - baresipy:run:289 - DEBUG - ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
01:18:13.069 - baresipy:run:289 - DEBUG - ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default
01:18:13.070 - baresipy:run:289 - DEBUG - alsa: could not open ausrc device 'default' (No such file or directory)
01:18:13.070 - baresipy:run:289 - DEBUG - audio: set_source failed (alsa.default): Unknown error -2
01:18:13.070 - baresipy:run:289 - DEBUG - failed to set audio-source (Unknown error -2)
/hangup6] audio=0/64000 (bit/s)    EBUG - [0:00:26] audio=0/64000 (bit/s)    
01:18:13.070 - baresipy:run:289 - DEBUG - call: terminate call 'f4752a49-bc86-4a56-9676-a037a479dbe2' with sip:[email protected]
01:18:13.071 - baresipy:run:289 - DEBUG - sip:[email protected]: Call with sip:[email protected] terminated (duration: 27 secs)
01:18:13.071 - baresipy:handle_call_status:233 - DEBUG - Call Status: DISCONNECTED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant