Commit graph

45 commits

Author SHA1 Message Date
Alfred E. Heggestad
48099c2035
misc: add baresip_version() to get Baresip version string (#3442) 2025-07-24 08:12:53 +02:00
Seven Du
1e24f71adf debug: add siptrace debug cmd 2025-05-04 12:06:52 +02:00
Christian Spielberger
d8acde9f20
ausrc, aufile, gst: replace duration by callback handler (#3105)
Retrieving the duration of an audio file may lead to long blocking
delay. E.g. gst_element_query_duration()
Now a callback handler can be called by the application only if
needed.
2024-08-29 13:59:53 +02:00
Christian Spielberger
c5bc6997bb
debug_cmd: command aufileinfo return answer (#3030) 2024-06-05 10:45:15 +02:00
Sebastian Reimers
d15b0a8e01
cmake: refactor module detection (#2875)
* cmake: refactor module detection

Move find_package dependency detection to cmake module subdirectory

* migrate static modules

* fix set_target_properties

* more modules

* system matching modules

* more modules

* add portaudio

* fix APP_MODULES and avoid duplicate modules
2024-01-13 08:45:17 +01:00
Robert Scheck
3193a114ce
readme: update supported OpenSSL/LibreSSL versions (#2843) 2023-12-23 08:15:07 +01:00
Alfred E. Heggestad
a7f333261a
use RE_ARRAY_SIZE() macro (#2429) 2023-01-29 10:21:49 +01:00
Alfred E. Heggestad
c94d669789
make: remove deprecated makefile (#2354) 2022-12-10 22:29:57 +01:00
Sebastian Reimers
999501ee80 cmake: use object instead of static for modules 2022-08-10 07:38:39 +02:00
Sebastian Reimers
299b003b94
cmake: refactor module prefix (#2024) 2022-07-28 18:10:09 +02:00
Sebastian Reimers
682e153204
cmake: add module override option (#2020)
With -DMODULES="account;av1" only wanted modules are build
2022-07-28 10:41:06 +02:00
Alfred E. Heggestad
cc5ba874d6 cmake: add debug_cmd module 2022-07-18 14:56:22 +02:00
Christian Spielberger
9f47ba7789 debug_cmd: aufileinfo send events synchronously
If the used ausrc supports blocking mode (ptime==0) then the event should be
sent immediately. This enables IO-modules like cons, ctrl_tcp, ctrl_dbus a
synchronous response for command aufileinfo.
2022-06-01 09:58:01 +02:00
Christian Spielberger
526fbccdf8
debug_cmd: support absolute path for command aufileinfo (#1875) 2022-05-31 08:11:20 +02:00
Alfred E. Heggestad
51f1ae0223
remove struct media_ctx (#1632) 2021-10-16 08:22:19 +02:00
Sebastian Reimers
bdc57cbb8f
auframe: move to rem (#1470) 2021-05-26 15:19:48 +02:00
Alfred E. Heggestad
cf7f53cdac debug_cmd: commands in alphabetical order 2021-05-23 15:02:08 +02:00
Christian Spielberger
8f40cbb01e
debug_cmd: use module_event() for aufileinfo events (#1345) 2021-04-24 09:05:33 +02:00
Alfred E. Heggestad
c3dd967905 mk: update copyright 2021-04-11 09:49:18 +02:00
Alfred E. Heggestad
273a1560a2 modules: update copyright 2021-04-11 09:22:17 +02:00
Christian Spielberger
79891a7a59
debug_cmd: add UA_EVENT_CUSTOM (#1194)
A event type that can be used for custom events sent from modules.
2021-01-21 11:04:14 +01:00
Alfred E. Heggestad
7b6949ba77 use account_aor() 2021-01-18 21:58:07 +01:00
Alfred E. Heggestad
dc7ccbe28e debug_cmd: print all user-agents 2021-01-11 18:04:44 +01:00
Christian Spielberger
fb4c16a204
Audio file info (#1157) 2020-12-27 15:07:28 +01:00
Robert Mittermaier
0b25cff129
debug_cmd: mem_deref of player fixes segfault (#1146)
* debug_cmd: mem_deref of player fixes segfault

* debug_cmd: set pointer to NULL after mem_deref.

Co-authored-by: Christian Spielberger <c.spielberger@commend.com>
Co-authored-by: Robert Mittermaier <r.mittermaier@commend.com>
2020-12-14 12:07:36 +01:00
Sebastian Reimers
99efc36de4
Add travis OpenSSL/LibreSSL Checks and fix no-deprecated (#1065)
* add travis openssl/libressl checks

* fix openssl 1.1.x no-deprecated
2020-08-20 09:14:54 +02:00
Roger Sandholm
6f98589615
JSON initial codec state command and response (#973) 2020-05-11 10:48:11 +02:00
Gabe Blair
99487e221d
Fix ringback tone coming from alert device (#935) 2020-03-09 18:35:49 +01:00
Alfred E. Heggestad
177be19107 ua: move ua_print_sip_status to debug_cmd module 2019-09-01 11:36:03 +02:00
Alfred E. Heggestad
24ba84c784 debug_cmd: fix warning 2019-03-21 21:01:06 +01:00
Andreas Hansson
870b6dc602 Added debug cmd to print UUID (#674) 2019-03-21 17:56:21 +01:00
Alfred E. Heggestad
f06fdd6814 debug_cmd: fix warning 2019-02-17 19:46:58 +01:00
Alfred E. Heggestad
bd539d1613 log: add command to toggle loglevel ('v') 2019-02-17 19:41:32 +01:00
Ola-Palm
098cc1f617 /play will always stop current file playing. (#578)
* Added EBUACIP invite handler

* adjusted missplaced curlyB

* some lines to wide, one // comment fixed

* two more lines over 80 chars

* trailing space removed.

* current file is always stopped when playfile is called.
audio.c checked out from Alfred due to some merge conflict.

* missing newline

* small fixes in layout

* err is initialized to 0

* 2 lines where over 80 chars.

* still lines over 80 chars somehow.
My IDE and travis doesn't agree on how to count cols.

* line 97 over 79 chars.
2018-11-23 17:56:13 +01:00
Alfred E. Heggestad
48c690a304 debug_cmd: align command table 2018-11-09 18:03:40 +01:00
Alfred E. Heggestad
b31e943b7d debug_cmd: check for empty UA 2018-09-30 14:59:57 +02:00
Alfred E. Heggestad
1cc4a0c6d5 debug_cmd: add command 'conf_reload' to reload configuration file 2017-12-17 12:59:18 +01:00
Alfred E. Heggestad
5bbc61a7ed debug_cmd: print openssl version 2017-02-25 15:24:48 +01:00
Alfred E. Heggestad
6531be432b debug_cmd: update doxygen comment 2016-12-12 21:47:54 +01:00
Alfred E. Heggestad
1203abd362 cmd: check for duplicated entries
- registering duplicate short commands is no longer possible

- disable a couple of short commands, use long command instead
  (short commands should only be used for very frequently used things)

- menu: properly register/unregister digit handlers for active calls

thanks to Juha Heinanen for reporting an issue with the 'a' key
2016-11-27 18:07:42 +01:00
Alfred E. Heggestad
8abcfeb148 play: make it re-entrant, add struct player 2016-09-04 10:49:41 +02:00
Alfred E. Heggestad
a4798e3cdb cmd: make it fully re-entrant 2016-08-07 13:26:52 +02:00
Alfred E. Heggestad
e3ecbddba0 cmd: add support for long commands
- Long commands are commands that is 2 or more characters,
  and MUST be completed by pressing enter.

- A given command can have a long-command, a short-command
  or both.

- All long commands are using '/' (slash) prefix

- a simple TAB-completion is supported, while punching in
  your long command you can press TAB to see a list of
  commands that matches the input string.

Feedback is welcome, specially on the long-command strings
itself. If you want to suggest changes, please make a small
and non-intrusive patch and send it as a Pull Request (PR).
2016-08-07 10:42:47 +02:00
Alfred E. Heggestad
400c9533b4 move some debug commands from menu to debug_cmd
- Move commands 'g' 'u' and 'i' from menu.so
  module to debug.cmd.so module

- This can be useful for example if baresip is loaded
  with a server-type module_app (e.g. echo.so and b2bua.so)
  instead of a client-type module app (menu.so)
2016-08-01 19:46:05 +02:00
Alfred E. Heggestad
85e7ca656e debug_cmd.so: new module for Debug Commands
move some debug commands from menu.so to debug_cmd.so
2016-07-30 11:21:44 +02:00