Skip to content

[BUG] xlog creation fails when xlog_level is set to unsupported value #4236

Description

@lardht

OpenSIPS version you are running

root@vie-ix-voip-sbc:~# opensips -V
version: opensips 3.6.8 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, F_PARALLEL_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: f9f85260e5
main.c compiled on  with gcc 12

Describe the bug

When xlog_level is 10, syslog notifies me about a bug regarding syslog creation

To Reproduce

  1. Set xlog_value to 10
  2. Start a call
  3. Send call to opensips SBC
  4. Look at syslog

Expected behavior

Log creation

Relevant System Logs


Sep 02 11:26:57 vie-ix-voip-sbc.innonet.at /usr/sbin/opensips[653113]: CRITICAL:core:add_xlog_data: 
                                                                       >>> Unexpected log level [2]
                                                                       
                                                                       It seems you have hit a programming bug.
                                                                       Please help us make OpenSIPS better by reporting it at https://github.com/OpenSIPS/opensips/issues
Sep 02 11:26:57 vie-ix-voip-sbc.innonet.at /usr/sbin/opensips[653113]: INFO:ci=isbc97C9B3887DA0FC429BC1D32E55B1C4CF ft=9E6607C40EDFA947A8AA215D3D9F1370B3WISVOIP10 tt=36CA0D09-6A97EBDC000D94A1-CDFFB6C0 dlg_status=2
Sep 02 11:26:57 vie-ix-voip-sbc.innonet.at /usr/sbin/opensips[653113]: CRITICAL:core:add_xlog_data: 
                                                                       >>> Unexpected log level [2]
                                                                       
                                                                       It seems you have hit a programming bug.
                                                                       Please help us make OpenSIPS better by reporting it at https://github.com/OpenSIPS/opensips/issues
Sep 02 11:26:57 vie-ix-voip-sbc.innonet.at /usr/sbin/opensips[653113]: NOTICE:DEBUG onreply_route MAIN: dlg_val(profile): sipi

OS/environment information

  • deb 12, opensips repo

Additional context
When setting xlog_level to a supported value, the error disappears

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions