[OpenSER-Devel] [ openser-Bugs-1755943 ] openser 1.2.1 with TLS crashing

SourceForge.net noreply at sourceforge.net
Mon Jun 30 15:49:43 CEST 2008


Bugs item #1755943, was opened at 2007-07-18 08:18
Message generated for change (Comment added) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1755943&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: ver 1.2.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel-Constantin Mierla (miconda)
Summary: openser 1.2.1 with TLS crashing

Initial Comment:

my openser 1.2.1 from the debian package (recompiled with TLS support)
crashes from time to time. i have not yet been able to reproduce it
systematically.

see log.txt for the last log entries (nothing special before, some
regular debug messages about successful registration requests).

openser.cfg is my config.


if you have any suggestions to help me work around this (disable tcp /
TLS for production for now?) and or pinpoint it so it can get fixed,
please let me know.


thanks,

  fabian linzberger

<e AT lefant DOT net>


----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2008-06-30 13:49

Message:
Logged In: NO 

sorry but i no longer use openser except for one 1.2 installation in
production without tls so i cannot reproduce this any longer or help
testing. feel free to close the issue, of course.

----------------------------------------------------------------------

Comment By: Henning Westerholt (henningw)
Date: 2008-06-26 11:37

Message:
Logged In: YES 
user_id=337916
Originator: NO

Hello Fabian,

is this problem still present with the 1.3 branch of openser? 

Cheers,

Henning

----------------------------------------------------------------------

Comment By: Fabian Linzberger (lefant)
Date: 2007-12-10 12:58

Message:
Logged In: YES 
user_id=1345822
Originator: NO

first make sure there is something like the following in
/etc/apt/sources.list:

deb http://ftp.at.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.at.debian.org/debian/ sid main contrib non-free


sudo apt-get build-essential devscripts
sudo apt-get -t unstable build-dep openser
apt-get -t unstable source openser
cd openser-1.2.2/
cp debian/rules debian/rules.old
sed "s/^TLS=$/TLS=1/" debian/rules.old >debian/rules
debuild -uc -us


actually i use "pbuilder" to build in a chroot running a minimal etch
with only build dependencies installed, because my build system runs
unstable and this way building is the most clean, but above
instructions should 


i will give upgrading openssl a shot, but it may take a little time since
that particular testhost is meanwhile running sipx. however there are other
opensers in the setup and i would certainly like to run a stable TLS on
them.

----------------------------------------------------------------------

Comment By: Daniel-Constantin Mierla (miconda)
Date: 2007-12-10 10:14

Message:
Logged In: YES 
user_id=1246013
Originator: NO

Would be good if you can get latest stable ssl libraries, to see if the
crash still happens. There were fixes since 0.9.8c related to memory
managers, these are those I concern about.

One other question, the official debian package does not contain TLS. Can
you describe the steps you did to recompile, including the fetching of
sources. 

----------------------------------------------------------------------

Comment By: Fabian Linzberger (lefant)
Date: 2007-12-10 08:58

Message:
Logged In: YES 
user_id=1345822
Originator: NO

sorry for the confusion, this is debian-speak. recompiling a debian
package from the sid / unstable development branch (which has openser 
1.2.2) against the libraries in the stable release, to be able to install
and run it on a system running the stable release is called a backport in
this context. if you like too compare http://backports.org/ which has
backports from official debian developers only, almost like the main debian
archive.

my question thus boils down to this: if i plan to run openser 1.2.2 on a
debian stable system which has openssl 0.9.8c what is my best course of
action? is this library a bad version, should i attempt to backport openssl
as well, which usually means dependency hell? or should i just skip TLS
support for now?

----------------------------------------------------------------------

Comment By: Daniel-Constantin Mierla (miconda)
Date: 2007-12-10 08:44

Message:
Logged In: YES 
user_id=1246013
Originator: NO

OpenSER backport? Don't really get what you want to achieve.

----------------------------------------------------------------------

Comment By: Fabian Linzberger (lefant)
Date: 2007-12-10 07:48

Message:
Logged In: YES 
user_id=1345822
Originator: NO

right now the openssl version is 0.9.8c-4etch1, at the time of the core
dump it probably was 0.9.8c-4, but the only difference according to the
changelog is:

  * CVE-2007-5135: Fix off by one error in SSL_get_shared_ciphers().
    (Closes: #444435)

what is the recommended way to run a backport on debian stable and this
version of openssl? with TLS disabled?

----------------------------------------------------------------------

Comment By: Daniel-Constantin Mierla (miconda)
Date: 2007-11-30 11:29

Message:
Logged In: YES 
user_id=1246013
Originator: NO

Can you tell the version of openssl library you are using? There were some
problems when using custom memory manager with specific versions of openssl
library.

----------------------------------------------------------------------

Comment By: Fabian Linzberger (lefant)
Date: 2007-08-03 09:21

Message:
Logged In: YES 
user_id=1345822
Originator: NO

another core dump today, same gdb invocation, result of "(gdb) bt full"
below:


#0  0xb7f6f410 in ?? ()                               
No symbol table info available.                       
#1  0xbfde93ac in ?? ()                               
No symbol table info available.                       
#2  0x00000006 in ?? ()                               
No symbol table info available.                       
#3  0x000003fb in ?? ()                               
No symbol table info available.                       
#4  0xb7ccf811 in raise () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.                       
#5  0xb7cd0fb9 in abort () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.                       
#6  0x080a065f in fm_realloc (qm=0xb6ab6000, p=0xb6ddeaf8, size=128) at
mem/f_malloc.c:426
        f = (struct fm_frag *) 0xb6ddeaf0             
        pf = (struct fm_frag **) 0x6                  
        orig_size = 64                                
        n = (struct fm_frag *) 0x3fb                  
        ptr = <value optimized out>                   
        hash = 10                                     
#7  0x080c7150 in ser_realloc (ptr=0xb6ddeaf8, size=128) at
tls/../mem/shm_mem.h:212
No locals.                                            
#8  0xb7e0e5a5 in CRYPTO_get_new_lockid () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.                       
#9  0xb7e0ecb3 in CRYPTO_realloc () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.                       
#10 0xb7e77255 in sk_insert () from /usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.                       
#11 0xb7e772ca in sk_push () from /usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.                       
#12 0xb7f3c8b5 in ssl_bytes_to_cipher_list () from
/usr/lib/i686/cmov/libssl.so.0.9.8
No symbol table info available.                       
#13 0xb7f2535f in ssl3_get_client_hello () from
/usr/lib/i686/cmov/libssl.so.0.9.8
No symbol table info available.                       
#14 0xb7f25ee5 in ssl3_accept () from /usr/lib/i686/cmov/libssl.so.0.9.8
No symbol table info available.                       
#15 0xb7f3b3ea in SSL_accept () from /usr/lib/i686/cmov/libssl.so.0.9.8
No symbol table info available.                       
#16 0x080c8bac in tls_accept (c=0xb6db2ac0) at tls/tls_server.c:235
        ret = <value optimized out>                   
        err = <value optimized out>                   
        ssl = (SSL *) 0xb6db2ac0                      
        cert = <value optimized out>                  
#17 0x080cc2dd in tls_fix_read_conn (c=0xb6dbe2d0) at
tls/tls_server.c:869
        ret = 6                                       
#18 0x08091565 in tcp_read_req (con=0xb6dbe2d0, bytes_read=0xbfde9818) at
tcp_read.c:411
        bytes = <value optimized out>                 
        total_bytes = <value optimized out>
        resp = <value optimized out>
        size = <value optimized out>
        req = (struct tcp_req *) 0xb6dbe340
        c = <value optimized out>
#19 0x0809177f in handle_io (fm=0x8150da4, idx=-1) at tcp_read.c:772
        ret = <value optimized out>
        n = <value optimized out>
        con = (struct tcp_connection *) 0x3fb
        s = <value optimized out>
#20 0x0809319a in tcp_receive_loop (unix_sock=10) at io_wait.h:724
No locals.
#21 0x0808886c in tcp_init_children (chd_rank=0x80fb954) at
tcp_main.c:1750
        r = <value optimized out>
        sockfd = {7, 8}
        reader_fd = {9, 10}
        pid = 0
        si = <value optimized out>
#22 0x08067f90 in main_loop () at main.c:912
        i = -1230177008
        pid = <value optimized out>
        si = (struct socket_info *) 0xb6acfd10
        sockfd = {6, 7}
        chd_rank = 1
#23 0x080693a5 in main (argc=Cannot access memory at address 0x3fb
) at main.c:1399
        cfg_stream = (FILE *) 0x8240008
        c = <value optimized out>
        r = 0
        tmp = 0xbfdeadf9 ""
        tmp_len = <value optimized out>
        port = <value optimized out>
        proto = <value optimized out>
        ret = <value optimized out>
        seed = 3687080445
        rfd = <value optimized out>


----------------------------------------------------------------------

Comment By: Fabian Linzberger (lefant)
Date: 2007-07-30 14:30

Message:
Logged In: YES 
user_id=1345822
Originator: NO

this core dump was generated after running fine for at least around a
day. no heavy use (around 6 users), though.

if you want me to try anything else, please let me know...

$ gdb /usr/sbin/openser core
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db
library "/lib/tls/i686/cmov/libthread_db.so.1".


warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/tls/i686/cmov/libresolv.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libresolv.so.2
Reading symbols from /usr/lib/i686/cmov/libssl.so.0.9.8...done.
Loaded symbols for /usr/lib/i686/cmov/libssl.so.0.9.8
Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.8...done.
Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8
Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/openser/modules/postgres.so...Reading
symbols from /usr/lib/debug/usr/lib/openser/modules/postgres.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/postgres.so
Reading symbols from /usr/lib/libpq.so.4...done.
Loaded symbols for /usr/lib/libpq.so.4
Reading symbols from /usr/lib/libkrb5.so.3...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /lib/libcom_err.so.2...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /lib/tls/i686/cmov/libcrypt.so.1...done.
Loaded symbols for /lib/tls/i686/cmov/libcrypt.so.1
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...done.
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /usr/lib/libk5crypto.so.3...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /usr/lib/libkrb5support.so.0...done.
Loaded symbols for /usr/lib/libkrb5support.so.0
Reading symbols from /usr/lib/openser/modules/sl.so...Reading symbols from
/usr/lib/debug/usr/lib/openser/modules/sl.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/sl.so
Reading symbols from /usr/lib/openser/modules/tm.so...Reading symbols from
/usr/lib/debug/usr/lib/openser/modules/tm.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/tm.so
Reading symbols from /usr/lib/openser/modules/maxfwd.so...Reading symbols
from /usr/lib/debug/usr/lib/openser/modules/maxfwd.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/maxfwd.so
Reading symbols from /usr/lib/openser/modules/textops.so...Reading symbols
from /usr/lib/debug/usr/lib/openser/modules/textops.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/textops.so
Reading symbols from /usr/lib/openser/modules/tlsops.so...Reading symbols
from /usr/lib/debug/usr/lib/openser/modules/tlsops.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/tlsops.so
Reading symbols from /usr/lib/openser/modules/xlog.so...Reading symbols
from /usr/lib/debug/usr/lib/openser/modules/xlog.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/xlog.so
Reading symbols from /usr/lib/openser/modules/mi_fifo.so...Reading symbols
from /usr/lib/debug/usr/lib/openser/modules/mi_fifo.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/mi_fifo.so
Reading symbols from /usr/lib/openser/modules/rr.so...Reading symbols from
/usr/lib/debug/usr/lib/openser/modules/rr.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/rr.so
Reading symbols from /usr/lib/openser/modules/usrloc.so...Reading symbols
from /usr/lib/debug/usr/lib/openser/modules/usrloc.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/usrloc.so
Reading symbols from /usr/lib/openser/modules/registrar.so...Reading
symbols from /usr/lib/debug/usr/lib/openser/modules/registrar.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/registrar.so
Reading symbols from /usr/lib/openser/modules/auth.so...Reading symbols
from /usr/lib/debug/usr/lib/openser/modules/auth.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/auth.so
Reading symbols from /usr/lib/openser/modules/auth_db.so...Reading symbols
from /usr/lib/debug/usr/lib/openser/modules/auth_db.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/auth_db.so
Reading symbols from /usr/lib/openser/modules/alias_db.so...Reading
symbols from /usr/lib/debug/usr/lib/openser/modules/alias_db.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/alias_db.so
Reading symbols from /usr/lib/openser/modules/lcr.so...Reading symbols
from /usr/lib/debug/usr/lib/openser/modules/lcr.so...done.
done.
Loaded symbols for /usr/lib/openser/modules/lcr.so
Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_dns.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_dns.so.2
Core was generated by `/usr/sbin/openser -P /var/run/openser/openser.pid
-m 16 -u openser -g openser'.
Program terminated with signal 6, Aborted.
#0  0xb7faa410 in ?? ()
(gdb) bt full
#0  0xb7faa410 in ?? ()
No symbol table info available.
#1  0xbfa3301c in ?? ()
No symbol table info available.
#2  0x00000006 in ?? ()
No symbol table info available.
#3  0x00004ff1 in ?? ()
No symbol table info available.
#4  0xb7d0a811 in raise () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#5  0xb7d0bfb9 in abort () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#6  0x080a065f in fm_realloc (qm=0xb6af1000, p=0xb6d45e80, size=32) at
mem/f_malloc.c:426
	f = (struct fm_frag *) 0xb6d45e78
	pf = (struct fm_frag **) 0x6
	orig_size = 16
	n = (struct fm_frag *) 0x4ff1
	ptr = <value optimized out>
	hash = 12
#7  0x080c7150 in ser_realloc (ptr=0xb6d45e80, size=32) at
tls/../mem/shm_mem.h:212
No locals.
#8  0xb7e495a5 in CRYPTO_get_new_lockid () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#9  0xb7e49cb3 in CRYPTO_realloc () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#10 0xb7eb2255 in sk_insert () from /usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#11 0xb7eb22ca in sk_push () from /usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#12 0xb7ecb833 in d2i_X509_NAME_ENTRY () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#13 0xb7ed43b9 in ASN1_item_ex_d2i () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#14 0xb7ed4c64 in ASN1_item_ex_d2i () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#15 0xb7ed4f7e in ASN1_item_ex_d2i () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#16 0xb7ed4429 in ASN1_item_ex_d2i () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#17 0xb7ed4d55 in ASN1_item_ex_d2i () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#18 0xb7ed4f31 in ASN1_item_ex_d2i () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#19 0xb7ed4736 in ASN1_item_ex_d2i () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#20 0xb7ed50f2 in ASN1_item_d2i () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#21 0xb7ef00e3 in X509V3_EXT_d2i () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#22 0xb7ef01bd in X509V3_get_d2i () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#23 0xb7ee8fd7 in X509_get_ext_d2i () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#24 0xb7ef704b in X509_supported_extension () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#25 0xb7ef7258 in X509_check_issued () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#26 0xb7ee5cef in X509_STORE_CTX_free () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#27 0xb7ee6d38 in X509_verify_cert () from
/usr/lib/i686/cmov/libcrypto.so.0.9.8
No symbol table info available.
#28 0xb7f7a3f6 in ssl_verify_cert_chain () from
/usr/lib/i686/cmov/libssl.so.0.9.8
No symbol table info available.
#29 0xb7f63f9a in ssl3_get_server_certificate () from
/usr/lib/i686/cmov/libssl.so.0.9.8
No symbol table info available.
#30 0xb7f653e1 in ssl3_connect () from /usr/lib/i686/cmov/libssl.so.0.9.8
No symbol table info available.
#31 0xb7f7636a in SSL_connect () from /usr/lib/i686/cmov/libssl.so.0.9.8
No symbol table info available.
#32 0x080ca71c in tls_connect (c=0xb6db8d60) at tls/tls_server.c:321
	ret = <value optimized out>
	err = <value optimized out>
	ssl = (SSL *) 0xb6db8d60
	cert = <value optimized out>
#33 0x080cc470 in tls_blocking_write (c=0xb6e02e18, fd=9, 
    buf=0xb6ddb890 "NOTIFY sip:bernhard.vogl at mm-karton.com
SIP/2.0\r\nRecord-Route:
<sip:10.128.4.120:5061;transport=tls;lr=on;ftag=as0faf69e7>\r\nRecord-Route:
<sip:10.1.128.147:5061;transport=tls;r2=on;lr=on;ftag=as0faf69e"...,
len=912)
    at tls/tls_server.c:719
	written = 0
	n = <value optimized out>
	timeout = 30000
	pf = {fd = 9, events = 5, revents = 4}
#34 0x0808c00f in tcp_send (send_sock=0x8143c60, type=3, 
    buf=0xb6ddb890 "NOTIFY sip:bernhard.vogl at mm-karton.com
SIP/2.0\r\nRecord-Route:
<sip:10.128.4.120:5061;transport=tls;lr=on;ftag=as0faf69e7>\r\nRecord-Route:
<sip:10.1.128.147:5061;transport=tls;r2=on;lr=on;ftag=as0faf69e"...,
len=912, 
    to=0xb6db7444, id=0) at tcp_main.c:782
	c = (struct tcp_connection *) 0xb6e02e18
	tmp = <value optimized out>
	ip = {af = 2, len = 4, u = {addrl = {2810183946, 3215145456, 3084641487,
3215145468}, addr32 = {2810183946, 
      3215145456, 3084641487, 3215145468}, addr16 = {266, 42880, 14832,
49059, 58575, 47067, 14844, 49059}, 
    addr = "\n\001\200§ð9£¿ÏäÛ·ü9£¿"}}
	port = <value optimized out>
	fd = 9
	response = {-1226822120, 2}
---Type <return> to continue, or q <return> to quit---
	n = <value optimized out>
#35 0xb7b7256a in send_pr_buffer (rb=0xb6db7430, buf=0xb6ddb890, len=912)
at ../../forward.h:117
No locals.
#36 0xb7b754b1 in t_forward_nonack (t=0xb6db7208, p_msg=0xb7b93180,
proxy=0xb6ce15d0) at t_fwd.c:762
	len = 4294967295
	backup_dst = {s = 0x0, len = 0}
	branch_ret = <value optimized out>
	lowest_ret = -5
	current_uri = {s = 0x0, len = 0}
	added_branches = 2
	i = 1
	q = -1
	t_invite = <value optimized out>
	success_branch = 0
	try_new = <value optimized out>
	dst_uri = {s = 0x0, len = 0}
	bk_sock = (struct socket_info *) 0x0
	br_flags = 0
	bk_br_flags = 0
	idx = <value optimized out>
	path = {s = 0x0, len = 0}
#37 0xb7b7f3df in t_should_relay_response (Trans=0xb6db7208,
new_code=<value optimized out>, branch=0, 
    should_store=0xbfa33c24, should_relay=0xbfa33c28,
cancel_bitmap=0xbfa33c78, reply=0xffffffff) at t_reply.c:644
	branch_cnt = 1
	picked_code = <value optimized out>
	inv_through = <value optimized out>
#38 0xb7b7f463 in relay_reply (t=0xb6db7208, p_msg=0xffffffff, branch=0,
msg_status=408, cancel_bitmap=0xbfa33c78)
    at t_reply.c:1035
	relay = <value optimized out>
	save_clone = <value optimized out>
	buf = <value optimized out>
	res_len = 0
	relayed_code = 408
	relayed_msg = <value optimized out>
	bm = {to_tag_val = {s = 0xbfa33c6c "", len = 2}}
	totag_retr = <value optimized out>
	reply_status = 3083579652
	uas_rb = <value optimized out>
	cb_s = {s = 0x8150e20 "sip:bernhard.vogl at mm-karton.com", len =
-1079821256}
	text = {s = 0xbfa33c48 "", len = -1211402483}
#39 0xb7b81947 in fake_reply (t=0xb6db7208, branch=0, code=408) at
timer.c:262
	cancel_bitmap = 0
	do_cancel_branch = 0
	reply_status = <value optimized out>
#40 0xb7b82e9b in timer_routine (ticks=5294, attr=0x0) at timer.c:400
	tl = <value optimized out>
	tmp_tl = <value optimized out>
---Type <return> to continue, or q <return> to quit---
	id = 0
#41 0x08094417 in run_timer () at timer.c:225
	multiple = 10
	cnt = 10
	tv = {tv_sec = 0, tv_usec = 0}
#42 0x08067ccb in main_loop () at main.c:896
	i = <value optimized out>
	pid = <value optimized out>
	si = <value optimized out>
	sockfd = {6, 7}
	chd_rank = 0
#43 0x080693a5 in main (argc=Cannot access memory at address 0x4ff1
) at main.c:1399
	cfg_stream = (FILE *) 0x8240008
	c = <value optimized out>
	r = 0
	tmp = 0xbfa34dec ""
	tmp_len = <value optimized out>
	port = <value optimized out>
	proto = <value optimized out>
	ret = <value optimized out>
	seed = 4025074289
	rfd = <value optimized out>
(gdb)



----------------------------------------------------------------------

Comment By: Henning Westerholt (henningw)
Date: 2007-07-26 15:32

Message:
Logged In: YES 
user_id=337916
Originator: NO

As discussed on IRC:
This backtrace probably belongs to another coredump from a server startup,
probably caused from a missing version table.


----------------------------------------------------------------------

Comment By: Fabian Linzberger (lefant)
Date: 2007-07-26 15:04

Message:
Logged In: YES 
user_id=1345822
Originator: NO

find below the output of:

gdb /usr/sbin/openser core
(gdb) bt full

#0  0x080b8166 in table_version (dbf=0xb7b125e0, connection=0x814c7d0,
table=0xb7b12288) at db/db.c:189
        key = {0x80e3be5 "table_name"}
        col = {0x80e3bf0 "table_version"}
        val = {{type = DB_STR, nul = 0, val = {int_val = -1213133042,
double_val = 5.7666200130087309e-314, 
      time_val = -1213133042, string_val = 0xb7b10f0e "gw", str_val = {s =
0xb7b10f0e "gw", len = 2}, blob_val = {
        s = 0xb7b10f0e "gw", len = 2}, bitmap_val = 3081834254}}}
        res = (db_res_t *) 0x0
        ver = <value optimized out>
        ret = <value optimized out>
#1  0xb7b0d7bb in lcr_db_ver (db_url=0x8249870
"postgres://openserro:@localhost/openser", name=0xb7b12288) at
lcr_mod.c:376
        dbh = (db_con_t *) 0x814c7d0
        ver = <value optimized out>
#2  0xb7b0faad in mod_init () at lcr_mod.c:444
        ver = <value optimized out>
        par = <value optimized out>
#3  0x08086101 in init_mod (m=0x8146b10) at sr_module.c:463
No locals.
#4  0x08069385 in main (argc=1633906540, argv=0x31) at main.c:1387
        cfg_stream = (FILE *) 0x8240008
        c = <value optimized out>
        r = <value optimized out>
        tmp = 0xbfc84dfb ""
        tmp_len = <value optimized out>
        port = <value optimized out>
        proto = <value optimized out>
        ret = <value optimized out>
        seed = 580814137
        rfd = <value optimized out>

----------------------------------------------------------------------

Comment By: Klaus Darilion (klaus_darilion)
Date: 2007-07-18 15:28

Message:
Logged In: YES 
user_id=1318360
Originator: NO

please make a core dump (refer to openser wiki for docs)
and a backtrace.

----------------------------------------------------------------------

Comment By: Fabian Linzberger (lefant)
Date: 2007-07-18 15:15

Message:
Logged In: YES 
user_id=1345822
Originator: NO

after my initial bug report i have bumped the debug level to 9 and it
has since crashed again, find the log entries of the last seconds below:

Jul 18 16:24:01 voice-vie-registrar01 /usr/sbin/openser[22364]: pg_delete:
0x814c7e0 delete from location where expires<'2007-07-18 16:24:02 +0200'
AND expires!='1970-01-01 01:00:00 +0100'
Jul 18 16:24:01 voice-vie-registrar01 /usr/sbin/openser[22364]:
PG[submit_query]: 0x814c7e0 PQsendQuery(delete from location where
expires<'2007-07-18 16:24:02 +0200' AND expires!='1970-01-01 01:00:00
+0100')
Jul 18 16:24:01 voice-vie-registrar01 /usr/sbin/openser[22364]:
PG[new_result]: 0x8150db0=pkg_malloc(28) _res
Jul 18 16:24:01 voice-vie-registrar01 /usr/sbin/openser[22364]:
PG[get_result]: 0x814c7e0 PQresultStatus(PGRES_COMMAND_OK)
PQgetResult(0x825ecc8)
Jul 18 16:24:01 voice-vie-registrar01 /usr/sbin/openser[22364]:
PG[free_query]: PQclear(0x825ecc8) result set
Jul 18 16:24:01 voice-vie-registrar01 /usr/sbin/openser[22364]:
PG[free_rows]: Freeing 0 rows
Jul 18 16:24:01 voice-vie-registrar01 /usr/sbin/openser[22364]:
PG[free_result]: 0x8150db0=pkg_free() _res
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]:
tcpconn_new: new tcp connection to: 10.1.128.147
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]:
tcpconn_new: on port 44331, type 3
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]:
tls_tcpconn_init: Entered: Creating a whole new ssl connection
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]:
tls_tcpconn_init: Looking up socket based TLS server domain
[10.128.4.120:5061]
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]:
tls_find_server_domain: virtual TLS server domain not found, Using default
TLS server domain settings
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]:
tls_tcpconn_init: Found socket based TLS server domain [0.0.0.0:0]
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]:
tls_tcpconn_init: Setting in ACCEPT mode (server)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]:
tcpconn_add: hashes: 33, 76
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]:
handle_new_connect: new connection: 0xa7d62b30 18 flags: 0002
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]:
send2child: to tcp child 0 2(22365), 0xa7d62b30
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22365]: received
n=4 con=0xa7d62b30, fd=13
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22365]: DBG:
io_watch_add(0x80fe8c0, 13, 2, 0xa7d62b30), fd_no=1
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22365]:
tls_update_fd: New fd is 13
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22365]: BUG:
fm_realloc: could not find 0xa7d54758 in free list (hash=17)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: child
process 22365 exited by a signal 6
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: core was
not generated
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: INFO:
terminating due to SIGCHLD
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22373]: INFO:
signal 15 received
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22373]: Memory
status (pkg):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22373]: fm_status
(0x813f4c0):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22373]:  heap
size= 1048576
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22373]:  used=
101168, used+overhead=121688, free=926888
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22373]:  max used
(+overhead)= 121688
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22373]: dumping
free list:
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22373]: hash =   1
fragments no.:     1, unused:     0 		 bucket size:         8 -         8
(first         8)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22373]: hash =
2054 fragments no.:     1, unused:     0 		 bucket size:    524288 -  
1048576 (first    926944)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22373]: TOTAL:    
 2 free fragments = 926952 free bytes
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22373]:
-----------------------------
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]: INFO:
signal 15 received
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]: Memory
status (pkg):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]: fm_status
(0x813f4c0):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]:  heap
size= 1048576
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]:  used=
101168, used+overhead=122112, free=926464
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]:  max used
(+overhead)= 125200
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]: dumping
free list:
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]: hash =   1
fragments no.:     4, unused:     0 		 bucket size:         8 -         8
(first         8)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]: hash =   3
fragments no.:     7, unused:     0 		 bucket size:        24 -        24
(first        24)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]: hash =   4
fragments no.:    23, unused:     0 		 bucket size:        32 -        32
(first        32)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]: hash =   5
fragments no.:    14, unused:     0 		 bucket size:        40 -        40
(first        40)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]: hash =  15
fragments no.:     3, unused:     0 		 bucket size:       120 -       120
(first       120)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]: hash =  27
fragments no.:     2, unused:     0 		 bucket size:       216 -       216
(first       216)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]: hash = 100
fragments no.:     1, unused:     0 		 bucket size:       800 -       800
(first       800)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]: hash =
2054 fragments no.:     1, unused:     0 		 bucket size:    524288 -  
1048576 (first    923440)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]: TOTAL:    
55 free fragments = 926528 free bytes
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22371]:
-----------------------------
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: INFO:
signal 15 received
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: Memory
status (pkg):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: fm_status
(0x813f4c0):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]:  heap
size= 1048576
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]:  used=
101168, used+overhead=122208, free=926368
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]:  max used
(+overhead)= 125784
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: dumping
free list:
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: hash =   1
fragments no.:     4, unused:     0 		 bucket size:         8 -         8
(first         8)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: hash =   3
fragments no.:     7, unused:     0 		 bucket size:        24 -        24
(first        24)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: hash =   4
fragments no.:    24, unused:     0 		 bucket size:        32 -        32
(first        32)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: hash =   5
fragments no.:    20, unused:     0 		 bucket size:        40 -        40
(first        40)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: hash =   7
fragments no.:     2, unused:     0 		 bucket size:        56 -        56
(first        56)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: hash =  15
fragments no.:     4, unused:     0 		 bucket size:       120 -       120
(first       120)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: hash =  27
fragments no.:     2, unused:     0 		 bucket size:       216 -       216
(first       216)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: hash =  58
fragments no.:     1, unused:     0 		 bucket size:       464 -       464
(first       464)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: hash =  64
fragments no.:     1, unused:     0 		 bucket size:       512 -       512
(first       512)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: hash = 100
fragments no.:     1, unused:     0 		 bucket size:       800 -       800
(first       800)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: hash =
2054 fragments no.:     1, unused:     0 		 bucket size:    524288 -  
1048576 (first    921864)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]: TOTAL:    
67 free fragments = 926432 free bytes
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22369]:
-----------------------------
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: INFO:
signal 15 received
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: Memory
status (pkg):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: fm_status
(0x813f4c0):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]:  heap
size= 1048576
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]:  used=
49648, used+overhead=70176, free=978400
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]:  max used
(+overhead)= 72960
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: dumping
free list:
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: hash =   1
fragments no.:     3, unused:     0 		 bucket size:         8 -         8
(first         8)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: hash =   4
fragments no.:     3, unused:     0 		 bucket size:        32 -        32
(first        32)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: hash =   9
fragments no.:     5, unused:     0 		 bucket size:        72 -        72
(first        72)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: hash =  10
fragments no.:     1, unused:     0 		 bucket size:        80 -        80
(first        80)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: hash =  12
fragments no.:     4, unused:     0 		 bucket size:        96 -        96
(first        96)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: hash =  13
fragments no.:     3, unused:     0 		 bucket size:       104 -       104
(first       104)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: hash =  15
fragments no.:     2, unused:     0 		 bucket size:       120 -       120
(first       120)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: hash =  17
fragments no.:     3, unused:     0 		 bucket size:       136 -       136
(first       136)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: hash =  18
fragments no.:     1, unused:     0 		 bucket size:       144 -       144
(first       144)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: hash =  97
fragments no.:     1, unused:     0 		 bucket size:       776 -       776
(first       776)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: hash = 101
fragments no.:     1, unused:     0 		 bucket size:       808 -       808
(first       808)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: hash = 103
fragments no.:     1, unused:     0 		 bucket size:       824 -       824
(first       824)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: hash = 105
fragments no.:     1, unused:     0 		 bucket size:       840 -       840
(first       840)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: hash =
2054 fragments no.:     1, unused:     0 		 bucket size:    524288 -  
1048576 (first    973168)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]: TOTAL:    
30 free fragments = 978464 free bytes
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22364]:
-----------------------------
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22366]: INFO:
signal 15 received
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22366]: Memory
status (pkg):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22366]: fm_status
(0x813f4c0):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22366]:  heap
size= 1048576
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22366]:  used=
60752, used+overhead=81208, free=967368
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22366]:  max used
(+overhead)= 81208
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22366]: dumping
free list:
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22366]: hash =   1
fragments no.:     5, unused:     0 		 bucket size:         8 -         8
(first         8)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22366]: hash =
2054 fragments no.:     1, unused:     0 		 bucket size:    524288 -  
1048576 (first    967392)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22366]: TOTAL:    
 6 free fragments = 967432 free bytes
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22366]:
-----------------------------
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]: INFO:
signal 15 received
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]: Memory
status (pkg):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]: fm_status
(0x813f4c0):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]:  heap
size= 1048576
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]:  used=
92872, used+overhead=113344, free=935232
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]:  max used
(+overhead)= 113344
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]: dumping
free list:
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]: hash =   1
fragments no.:     3, unused:     0 		 bucket size:         8 -         8
(first         8)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]: hash =
2054 fragments no.:     1, unused:     0 		 bucket size:    524288 -  
1048576 (first    935272)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]: TOTAL:    
 4 free fragments = 935296 free bytes
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22375]:
-----------------------------
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
pool_remove: Connection still kept in the pool
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
PG[pg_close]: 0x814ca28=pkg_free() _con
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
pool_remove: Removing connection from the pool
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
PG[free_conn]: PQfinish(0x8254d20)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
PG[free_conn]: pkg_free(0x814ed08)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
PG[pg_close]: 0x814c998=pkg_free() _con
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: pg_delete:
0x814c7e0 delete from location where expires<'2007-07-18 16:24:05 +0200'
AND expires!='1970-01-01 01:00:00 +0100'
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
PG[submit_query]: 0x814c7e0 PQsendQuery(delete from location where
expires<'2007-07-18 16:24:05 +0200' AND expires!='1970-01-01 01:00:00
+0100')
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
PG[new_result]: 0x814c718=pkg_malloc(28) _res
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
PG[get_result]: 0x814c7e0 PQresultStatus(PGRES_COMMAND_OK)
PQgetResult(0x8256540)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
PG[free_query]: PQclear(0x8256540) result set
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
PG[free_rows]: Freeing 0 rows
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
PG[free_result]: 0x814c718=pkg_free() _res
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
pool_remove: Removing connection from the pool
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
PG[free_conn]: PQfinish(0x8254190)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
PG[free_conn]: pkg_free(0x8143788)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
PG[pg_close]: 0x814c7e0=pkg_free() _con
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
INFO:mi_fifo:mi_destroy: seems that fifo child is already dead!
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: XLOG:
destroy module ...
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: tlsops
module - shutting down...
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: DEBUG:
tm_shutdown : start
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: DEBUG:
unlink_timer_lists : emptying DELETE list
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: DEBUG:
tm_shutdown : emptying hash table
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: DEBUG:
tm_shutdown : releasing timers
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: DEBUG:
tm_shutdown : removing semaphores
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: DEBUG:
tm_shutdown : destroying tmcb lists
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: DEBUG:
tm_shutdown : done
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: tls_close:
Closing SSL connection
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
tls_update_fd: New fd is 19
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
tls_shutdown: First phase of 2-way handshake completed succesfuly
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
tls_tcpconn_clean: Entered
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: BUG:
io_watch_del: invalid fd 19, not in [0, 0) 
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: tls_close:
Closing SSL connection
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
tls_update_fd: New fd is 18
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
tls_shutdown: Shutdown successful
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
tls_tcpconn_clean: Entered
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
destroy_tls: Entered
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: Memory
status (pkg):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: fm_status
(0x813f4c0):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:  heap
size= 1048576
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:  used=
31808, used+overhead=52264, free=996312
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:  max used
(+overhead)= 63760
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: dumping
free list:
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   1
fragments no.:     8, unused:     0 		 bucket size:         8 -         8
(first         8)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   2
fragments no.:    32, unused:     0 		 bucket size:        16 -        16
(first        16)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   3
fragments no.:     3, unused:     0 		 bucket size:        24 -        24
(first        24)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   4
fragments no.:    10, unused:     0 		 bucket size:        32 -        32
(first        32)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   6
fragments no.:     2, unused:     0 		 bucket size:        48 -        48
(first        48)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   8
fragments no.:     1, unused:     0 		 bucket size:        64 -        64
(first        64)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   9
fragments no.:    33, unused:     0 		 bucket size:        72 -        72
(first        72)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  10
fragments no.:    18, unused:     0 		 bucket size:        80 -        80
(first        80)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  11
fragments no.:     2, unused:     0 		 bucket size:        88 -        88
(first        88)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash = 800
fragments no.:     1, unused:     0 		 bucket size:      6400 -      6400
(first      6400)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =
2054 fragments no.:     1, unused:     0 		 bucket size:    524288 -  
1048576 (first    984856)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: TOTAL:   
111 free fragments = 996376 free bytes
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
-----------------------------
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: Memory
status (shm):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: fm_status
(0xa7a47000):
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:  heap
size= 268435456
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:  used=
803784, used+overhead=869576, free=267565880
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:  max used
(+overhead)= 3321056
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: dumping
free list:
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   1
fragments no.:   354, unused:     0 		 bucket size:         8 -         8
(first         8)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   2
fragments no.:  2657, unused:     0 		 bucket size:        16 -        16
(first        16)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   3
fragments no.:   450, unused:     0 		 bucket size:        24 -        24
(first        24)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   4
fragments no.:   164, unused:     0 		 bucket size:        32 -        32
(first        32)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   5
fragments no.:    36, unused:     0 		 bucket size:        40 -        40
(first        40)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   6
fragments no.:    20, unused:     0 		 bucket size:        48 -        48
(first        48)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   7
fragments no.:    10, unused:     0 		 bucket size:        56 -        56
(first        56)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   8
fragments no.:    25, unused:     0 		 bucket size:        64 -        64
(first        64)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =   9
fragments no.:    11, unused:     0 		 bucket size:        72 -        72
(first        72)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  10
fragments no.:     7, unused:     0 		 bucket size:        80 -        80
(first        80)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  11
fragments no.:     7, unused:     0 		 bucket size:        88 -        88
(first        88)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  12
fragments no.:    28, unused:     0 		 bucket size:        96 -        96
(first        96)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  13
fragments no.:    13, unused:     0 		 bucket size:       104 -       104
(first       104)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  14
fragments no.:     1, unused:     0 		 bucket size:       112 -       112
(first       112)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  15
fragments no.:     4, unused:     0 		 bucket size:       120 -       120
(first       120)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  16
fragments no.:    26, unused:     0 		 bucket size:       128 -       128
(first       128)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  17
fragments no.:    41, unused:     0 		 bucket size:       136 -       136
(first       136)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  18
fragments no.:    27, unused:     0 		 bucket size:       144 -       144
(first       144)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  19
fragments no.:    10, unused:     0 		 bucket size:       152 -       152
(first       152)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  20
fragments no.:     1, unused:     0 		 bucket size:       160 -       160
(first       160)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  21
fragments no.:     2, unused:     0 		 bucket size:       168 -       168
(first       168)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  25
fragments no.:     9, unused:     0 		 bucket size:       200 -       200
(first       200)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  26
fragments no.:     1, unused:     0 		 bucket size:       208 -       208
(first       208)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  27
fragments no.:     4, unused:     0 		 bucket size:       216 -       216
(first       216)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  28
fragments no.:     2, unused:     0 		 bucket size:       224 -       224
(first       224)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  29
fragments no.:    10, unused:     0 		 bucket size:       232 -       232
(first       232)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  30
fragments no.:     5, unused:     0 		 bucket size:       240 -       240
(first       240)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  31
fragments no.:     3, unused:     0 		 bucket size:       248 -       248
(first       248)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  32
fragments no.:    28, unused:     0 		 bucket size:       256 -       256
(first       256)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  33
fragments no.:    41, unused:     0 		 bucket size:       264 -       264
(first       264)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  34
fragments no.:    17, unused:     0 		 bucket size:       272 -       272
(first       272)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  35
fragments no.:     1, unused:     0 		 bucket size:       280 -       280
(first       280)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  36
fragments no.:     1, unused:     0 		 bucket size:       288 -       288
(first       288)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  37
fragments no.:     1, unused:     0 		 bucket size:       296 -       296
(first       296)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  38
fragments no.:     3, unused:     0 		 bucket size:       304 -       304
(first       304)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  40
fragments no.:     4, unused:     0 		 bucket size:       320 -       320
(first       320)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  41
fragments no.:     4, unused:     0 		 bucket size:       328 -       328
(first       328)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  43
fragments no.:     2, unused:     0 		 bucket size:       344 -       344
(first       344)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  44
fragments no.:     1, unused:     0 		 bucket size:       352 -       352
(first       352)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  45
fragments no.:     1, unused:     0 		 bucket size:       360 -       360
(first       360)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  47
fragments no.:     1, unused:     0 		 bucket size:       376 -       376
(first       376)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  48
fragments no.:     2, unused:     0 		 bucket size:       384 -       384
(first       384)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  49
fragments no.:     1, unused:     0 		 bucket size:       392 -       392
(first       392)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  50
fragments no.:     3, unused:     0 		 bucket size:       400 -       400
(first       400)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  51
fragments no.:     1, unused:     0 		 bucket size:       408 -       408
(first       408)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  52
fragments no.:     2, unused:     0 		 bucket size:       416 -       416
(first       416)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  57
fragments no.:     1, unused:     0 		 bucket size:       456 -       456
(first       456)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  58
fragments no.:     2, unused:     0 		 bucket size:       464 -       464
(first       464)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  59
fragments no.:     2, unused:     0 		 bucket size:       472 -       472
(first       472)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  64
fragments no.:     6, unused:     0 		 bucket size:       512 -       512
(first       512)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  65
fragments no.:     3, unused:     0 		 bucket size:       520 -       520
(first       520)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =  94
fragments no.:     1, unused:     0 		 bucket size:       752 -       752
(first       752)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash = 101
fragments no.:     1, unused:     0 		 bucket size:       808 -       808
(first       808)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash = 113
fragments no.:     6, unused:     0 		 bucket size:       904 -       904
(first       904)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash = 126
fragments no.:     1, unused:     0 		 bucket size:      1008 -      1008
(first      1008)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash = 128
fragments no.:     1, unused:     0 		 bucket size:      1024 -      1024
(first      1024)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash = 144
fragments no.:     1, unused:     0 		 bucket size:      1152 -      1152
(first      1152)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash = 170
fragments no.:     1, unused:     0 		 bucket size:      1360 -      1360
(first      1360)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash = 171
fragments no.:     1, unused:     0 		 bucket size:      1368 -      1368
(first      1368)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash = 172
fragments no.:     1, unused:     0 		 bucket size:      1376 -      1376
(first      1376)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash = 257
fragments no.:     1, unused:     0 		 bucket size:      2056 -      2056
(first      2056)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash = 317
fragments no.:     1, unused:     0 		 bucket size:      2536 -      2536
(first      2536)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash = 446
fragments no.:     1, unused:     0 		 bucket size:      3568 -      3568
(first      3568)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash = 512
fragments no.:     7, unused:     0 		 bucket size:      4096 -      4096
(first      4096)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash = 589
fragments no.:     1, unused:     0 		 bucket size:      4712 -      4712
(first      4712)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =
2049 fragments no.:    11, unused:     0 		 bucket size:     16384 -    
32768 (first     18440)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =
2050 fragments no.:     5, unused:     0 		 bucket size:     32768 -    
65536 (first     34824)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =
2051 fragments no.:     5, unused:     0 		 bucket size:     65536 -   
131072 (first     65808)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =
2055 fragments no.:     1, unused:     0 		 bucket size:   1048576 -  
2097152 (first   1572864)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: hash =
2062 fragments no.:     1, unused:     0 		 bucket size: 134217728 -
268435456 (first 265091744)
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: TOTAL:  
4104 free fragments = 267565944 free bytes
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
-----------------------------
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
shm_mem_destroy
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]: destroying
the shared memory lock
Jul 18 16:24:04 voice-vie-registrar01 /usr/sbin/openser[22359]:
terminating due to SIGCHLD


----------------------------------------------------------------------

Comment By: Fabian Linzberger (lefant)
Date: 2007-07-18 08:31

Message:
Logged In: YES 
user_id=1345822
Originator: NO

(after managing to recover my sf credentials and logging in) this is
actually my bug report ;)

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2007-07-18 08:24

Message:
Logged In: NO 

still getting used to the sf bug tracker, find my openser.cfg below...
(ips XXXXXXed out)


### general daemon specific stuff
########################################

debug=3
log_facility=LOG_LOCAL0

children=4

alias=mm-karton.com


# tls config
disable_tls = 0
listen = tls:voice-vie-registrar01.vie.mm-karton.com:5061
tls_verify_server = 1
tls_verify_client = 0
tls_require_client_certificate = 0
tls_method = TLSv1
tls_certificate =
"/etc/openser/voice-vie-registrar01.vie.mm-karton.com_crt.pem"
tls_private_key =
"/etc/openser/voice-vie-registrar01.vie.mm-karton.com_key.pem"
tls_ca_list = "/etc/ssl/certs/mmagca_crt.pem"



### module config
########################################

mpath="/usr/lib/openser/modules/"

loadmodule "postgres.so"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "maxfwd.so"
loadmodule "textops.so"
loadmodule "tlsops.so"

loadmodule "xlog.so"

loadmodule "mi_fifo.so"
modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")

loadmodule "rr.so"
modparam("rr", "enable_full_lr", 1)

loadmodule "usrloc.so"
modparam("usrloc", "db_url", "postgres://openser:@localhost/openserloc")
modparam("usrloc", "timer_interval", 120)
modparam("usrloc", "db_mode",   3)

loadmodule "registrar.so"
modparam("registrar", "path_mode", 0)
modparam("registrar", "use_path", 1)
modparam("registrar", "append_branches", 1)

loadmodule "auth.so"
modparam("auth", "realm_prefix", "sip.")

loadmodule "auth_db.so"
modparam("auth_db", "db_url", "postgres://openserro:@localhost/openser")
modparam("auth_db", "use_domain", 1)
# currently passwords stored in plain text in database...
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")

loadmodule "alias_db.so"
modparam("alias_db", "db_url", "postgres://openserro:@localhost/openser")
modparam("alias_db", "use_domain", 1)
#modparam("alias_db", "domain_prefix", "sip.")

loadmodule "lcr.so"
modparam("lcr", "db_url", "postgres://openserro:@localhost/openser")
modparam("lcr", "gw_uri_avp", "1400")
modparam("lcr", "ruri_user_avp", "1402")
modparam("lcr", "contact_avp", "1401")
modparam("lcr", "fr_inv_timer_avp", "s:fr_inv_timer_avp")
modparam("lcr", "fr_inv_timer", 90)
modparam("lcr", "fr_inv_timer_next", 30)
modparam("lcr", "rpid_avp", "s:rpid")


#loadmodule "textops.so"



### routing logic
########################################

route{

	# initial sanity checks -- messages with
	# max_forwards==0, or excessively long requests
	if (!mf_process_maxfwd_header("10")) {
		sl_send_reply("483","Too Many Hops");
		exit;
	};

	# if (msg:len >=  4096 ) {
	#	sl_send_reply("513", "Message too big");
	#	exit;
	#};

   if (is_method("REGISTER") || is_method("SUBSCRIBE")) {
   } else {
      xlog("L_INFO", "BEFORE routing: [$rm] for [$ru] from [$fu] to
[$tu]");
   };

   # we record-route all messages -- to make sure that
	# subsequent messages will go through our proxy; that's
	# particularly good if upstream and downstream entities
	# use different transport protocol
	if (!method=="REGISTER")
	   record_route();

	# subsequent messages withing a dialog should take the
	# path determined by record-routing
	if (loose_route()) {
		# mark routing logic in request
		append_hf("P-hint: rr-enforced\r\n"); 
		route(1);
	};


   # FIXME relaying to peer master
   # FIXME no ip addresses allowed!
   #if (is_peer_verified()) {
   if (((src_ip=="XXXXXXXXXXX") || (src_ip=="XXXXXXXXXXXX")) ||
(src_ip=="XXXXXXXXXXX")) {
      if (is_method("REGISTER")) {
         route(2);
#      } else if (is_method("SUBSCRIBE")) {
#         route(1);
      } else if ((is_method("INVITE")) || (is_method("SUBSCRIBE"))) {
         xlog("L_INFO", "from leaf INVITE [$ru] from [$fu] to [$tu]:
looking up location");
         if (lookup("location")) {
            route(3);
   		} else if(uri =~ "^sip:[0-9]+@") {
		    	# only route numeric users to PSTN
			   if(!load_gws())
			   {
					xlog("L_ERR", "Error loading PSTN gateways - M=$rm RURI=$ru F=$fu
T=$tu IP=$si ID=$ci\n");
				   sl_send_reply("503", "PSTN Termination Currently Unavailable");
				   exit;
   			}
	   		if(!next_gw())
		   	{
			   	xlog("L_ERR", "No PSTN gateways available - M=$rm RURI=$ru F=$fu
T=$tu IP=$si ID=$ci\n");
				   sl_send_reply("503", "PSTN Termination Currently Unavailable");
				   exit;
			   }
   			t_on_failure("1");
	   		route(1);
		   } else {
            route(1);
         };
      } else {
         route(1);
      };
   } else {
      xlog("L_INFO", "UNAUTHORIZED COMMUNICATION DETECTED!!! [$rm] for
[$ru] dest [$du] from [$fu] to [$tu] cseq [$cs] network src [$si] [$sp]
proto [$oP]");
   }

   exit;
}


route[1] {
	# send it out now; use stateful forwarding as it works reliably
	# even for UDP2TCP
	if (!t_relay()) {
		sl_reply_error();
	};
	exit;
}


route[2] {
   #if (!www_authorize("mm-karton.com", "subscriber")) {
   #   www_challenge("mm-karton.com", "0");
   #   exit;
   #};
   xlog("L_INFO", "from leaf REGISTER [$ru] from [$fu] to [$tu] saving");
   save("location");

   # FIXME: send to second local master server (doesn't exist yet)
   #if (!src_ip=="10.1.128.167") {
   #  
t_replicate("sip:voice-vie-ast03.vie.mm-karton.com:5061;transport=tls");
   #   t_release();
   #};
   exit;
}


# relay invite to branch office
route[3] {
   t_on_failure("3");
   route(1);
}
failure_route[3] {
   # fallback routing
   xlog("L_INFO", "from snoms INVITE [$ru] from [$fu] to [$tu]: relay to
master failed, fallback!");

   # fallback alias lookup
   alias_db_lookup("fbaliases");
   xlog("L_INFO", "from snoms INVITE [$ru] from [$fu] to [$tu]: relay to
master fallback, after alias lookup");

   route(1);
}


# Request route 'base-filter-failover'
route[4]
{
	if(!t_check_status("408|500|503"))
	{
		xlog("L_INFO", "No failover routing needed for this response code -
M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
		exit;
	}
}

failure_route[1]
{
	xlog("L_INFO", "Failure route for PSTN entered - M=$rm RURI=$ru F=$fu
T=$tu IP=$si ID=$ci\n");
	route(18);
	if(!next_gw())
	{
		xlog("L_ERR", "Failed to select next PSTN gateway - M=$rm RURI=$ru F=$fu
T=$tu IP=$si ID=$ci\n");
		exit;
	}
	t_on_failure("1");
	route(1);
}


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1755943&group_id=139143



More information about the Devel mailing list