sip-router
16 years agoThere is no radius_acc and radius_auth modules anymore.
Maxim Sobolev [Wed, 21 Jul 2004 13:24:45 +0000 (13:24 +0000)]
There is no radius_acc and radius_auth modules anymore.

16 years agoRecord User-Agent in the location database.
Maxim Sobolev [Wed, 21 Jul 2004 07:57:21 +0000 (07:57 +0000)]
Record User-Agent in the location database.

16 years ago - coding style draft
Andrei Pelinescu-Onciul [Mon, 19 Jul 2004 13:54:41 +0000 (13:54 +0000)]
 - coding style draft

16 years ago- malloc changes: fragment avoidance, bookkeeping, hooks for future
Andrei Pelinescu-Onciul [Mon, 19 Jul 2004 13:45:50 +0000 (13:45 +0000)]
- malloc changes: fragment avoidance, bookkeeping, hooks for future
 full mem. defragmenter

16 years ago- tm unixsock callback bug fixed (the callback can be called multiple times before_malloc_changes
Andrei Pelinescu-Onciul [Sat, 17 Jul 2004 19:11:45 +0000 (19:11 +0000)]
- tm unixsock callback bug fixed (the callback can be called multiple times
 for retrans.)

16 years ago - forward ported all the compile/warning fixes from 0.8.14
Andrei Pelinescu-Onciul [Sat, 17 Jul 2004 19:02:18 +0000 (19:02 +0000)]
 - forward ported all the compile/warning fixes from 0.8.14

16 years agoFix ipv6 compilation on FreeBSD and probably other systems with Kame-derived
Maxim Sobolev [Wed, 7 Jul 2004 14:56:49 +0000 (14:56 +0000)]
Fix ipv6 compilation on FreeBSD and probably other systems with Kame-derived
IPv6 stacks: IN6_IS_ADDR_MULTICAST() doesn't automagically casts its argument
to struct in6_addr * there.

16 years ago- cvs commit rules first draft. Please comment (anything including better formatting...
Andrei Pelinescu-Onciul [Wed, 7 Jul 2004 11:12:53 +0000 (11:12 +0000)]
- cvs commit rules first draft. Please comment (anything including better formatting :-))

16 years ago- new definition of table silo -- two new columns username and domain
Daniel-Constantin Mierla [Mon, 5 Jul 2004 17:36:47 +0000 (17:36 +0000)]
- new definition of table silo -- two new columns username and domain
- version of table silo incremented to 3

16 years ago- explicit multidomain support (recipient's ID stored now in (username,domain))
Daniel-Constantin Mierla [Mon, 5 Jul 2004 17:35:31 +0000 (17:35 +0000)]
- explicit multidomain support (recipient's ID stored now in (username,domain))
- r_uri columns kept for compatibility with old version of msilo but is not filled by this version and will be removed in future
- the version of silo table should be 3 -- the module checks it at start up
- NEWS updated

16 years agoported from stable:
Andrei Pelinescu-Onciul [Mon, 5 Jul 2004 15:19:14 +0000 (15:19 +0000)]
ported from stable:
- drop messages with 0 src port immediately$
- error message cleanups for udp checksum error (EAGAIN) and tcp$
    "dead children"$
- detect ips between quotes in src_ip or dst_ip$

16 years ago - lots of parse_header calls fixed + some warnings
Andrei Pelinescu-Onciul [Fri, 2 Jul 2004 16:38:58 +0000 (16:38 +0000)]
 - lots of parse_header calls fixed + some warnings

16 years agongrep path no longer neede,
Jiri Kuthan [Fri, 2 Jul 2004 02:13:05 +0000 (02:13 +0000)]
ngrep path no longer neede,
the ngrep: V1.42, $Revision: 1.46 $ include the switch "-W
byline" does line-by-line printing,
notification courtesy of Ezequiel Colombo

16 years ago- tm free lumps fix, thanks to Richard Fogel <rfogel@borderware.com>
Andrei Pelinescu-Onciul [Thu, 1 Jul 2004 15:33:58 +0000 (15:33 +0000)]
- tm free lumps fix, thanks to Richard Fogel <rfogel@borderware.com>

16 years ago- flush & switch to unbuffered std. file descriptors before forking
Andrei Pelinescu-Onciul [Mon, 28 Jun 2004 15:39:35 +0000 (15:39 +0000)]
- flush & switch to unbuffered std. file descriptors before forking
 (to avoid having a buffer flush after fork => getting the same message
  multiple times)

16 years ago- usrloc load location bad db records fix
Andrei Pelinescu-Onciul [Thu, 24 Jun 2004 13:24:44 +0000 (13:24 +0000)]
- usrloc load location bad db records fix

16 years ago- added fifo_server.php, a fifo net relay, on behalf of Juha Heinanen
Andrei Pelinescu-Onciul [Thu, 17 Jun 2004 10:45:56 +0000 (10:45 +0000)]
- added fifo_server.php, a fifo net relay, on behalf of Juha Heinanen
  With fifo_server.php you can run ser on one machine and serweb (or other
  fifo dependent stuff) on another one

16 years agoTests for return value of db.use_table functions added
Jan Janak [Wed, 16 Jun 2004 14:20:12 +0000 (14:20 +0000)]
Tests for return value of db.use_table functions added

16 years ago - changed db api: now several db modules can be used simultaneously;
Andrei Pelinescu-Onciul [Tue, 8 Jun 2004 10:55:29 +0000 (10:55 +0000)]
 - changed db api: now several db modules can be used simultaneously;
    all the modules were updated to use the new api
 - small cleaups, like using static db related variables in modules
    (were it was possible)
 - changed version no.

16 years ago -minor todo update
Andrei Pelinescu-Onciul [Tue, 8 Jun 2004 10:47:24 +0000 (10:47 +0000)]
 -minor todo update

16 years agoadditional logs which should help to explain why we sometimes see before_db_api_changes
Jiri Kuthan [Mon, 31 May 2004 17:12:39 +0000 (17:12 +0000)]
additional logs which should help to explain why we sometimes see
errors like these:
May 31 14:05:49 proxy00 /usr/local/sbin/ser[9043]: Warning: run_failure_handlers: no UAC support

16 years ago- when replicating, no reply is allowed to propagate upstream -> error replies
Bogdan-Andrei Iancu [Wed, 12 May 2004 09:41:06 +0000 (09:41 +0000)]
- when replicating, no reply is allowed to propagate upstream -> error replies
  are no more generated when fwd failes for replicated requests (porting from
  stable)

16 years ago- fixed comment
Andrei Pelinescu-Onciul [Tue, 11 May 2004 07:48:36 +0000 (07:48 +0000)]
- fixed comment

16 years agofix: stateless confused with stateful, thanks to John-Erik for having pointed it out
Jiri Kuthan [Fri, 7 May 2004 01:01:40 +0000 (01:01 +0000)]
fix: stateless confused with stateful, thanks to John-Erik for having pointed it out

16 years ago- added declaration of get_hdr_field()
Daniel-Constantin Mierla [Mon, 3 May 2004 16:35:14 +0000 (16:35 +0000)]
- added declaration of get_hdr_field()

16 years ago- added mcast_ttl
Andrei Pelinescu-Onciul [Mon, 3 May 2004 12:18:10 +0000 (12:18 +0000)]
- added mcast_ttl

16 years ago- added Jan's multicast support patch
Andrei Pelinescu-Onciul [Mon, 3 May 2004 11:32:19 +0000 (11:32 +0000)]
- added Jan's multicast support  patch

16 years ago- write the pgid file only if we have our own pgid
Andrei Pelinescu-Onciul [Mon, 3 May 2004 11:21:52 +0000 (11:21 +0000)]
- write the pgid file only if we have our own pgid

16 years ago- applied pgid patch from Jan (save pgdid in the file specified by -G)
Andrei Pelinescu-Onciul [Mon, 3 May 2004 10:29:57 +0000 (10:29 +0000)]
- applied pgid patch from Jan (save pgdid in the file specified by -G)
- inc ver no

16 years ago- exec_pre_cb called after basic sanity checks (at least 1 via present)
Andrei Pelinescu-Onciul [Fri, 30 Apr 2004 11:57:27 +0000 (11:57 +0000)]
- exec_pre_cb called after basic sanity checks (at least 1 via present)

16 years agoadded moving privileges from subsciber to admin_privileges when reinstal
Karel Kozlik [Fri, 30 Apr 2004 11:03:54 +0000 (11:03 +0000)]
added moving privileges from subsciber to admin_privileges when reinstal

16 years ago- new config variables:
Andrei Pelinescu-Onciul [Thu, 29 Apr 2004 15:39:39 +0000 (15:39 +0000)]
- new config variables:
   sock_mode = <permissions> (e.g. sock_mode=0600:  default value = 0660)
       ser unix sockets and fifo will be created with this permissions
       (old name fifo_mode is still supported, but deprecated)
  sock_user = username|"uid"
  sock_group = groupname|"gid"
      change the owner and/or group of the ser unix sockets or fifo
      Short example config snippet:
           sock_mode=0600        # ser socket/fifo mode
           sock_user="www-data"  # ser socket/fifo owner
           sock_group=nogroup
           user=nobody       # ser user (ser will suid to it)
- typo fixed in socket_info (thanks to Jan)

16 years agobackported fixed for handling failed mallocs
Jiri Kuthan [Wed, 28 Apr 2004 18:49:36 +0000 (18:49 +0000)]
backported fixed for handling failed mallocs

16 years agoq2double and double2q added
Jan Janak [Tue, 27 Apr 2004 14:52:57 +0000 (14:52 +0000)]
q2double and double2q added

16 years agoprint_q -> q2str
Jan Janak [Tue, 27 Apr 2004 14:52:33 +0000 (14:52 +0000)]
print_q -> q2str

16 years agostr2float removed -- not necessary anymore
Jan Janak [Tue, 27 Apr 2004 14:51:13 +0000 (14:51 +0000)]
str2float removed -- not necessary anymore

16 years agoprint_q -> q2str and it's interface aligned to other similar functions.
Jan Janak [Mon, 26 Apr 2004 19:19:28 +0000 (19:19 +0000)]
print_q -> q2str and it's interface aligned to other similar functions.

16 years agostr2q implemented
Jan Janak [Mon, 26 Apr 2004 17:11:55 +0000 (17:11 +0000)]
str2q implemented
append_branch("sip:a@iptel.org", "0.23") implemented
append_branch("sip:a@iptel.org", 230) removed (it was not very intuitive)

16 years agoFixed ruri q printing bug reported by Juha.
Jan Janak [Mon, 26 Apr 2004 16:53:15 +0000 (16:53 +0000)]
Fixed ruri q printing bug reported by Juha.

16 years agoColumn version of table version renamed to table_version to avoid
Jan Janak [Sun, 25 Apr 2004 21:00:29 +0000 (21:00 +0000)]
Column version of table version renamed to table_version to avoid
conflicts, reported by axelm@nic.at

16 years agoFixed bug reported by Axel.Boeger@freenet-ag.de -- Missing ; in To of
Jan Janak [Sun, 25 Apr 2004 20:37:48 +0000 (20:37 +0000)]
Fixed bug reported by Axel.Boeger@freenet-ag.de -- Missing ; in To of
NOTIFY when another parameter follows tag parameter in From in SUBSCRIBE.

16 years agoA regular expression matching user does not match username anymore
Jan Janak [Sun, 25 Apr 2004 19:48:06 +0000 (19:48 +0000)]
A regular expression matching user does not match username anymore
(caused wrong expansion of username to usernamename)

16 years agoAdded a note on make parameters
Jan Janak [Sun, 25 Apr 2004 19:46:31 +0000 (19:46 +0000)]
Added a note on make parameters
Spellchecked

16 years agoqvalue related functions and types.
Jan Janak [Sun, 25 Apr 2004 15:29:31 +0000 (15:29 +0000)]
qvalue related functions and types.

16 years agoAdded the possibility to set priorities of URIs in the destination set.
Jan Janak [Sun, 25 Apr 2004 15:13:24 +0000 (15:13 +0000)]
Added the possibility to set priorities of URIs in the destination set.

16 years agoThe list of branches is turned into the list of contacts and appended to
Jan Janak [Fri, 23 Apr 2004 15:17:30 +0000 (15:17 +0000)]
The list of branches is turned into the list of contacts and appended to
3xx replies.

16 years agoTTL parameter added
Jan Janak [Wed, 14 Apr 2004 19:08:55 +0000 (19:08 +0000)]
TTL parameter added

16 years agofixed security bug related to generating phplib_id of admin
Karel Kozlik [Tue, 13 Apr 2004 19:14:32 +0000 (19:14 +0000)]
fixed security bug related to generating phplib_id of admin
phplib_id should be difficulty to guess

16 years agoflag of admin permissions moved from table subscriber to table admin privileges
Karel Kozlik [Tue, 13 Apr 2004 19:11:08 +0000 (19:11 +0000)]
flag of admin permissions moved from table subscriber to table admin privileges
column perms in table subscriber is not further needed

16 years agoadded 'pa pres' and 'pa loc' commands to ser_ctl
Jamey Hicks [Thu, 1 Apr 2004 17:52:17 +0000 (17:52 +0000)]
added 'pa pres' and 'pa loc' commands to ser_ctl

16 years ago- bug fixed in request() - after linking the RURI in the new dialog,
Bogdan-Andrei Iancu [Thu, 1 Apr 2004 17:06:07 +0000 (17:06 +0000)]
- bug fixed in request() - after linking the RURI in the new dialog,
  calculate_hooks must be called to update next_hop

16 years ago - updated RE bugs
Andrei Pelinescu-Onciul [Thu, 1 Apr 2004 13:40:43 +0000 (13:40 +0000)]
 - updated RE bugs
 - added a workarround for [^something] matches new line, courtesy of Bogdan

16 years ago- changed a warning into a dbg
Andrei Pelinescu-Onciul [Wed, 31 Mar 2004 11:01:20 +0000 (11:01 +0000)]
- changed a warning into a dbg

16 years ago - fixed via->alias not translated bug in tm/sip_msg.c via_body_cloner (not criticial)
Andrei Pelinescu-Onciul [Wed, 31 Mar 2004 09:29:55 +0000 (09:29 +0000)]
 - fixed via->alias not translated bug in tm/sip_msg.c via_body_cloner (not criticial)
 - fixed parse_via, rport set instead of i  (critical, could cause core dumps
  in some configuration involving tcp and  would also open an extra tcp
  connection for replies, if stateless mode is used)
 - Makefile*: version number increase and excluded cpl-c and pa from
   compilation (they depend on libxml2, use make include="cpl-c pa" if you want
   to compile them)

16 years agoMore log message fixes.
Jan Janak [Tue, 30 Mar 2004 16:20:04 +0000 (16:20 +0000)]
More log message fixes.

16 years agoFixed missleading name of function in log message.
Jan Janak [Tue, 30 Mar 2004 15:18:03 +0000 (15:18 +0000)]
Fixed missleading name of function in log message.

16 years ago- news updated with the changes from the last commit
Andrei Pelinescu-Onciul [Tue, 30 Mar 2004 09:51:04 +0000 (09:51 +0000)]
- news updated with the changes from the last commit

16 years ago- core dump limits are by default set to unlimited or a high enough
Andrei Pelinescu-Onciul [Tue, 30 Mar 2004 09:44:19 +0000 (09:44 +0000)]
- core dump limits are by default set to unlimited or a high enough
  value (to disable set disable_core_dump=yes  in ser.cfg).
- open file limits set-able in ser.cfg, use open_files_limit=no
 to make ser automatically try to increase this limit (if no<current limit
 nothing will be done). You must start ser as root to be able to increase
  its open file limit past the hardlimit (default 1024 on most systems).
- move process table init. before module init. (sanity)

16 years ago .- missing copyrights
Andrei Pelinescu-Onciul [Wed, 24 Mar 2004 14:53:04 +0000 (14:53 +0000)]
 .- missing copyrights

16 years ago- more cleanup
Andrei Pelinescu-Onciul [Wed, 24 Mar 2004 11:08:14 +0000 (11:08 +0000)]
- more cleanup

16 years ago - cleanup
Andrei Pelinescu-Onciul [Wed, 24 Mar 2004 10:59:29 +0000 (10:59 +0000)]
 - cleanup

16 years ago- condition fixup
Bogdan-Andrei Iancu [Tue, 16 Mar 2004 19:49:28 +0000 (19:49 +0000)]
- condition fixup

16 years agoRemoved the part about replacing uri==myself
Jan Janak [Tue, 16 Mar 2004 17:00:57 +0000 (17:00 +0000)]
Removed the part about replacing uri==myself

16 years ago - looks like ifndef/define was missing
Bogdan-Andrei Iancu [Tue, 16 Mar 2004 14:47:09 +0000 (14:47 +0000)]
 - looks like ifndef/define was missing

16 years agosplit of t_relay to t_relay_udp/t_relay_tcp documented
Jiri Kuthan [Tue, 16 Mar 2004 13:37:05 +0000 (13:37 +0000)]
split of t_relay to t_relay_udp/t_relay_tcp documented

16 years ago- bugfix: unix_server_loop: buffer.s was never reset
Andrei Pelinescu-Onciul [Mon, 15 Mar 2004 15:50:42 +0000 (15:50 +0000)]
- bugfix: unix_server_loop: buffer.s was never reset

16 years agocmd_list initialized to zero manually, just to be sure
Jan Janak [Mon, 15 Mar 2004 15:42:16 +0000 (15:42 +0000)]
cmd_list initialized to zero manually, just to be sure

16 years ago - va_end() on error
Andrei Pelinescu-Onciul [Mon, 15 Mar 2004 15:29:58 +0000 (15:29 +0000)]
 - va_end() on error
 - ret==-1 changed into ret < 0

16 years agoDialog-wise ACKs for local transactions.
Jan Janak [Sun, 14 Mar 2004 17:54:38 +0000 (17:54 +0000)]
Dialog-wise ACKs for local transactions.

16 years ago - modparam types switched to flags; USE_FUNC_PARAM flag added for param
Bogdan-Andrei Iancu [Fri, 12 Mar 2004 14:15:22 +0000 (14:15 +0000)]
 - modparam types switched to flags; USE_FUNC_PARAM flag added for param
   type -  instead of copying the param value, a func is called to process it

16 years agoAdded index to table acc by column sip_callid. It's needful to selecting missed calls...
Karel Kozlik [Wed, 10 Mar 2004 21:00:33 +0000 (21:00 +0000)]
Added index to table acc by column sip_callid. It's needful to selecting missed calls in serweb.

16 years agoadded tables for user preferences, multidomain serweb ACL control, speed-dial and...
Karel Kozlik [Wed, 10 Mar 2004 11:58:37 +0000 (11:58 +0000)]
added tables for user preferences, multidomain serweb ACL control, speed-dial and caller screening

16 years agoProper function names in error messages
Jan Janak [Tue, 9 Mar 2004 19:36:15 +0000 (19:36 +0000)]
Proper function names in error messages

16 years agoUnix domain socket version of serctl
Jan Janak [Tue, 9 Mar 2004 18:32:58 +0000 (18:32 +0000)]
Unix domain socket version of serctl

16 years ago- open_fifo_server split into init_fifo_server and start_fifo_server
Andrei Pelinescu-Onciul [Tue, 9 Mar 2004 15:18:10 +0000 (15:18 +0000)]
- open_fifo_server split into init_fifo_server and start_fifo_server
- init_fifo_server called before do_suid
- start_fifo_server called after do_suid and after all sockets are opened
 (to inherit them)
- fixed init order fro non_fork_mode (this mode is only for debugging,
  shouldn't need fifo or unix server, but if it needs them try to init them
  before do_suid and start them after)
- increased version no.

16 years agoIf SER compiled without USE_TCP don't try to lookup for a function
Maxim Sobolev [Tue, 9 Mar 2004 14:45:12 +0000 (14:45 +0000)]
If SER compiled without USE_TCP don't try to lookup for a function
t_relay_to_tcp. This fixes acc module loading when SER compiled without
USE_TCP.

16 years ago.cvs ignore added
Jan Janak [Tue, 9 Mar 2004 12:53:13 +0000 (12:53 +0000)]
.cvs ignore added

16 years agoserunix added.
Jan Janak [Tue, 9 Mar 2004 12:51:14 +0000 (12:51 +0000)]
serunix added.

16 years agoUnix domain socket wrapper
Jan Janak [Tue, 9 Mar 2004 12:26:42 +0000 (12:26 +0000)]
Unix domain socket wrapper

16 years ago- su_getport type changed from short to unsigned short
Andrei Pelinescu-Onciul [Tue, 9 Mar 2004 11:26:06 +0000 (11:26 +0000)]
- su_getport type changed from short to unsigned short

16 years agoInitialization if unix domain socket split
Jan Janak [Tue, 9 Mar 2004 11:10:59 +0000 (11:10 +0000)]
Initialization if unix domain socket split

16 years agoInitialization of the unixsock server moved before forking of UDP
Jan Janak [Mon, 8 Mar 2004 20:51:57 +0000 (20:51 +0000)]
Initialization of the unixsock server moved before forking of UDP
listeners because they need to inhert open unix sockets

16 years ago- increased vers. no
Andrei Pelinescu-Onciul [Mon, 8 Mar 2004 14:06:18 +0000 (14:06 +0000)]
- increased vers. no

16 years ago- moved daemonize in its own file
Andrei Pelinescu-Onciul [Mon, 8 Mar 2004 14:05:46 +0000 (14:05 +0000)]
- moved daemonize in its own file
- removed suid stuff from daemonize and moved it in do_suid()
(ser will change uid now after opening the listening sockets)

16 years ago- int2str updated: works for 64bits longs, minor cleanup
Andrei Pelinescu-Onciul [Mon, 8 Mar 2004 13:12:48 +0000 (13:12 +0000)]
- int2str updated: works for 64bits longs, minor cleanup

16 years agot_stats exported via unixsock interface
Jan Janak [Fri, 5 Mar 2004 22:53:21 +0000 (22:53 +0000)]
t_stats exported via unixsock interface

16 years agoMissing header field added
Jan Janak [Fri, 5 Mar 2004 19:27:40 +0000 (19:27 +0000)]
Missing header field added

16 years agoID and fingerprint of my pub key updated
Jan Janak [Fri, 5 Mar 2004 18:42:14 +0000 (18:42 +0000)]
ID and fingerprint of my pub key updated

16 years agoNEW updated (unixsock server and tm changes)
Jan Janak [Fri, 5 Mar 2004 18:38:50 +0000 (18:38 +0000)]
NEW updated (unixsock server and tm changes)

16 years agounix_send_timeout -> unix_tx_timeout -- aligned to the core config variable
Jan Janak [Fri, 5 Mar 2004 18:37:20 +0000 (18:37 +0000)]
unix_send_timeout -> unix_tx_timeout -- aligned to the core config variable

16 years agochar* table -> const char* table
Jan Janak [Fri, 5 Mar 2004 18:27:54 +0000 (18:27 +0000)]
char* table -> const char* table

16 years agoCompile warning eliminated.
Jan Janak [Fri, 5 Mar 2004 17:06:40 +0000 (17:06 +0000)]
Compile warning eliminated.

16 years agoCheck of the buffer length in unixsock_read_lineset
Jan Janak [Fri, 5 Mar 2004 17:05:37 +0000 (17:05 +0000)]
Check of the buffer length in unixsock_read_lineset

16 years agoMinor improvements
Jan Janak [Fri, 5 Mar 2004 16:05:31 +0000 (16:05 +0000)]
Minor improvements

16 years agoWarning fixed.
Jan Janak [Thu, 4 Mar 2004 23:08:16 +0000 (23:08 +0000)]
Warning fixed.

16 years agoConfiguration parameter unix_tx_timeout for tsend_dgram
Jan Janak [Thu, 4 Mar 2004 22:53:53 +0000 (22:53 +0000)]
Configuration parameter unix_tx_timeout for tsend_dgram

16 years agoMinor changes
Jan Janak [Thu, 4 Mar 2004 22:45:07 +0000 (22:45 +0000)]
Minor changes

16 years agot_reply_with_body did not test for the presence of new header fields and
Jan Janak [Thu, 4 Mar 2004 22:44:25 +0000 (22:44 +0000)]
t_reply_with_body did not test for the presence of new header fields and
failed if the parameter was empty -- fixed

16 years agoA copy&paste bug fixed
Jan Janak [Thu, 4 Mar 2004 22:36:54 +0000 (22:36 +0000)]
A copy&paste bug fixed

16 years agot_request->t_request_dlg in unixsock
Jan Janak [Thu, 4 Mar 2004 15:41:30 +0000 (15:41 +0000)]
t_request->t_request_dlg in unixsock