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

SourceForge.net noreply at sourceforge.net
Thu Jul 26 17:32:43 CEST 2007


Bugs item #1755943, was opened at 2007-07-18 08:18
Message generated for change (Comment added) made by henningw
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: Nobody/Anonymous (nobody)
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: 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