[SR-Users] Problems with PRESENCE/DIALOG functionality in sip-router

Daniel-Constantin Mierla miconda at gmail.com
Wed Nov 25 18:25:26 CET 2009


Hello,

can you get the latest git. I just did a fix, I haven't tested the 
dialoginfo presence module yet, the problem was in some checks in tm.

However, not sure the crash was related. Can you send the backtrace?

gdb /path/to/kamailio core

then: bt

Cheers,
Daniel


On 25.11.2009 8:42 Uhr, klaus.feichtinger at gmx.net wrote:
> Hi all,
>
> I've tested the current release candidate for Kamailio these days and found that the presence/dialog state functionality is not given in the current version.
>
> The first (and worst) difference to the latest stable release is that the handling of "setflag(X)" for tracing the dialogs resulted in a crash of kamailio with following error message:
>
> ********************** EXCERPT ******************
> Nov 24 13:35:47 lennysrv /usr/local/sbin/kamailio[13814]: : tm [t_hooks.c:190]: BUG:tm:register_tmcb: callback type TMCB_REQUEST_IN can't be register along with types
> Nov 24 13:35:47 lennysrv /usr/local/sbin/kamailio[13814]: ERROR: dialog [dlg_handlers.c:615]: failed cache in T the shortcut to dlg
> Nov 24 13:35:53 lennysrv /usr/local/sbin/kamailio[13815]: NOTICE: acc [acc.c:275]: ACC: call missed: timestamp=1259134133;method=INVITE;from_tag=4051501197-3958320-1259134127622;to_tag=3762694574-3958280-1259134127622;call_id=140363298-3958320-1259134127622 at 10.16.48.60;code=603;reason=Decline;src_user=5003;src_domain=10.16.48.205;dst_ouser=5002;dst_user=5002;dst_domain=10.16.48.60
> Nov 24 13:35:56 lennysrv /usr/local/sbin/kamailio[13815]: INFO: pua_usrloc [ul_publish.c:203]: should not send ul publish
> Nov 24 13:35:56 lennysrv /usr/local/sbin/kamailio[13815]: INFO: <script>: --- pua-set-publish() was executed ---
> Nov 24 13:35:58 lennysrv kernel: [176699.348059] kamailio[13821]: segfault at c0c0c0c0 ip b7de43b3 sp bfb03eb8 error 5 in libc-2.7.so[b7d6e000+155000]
> Nov 24 13:35:58 lennysrv /usr/local/sbin/kamailio[13837]: : <core> [pass_fd.c:283]: ERROR: receive_fd: EOF on 12
> Nov 24 13:35:58 lennysrv /usr/local/sbin/kamailio[13812]: ALERT: <core> [main.c:721]: child process 13821 exited by a signal 11
> Nov 24 13:35:58 lennysrv /usr/local/sbin/kamailio[13812]: ALERT: <core> [main.c:724]: core was generated
> Nov 24 13:35:58 lennysrv /usr/local/sbin/kamailio[13812]: INFO: <core> [main.c:736]: INFO: terminating due to SIGCHLD
> Nov 24 13:35:58 lennysrv /usr/local/sbin/kamailio[13814]: INFO: <core> [main.c:787]: INFO: signal 15 received
> ***************************************************
>
> However, the module documentation of the source code (READMEs) does not include major news. The configuration is "the same" (regarding handle_publish, handle_subscribe, pua_set_publish) as I've used in the kamailio-1.5.3 version. But - no NOTIFY messages with XML bodies are sent to the subscribers / watchers. Instead of using the setflag(X) method I´ve tried using the method "dlg_setflag(X)" for prohibiting crashes - that was accepted by kamailio.
>
> Were these modules tested (in combination with the dialog module) in the new version 3.0 RC1?
>  - presence
>  - presence_xml
>  - presence_dialoginfo
>  - pua
>  - pua_dialoginfo
>  - pua_usrloc
>
> It does not work in the SER variant of sip-router, too. Yesterday I've downloaded the current version with GIT, compiled the code, adapted the configuration. But the result is the same as with kamailio-3 RC1 (crash and no XML).
>
> For being sure that I have not made any mistake in the configuration, I've tested the functionality in the version 1.5.3 of Kamailio today. It works fine - the subscribers receive NOTIFY messages with XML body after every PRESENCE and DIALOG state change.
>
> Can anybody give me a hint? Thanks in advance!
>
> regards,
>
> Klaus
>
>
> P.S. the tested versions:
>
> PROBLEMS:
> ========
> version: kamailio 3.0.0-rc1 (i386/linux) 78f069
> flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> @(#) $Id$
> main.c compiled on 13:34:37 Nov 20 2009 with gcc 4.3.2
>
>
> version: ser 2.99.99-pre3 (i386/linux)
> flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> @(#) $Id$
> main.c compiled on 11:12:49 Nov 23 2009 with gcc 4.3.2
>
> SUCCESS:
> =======
> version: kamailio 1.5.3-notls (i386/linux)
> flags: STATISTICS, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, PKG_SIZE 4194304
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> svnrevision: unknown
> @(#) $Id: main.c 5608 2009-02-13 16:48:17Z henningw $
> main.c compiled on 13:31:21 Nov 24 2009 with gcc 4.3.2
>
>   

-- 
Daniel-Constantin Mierla
* http://www.asipto.com/





More information about the sr-users mailing list