[OpenSIPS-Users] Help needed with the trap file
Hi, I'm trying to find out why a utimer task is not complete: May 17 11:04:19 opensips2 /usr/local/sbin/opensips[101616]: WARNING:core:utimer_ticker: utimer task already scheduled 301400 ms ago (now 265202840 ms), delaying execution (opensips.log is showing the utimer warning coming from thread 101616) The partial trap file is below. This is my first time analyzing a trap file, so any help is appreciated. I'm trying to find out why utimer task is stuck. Some stuff is optimized. Do I need to see them? What should I look for? Thanks, Matt - partial trap file --- ---start 101612 (root 101612 1 0 May14 ?00:00:00 /usr/local/sbin/opensips -u root -g root -P /var/run/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1024 -M 16) [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". 0x7f1c47012f40 in __pause_nocancel () from /lib64/libpthread.so.0 #0 0x7f1c47012f40 in __pause_nocancel () from /lib64/libpthread.so.0 No symbol table info available. #1 0x0041e4fd in main_loop () at main.c:304 startup_done = chd_rank = 37 last_check = 0 rc = #2 main (argc=, argv=) at main.c:916 c = r = tmp = 0x7fff4814af81 "" tmp_len = port = proto = protos_no = options = 0x683110 "f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:p:P:G:W:o:a:k:s:" ret = -1 seed = 3543554664 rfd = __FUNCTION__ = "main" [Inferior 1 (process 101612) detached] . ---start 101616 (root 101616 101612 0 May14 ?00:05:44 /usr/local/sbin/opensips -u root -g root -P /var/run/opensips.pid -f /usr/local/etc/opensips/opensips.cfg -m 1024 -M 16) [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". 0x7f1c46d2bb23 in __select_nocancel () from /lib64/libc.so.6 #0 0x7f1c46d2bb23 in __select_nocancel () from /lib64/libc.so.6 No symbol table info available. #1 0x004cdee8 in run_timer_process () at timer.c:503 drift = 0 wait = o_tv = comp_tv = {tv_sec = 0, tv_usec = 10} ij = 26613140 multiple = cnt = tv = {tv_sec = 0, tv_usec = 75286} uinterval = 10 #2 start_timer_processes () at timer.c:633 id = __FUNCTION__ = "start_timer_processes" #3 0x0041df8c in main_loop () at main.c:221 startup_done = 0x0 chd_rank = 0 last_check = 0 rc = #4 main (argc=, argv=) at main.c:916 c = r = 0 tmp = 0x7fff4814af81 "" tmp_len = port = proto = protos_no = options = 0x683110 "f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:p:P:G:W:o:a:k:s:" ret = -1 seed = 3543554664 rfd = __FUNCTION__ = "main" [Inferior 1 (process 101616) detached] ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Call fetch_dlg_value inside a timer route
Hi Alberto In fact, i need to use: get_profile_size() I want to count some type of calls. I've done using statistics but not very precise. On Wed, May 17, 2023 at 7:48 PM Alberto wrote: > This reminded me of something else, maybe it can be used here too: > In a event route, before you can use dialog variables, you have to load > the dialog context by using func_load_dialog_ctx. Maybe it's the same with > timer routes. > > https://opensips.org/docs/modules/3.2.x/dialog#func_load_dialog_ctx > > On Wed, 17 May 2023, 21:07 Daniel Zanutti, > wrote: > >> Hi folks >> >> Why is it not possible to call *fetch_dlg_value *inside a timer route? >> Is there any other alternative to it? >> >> I wanted to generate some statistics every X seconds. >> >> Thanks >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users