# $Id$ ===================== 2010-01-11 Kamailio v3.0.0 released ===================== ===================== Changes since release 1.5.0 ============================= *** Taken with 'git log' and not complete - commits older than April 2009 *** are not included. commit 3cc229a3c7ba36475c3bd67e4849297f9548bf26 Author: Daniel-Constantin Mierla Date: Sun Jan 10 20:01:01 2010 +0100 usrloc(k): rpc version for ul.dump - ul.dump is rpc alternative for MI ul_dump - better alternative to avoid pkg frametation in MI process commit f0d89fb89d1b588f253f048ab8fc22e0db7fff66 Author: Daniel-Constantin Mierla Date: Sun Jan 10 19:02:42 2010 +0100 core: init the len of sock_str attribute commit acfc2142ed5ef3e61138792136eb32616502229d Author: Daniel-Constantin Mierla Date: Sun Jan 10 16:56:54 2010 +0100 ctl: added parameters to control buffer size - new parameters to control binrpc buffers size: - binrpc_max_body_size - binrpc_struct_max_body_size commit 5997048fdbefee51aebb8c996178ceb44120a482 Author: Daniel-Constantin Mierla Date: Sun Jan 10 15:56:10 2010 +0100 htable(k): rpc commad to dump htable - htable can get big, rpc behaves better than MI commit b69e1c96bf65a4c4f8fa6bec28699607ea03e24d Author: Daniel-Constantin Mierla Date: Sun Jan 10 14:25:54 2010 +0100 pv(k): fixed $shv engine - shv relies on early shm initialization - got rid of hacks to define first in pkg and move in shm at mod_init - fixes 3.0 specific issues reported by Andrey 'Krieger' Utkin - closes FS#22 commit 836406e324036760573dd5a79a0934fabd397f50 Author: Andrei Pelinescu-Onciul Date: Sun Jan 10 13:15:57 2010 +0100 NEWS: notes about the shm related changes (cherry picked from commit 3d3d38e63a55e549e1707fce0fa1c2c189906338) commit ecc3fd3f0599cf9fa1bb070970d730f4ab85675e Author: Andrei Pelinescu-Onciul Date: Sun Jan 10 13:10:43 2010 +0100 core: shm mem size can now be set in the config script shm mem size can now be set in the cfg script using shm=size_in_mb, shm_mem=size_in_mb or shm_mem_size=size_in_mb. It must be set prior to any modparam or route block. Specifying the memory size on the command line (-m size_in_mb) will override the size from the config file. (cherry picked from commit 647cc9832560590adc6e20685c2d53350a932fb2) commit 155cb4ad4642f894472e873e4a1df1872cc30474 Author: Andrei Pelinescu-Onciul Date: Sun Jan 10 12:54:05 2010 +0100 core: early shm init while parsing the cfg - shm memory is now initialized before the first modparam or the first route block. This allows using shm memory early, in modparam fixups or route block parsing functions. user and shm_force_alloc must be used _before_ any modparam or route block (using them after a modparam or a route block will now generate an error). - the user in the cfg is ignored if already set from the command line (cherry picked from commit 6f72234400e119e981d5aa42e20c4432bb562524) commit 9c657605b8b754b8d633aafb2b5ed771265b782c Author: Andrei Pelinescu-Onciul Date: Sun Jan 10 12:50:15 2010 +0100 core: moved shm init into separate files - shm init moved from main.c into shm_init.c and shm_init.h. - added a function to check if shm was already intialized (shm_intialized()). - make sure the user is set before parsing the config, if present on the command line (the user is needed to initialize the shared memory when sysv semaphores are used as the locking method). (cherry picked from commit 2c4ae148162c7a36f25d9a7b10fe64c7667ced31) commit 195cdf43e8eea385330376184f8b78b7d0322780 Author: Daniel-Constantin Mierla Date: Sun Jan 10 12:09:20 2010 +0100 sanity: print From hdr in warning message - when parsing of the header fails commit a93f7ad1ce21413d0e2a00e4c8579f6bfe0a8a3f Author: Daniel-Constantin Mierla Date: Sun Jan 10 12:08:45 2010 +0100 nathelper(k): print bad contact uri - help in troubleshooting bad sip clients commit 78e8075eea603a854dcf0142dda0f1dae6c69857 Author: Daniel-Constantin Mierla Date: Sun Jan 10 12:07:34 2010 +0100 core: more verbose when error parsing hdr - give a hint about the content parsing (max first 20 chars of attempted string) commit a9e4d86edeee7b2f70b33c89c91e800aefe11da0 Author: Daniel-Constantin Mierla Date: Fri Jan 8 17:16:28 2010 +0100 kamailio.cfg: updated cfg with sample PSTN gw routing - defined within WITH_PSTN - calls to numbers starting with + or 00 are sent to PSTN GW - use of custome cfg parameter to define GW IP - remove preloaded Route headers for initial requests commit 009339a4d040ca0bdc6c98441281addc523d7ba0 Author: Henning Westerholt Date: Tue Jan 5 11:27:34 2010 +0100 auth_diameter(k): remove redundant declaration of find_credentials, now in core (cherry picked from commit fc323d03688bc93560a56cec9b2713c57a72389c) commit 0408f81197da38a9ab94c46698d3db10e01b39c1 Author: Daniel-Constantin Mierla Date: Thu Jan 7 18:40:29 2010 +0100 kex: aliased avp_printf to pv_printf - backward compatibility reasons - reported by Santiago Gimeno commit e97f68ebe9d909f56577b3abdc305395df9db5ba Author: Daniel-Constantin Mierla Date: Thu Jan 7 18:38:52 2010 +0100 kex: documented missing functions - reported by Santiago Gimeno commit 8929913f5edb519b7ed280a12728376ed872ec53 Author: Klaus Darilion Date: Wed Dec 30 15:53:12 2009 +0000 - fix bug in encode_contact() - fix and extend documentation about contact encoding/decoding commit 1e663ffa8129c4b24f21563c09a5bea4ecd65784 Author: Klaus Darilion Date: Wed Dec 30 13:51:24 2009 +0000 - fix bug when RURI was changed before and newuri will be used commit 9eacaacb45fe700615ac94cc3944824f1b22fdc4 Author: root Date: Wed Dec 30 13:25:01 2009 +0000 - remove unused code - correct indention and make code more readable commit 839e2fee663846f68289a519c27aef433a872afa Author: Daniel-Constantin Mierla Date: Thu Jan 7 11:33:37 2010 +0100 nathelper(k): fix for swap scenario A -> RTPP -> B, offer in INVITE, answer in 200 OK (SDP in INVITE+200 OK) A -> RTPP -> B, re-Invite on session expiry, SDP in 200 OK + ACK The from-tag and to-tag are not swapped in the ACK with rtpproxy_answer(). Options "sl" would do the trick also, but "s" is deprecated soon Patch by Walter Schober commit 1a9f379ed66dbcc05f7750ff961c0a7a6607b0db Author: Daniel-Constantin Mierla Date: Wed Jan 6 18:50:31 2010 +0100 presence(k): aliased MLA to SLA - doc updated to reflect RFCs and drafts commit 1e99795d2ddebe8a6794c3b407f96d30378b872f Author: Daniel-Constantin Mierla Date: Wed Jan 6 18:47:36 2010 +0100 core: event parsing enahced for dialog;ma - event defined by draft-anil-sipping-bla for Multiple Line Appearances, folloing to Shared/Bridged Line Appearances (SLA, BLA) - draft is defunct but still some implementations out there commit 7956c7387a1217016d0e5192e7583e8385b27e14 Author: Carsten Bock Date: Wed Jan 6 16:53:17 2010 +0100 Backport of the changes (see previous commits). commit 99d5e6c0d1fa81acb0f42bae137ec256004aba5f Author: Carsten Bock Date: Wed Jan 6 16:51:59 2010 +0100 Backport of the changes (see previous commits). commit d8af3a4b17bf1ca71df1d977d986f407ff34cfc2 Author: Daniel-Constantin Mierla Date: Wed Jan 6 15:39:46 2010 +0100 tm: documented t_relay_to() function commit fc59de27f87772df40a4408485a34344acbec950 Author: Daniel-Constantin Mierla Date: Wed Jan 6 14:36:55 2010 +0100 tm: added t_relay_to(proxy, flags) - parameters compatible with t_relay() in K old version - proxy value can be: [proto:]host[:port] - flgas can be 0x01, 0x04 or 0x05, 0x02 flag not supported - all or any of the parameters can be omitted commit a511ceccfb593736d44b7701fd07f3f9b5c3a104 Author: Daniel-Constantin Mierla Date: Wed Jan 6 12:32:01 2010 +0100 tm: documented t_replicate() functions commit 64e19a6a44a21adf6f743420a26a48cc3acd099a Author: Daniel-Constantin Mierla Date: Wed Jan 6 11:57:24 2010 +0100 tm: added t_replicate(uri) - the parameter has to be a valid SIP uri - it can be given via a script variable - K compatibility mode - reported by Santiago Gimeno commit d1e89c65a9412d2a0560c5699a34dd01e231a2d9 Author: Daniel-Constantin Mierla Date: Tue Jan 5 18:40:17 2010 +0100 db_oracle: use PARAM_TYPE_MASK when checking param type commit 9cf36478222aaf573a6cd7b65e6a4fd6227eb8cd Author: Daniel-Constantin Mierla Date: Tue Jan 5 18:27:46 2010 +0100 snmpstats: fix param type checking - parameter type is given from definition of params not from modparam value type, resulting in mismatches for parameters that have USE_FUNC_PARAM flag set - reported by Santiago Gimeno commit d4db8304926d30a4244b9ee05d21b5614eae5f94 Author: Daniel-Constantin Mierla Date: Mon Jan 4 21:32:24 2010 +0100 core: define module_loaded to use find_module_by_name - it was declared but not implemented - in use by snmpstats and perlvdb modules - reported by Santiago Gimeno commit 15ece92703aa691333d06a79b7e9901bf893bf74 Author: Daniel-Constantin Mierla Date: Mon Jan 4 21:11:29 2010 +0100 topoh: documented mask_ip parameter commit ff748db23dfdbf022d37071181628ddf5591b58b Author: Daniel-Constantin Mierla Date: Mon Jan 4 20:15:12 2010 +0100 topoh: new mod param mask_ip - allow to set the value of IP address used in masked URIs - reported by Klaus Darilion commit af5463d865bde28d1a2f977d0c9bd9347588b6e0 Author: Daniel-Constantin Mierla Date: Mon Jan 4 14:35:19 2010 +0100 kamctl: regenerate db creation scripts commit 700fb1a97a5c6c089fce85f547117286644872b5 Author: Daniel-Constantin Mierla Date: Mon Jan 4 14:32:19 2010 +0100 drouting: updated db schema from master commit 0292a4b5f2cb0564649699c592e51a06edbd91a4 Author: Daniel-Constantin Mierla Date: Sun Jan 3 13:31:23 2010 +0100 kamctl: added new db table definitions - sql to create drouting tables for mysql, postgres and oracle commit df46a824d87dfcf839c175c77addda9eed533c03 Author: Daniel-Constantin Mierla Date: Sun Jan 3 13:29:58 2010 +0100 srdb1: version table updated commit 53a25f097d127eea7fef3c3c32f7f24421aaad15 Author: Daniel-Constantin Mierla Date: Sun Jan 3 13:27:57 2010 +0100 drouting: adding db table definitions - built based on readme - needs further updates as the code is ahead of documentation with what tables are used and their structure commit 0d88fc527d5ddb90e3d52ca8f369bdcfaab63ed4 Author: Daniel-Constantin Mierla Date: Sun Jan 3 13:25:51 2010 +0100 drouting: regenerate readme - it was out of sync with docbook sources - use entity for application name and corrected db url commit 94f834041eb43121e6750cf524c32225aaf1c80d Author: Daniel-Constantin Mierla Date: Sun Jan 3 12:38:48 2010 +0100 drouting: lookup route block by name - routes are identified in 3.0 by string name - if name is "0", do not execute the route (this is the main one) for backward compatibility - based on patch by Andrey 'Krieger' Utkin, FS#24 commit 455cc830b07621bda68cde3689430bddcf94b3c1 Author: Juha Heinanen Date: Thu Dec 31 14:57:01 2009 +0200 modules_k/nathelper: removed garbage from documentation (credits to Klaus) (cherry picked from commit c16ac01fc138b6e17b90853dc4d0b885d6970d59) commit 5b03a409076e5ccf1b0bcf356ce7365972d134d2 Author: Juha Heinanen Date: Wed Dec 30 22:47:35 2009 +0200 modules_k/nathelper: improved handle_ruri_alias() documentation - Improved handle_ruri_alias() documentation based on suggestion by Klaus. (cherry picked from commit 7bb718bb680dd5faf398217583796247bb51813a) commit 8bf879a1d827f6c8210e704c2f1c149e27309ef2 Author: Juha Heinanen Date: Wed Dec 30 19:22:14 2009 +0200 modules/lcr and modules_k/nathelper: fixed compiler warnings - Fixed compiler warnings that went earlier unnoticed, because I didn't have -Wall gcc option. (cherry picked from commit 8b53323dde13c166676378f21f402a79d36b5a23) commit 96a6391c00ab4de2c9d331dda770640554f38fe2 Author: Juha Heinanen Date: Wed Dec 30 12:19:03 2009 +0200 modules_k/nathelper: handle_uri_alias() alias handling fix - handle_uri_alias() now finds ;alias r-uri param even if it is not the first param. (cherry picked from commit 9d98ca32bb131c0fb190e012ed0bff3f9a26557a) commit accf708dc5878f387ec1f5769b83b2760a1d2539 Author: Juha Heinanen Date: Mon Nov 16 00:45:27 2009 +0200 * modules_k/nathelper Added two new functions add_contact_alias() and handle_ruri_alias() and two new pseudo variables $rr_count and $rr_top_count that can be used to implement tcp connection sharing and produce correct Request URI for in-dialog requests to NATed UAs. (cherry picked from commit a85444180860da454831c5c0b366a6cc2f7f189f) commit 68c73622f6ce4d5413e2b39abfb58e6af7913425 Author: Daniel-Constantin Mierla Date: Sun Dec 20 18:48:37 2009 +0100 topoh: updated README (cherry picked from commit 63664db5030d1a6c5e700e645cebac9238e985ba) commit e37d76d8958107d949f230178d79408ba35bd8e6 Author: Daniel-Constantin Mierla Date: Sun Dec 20 18:44:33 2009 +0100 topoh: update Replaces header - case when call-id is masked (cherry picked from commit f03706ce3b8670d052619ac4a38fda4fa35bedfd) commit 0583dc249d72b36fe93763542e861d881fb0830f Author: Daniel-Constantin Mierla Date: Sun Dec 20 17:50:51 2009 +0100 topoh: code to update Refer-to URI (cherry picked from commit e9400dba371252edef970407be7b85dbe45e1ea3) commit aa33e011e20e5a5faa5c15d8e64eaf875aaeb788 Author: Daniel-Constantin Mierla Date: Sun Dec 20 12:49:59 2009 +0100 topoh: callid prefix can be set via param (cherry picked from commit a8f1190d0a400c34809af798a482311539b15527) commit 89c8c1733777f48a94004eedb6a891717260c0e5 Author: Daniel-Constantin Mierla Date: Sun Dec 20 12:46:10 2009 +0100 topoh: add prefix to encoded callid (cherry picked from commit 9d5a1ff7736d49794d5ca0f29e118d90f0ee5b68) commit 8a43c6fcb21ff7aeb097b1d8791bfc3d8f020bcb Author: Daniel-Constantin Mierla Date: Thu Dec 24 17:11:58 2009 +0100 core: usage of drop in onsend_route for Kamailio compatibility - in K exit and drop have different behavior in some cases - fr onsend_route exit means stop executing the actions and drop does in addition discard sending the message commit aedb1ee1f3e43341fe507f41ca12208c2dec3cf7 Author: Daniel-Constantin Mierla Date: Thu Dec 24 17:10:44 2009 +0100 pv: completed $snd() pv with buf and len - missing parts of available info about message to be sent commit e024da1fb6cd4b74d68760070f9e159356d93b0e Author: Daniel-Constantin Mierla Date: Wed Dec 23 22:34:28 2009 +0100 tm: further fixes for t_drop_replies() - use a dedicated variable replies_dropped to signal that replies were dropped instead of using drop_replies marker commit 6c3356b6605f4e85f0692c6194ad8a5f5ef06fa9 Author: Andrei Pelinescu-Onciul Date: Wed Dec 23 20:44:31 2009 +0100 tm: safer handling for local transactions and drop_replies!=0 - if all the replies are dropped in the failure route and the transaction is local, return the current reply. This makes the code more future safe (currently there is no way for the failure route to be executed and hence for replies to be dropped for local transactions). - check for FAKED_REPLY in local_reply() error path. (cherry picked from commit 0fe25e507eccac409f5094cff4240ee5d3224666) commit cb1866ee7b23688d12b222d503b1709f16f75a12 Author: Daniel-Constantin Mierla Date: Wed Dec 23 17:34:09 2009 +0100 tm: updated doc for t_drop_replies() commit f20be7f89fe240b85fe3600bb9e32b6c996eab87 Author: Libor Chocholaty Date: Wed Dec 23 17:06:36 2009 +0100 sctp: stats: don't increment ASSOC_SHUTDOWN on COMM_LOST Signed-off-by: Andrei Pelinescu-Onciul (cherry picked from commit 642ff762480e3c16ef417b106ed5a2b64d126d88) commit 3e1130d1513ad93ed032efaccc1b810cfca5039f Author: Andrei Pelinescu-Onciul Date: Wed Dec 23 16:58:45 2009 +0100 sctp: SCTP_STATS_ASSOC_SHUTDOWN Statistics placeholder for counting shutdowns. (cherry picked from commit 8dfdb3c7a9577438ced848cbbf5d845052ba5032) commit bc2d3a3ad8e7cab09d57992be58c743f6e6ae4eb Author: Andrei Pelinescu-Onciul Date: Wed Dec 23 16:46:18 2009 +0100 tm doc: local_ack_mode documentation (cherry picked from commit c3a38caa6d669abd209b5a40260c7c13e49484a9) commit 0f09666aa6d291cc6cba2f5047dd4ac1f4eec254 Author: Andrei Pelinescu-Onciul Date: Wed Dec 23 13:16:01 2009 +0100 tm: new param: local_ack_mode local_ack_mode controls how local 200 ACKs (ACKs to 2xx replies for local transactions, created via t_uac*) are sent. There are 3 possible modes: - 0 (default) - ACK is sent according to the rfc (the next hop is found using the contact and the route set and then dns resolution is used on it). - 1 - the ACK is sent to the same address as the corresponding INVITE branch. - 2 - the ACL is sent to the same address as the source of the 2xx reply. Modes 1 and 2 break the rfc, but are useful to deal with some simple UA behind the NAT cases. Note that mode 1 is not similar to generating ACKs for negative replies. Even if the ACK will be sent to the same address as the INVITE, it will contain the correct route set and uri. (cherry picked from commit 49218e800df4a349fae240733963ca4b46bdca3a) commit a883a0b2501ba2b25ca87994d4c211f75a556ebe Author: Daniel-Constantin Mierla Date: Wed Dec 23 17:24:30 2009 +0100 tm: fix drop reply behavior - Kamailio default behavior after failure route was to drop previous received replies. However, if the failure_route didn't add a new branch, resulted in a 500 TM reply error - thanks to Ricardo Martinez for reporting - credits to Andrei Pelinescu-Onciul for troubleshooting and prviding the fix: a new default mode for Kamailio (3) which does not drop previous replies if no new branch was added commit d35df0cdab10aa83b3ceedde3a8cde8baeabfc79 Author: Daniel-Constantin Mierla Date: Sat Dec 19 23:26:01 2009 +0100 pua_dialoginfo: use contact addresses in document - for local and remote targets - patch by Santiago Gimeno, FS#20 commit 1f64908ea0e6ad14ad6d209ba0eeb7b11c6b1e18 Author: Daniel-Constantin Mierla Date: Sat Dec 19 23:02:32 2009 +0100 dialog: new column to hold request uri - table version set to 4 - regenerated db creation scripts commit 09d1bdc38b51619c65c6a9ec8f293cf9c395c6c1 Author: Daniel-Constantin Mierla Date: Sat Dec 19 22:58:26 2009 +0100 pua_dialoginfo: patch from FS#18 - applied patch from Francisco Javier Lizaran Vilches - use r-uri in published document commit df950f2a01f5f3d3da04e84a4f4a1cb810def038 Author: Daniel-Constantin Mierla Date: Sat Dec 19 22:44:28 2009 +0100 dialog(k): patch from FS#18 - reworked part of patch from Francisco Javier Lizaran Vilches - add r-uri to dialog structure - r-uri value can be specified as PV via parameter, default is $ru - for dlg_bridge, r-uri is same as to-uri commit 78e097fb1f185796abeff27e5978bc82bdb6526f Author: Daniel-Constantin Mierla Date: Sat Dec 19 19:54:16 2009 +0100 Makefile: fix name of cfgutils in group kstandard - wrong name having '_' caused the module not to be packaged in debs - reported by Klaus Darilion commit 72ce05ee4fab38d7dd16934d93b5c05ed619b432 Author: Andrei Pelinescu-Onciul Date: Tue Dec 15 00:58:14 2009 +0100 makefile: fix make bin & basedir - make bin and make sunpkg fixed (basedir was not an absolute path) - auto-transform basedir to an absolute path if it does not start with '/' - fix unexported makefile_defs, after loading the config in the main Makefile (cherry picked from commit 31442b832dd4fc606833a06fb92d90f62af9f1b0) commit 1203f6771a08e499ad0ef39d18f6096814db537a Author: Daniel-Constantin Mierla Date: Tue Dec 15 22:58:10 2009 +0100 kactl: cisco_restart cmd update to latest t_uac_dlg - reported by David at lublink.net commit 7c6600c007be55263b48ea1114cbecab86347076 Author: Daniel-Constantin Mierla Date: Mon Dec 14 20:50:17 2009 +0100 nat_traversal: link with lib kcore - include lib/kcore/statistics.h - fix undefined symbol for register_module_stats - reported by Ricardo Martinez commit a1b15f1289db84bdf8e3da11fa33af9ae0501f3c Author: Andrei Pelinescu-Onciul Date: Mon Dec 14 13:00:07 2009 +0100 core: fix parsing for avps with the same name as a pv class When a pv lookup fails, sometimes the pvspec is partially filled which, if not clean might mess-up the avp flags in the lval union. E.g.: $avp="..." caused problems (avp was marked as RE name). commit 0586447a736900832b116f3a3826ba01d9969b6a Author: Daniel-Constantin Mierla Date: Mon Dec 14 10:22:25 2009 +0100 dbschema: regenerate db creation scripts - get the updates to permissions and lcr tables commit 256423a131e3cf71f20591f3f9066b30bd036726 Author: Daniel-Constantin Mierla Date: Mon Dec 14 10:19:38 2009 +0100 perl: install Perl libs along with module commit 72692ea1af122b12e1071e364063fcc1a182cbd0 Author: Daniel-Constantin Mierla Date: Fri Dec 11 23:09:29 2009 +0100 debian(k): packaging for 3.0 - updated deb packaging specs for 3.0 - use SR makefile groups to build the packages - all module packages are named kamailio-*-modules - kamailio-dbg not packaged for now commit 5b46bc809a5bc970f7ad7334be33bf0db723807b Author: Daniel-Constantin Mierla Date: Fri Dec 11 23:08:44 2009 +0100 kamctl: install of berkeley and oracle tools commit 6ecc6c13f63dab04083f61aa1b7ee767f9441ee0 Author: Daniel-Constantin Mierla Date: Fri Dec 11 23:07:27 2009 +0100 tls: name the certificates based on $MAIN_NAME commit 669e52df21b5fe54d1968db94628859c5291681a Author: Daniel-Constantin Mierla Date: Fri Dec 11 23:06:35 2009 +0100 db_oracle: install kamctl files commit b3d47d4912dd8b64c5bce56be574aafe2340605b Author: Daniel-Constantin Mierla Date: Fri Dec 11 23:06:15 2009 +0100 db_text: install kamctl files commit 1daa56fbec81034affeaadcfa97a1373413c68ea Author: Daniel-Constantin Mierla Date: Fri Dec 11 23:05:27 2009 +0100 db_berkely: install kamctl files commit 7922ddd9442e27028afae8e9d342bb31e383f624 Author: Daniel-Constantin Mierla Date: Fri Dec 11 23:04:49 2009 +0100 db_postgres: install kamctl files commit f90750795260e753051e75f1918e0fd0ede1212f Author: Daniel-Constantin Mierla Date: Fri Dec 11 23:03:21 2009 +0100 db_mysql: install kamctl files - done only for kamailio flavor commit c79057fb794171b5acb46c2811b97dc22158dbf2 Author: Daniel-Constantin Mierla Date: Fri Dec 11 22:13:45 2009 +0100 kamctl: mysql specific files installed by db_mysql module commit 5ad4520bfdec47b6e3a85f9e120095b00eeb2aca Author: Daniel-Constantin Mierla Date: Fri Dec 11 20:08:01 2009 +0100 use pkg/$NAME/debian to generate deb - priority over pkg/debian - good for generating debs per distro name commit ae8f695bcb0a1dca8cd55fd6fd5214d40edb7154 Author: Daniel-Constantin Mierla Date: Fri Dec 11 20:06:12 2009 +0100 added groups to match kamailio packaging commit b40bf31bcaa3c285687ce7d272f2e65810b4de9b Author: Daniel-Constantin Mierla Date: Fri Dec 11 14:32:09 2009 +0100 version set to 3.0.0-rc3 commit f47abc04445c660e790a6c44f451a54601a4dbbf Author: Daniel-Constantin Mierla Date: Fri Dec 11 11:27:57 2009 +0100 core: fix the fixup_spve_uint() and fixup_spve_str() - error introduced with the new design in SR of fixup functions set commit 5ff3c06aa9c216ef9b2168c0163f00017eb4718d Author: Daniel-Constantin Mierla Date: Fri Dec 11 10:33:33 2009 +0100 tm: unlock replies in case of drop - needed after yesterday fix from Andrei commit a75b03f72e42740b410815330c895f16368895bd Author: Daniel-Constantin Mierla Date: Fri Dec 11 10:29:50 2009 +0100 core: fix define of rval_get_int_handle_ret commit e1c36fdfc9b8f30a4271ee6823a2288dcf9c3833 Author: Daniel-Constantin Mierla Date: Fri Dec 11 10:29:06 2009 +0100 core: use NAME to build User-Agent and Server headers commit abceaefbf4276d48478681e263da8309df8164d1 Author: Andrei Pelinescu-Onciul Date: Wed Dec 9 11:08:18 2009 +0100 module groups: add k modules to the presence group - added kamailio modules to the presence group: presence presence_dialoginfo presence_mwi presence_xml pua pua_bla pua_dialoginfo pua_mi pua_usrloc pua_xmpp rls xcap_client. - removed obsoleted ser presence modules: pa rls. (cherry picked from commit 6eccf69de98426c55fdd3952e11357849d4973f2) commit 9788f89cca72f2d569512c618ff845e4814faacd Author: Andrei Pelinescu-Onciul Date: Wed Dec 9 10:59:28 2009 +0100 rls(s): obsoleted Moved pa to obsolete/ because it does not compile (needs upgrade to the current DB libs) and it does not have a maintainer. (cherry picked from commit 37bf1610f9a2f5e4fd40cbacaf2705f5437e9daf) commit 628af85679da9b6d95561fd099e9ad65fcea2c86 Author: Andrei Pelinescu-Onciul Date: Wed Dec 9 10:53:51 2009 +0100 pa(s): obsoleted Moved pa to obsolete/ because it does not compile (needs upgrade to the current DB libs) and it does not have a maintainer. (cherry picked from commit 32aee80a3059df17aeae1970471557e57bdba557) commit 7d8c22046b2e9e5bc87b78a00ba7cff7390f317c Author: Andrei Pelinescu-Onciul Date: Fri Dec 4 18:16:25 2009 +0100 makefiles: clean-utils and proper-utils fix - clean-utils and proper-utils now work both from the main directory (for utils compiled by make utils or installed by make install-utils) and from the modules directories (for utils installed by a module) - make utils now works in module directories (compiles utils that would be installed by the module) (cherry picked from commit b8e67fd6d759b1a3a2f6acd61e0b7f8706a98d73) commit 07b90c04d3b92e2558e61b772c7eed4e4f376ca4 Author: Andrei Pelinescu-Onciul Date: Thu Dec 10 18:35:17 2009 +0100 tm: onreply_route executed under lock to protect the avps Quick fix for the onreply_route possible avp corruption: execute the onreply route under lock. commit 346b6cc15caa05934a86be39b1c0867356439917 Author: Juha Heinanen Date: Wed Dec 9 10:19:54 2009 +0200 modules_k/registrar: Removed tcp_persistent_flag module parameter. - Commented out tcp_persistent_flag module parameter, because sr_3.0 tm does not support it. - Removed the flags also from module README. (cherry picked from commit 021e8d571f81ccd212004e5efee2808bb7790c96) commit bf31febc3f17d085dbdd78df12ac6bb01c308744 Author: Andrei Pelinescu-Onciul Date: Fri Dec 4 17:39:46 2009 +0100 sercmd: fix LIBS when installing from a module Don't rely on LIBS having a valid value, since we might get called from a module Makefile. Use needed libs in function of $(OS). (cherry picked from commit b0f00c3348b9c1429f6df5b39dcbd1ca939e9dfc) commit 9fdd69e863d95757655c561cd525c42ee7570b65 Author: Andrei Pelinescu-Onciul Date: Wed Dec 2 20:15:36 2009 -0500 core: pid_t warning fixes for solaris (cherry picked from commit ca351abe9bd52f24003a96ed4f9a420739728496) commit 4f8610b879354f88e22aa58c8b66bfe06edf9d2e Author: Andrei Pelinescu-Onciul Date: Wed Dec 2 20:12:40 2009 -0500 parser: fix for solaris yacc compatibility %prec was used in a wrong way (not at the end of the rule), causing problems with some yacc implementations. (cherry picked from commit 835c266e5a5a421fb8b65077e053e06e43fb326a) commit ad63bc6258113fb031c888ce31c65114e3bacfa0 Author: Andrei Pelinescu-Onciul Date: Wed Dec 2 20:14:54 2009 -0500 ctl: fix #includes on solaris (cherry picked from commit 4920290b90947fa59f7e794fc92abd6796950c33) commit 57fbd6d317c075ecabce8d082c30d7b3d027f0fc Author: Andrei Pelinescu-Onciul Date: Wed Dec 2 20:07:13 2009 -0500 makefile: fix assembler detection on solaris Assembler test waited forever for input (missing /dev/null input redirection for as -V). (cherry picked from commit 0f7ec046ce88202e508ced7c1b1d544f05529758) commit 1db01a26f04805a1a0846f1bb9f9f121f6a42cf7 Author: Andrei Pelinescu-Onciul Date: Mon Nov 30 12:02:37 2009 +0100 sctp: fix cfg.set_delayed* setting some config options immediately - all the runtime cfg options that involve setting socket options are now set using a per-child cfg callback with CFG_CB_ONLY_ONCE and not in the value fixup function. This fixes cfg.set_delayed* (up until now it did set these options immediately and not after cfg.commit). - init_max_timeo valid range fixed (from 0-1024 to 0-2^30). (cherry picked from commit cf1ba69f5b06fda8054da75d52a1ba187f5080e8) commit 9d1f0c69a0ac832c00245ec92c2ec431c1241e97 Author: Andrei Pelinescu-Onciul Date: Mon Nov 16 19:41:02 2009 +0100 script engine: verbose conversion-to-int errors - more verbose errors (all of them contain now the config file position for the error). - integer conversion errors will now by default log a warning message. Like before they won't cause the expression evaluation to fail, they'll just evaluate the failed conversion to 0. The behaviour can be changed using the defines at the top of rvalue.c. To restore the old behaviour (no int conversion error message and error ignored), comment out the following defines: RV_STR2INT_VERBOSE_ERR, RV_STRINT_ERR, EVAL_GET_INT_ERR_WARN, RVAL_GET_INT_ERR_IGN. For more info see the comments in the file. (cherry picked from commit c744f71c858f34d41741d90e0d5cb05e48cf8016) commit 3ed668500c9a0f0d2f864f5a56cf7fa886f8457c Author: Daniel-Constantin Mierla Date: Wed Dec 2 19:01:09 2009 +0100 tm: drop replies behaviour based on cfg compat mode - default behaviour for #!KAMAILIO is to drop replies after failure route to avoid selecting same reply during the next failure event - for the rest of cases all replies are kept and used to select the code for new failure route (SER compat mode) - t_drop_replies() can take one parameter - 'n[one]' - do not drop any reply (good for #!KAMAILIO mode) - 'l[ast]' - drop replies received during last serial forking step - 'a[ll]' - drop all replies - if the parameter is missing, then will drop all replies commit 4ef016026292c71d0ad731a8895c6b89efe1c769 Author: Andrei Pelinescu-Onciul Date: Mon Nov 30 12:29:20 2009 +0100 presence(k): fix off-by-one memory allocation Due to some missing '()' ( (...)?resource.len:event.len + 1 instead of ((...)?resource.len:event.len) + 1 ) sometimes the memory allocated was less with one byte then what was needed. The fixed version also replaces ?: with MAX_unsigned() (does the same thing and it's easier to read). Reported-by: Andres Moya andres.moya.i gmail com (cherry picked from commit 229bd1f517cb9177dc731929c31153b2b9513215) commit 9dca82405261dd925f845a98f2da26f7b1d12b54 Author: Daniel-Constantin Mierla Date: Fri Nov 27 14:32:29 2009 +0100 dialog(k): avoid double free - rested current dialog pointer when distroying dialog to avoid double free done from post script callback - reported by Klaus Feichtinger commit ee51f2f714d52d6cc36417bb65b764d718514984 Author: Daniel-Constantin Mierla Date: Thu Nov 26 21:29:45 2009 +0100 core: set response functions list after mod init - some modules set the response function in mod_init - case of nathelper(k) - reported by Andres Moya commit 0cab381fc93e53ca039ddbfa8ae6546fa14be066 Author: Daniel-Constantin Mierla Date: Wed Nov 25 18:21:22 2009 +0100 tm: fix for dialog(k) module workaround - check if types!=TMCB_MAX if callback registration checks - TMCB_MAX is used to store pointer to dialog in order to clean it quickly commit f7e79e649988c787864594092b297865b0cdfb67 Author: Daniel-Constantin Mierla Date: Wed Nov 18 08:55:49 2009 +0100 updated debian lenny packaging files for K 3.0 - credits to Jonas Bergler commit 9b482424cb8aff4050426033908e7e243f03ae83 Author: Daniel-Constantin Mierla Date: Mon Nov 16 08:50:31 2009 +0100 version set to 3.0.0-rc2 commit d0f78f622c9223f58a037c6f0dc827240ab68c6a Author: Andrei Pelinescu-Onciul Date: Thu Nov 12 16:29:40 2009 +0100 sctp rpc: core.sctp_options debugging version core.sctp_options can now have 1 optional parameter. If the parameter is missing it works as before: displays ser's idea of all the sctp config options. If the parameter is present it should have one of the following values: "default" (default send socket), "first" (first sctp socket) or addr[:port]. In this case the kernel sctp options for that particular socket will be displayed, with 0 used for the options that are userspace only. E.g.: sercmd core.sctp_options 127.0.0.1 (cherry picked from commit 44226358e60f5b69a4c383c892003ad2226c9089) commit 306ef4698b53fcb616ef53baa7dead895771e46d Author: Andrei Pelinescu-Onciul Date: Thu Nov 12 17:24:27 2009 +0100 core rpc: core.shmmem can take an optional size parameter core.shmmem can take now an optional size parameter, which can have one of the following values: b - bytes, k or kb - kilobytes, m or mb - megabytes, g or gb - gigabytes. By default (no parameter) the values displayed are in bytes. Note that when using something different from bytes the value are truncated (no floating point). The new parameter can be used as workaround on 64 bits systems when sr is started with more then 2Gb of memory (due to the RPC interface limitation to int32 in this case the values displayed would be negative or 0). E.g: sercmd> core.shmmem k (cherry picked from commit 02eec212e4eaf999de4162287232c172760ca9d4) commit 1b83a39eafb5c2ff77f3f8028dbcb39e864f3d5e Author: Andrei Pelinescu-Onciul Date: Thu Nov 12 16:24:08 2009 +0100 sctp: workaround SCTP_DELAYED_SACK lksctp typo - workaround typo in linux libsctp api: SCTP_DELAYED_ACK is used/defined instead of SCTP_DELAYED_SACK. - to support older kernels (< 2.6.27), if setting/getting the socket options with SCTP_DELAYED_SACK fails, fallback to SCTP_DELAYED_ACK_TIME for sctp sack_delay and report an error if the user tries to set sack_freq (not supported on older kernels). - split sctp_get_os_default() into sctp_get_os_default() and sctp_get_cfg_from_sock() for debugging purposes. (cherry picked from commit cc16495666e948f2c18dc0bacebecfac85ff59a5) commit 42dcb074fc4d179b2e20c4abd8171833207db969 Author: Juha Heinanen Date: Thu Nov 12 08:11:57 2009 +0200 modules/lcr: use append_branch instead of do_action for appending branch For some reason appending branch using do_action had stopped working. Instead of trying to find out why, replaced do_action() call with append_branch() call. (cherry picked from commit e3a8a650f6b3c7a63d200c443f82c1494f6f4e07) commit c25d7a7a03cedee7d691196aff3549a1239d4e5a Author: Klaus Darilion Date: Wed Nov 11 19:47:28 2009 +0100 make: db_flatstore moved in the standard package db_flatstore was in db_modules package and ser standard package. I think it should be removed from db_modules packages as it does not have any dependencies on db-libraries. Signed-off-by: Andrei Pelinescu-Onciul (cherry picked from commit efaf2651e318574289579730c93d6a73d4734de4) commit c23c5575a0019cd7ba6f44b34dfc96c8f74114c7 Author: Klaus Darilion Date: Wed Nov 11 19:52:55 2009 +0100 deb: fix mysql scripts install path problem Signed-off-by: Andrei Pelinescu-Onciul (cherry picked from commit cc88ded53d3ba8e8140390f33f3759a127ad9dbd) commit 33bfc5aeeaa55c93842635bb41da30745673854b Author: Daniel-Constantin Mierla Date: Sun Nov 15 14:32:40 2009 +0100 print the cfg file in fixup error message - line is not enough when include_file is used commit c92e49f3eb145c3767e996d21717d20613a899d5 Author: Daniel-Constantin Mierla Date: Sun Nov 15 12:52:36 2009 +0100 uac(k): use type to detect www/proxy_authenticate hdrs - reported by Mangust (mangust2), SF.net #2897594 commit 208e5c3d910885efc83acab4f06b66b27685332c Author: Daniel-Constantin Mierla Date: Sun Nov 15 12:51:27 2009 +0100 print line for fixing action error - reported by Juha Heinanen commit 99d434e5c2ff2771a5e6c486630e859d5bcc6c5f Author: Daniel-Constantin Mierla Date: Sun Nov 15 05:12:51 2009 +0100 route(1) changed to route(RELAY) - reported by Mangust (mangust2), SF.net #2897872 commit 42d70e2e4826be99a063a3d900b167a62ae12985 Author: Daniel-Constantin Mierla Date: Fri Nov 6 21:51:47 2009 +0100 xlog(k): updated log levels - new level L_BUG - updated the documentation to match the code - L_CRIT uses in the code L_CRIT2 - L_CRIT2 can be used in config as well, detection is based on the third caracter - credits to Klaus Darilion commit 1efaa9c19279a5dded570fb60621b45191d46027 Author: Daniel-Constantin Mierla Date: Fri Nov 6 13:57:22 2009 +0100 dialog(k): set dlg context after pre script callback - applies for the case of timeout route - the prescript callback resets it otherwise - reported by Nathan Angelacos, SF svn # 5927 commit d4a1d5146773eac1d82b8abb39747cc8ec427801 Author: Daniel-Constantin Mierla Date: Fri Nov 6 13:45:16 2009 +0100 pv: reset local var for tobody trans - from SF svn, #5951 commit 337b0e067dbec8965b176a469bcb2104f2bd870c Author: Daniel-Constantin Mierla Date: Fri Nov 6 13:35:20 2009 +0100 pv: return transport parameter value for $rP - reported by Alex Hermann, SF.net tracker #2892560 commit 93b42945ad2a57c84626cdd08ec40aa17c06036d Author: Daniel-Constantin Mierla Date: Fri Nov 6 13:33:03 2009 +0100 remove some modules from excluded_modules list - they compile and were K default commit d49abf1ec44ca63a36ef1149622bf1b706d17b2a Author: Daniel-Constantin Mierla Date: Fri Nov 6 12:30:51 2009 +0100 uac(k): set callback type for local requests - type has to be TMCB_LOCAL_COMPLETED to execute transaction callback commit dfefc8a15e9b059cf16d4930d12437948307568a Author: Daniel-Constantin Mierla Date: Fri Nov 6 12:30:31 2009 +0100 rls(k): set callback type for local requests - type has to be TMCB_LOCAL_COMPLETED to execute transaction callback commit ab31636c85552d48610c65d65afd4eaa126cf6a0 Author: Daniel-Constantin Mierla Date: Fri Nov 6 12:30:18 2009 +0100 pua(k): : set callback type for local requests - type has to be TMCB_LOCAL_COMPLETED to execute transaction callback commit 2e88092d23443985f7d8459c2815cf91f68d752e Author: Daniel-Constantin Mierla Date: Fri Nov 6 12:30:02 2009 +0100 jabber(k): : set callback type for local requests - type has to be TMCB_LOCAL_COMPLETED to execute transaction callback commit 9eb765ffc7f6e9eac99b7f998b37f56338d8c285 Author: Daniel-Constantin Mierla Date: Fri Nov 6 12:29:48 2009 +0100 imc(k): : set callback type for local requests - type has to be TMCB_LOCAL_COMPLETED to execute transaction callback commit 598aea444e9f8b2a1c610daa363723e2d38496b7 Author: Daniel-Constantin Mierla Date: Fri Nov 6 12:29:31 2009 +0100 presence(k): : set callback type for local requests - type has to be TMCB_LOCAL_COMPLETED to execute transaction callback commit 0bcc7d5f76ec897f748857befbbdcdc265d0b970 Author: Daniel-Constantin Mierla Date: Fri Nov 6 12:29:09 2009 +0100 dialog(k): : set callback type for local requests - type has to be TMCB_LOCAL_COMPLETED to execute transaction callback commit 58c75326614ccc3805640c2a15d95b4ad5e8e6d4 Author: Daniel-Constantin Mierla Date: Fri Nov 6 12:27:44 2009 +0100 dispatcher(k): set callback type for local requests - type has to be TMCB_LOCAL_COMPLETED to execute transaction callback commit d8dde2fe2e7004c69a6241a054c5febe73548267 Author: Daniel-Constantin Mierla Date: Fri Nov 6 11:42:35 2009 +0100 msilo(k): set tm callback type for sent messages - it must be TMCB_LOCAL_COMPLETED - otherwise the callback is not executed when transaction completes - delivered messages were not deleted from db - reported by Juha Heinanen commit 977bb6a680286eeb1eaad4d0466fdb09f5778201 Author: Juha Heinanen Date: Fri Nov 6 05:58:59 2009 +0200 core: added id to every field of gw table schema (cherry picked from commit a3a3ce31042a025fe93520350e53b049d5ef850d) commit cecadda371383083e083ecebaba4f2c456a09f4d Author: Andrei Pelinescu-Onciul Date: Thu Nov 5 16:21:35 2009 +0100 tcp: use the forced socket ip as source - if a socket is forced always use the forced socket ip as source (if a connection exists with different ip as source, open a new one with the forced ip). (cherry picked from commit 6fcba958595c5189c1b9d97c8fc4c9f434a3c7ad) commit 3509dab67e4df6d737da4f1c48e2f7d0563b2d4c Author: Andrei Pelinescu-Onciul Date: Thu Nov 5 15:19:29 2009 +0100 tmx: pv_t_copy_msg: copy also the send flags (cherry picked from commit 2c3aaa7aad0907a23e7f5d5bb3e743d25f734faf) commit 88372eca71900d4f3d2c1d866a65fc513862bc45 Author: Andrei Pelinescu-Onciul Date: Thu Nov 5 15:17:56 2009 +0100 textops(k): msg_apply_changes: preserve the send flags - restore also the msg send flags (cherry picked from commit 79ba45449704df8fd21740b216fed710e1bd5101) commit a0015a9d79a78047ce808442ad3e800b7eca1f78 Author: Andrei Pelinescu-Onciul Date: Thu Nov 5 15:17:15 2009 +0100 seas: use set_force_socket() - use set_force_socket() instead of msg->force_send_socket (cherry picked from commit 710b07269cc63a7ddf7323d68bcb619bd4d63816) commit a48787f281620e34b684dda1a19d7de49553d8ed Author: Andrei Pelinescu-Onciul Date: Thu Nov 5 15:16:44 2009 +0100 rr(k): use set_force_socket() - use set_force_socket() instead of msg->force_send_socket (cherry picked from commit bae241c28017b9a764876aee942065b941f28922) commit f52ede274acf434b223919ef35c5e750f796ffa3 Author: Andrei Pelinescu-Onciul Date: Thu Nov 5 15:16:05 2009 +0100 registrar(k): use set_force_socket() - use set_force_socket() instead of msg->force_send_socket (cherry picked from commit f2ba4e06b008ac5fcc0c650761f2e7f980292a6e) commit 7f416129580ded586b8d1f5ec0be2c1df7175a21 Author: Andrei Pelinescu-Onciul Date: Thu Nov 5 15:15:33 2009 +0100 pv: use set_force_socket() - use set_force_socket() instead of msg->force_send_socket (cherry picked from commit d41be35145a2f049c574d183771ea7102563e8af) commit 1fa3bdab6163b1301fcd6f10ffd08304b0723859 Author: Andrei Pelinescu-Onciul Date: Thu Nov 5 15:14:31 2009 +0100 kex: use set_force_socket() - use set_force_socket() instead of msg->force_send_socket (cherry picked from commit 097bdc69d58956e1678b1d6776d60187b079b731) commit 2c3439ade89c5cddf601653603510c0fab4be5c5 Author: Andrei Pelinescu-Onciul Date: Thu Nov 5 15:13:36 2009 +0100 domainpolicy: use set_force_socket() - use set_force_socket() instead of msg->force_send_socket (cherry picked from commit 67b7508a1c8964abbf55f3f09363a45f8aa871f8) commit 5107ad3a9df7a644f4ec1f79cbc363208b0519d8 Author: Andrei Pelinescu-Onciul Date: Thu Nov 5 15:12:52 2009 +0100 rr(s): use set_force_socket() - use set_force_socket() instead of msg->force_send_socket commit a2af320d2e6cf177b1ba855fa9e1098c48787c09 Author: Andrei Pelinescu-Onciul Date: Thu Nov 5 15:11:53 2009 +0100 registrar(s): use set_force_socket() - use set_force_socket() instead of msg->force_send_socket (cherry picked from commit 6054da6272702ce9ab3f7c48b468bf3fefe16b03) commit 78e168c98b2bbc923bcfe7365c0343a566d557a4 Author: Andrei Pelinescu-Onciul Date: Thu Nov 5 14:53:55 2009 +0100 tm: use set_force_socket() instead of msg->force_send_socket (cherry picked from commit d525316e8697533bea40a0e71a150d870caa1d7a) commit 43b0a4a3321ef8c14348b31300bd0aec15eff2be Author: Andrei Pelinescu-Onciul Date: Thu Nov 5 14:48:41 2009 +0100 tm: preserve forced sockets and send flags during dns failover - fix for branches introduced as a result of dns failover not preserving the forced send socket. - dns failover branches now preserve also the original branch send flags. (cherry picked from commit 35755149a5baa028e5b0e441cebebd0d25d6063b) commit d2669142fa6ab65adebdb5f01aa71d7703ec2567 Author: Andrei Pelinescu-Onciul Date: Thu Nov 5 14:43:38 2009 +0100 core: extra flag when forcing a socket - when forcing a socket set an extra send flag (SND_F_FORCE_SOCKET), so that later we can tell if the socket in the dst structure was forced or not (useful for forcing a specific source ip on tcp or for keeping the forced socket during dns failover in tm). - added set_force_socket(msg, sock) and reset_force_socket(msg) macros that should be used instead of directly setting msg->force_send_socket (they take care of any extra work, like setting/resetting flags). (cherry picked from commit 8fb1a2121ebe5c17681e7921cd96d3fe9a5dab80) commit dc2361c509d71d30d82ce6f268f3fd6b3fa28b44 Author: Andrei Pelinescu-Onciul Date: Mon Nov 2 15:35:42 2009 +0100 core: kamailio mode config parser fix - fixed bug in parsing pvars without (), when in #!KAMAILIO mode Reported-by: Daniel-Constantin Mierla commit e494c2c2dbc750f2646f626bed95907ee91db8af Author: Daniel-Constantin Mierla Date: Mon Nov 2 15:18:29 2009 +0100 cfg parser update for KAMAILIO compat mode - now is same behaviour as for MAX compat mode commit 2a34921ba091b10c201f330aa2f7bea336708231 Author: Daniel-Constantin Mierla Date: Mon Nov 2 15:16:16 2009 +0100 tm: auto-correct timeout values in K compat mode - if the value of timer parameters is less than 120 then use T*1000 - SR TM use mili-seconds instead of seconds like in K 1.5 - print warning message if such case happens commit 36c4036bbfa26f34be8c434d94b17e75bb6b2bef Author: Daniel-Constantin Mierla Date: Mon Nov 2 14:49:06 2009 +0100 define kamailio compatibility mode - #!KAMAILIO at the top of config file commit ed9c6128fdd588f5d9aa19ad666db36cfc0c788d Author: Daniel-Constantin Mierla Date: Mon Nov 2 14:46:17 2009 +0100 tm: avp style for parameters - when K config compatibility is defined, TM avp parameters use the $avp(name) format. e.g.: ... modparam("tm", "fr_timer_avp", "$avp(i:10)") commit 78f069c3726085902101a55d3bb98f0be7549b60 Author: Daniel-Constantin Mierla Date: Sun Nov 1 14:06:04 2009 +0100 core: PAI and PPI parsing support fixed - use a new function to identify hdr type instead of 'case' construct - reported by Juha Heinanen commit bff36ca8343070fcb51ac76a6f5fa21521ffd314 Author: Andrei Pelinescu-Onciul Date: Sat Oct 31 10:31:18 2009 +0100 core: dset minor cleanups - get_request_uri() is now inline and uses GET_RURI - DBG msg removed (cherry picked from commit cbf1b7793d1b3f7d44b38144608905b90568251b) commit ce764c910789bdc977452895c9faaeea7cb8078f Author: Andrei Pelinescu-Onciul Date: Sat Oct 31 10:27:43 2009 +0100 core: append_branch() sets also the send_socket, path & flags - the script append_branch() sets also the new branch send_socket (if forced), path vector and branch flags, making it more compatible with the kamailio version. Reported-by: Juha Heinanen jh at tutpro com (cherry picked from commit 394e061f8c582a4e146603934ef101f3bcd479db) commit a903310918e975c6f53f99e4d42c988baac28fae Author: Andrei Pelinescu-Onciul Date: Sat Oct 31 07:44:03 2009 +0100 core: re-initialize branch 0 flags for each new message Fixes branch 0 flags being "remembered" from previous script invocations. Reported-by: Juha Heinanen jh at tutpro com (cherry picked from commit c6dd54e8500b131a9dd53593afe009976ff3927f) commit f4cb4afc8173e209dbd7a6a522d3b10cc8c5c0ef Author: Daniel-Constantin Mierla Date: Fri Oct 30 22:38:21 2009 +0100 remove extra backslash in make modules-doc action commit 9069082a2d80b436779e805ee4da9703c4672d90 Author: Daniel-Constantin Mierla Date: Fri Oct 30 20:58:11 2009 +0100 config cleanup - enclose several former commented features within defines - enabling such a feature requires just one 'define' as opposite of sed command used in 1.5 config commit cfe339e04ce21b785642a026246618cf840ecad7 Author: Andrei Pelinescu-Onciul Date: Fri Oct 30 15:19:42 2009 +0100 tm: fix branches clearing lumps - fix bug introduced in 610cb93 (cherry picked from commit 6a55e42edd0cf0ac82b2099a74b4896fdc801145) commit 393027b94e52b46131b141cbf5019c0efab3d29f Author: Daniel-Constantin Mierla Date: Fri Oct 30 15:05:00 2009 +0100 sanity modules in now in modules/ commit 39ce77440b5d72a8a197ca06ff579371134bcacf Merge: eb687b7 5d817af Author: Daniel-Constantin Mierla Date: Fri Oct 30 15:01:41 2009 +0100 Merge remote branch 'origin/sr_3.0' into kamailio_3.0 * origin/sr_3.0: fix typo in location flags settings Rewritten this small helper function When string was in the form of 0=on\n\0 this function caused a segmentation fault(canaries where overwritten). Removed unused var (added last commit) Fixed avpops avp_db_store as before no state was used and it caused to loop endessly. Declared pua_send_publish ,as it was only defined (extern) Fixed tm_load import (It would be advisable to use tm_load_api instead ) Fixed include guard Added kmi module to linkage (because of ../../modules_k/xcap_client/xcap_client.so: undefined symbol: register_mi_mod ) Fixed carrierroute module exports. Fixed userblacklist exported function If the user parameter is "" (e.g a empty username in the request URI), do not copy this value to the rewritten uri. lib/srdb1/schema/gw.xml: index changes modules/lcr: bug fixes htable(k): fix non-init act. ctx in event route execution tm: fix/support changing r-uris and path in branch routes Conflicts: .gitignore Makefile Makefile.defs Makefile.dirs cfg.lex cfg.y etc/kamailio.cfg events.c events.h forward.c lib/srdb1/schema/gw.xml modules/avpops/avpops_impl.c modules/carrierroute/carrierroute.c modules/carrierroute/cr_func.c modules/carrierroute/cr_func.h modules/lcr/README modules/lcr/doc/lcr_admin.xml modules/lcr/lcr_mod.c modules/lcr/lcr_rpc.c modules/tm/h_table.c modules/tm/h_table.h modules/tm/t_fwd.c modules/tm/t_fwd.h modules/tm/t_hooks.c modules/tm/t_reply.c modules/tm/uac.c modules/utils/conf.c modules_k/htable/htable.c modules_k/kex/core_stats.c modules_k/pua_dialoginfo/pua_dialoginfo.c modules_k/pua_usrloc/pua_usrloc.c modules_k/pua_usrloc/pua_usrloc.h modules_k/pua_xmpp/pua_xmpp.c modules_k/pv/pv.c modules_k/pv/pv_branch.c modules_k/pv/pv_branch.h modules_k/userblacklist/userblacklist.c modules_k/xcap_client/Makefile modules_s/domain/domain_mod.c modules_s/registrar/save.c parser/msg_parser.c parser/parse_uri.c receive.c utils/kamctl/Makefile commit eb687b701730b48dffbd49a99103c64c0c3294da Author: Daniel-Constantin Mierla Date: Fri Oct 30 13:22:27 2009 +0100 throw error if parameters to module functions are int commit cadda4680f475fa991a5ed98606a2ccde6b200da Author: Daniel-Constantin Mierla Date: Fri Oct 30 13:04:42 2009 +0100 added kamailio in ingnore list commit 05f40fad3dbc15b7eb16de0f5cfc6301795fc894 Author: Daniel-Constantin Mierla Date: Fri Oct 30 12:58:05 2009 +0100 pv: export new PV class $xavp(name) - import from branch daniel/xavp - allow management of XAVP from config file commit 0cb4c9f4bb5399fe9b9c946a3f69c1c595ad832b Author: Daniel-Constantin Mierla Date: Fri Oct 30 12:56:25 2009 +0100 core: introducing xavp (eXtended AVP) - import from branch daniel/xavp - design: - one master list stored in core - internal integer id to optimise the search in list (hash value over the string name) - name stored as str and null terminated (can use regexp over it) - string values stored as str and null terminated - other types of value that can be used internally (not in config) - long - long long - time - xavp (or list of xavp) - generic data structure - for more see: http://sip-router.org/wiki/devel/xavp - NOTE: this is not a replacement for existing AVPs, but an add-on, a new pseudo-variable class commit a6ab14576e4ca562ea6a8f3b7c5a57a182eb3a64 Author: Daniel-Constantin Mierla Date: Fri Oct 30 12:55:21 2009 +0100 tm: set/reset head of xavps on TM events - import from branch daniel/xavp commit a8270008de45ef732f9ae57a86984845d0589fd0 Author: Daniel-Constantin Mierla Date: Fri Oct 30 12:54:17 2009 +0100 pv: new pv class $xavp(...) - import from branch daniel/xavp - access XAVPs from the config via psuedo-variables commit bca7a6509981defde01b6df6e63e3b483062a840 Author: Daniel-Constantin Mierla Date: Fri Oct 30 12:53:14 2009 +0100 core: destroy xavp list once sip msg processing is done - import from branch daniel/xavp commit 5d817af9e4ffe674187cc757a4d5a81c9450308e Author: Daniel-Constantin Mierla Date: Fri Oct 30 11:47:52 2009 +0100 fix typo in location flags settings - cflags must be used when saving branch flags (cherry picked from commit 7a967915ce71ab4e8b6577b4ed48e2a93ae6e96f) commit 7a967915ce71ab4e8b6577b4ed48e2a93ae6e96f Author: Daniel-Constantin Mierla Date: Fri Oct 30 11:47:52 2009 +0100 fix typo in location flags settings - cflags must be used when saving branch flags commit 762ab0f1ce81dedaab3cc8ad20103317f06da75d Author: Daniel-Constantin Mierla Date: Fri Oct 30 11:46:44 2009 +0100 set default debug level to 2 - load sl after tm so it can do stateful reply via send_reply() commit 2a67b2533742f7e969d17b027ca7dfea77701415 Author: Daniel-Constantin Mierla Date: Fri Oct 30 11:21:45 2009 +0100 set branch flags before saving location - enclose parameters in double-quotes commit 744813329639b323e77a148aebb83112ec1039d1 Author: Daniel-Constantin Mierla Date: Fri Oct 30 11:05:28 2009 +0100 support for defines - applied patch from Bogdan Harjoc - support for define/ifdef/ifndef - nicer way to build config file - additions to preprocessor directives, so far was 'include' - format is: #!define ID #!ifdef ID #!ifndef ID #!else #!endif commit 895e166d730efe6a975136b69171a9f097243771 Author: Marius Zbihlei Date: Tue Oct 27 13:26:55 2009 +0200 Rewritten this small helper function (cherry picked from commit 4fed4c7b9db9ca8ad1b034d5afbd86fea4ebd6ba) commit 4e49d033a49131a763b604c0d1f009d2a7c558fe Author: Marius Zbihlei Date: Mon Oct 26 17:16:37 2009 +0200 When string was in the form of 0=on\n\0 this function caused a segmentation fault(canaries where overwritten). (cherry picked from commit e6f4dafdc43d90e9679ad4695e9729379245984d) commit 0ab9d15ba34313387af9a08fdf0e233abe04089e Author: Marius Zbihlei Date: Mon Oct 26 14:23:25 2009 +0200 Removed unused var (added last commit) (cherry picked from commit 60548b6b3475d82e5d4d8c9a4be53c8dfb32df5e) commit bbf9bcd1ca6a7f75f3b9f7a82c9ed606a4b990db Author: Marius Zbihlei Date: Mon Oct 26 13:37:43 2009 +0200 Fixed avpops avp_db_store as before no state was used and it caused to loop endessly. (cherry picked from commit ffca34a67b64079cf66a0d4c0cd5419fff3f2255) commit 9cda8fa4a8d0634efc3b5933fa6eb3c18aea8e18 Author: Marius Zbihlei Date: Thu Oct 22 16:32:43 2009 +0300 Declared pua_send_publish ,as it was only defined (extern) (cherry picked from commit 981e9ba6cee17268ce761ee04d35b897a0fbd47e) commit 8854c7446dc60f7133c58aa7b498c47a406d5574 Author: Marius Zbihlei Date: Thu Oct 22 16:31:35 2009 +0300 Fixed tm_load import (It would be advisable to use tm_load_api instead ) (cherry picked from commit 12d008ca184460755f09bf4090f0298d4a092e84) commit f53daa928b52414cd910ea32e77892ddfa4d9fcd Author: Marius Zbihlei Date: Thu Oct 22 16:14:06 2009 +0300 Fixed include guard Defined pua_send_* symbols as they where not defined when module was loaded (cherry picked from commit 3a2477ec529f87a51a6f1c0238ab8c12790b1807) commit 4a3712da5b3e7c8ed20748d9b57931690813af47 Author: Marius Zbihlei Date: Thu Oct 22 15:20:46 2009 +0300 Added kmi module to linkage (because of ../../modules_k/xcap_client/xcap_client.so: undefined symbol: register_mi_mod ) (cherry picked from commit b5dd92caf75c3cc9076a0fc59149fbf80bcb0949) commit 16f622e118daeffa2547243eeaf4d42c03f84b05 Author: Marius Zbihlei Date: Mon Oct 19 12:46:17 2009 +0300 Fixed carrierroute module exports. See http://lists.sip-router.org/pipermail/sr-dev/2009-October/004393.html thread for a complete description (cherry picked from commit ca28401667bcf8d65d942fdb29033eadb6bb82b2) commit 988552519122e992911ac9e803c439fc7cbbddc5 Author: Marius Zbihlei Date: Mon Oct 19 11:27:25 2009 +0300 Fixed userblacklist exported function See http://lists.sip-router.org/pipermail/sr-dev/2009-October/004393.html thread for a complete description (cherry picked from commit ae18879b65d1a005639559ff689657b1cc2777d8) commit 084ad8a010db913785d23ccaeba654464cfd05f7 Author: Marius Zbihlei Date: Mon Oct 12 15:10:55 2009 +0300 If the user parameter is "" (e.g a empty username in the request URI), do not copy this value to the rewritten uri. This is the case of a REGISTER request. Added statements that the parameters to the actually_rewrite func may not be null. (cherry picked from commit e06a69d625d4c1293fceef13f9eca22e14662f9f) commit 1f2388acad2f8b2e611eade1eb532d510a48985b Author: Daniel-Constantin Mierla Date: Thu Oct 29 11:49:38 2009 +0100 tm: drop reply in onreply_route[x] - K compatible mode to drop reply in TM onreply routes by using 'drop' for reply status < 200 commit 062131954268d7b43bfd2544f93f46fb134e630c Author: Daniel-Constantin Mierla Date: Thu Oct 29 11:28:20 2009 +0100 core: drop reply in K compatible style - drop reply in default onreply_route when using 'drop' commit adef635f7568cdd66ad2a5828000578a8af7ae39 Author: Daniel-Constantin Mierla Date: Thu Oct 29 11:27:59 2009 +0100 version set to 3.0.0-rc1 commit d2de5be7fa8436ec33eabc4ade016b1c219c408b Author: Daniel-Constantin Mierla Date: Thu Oct 29 10:39:17 2009 +0100 Makefile: removed modules_s from default compile list commit f82dcdb10b1867989b5a2c85a951387a2ca4f85a Author: Juha Heinanen Date: Thu Oct 29 10:38:56 2009 +0200 lib/srdb1/schema/gw.xml: index changes - Added grp_id to existing gw_name index. - Added new ip_addr index. commit a375b567c86cf1e066e7a56cce4697674aa9d1b3 Author: Juha Heinanen Date: Thu Oct 29 10:27:54 2009 +0200 modules/lcr: bug fixes - Fixed selection of gateways's attributes when same gateway has different attributes in different groups. - Fixed printing of gateway's tag by lcr.dump_gws. commit 1180ee4d1f5de178f1a16785c3ff573aec00bd70 Author: Daniel-Constantin Mierla Date: Thu Oct 29 00:51:44 2009 +0100 kamctl: include core config.mak in Makefile commit f6b97e137b44a420d13eeeb45218df1e7b618393 Author: Daniel-Constantin Mierla Date: Thu Oct 29 00:50:54 2009 +0100 Makefile: adding data vars - they are used to install shared resources from kamctl/kamdbctl commit 80a8fc22b8488c358fc12f0a6ce684ffe32f1d1c Author: Daniel-Constantin Mierla Date: Wed Oct 28 23:54:33 2009 +0100 kamailio.cfg: load ctl and mi_rpc modules - enables usage of sercmd tool with default config commit aa569991b9c184003ccfd805978930f6cf9ccf2e Author: Daniel-Constantin Mierla Date: Wed Oct 28 23:38:58 2009 +0100 kamailio.cfg: do sanity check by default - use sanity module to catch parsing errors early in config - replaces error_route from kamailio 1.5 commit f771b05fe8f24bebe18962c4169176e47e099ef8 Author: Daniel-Constantin Mierla Date: Wed Oct 28 23:38:07 2009 +0100 sanity: fix include file due to previous re-location commit 011cc3ffacfbc6faf65a879d3558cd789f101237 Author: Daniel-Constantin Mierla Date: Wed Oct 28 23:07:45 2009 +0100 sanity: moved module from modules_s to modules - modules_k/sanity removed (it was an adapted version for k 1.5) commit 3a7b050c9f9d71a6ab8d44eca1c50f52153d22e7 Author: Daniel-Constantin Mierla Date: Wed Oct 28 22:43:14 2009 +0100 Makefile: introducing SRC_NAME var - store the name as it is in source tree, updated by installation to MAIN_NAME (used for man pages install) commit 489ddd1336d3bd703ea0b393226631469883b4f3 Author: Daniel-Constantin Mierla Date: Wed Oct 28 22:07:00 2009 +0100 kamailio.cfg: use name for routes - switched from index to names for routes - 1 => RELAY - 2 => PRESENCE - 3 => AUTH - 4 => NAT - 5 => RTPPROXY - failure route: 1 = > FAIL_ONE - onreply route: 1 = > REPLY_ONE - branch route: 1 = > BRANCH_ONE commit 5adb83ef2c7e6f1e07a2df1f7f26e6933f7f34ab Author: Daniel-Constantin Mierla Date: Wed Oct 28 21:53:27 2009 +0100 kamaili.cfg: basic updates to make it work with SR core commit 4ac8656cb483f64e88a2a70996178ffdef85e097 Author: Andrei Pelinescu-Onciul Date: Wed Oct 28 16:11:22 2009 +0100 htable(k): fix non-init act. ctx in event route execution - the event route was executed with an uninitialized run_act_ctx. commit 610cb930bee937c744468c6781aeed8b17b4b7d0 Author: Andrei Pelinescu-Onciul Date: Wed Oct 28 15:50:45 2009 +0100 tm: fix/support changing r-uris and path in branch routes - changing the r-uri in a branch route is now safe and the change will propagate to branches created due to dns failover. - changing path in a branch route is now allowed and it will propagate to possible dns failover branches. - optimize the no branch route & no callback case. - build the branch buffer directly into shm mem. - s/prepare_uac_request/prepare_new_uac/ - prepare_new_uac() takes care now also of setting the branch retr. buffer, uri and path (functionality moved from add_uac()) commit 44f7bf621476b18e5df5e45161305a3bce22d498 Author: Andrei Pelinescu-Onciul Date: Wed Oct 28 08:36:47 2009 +0100 tm: support for changing dst_uri in branch routes - dst_uri can now be changed in branch routes, if the branch route is not called during dns failover (which never happens, but might be enabled in the future). - dst_uri can now be checked in branch routes. The dst_uri on branch route entry will be the branch next hop (initial next hop and not the dns resolved one) if a t_relay() based on uri was used, or empty if a destination was forced (e.g. t_relay_to_udp(127.0.0.1, 9)). - s/print_uac_request/prepare_uac_request to better reflect what is actually doing - prepare_uac_request() will now perform the DNS lookups and directly update the branch dst inside the transaction. - add_uac() must now be called with a special flag during DNS failover (UAC_DNS_FAILOVER). commit 1bf989c36a9972389c033b87df0e88c04e56b9c3 Author: Jan Janak Date: Mon Oct 26 16:25:02 2009 +0100 registrar: Fix handling of cases where contacts > max_contacts Registrar should not report an error to syslog if a user exceeds the maximum number of allowed contacts per user. The registrar module sends a reply back with a description of what happened so there is no reason to write this to syslog, max_contacts > 0 is a configuration choice rather than an error. This patch also changes all affected functions in registrar module to indicate that the maximum number of allowed contacts was exceeded by returning a positive number, instead of a negative number to indicate that an error occurred. commit 6186194a7e6153871d9da019e64916f6f73ec922 Author: Jan Janak Date: Mon Oct 26 14:37:22 2009 +0100 domain: Do not report errors when domain cannot be extracted from URI. We should not report an error to syslog when lookup_domain fails to parse the URI it was given as argument. That URI usually comes from SIP messages we received from another implementation and we cannot guarantee that they will always be well-formed. Generating an error each time we receive a malformed SIP message can easily result in denial of service. commit 027c5888fcefe56006d6e6cf60335a5c35a45037 Author: Jan Janak Date: Mon Oct 26 14:15:53 2009 +0100 parse_sip_msg_uri: Log broken URIs only when debugging is enabled. Logging broken Request-URIs with LOG(L_ERR) generates too much traffic in syslog by default. Broken Request-URIs are beyond our control and we should not generate an error message each time we receive and parse one. We log them only when debugging is enabled. commit 8c06d350a5b7f0e285bbbf3458a0855e43dfab96 Author: Juha Heinanen Date: Fri Oct 23 19:45:54 2009 +0300 modules/lcr: documentation improvement - Added note to README about maximum number of gateways. commit f4b64fc173c4ecc470346f05514af43adbda294a Author: Daniel-Constantin Mierla Date: Fri Oct 23 16:48:16 2009 +0200 update drp_reqs statistics commit 770ced39b0b749355559e2a35bedf1b9c3674adc Author: Daniel-Constantin Mierla Date: Fri Oct 23 16:39:59 2009 +0200 update drp_rpls statistics commit 058f978739d0642d3332301eb8f0a0cd2bc64f37 Author: Daniel-Constantin Mierla Date: Fri Oct 23 16:20:19 2009 +0200 update fwd_rpls statistics commit e524a9512dbd24b56713dcf8f0fce1d44b46ae0b Author: Daniel-Constantin Mierla Date: Fri Oct 23 16:08:40 2009 +0200 update err_reqs statistics commit b542c1c71ed132e58d0d07d5ba66a241384ae6a2 Author: Daniel-Constantin Mierla Date: Fri Oct 23 16:04:21 2009 +0200 update err_rpls statistics commit feef8d66b067e34459660be78b1f6b2625eaa533 Author: Daniel-Constantin Mierla Date: Fri Oct 23 15:57:40 2009 +0200 update bad_URIs statistics commit 0c7926f1a854aed5af4541518bc0cacdf4fce7e7 Author: Daniel-Constantin Mierla Date: Fri Oct 23 15:51:39 2009 +0200 update bad_msg_hdr statistics commit be72d02a81f4508e6666e5992c52b788422cd398 Author: Daniel-Constantin Mierla Date: Thu Oct 22 23:02:50 2009 +0200 pv: $snd(xyz) - new pv class to handle dst filtering - return attributes of destination address, valid in onsend_route - woraround the DNS blacklisting from K 1.5 by using the new PVs and onsend_route - inner name can be: ip, af, proto and port commit 6a0c4de50246063fac8c2c6085b9f8f154695d3f Merge: 974e914 d4ff27b Author: Daniel-Constantin Mierla Date: Thu Oct 22 10:50:00 2009 +0200 Merge commit 'origin/sr_3.0' into kamailio_3.0 * commit 'origin/sr_3.0': sctp: count rejects sent to the remote peer (stats) avp_db: Removes a spurious error message. ctl: missing ifdef (minor) event parser: Add missing string boundary checks to event_parser func. tm: Number of fixes in code and documentation for serial forking. Implements function reset_path_vector. core: fix fixup_spve_* reuse after free Remove obsolete gen_ha1. modules_k/permissions: Increased version number of 'trusted' table lib/srdb1/schema/trusted.xml: forgot to increase version number lib/srdb1/schema/trusted.xml: increased tag length from 32 to 64 chars makefile: support self-installing utils, extra cfgs a.s.o. core: fix memleak in fixup_free* Conflicts: Makefile commit d4ff27b77a4d54be6be4cb45c7ccf0756a9f316a Author: Libor Chocholaty Date: Wed Oct 21 10:09:01 2009 +0200 sctp: count rejects sent to the remote peer (stats) It adds into sctp_handle_assoc_change() a call to SCTP_STATS_LOCAL_REJECT() if the SCTP_ABORT is successfully sent. Signed-off-by: Andrei Pelinescu-Onciul commit 8f89b759d87ab90c94959152969fe4701e915f48 Author: Jan Janak Date: Tue Oct 20 01:20:23 2009 +0200 avp_db: Removes a spurious error message. commit 803fd9a8ae07dca6672422315fb4e5ba76131a27 Author: Andrei Pelinescu-Onciul Date: Mon Oct 19 18:01:51 2009 +0200 ctl: missing ifdef (minor) - missing ifdef USE_FIFO prevented compilation without fifo support. commit 9cb346dec84f191a53d1dbe5895f2e4276da67fe Author: Jan Janak Date: Sun Oct 18 20:49:39 2009 +0200 event parser: Add missing string boundary checks to event_parser func. The function event_parser needs to check that there is still some text left in the input string before it attempts to read the text. In addition to that the function also needs to skip any possible leading whitespace before it calls parse_params, because parse_params expects that there is no leading whitespace at the beginning of the input string. Reported by Juha Heinanen commit 2ea8963512096cbb54e6fdf54e7b44eacc371f34 Author: Jan Janak Date: Sun Oct 18 00:39:31 2009 +0200 tm: Number of fixes in code and documentation for serial forking. This patch improves the serial forking related code and documentation. The original code suffers from shortcommits, some of which were result of the migration to the new core. The function that decodes destination sets encoded in AVPs has been improved, because the original version did not handle properly strings with missing elements. In such case the original implementation was likely to overwrite memory, because it did not check the return value of strchr properly. The new implementation tries to handle this situation. It continues parsing as long as it can, it only requires that the request-uri string is present, all other fields are made optional and their variables are properly initialized if their values cannot be found in the AVP. There was a bug in the implementation of fr_inv_timer_next modparam in the original version, changes to the parameter value were ignored by the serial forking code. This was reported by Andrei and is now fixed by this commit. The parameter fr_inv_timer_next can now be configured at runtime with the configuration framework. Its value is in milliseconds and unlike fr_inv_timer, this timer cannot be configured separately for individual branches. Obsolete definition of INV_FR_TIME_OUT_FIRST has been removed. That macro is not used anywhere in the code, thus it is not needed. There were several places where LM_DBG printed a string and relied on the string being zero terminated, this may or may not be true in the future and this patch uses the macro STR_FMT where appropriate, which is safer. Function t_next_contacts now checks if the function decode_branch_info really returned values for the dst_uri and the path vector. If not then it calls reset_dst_uri and reset_path_vector. Previous version of the code crashed sip-router, this is likely due to the merge and updates in the sip-router core. We now use t_set_fr in t_next_contacts for setting the fr_inv_timer value to fr_inv_timer_next. This is much more efficient than creating AVPs with new timer values. Also the new value of the timer is now taken from a variable in the configuration framework, instead of just a regular global variable configured through modparam. This way we can adjust the value of the timer on the fly. Configuring it through modparam is, of course, possible too. The value of of fr_inv_timer_next is now in milliseconds, instead of seconds. That's the only possibly incompatible change. However, this is consistent with all other timers in tm module, it is more efficient and it offers better granularity. A missing call to destroy_avp has been added to t_next_contacts, in the code which is executed when no transaction exists. There, the avp should also be destroyed if all values have been exhausted and none of them had Q_FLAG set. This is a corner case which should not happen under normal circumstances, because that situation only happens if all branches have the same q value. Such AVP would not have been created by t_load_contacts and therefore t_next_contacts should not be called, but this bug may be triggered if someone uses t_next_contacts in an unexpected way and it is probably better to have it fixed. Also the code which restores the value of fr_inv_timer at the end of t_next_contacts did not work properly. This patch fixes that. It first tries to retrieve a value configured with t_set_fr, but that is not guaranteed to succeed. After that it also tries the timer AVP and finally the configuration framework. The configuration framework always yields a value, so we can always restore the timer value, but we may fail to restore individual transaction timer values set by t_set_fr. If that fails then the global value from the configuration framework is used. This is documented as a shortcomming in the README and in the code. In addition to code changes this patch also expands documentation on functions t_load_contacts and t_next_contacts, describing their operation in more detail. Also the format of the contacts AVP is now documented. Finally, there is a whole new section in the README which describes how serial/parallel forking can be achieved with t_load_contacts and t_next_contacts and provides a number of examples. commit ef2e4841537add1ef10ce93acff64c9a6a2b563b Author: Jan Janak Date: Sat Oct 17 19:36:20 2009 +0200 Implements function reset_path_vector. This function can be used to reset the path_vec variable that stores the path vector for a SIP message. It can be used just like reset_dst_uri. commit c6e33a080b218ec87184b216144e527cb41754da Author: Andrei Pelinescu-Onciul Date: Thu Oct 15 17:58:05 2009 +0200 core: fix fixup_spve_* reuse after free - fixup_spve_* functions have an optimization that checks if a a parsed format is a simple string and if this happens it frees the fixed param an re-does the fixup with type==string. However when freeing the result of the first fixup the original string was freed too and the next string fixup would be called with freed memory instead of a valid string. (this bug was hidden before the memleak fix in af8f3e1536d) commit e79a572382aa269b25db21990faa232d07a1343c Author: Jan Janak Date: Thu Oct 15 12:19:29 2009 +0200 Remove obsolete gen_ha1. The tool gen_ha1 is not needed anymore. It was used by an old version of the script serctl. The same functionality can be achieved by other means either on the command line or in MySQL with server-side commands. commit 9af70ff505e6ea45110b7a7d5c63eafd3f5b58f8 Author: Juha Heinanen Date: Thu Oct 15 12:47:01 2009 +0300 modules_k/permissions: Increased version number of 'trusted' table - Increased version number of 'trusted' table also in code so that it matches the one in db. commit 959b95ff5490c144b726362285ae7df9ba80ab1b Author: Juha Heinanen Date: Wed Oct 14 15:39:15 2009 +0300 lib/srdb1/schema/trusted.xml: forgot to increase version number - Forgot to increase version number of trusted table after increasing size of tag field. commit 0312ea0bbb0bfd442e27e3ee791f66c4fcf68dcc Author: Juha Heinanen Date: Wed Oct 14 15:27:00 2009 +0300 lib/srdb1/schema/trusted.xml: increased tag length from 32 to 64 chars commit 974e91436a5cf2bdab0f0e6d9d94d4425c2320ac Author: Daniel-Constantin Mierla Date: Tue Oct 13 23:46:46 2009 +0200 etc: add modules_k to search path of modules commit 224faa34e6326a72cda7c9350c891abe83a587f3 Author: Daniel-Constantin Mierla Date: Tue Oct 13 23:37:53 2009 +0200 etc: renamed dictionary.radius to dictionary.kamailio - copes better with FLAVOUR setting - shows the target usage commit 8d668ebc5328755bbcfd40c7193953d6ccd58eeb Author: Daniel-Constantin Mierla Date: Tue Oct 13 23:35:35 2009 +0200 core: updated of CFG_NAME - default value set to kamailio for FLAVOUR==kamailio - this ensures that kamailio.cfg and kamailio radius dictionary are installed commit 3259e890c5ea9e142674c2487f3e9f28c26cd1a4 Author: Daniel-Constantin Mierla Date: Tue Oct 13 23:30:53 2009 +0200 core: combined Makefile with sr_3.0 version - replaced previous version with sr_3.0 to install utils' tools - gen_ha1 still not to be installed - kamailio.cfg is installed as main config - check if cfg files to be installed exist -- $CFG_NAME-basic.cfg and $CFG_NAME-oob.cfg were attempted to be installed although not available for different flavours - install dictionary.kamailio used by K radius-related modules, instead of SR version commit 418bbf80cfc3d4efa2334c1b3bdbfb6e91853f7a Author: Daniel-Constantin Mierla Date: Tue Oct 13 23:29:04 2009 +0200 kamctl: added install-if-newer in Makefile commit 8421aeb229ab00db385cbd2bc9fc0638303059d4 Author: Andrei Pelinescu-Onciul Date: Tue Oct 13 21:58:56 2009 +0200 makefile: support self-installing utils, extra cfgs a.s.o. - support for self-installing utils, they just need to be added to C_INSTALL_UTILS - support for extra installed config, they just need to be added to C_INSTALL_CFGS. Module paths inside them will be fixed automatically if they are of the form /usr/*lib/modules*/. - utils_compile renamed into C_COMPILE_UTILS - utils_bin_install renamed into C_INSTALL_BIN - utils_script_install renamed into C_INSTALL_SCRIPTS - share_install renamed into C_INSTALL_SHARE commit 6a84eeebc2575d90d5795abb95af33ab37407aef Author: Daniel-Constantin Mierla Date: Tue Oct 13 21:40:04 2009 +0200 core: update fwd_reqs stat commit ea5ee19268c6a7e6f69df674b16fb19d2a2d6409 Author: Daniel-Constantin Mierla Date: Tue Oct 13 21:28:42 2009 +0200 kex: support to update core stats via core events commit 47c89177ce276cdf8f6a2d06fdd3359ba283fe4c Author: Daniel-Constantin Mierla Date: Tue Oct 13 20:47:35 2009 +0200 core: added new event SREV_CORE_STATS - to be used by Kamailio core statistics not included in stock SR core commit 3996abca9e4abd3b88e56c6749938dbae27a526a Author: Daniel-Constantin Mierla Date: Tue Oct 13 20:44:03 2009 +0200 Makefile: tunnings for K-3.0 - do not install gen_ha1 (not needed) - install kamctl -- reuse refurbished 'install-utils' by calling 'make install' in tools' directory listed in utils_bin_install commit e77ff6f4c9fa32e0bc527d72dc54317658ac448a Author: Daniel-Constantin Mierla Date: Tue Oct 13 20:41:38 2009 +0200 kamctl: Makefile action for simple 'make' - avoid kamctl installation if 'make' is typed commit af8f3e1536d1415ae757d868ff8cfcbb2578c2f5 Author: Andrei Pelinescu-Onciul Date: Tue Oct 13 20:11:25 2009 +0200 core: fix memleak in fixup_free* fparam_free_contents() (which is what all the fixup_free* call in sr) did not free the original string (which in sr is kept inside the fixed fparam/gparam). It should have no impact, since at this point nobody seems to use any fixup_free* functions. commit c7b6396744519541ad460634f18975b08aab0bc1 Author: Daniel-Constantin Mierla Date: Tue Oct 13 17:58:37 2009 +0200 k-3.0: creating the branch kamailio_3.0 - default FLAVOUR set to kamailio - version set to 3.0.0pre1 - Kamailio statistics set ON by default commit 9d8e1c67c2c22d4e4d00480e3799c72e0f2ade41 Author: Andrei Pelinescu-Onciul Date: Mon Oct 12 21:20:02 2009 +0200 core: fix cfg_update() on config error 2nd try The cfg framework is considered initialized only after the cfg_child_cb_no_init() call. Fixes 29e63735632a379df5d6b49130d05d47e2829a60. commit 275899b1395c07b5ab83552a24fca06aa3835c85 Author: Andrei Pelinescu-Onciul Date: Mon Oct 12 18:08:29 2009 +0200 userblacklist(k): gcc 2.95 compile fixes - variables must be declared at the beginning of a block commit 3cacd9314a90bf128a93cad066b4f3db0908fc1e Author: Andrei Pelinescu-Onciul Date: Mon Oct 12 18:07:15 2009 +0200 statistics(k): minor warning in printf fmt commit 19bd6bd8c4cedc561497c8ff7ccd8d326ca59a2a Author: Andrei Pelinescu-Onciul Date: Mon Oct 12 18:06:35 2009 +0200 siputils(k): gcc 2.95 compile fixes - variables must be declared at the beginning of a block commit 744634370288693d7c2c0ea88af14aff45add729 Author: Andrei Pelinescu-Onciul Date: Mon Oct 12 18:05:33 2009 +0200 registrar(k): gcc 2.95 compile fixes - variables must be declared at the beginning of a block commit 18ff125720ef9265a271a1bcbc62a25d5a4064c9 Author: Andrei Pelinescu-Onciul Date: Mon Oct 12 18:04:30 2009 +0200 pua_mi: gcc 2.95 compile fixes - variables must be declared at the beginning of a block commit 90031b9224f2cf74c37770f6da8300969f4a63dc Author: Andrei Pelinescu-Onciul Date: Mon Oct 12 18:03:48 2009 +0200 cfgutils(k): gcc 2.95 compile fixes - variables must be declared at the beginning of a block commit 663a4d47e1513296d78388ebed93a3d4d8bae8e7 Author: Andrei Pelinescu-Onciul Date: Mon Oct 12 16:45:27 2009 +0200 lcr: compile & warning fixes for gcc 2.95 - variables must be declared at the beginning of a block commit 204503d4aa5b839b596946c4edae428babfa9d41 Author: Andrei Pelinescu-Onciul Date: Mon Oct 12 16:43:33 2009 +0200 db_postgres: compile fixes for gcc 2.95 - variables must be declared at the beginning of a block - #ifdefs not allowed in macro arguments commit 030ed0e68b4c4a00a9462646b969fb5c5b1fe282 Author: Andrei Pelinescu-Onciul Date: Mon Oct 12 16:41:32 2009 +0200 db_mysql: compile fix for gcc 2.95 - variables must be declared at the beginning of a block commit 18d2bb2c8a72f508a93a0e802f439390731909a6 Author: Andrei Pelinescu-Onciul Date: Mon Oct 12 16:39:38 2009 +0200 compile: don't warn on old gcc versions commit 4ab86a6203dbc354e35673442a98f95fba7eb707 Author: Juha Heinanen Date: Sat Oct 10 14:50:23 2009 +0300 utils/sercmd: Fixed include paths also in sr_3.0 branch. commit b9d019b864cfa12287b79d9d9b63378c8768700b Author: Andrei Pelinescu-Onciul Date: Sat Oct 10 02:51:13 2009 +0200 version number increased - preparing for the sr_3.0 branch commit f5b0f1dc53bcdead5b5143d0dcb944c7c03e2dde Author: Andrei Pelinescu-Onciul Date: Sat Oct 10 02:23:24 2009 +0200 call_control(k): fix register_script_cb callback - sip-router script _cb take an extra parameter commit d74483f8ef3f1465e1bd6463d39adab2a9ce107f Author: Andrei Pelinescu-Onciul Date: Sat Oct 10 02:21:59 2009 +0200 makefile: minor makecfg.lst fix - better escaping when saving the current DEFS and INCLUDES commit 9eceb3791197a8c31ff56c9677064482ccbdef3b Author: Andrei Pelinescu-Onciul Date: Sat Oct 10 01:46:24 2009 +0200 xmlrpc: moved from modules_s/ to modules/ - mv modules_s/xmlrpc modules/xmlrpc - updated sl.h include path commit e63f3f2a81dc202613fa5db32d39b00806a5e228 Author: Andrei Pelinescu-Onciul Date: Sat Oct 10 01:43:53 2009 +0200 auth_identity: moved from modules_s/ to modules/ commit 6c4d575aac6d8eba36f33ad6f778172e16834ad9 Author: Andrei Pelinescu-Onciul Date: Sat Oct 10 01:39:26 2009 +0200 iptrtpproxy: minor makefile update - use INCLUDES instead of DEFS+=-I... commit 73324f052872fac9c3ff211fe18e2e526ffbd65c Author: Andrei Pelinescu-Onciul Date: Sat Oct 10 01:34:21 2009 +0200 iptrtpproxy: moved from modules_s/ to modules/ commit 11f98a154892b3459da8f480b48019cd03d05011 Author: Andrei Pelinescu-Onciul Date: Sat Oct 10 01:02:31 2009 +0200 cfg_db: moved from modules_s/ to modules/ commit bf90a8a7ef699c263d0a15a26ac9af29f072c155 Author: Andrei Pelinescu-Onciul Date: Sat Oct 10 01:01:52 2009 +0200 cfg_rpc: moved from modules_s/ to modules/ commit d86d5777cf8aa438b68397f3c6a6e94743ec3b3d Author: Andrei Pelinescu-Onciul Date: Sat Oct 10 01:00:54 2009 +0200 ctl: moved from modules_s/ to modules/ commit aa45b1598c32eadb66dd0142777a20535a144a2b Author: Andrei Pelinescu-Onciul Date: Sat Oct 10 00:50:32 2009 +0200 db_mysql makefile: example FLAVOUR support commit caf3128c5495d4bf556af246550e0789cc795dc6 Author: Andrei Pelinescu-Onciul Date: Sat Oct 10 00:38:34 2009 +0200 makefile: FLAVOUR support Basic support for sip-router, ser and kamailio flavours and install flavours, e.g.: make config FLAVOUR=sip-router make config INSTALL_FLAVOUR=kamailio; make install (will install only kamailio specific tools, but won't change the main name) make config FLAVOUR=ser; make install (will install ser tools and change the name to ser). Note that FLAVOUR does not influence the module list (one should use modules_dirs, group_include and/or modules, modules_s, modules_k) and that for now choosing kamailio will only change the name. commit 46e13e4093f1b8f61dd34adb05e83adebff4ead1 Author: oej Date: Fri Oct 9 22:38:48 2009 +0200 Typos and formatting commit 86a41ff90070932ac4dbbd685382183c308aa71b Author: oej Date: Fri Oct 9 22:34:16 2009 +0200 Typo commit e783a10daaa976960065b3750bdfd727676f9310 Author: oej Date: Fri Oct 9 22:33:11 2009 +0200 Small formatting updates commit ac4b0278d0ef00333155f804eca2cc7799e6dfbd Author: oej Date: Fri Oct 9 22:25:34 2009 +0200 Updating PDB readme as well... commit ff159bb1efcb2ff5a95b4dd0c6ddf21f79270e6e Author: oej Date: Fri Oct 9 22:20:24 2009 +0200 Updating PDB documentation from http://sip-router.org/2009/09/11/number-portability-functionality/ commit dcf0add128aa3eaec29ae082f4b1efa78c5ff3c6 Merge: a7aaf4d a91ba01 Author: oej Date: Fri Oct 9 22:05:45 2009 +0200 Merge branch 'master' of ssh://oej@git.sip-router.org/sip-router * 'master' of ssh://oej@git.sip-router.org/sip-router: makefile: even more quiet modules warning fixes * callcontrol makefile: quiet output support pike_top: moved from tools/ to utils/ kamctl: moved from tools/ to utils/ core ev: minor cleanups topoh: new module for hiding topology details core: new sr events system core: execute callbacks for NET_DATA_IN and NET_DATA_OUT commit a7aaf4d4811228a9374215cb4dad2cf2719b4fdd Author: oej Date: Fri Oct 9 22:04:36 2009 +0200 Updating README files - total restart for the README-MODULES Need help updating the list of current modules. commit a91ba01fc9abbd737e560704e4620370a4e1c08a Author: Andrei Pelinescu-Onciul Date: Fri Oct 9 21:03:03 2009 +0200 makefile: even more quiet commit 8830e341eaa524675d7bf309f900c75eab251916 Author: Andrei Pelinescu-Onciul Date: Fri Oct 9 20:59:18 2009 +0200 modules warning fixes commit 66b8b7d0942ff68ae83a34a2c69d5259e0677da3 Author: Raul Alexis Betancor Santana Date: Fri Oct 9 19:20:41 2009 +0100 * callcontrol - Ported r6149 from OpenSips: added support for customizing call-control messages from the script - Ported r6236 from OpenSips: fixed incorrect release of memory commit e37e8d6a6158d49aa5fa1092d91b595cf0d91e2d Author: Andrei Pelinescu-Onciul Date: Fri Oct 9 15:30:02 2009 +0200 makefile: quiet output support Support for quiet output (without all the flags and compile options): make Q=1 or make QUIET=1. It can be saved in the config (e.g. make config Q=1) and it can be overridden any time (e.g. make utils Q=0). Compilation is a little faster in quiet mode and the same speed as before in normal mode. Example module output: CC (gcc) [M tm.so] uac.o LD (gcc) [M tm.so] tm.so Lib example: LD (gcc) [L libbinrpc.so.0.1] libbinrpc.so.0.1 commit e57768f78261efa068b4de2b4fc8b01811765d48 Merge: 21e69f5 da5d964 Author: Andrei Pelinescu-Onciul Date: Fri Oct 9 14:16:41 2009 +0200 Merge remote branch 'origin/tmp/core_events' * origin/tmp/core_events: core ev: minor cleanups topoh: new module for hiding topology details core: new sr events system core: execute callbacks for NET_DATA_IN and NET_DATA_OUT commit 21e69f544001fac0363d6a12ace881870127de4e Author: Andrei Pelinescu-Onciul Date: Fri Oct 9 14:09:17 2009 +0200 pike_top: moved from tools/ to utils/ commit 9df9c6e10ffe0851b7f4f2f00697c5644aaf9faa Author: Andrei Pelinescu-Onciul Date: Fri Oct 9 14:05:15 2009 +0200 kamctl: moved from tools/ to utils/ - mv tools/kamctl utils/kamctl - updated srdb1 Makefile and test/unit/include/common with the new kamctl path commit df0c82a0c0a18eb195c03b1b0e55c0624da8a7e6 Author: oej Date: Fri Oct 9 11:23:20 2009 +0200 Updating INSTALL - mostly formatting commit 89d400689357f919ed0cd200e3b0576ffa79d1c3 Author: Andrei Pelinescu-Onciul Date: Thu Oct 8 17:45:44 2009 +0200 makefile: use separate CFLAGS & LDFLAGS for utils - added UTILS_CFLAGS and UTILS_LDFLAGS (Makefile.defs and saved in the config) - use UTILS_CFLAGS and UTILS_LDFLAGS when compiling the utils (fixes a bug when an util compiled by a module will be compiled with the module flags) commit e362e2298ea19d4f5bffa305a31722cdb1dba7ee Author: Henning Westerholt Date: Thu Oct 8 16:13:43 2009 +0200 unit test: also test for memcache value deletion commit 56e0b7d4127525250a885815e26f8d05f8281d30 Author: Henning Westerholt Date: Thu Oct 8 16:12:52 2009 +0200 memcached(sr): fix docs for value deletion commit bba1990c3fe72aa73ca4ff5519be76234885d78f Merge: ad51cad 0f4c425 Author: oej Date: Thu Oct 8 15:29:07 2009 +0200 Merge branch 'master' of ssh://oej@git.sip-router.org/sip-router * 'master' of ssh://oej@git.sip-router.org/sip-router: pdb(sr): add missing doc Makefile, fix include for pdb_admin.xml, regenerate docs commit ad51cad095d2181a16b3a734926614e84adf6081 Author: oej Date: Thu Oct 8 15:10:48 2009 +0200 Updating LDAP readme commit 0f4c425c133dbec19386e73be43bdccdbc77f256 Author: Henning Westerholt Date: Thu Oct 8 14:50:31 2009 +0200 pdb(sr): add missing doc Makefile, fix include for pdb_admin.xml, regenerate docs commit 8c3a715892421cdbc309ab37b16dcf349078f487 Author: Andrei Pelinescu-Onciul Date: Thu Oct 8 12:14:29 2009 +0200 pv: added init and working destroy functions - added init and destroy functions (declared in pvapi_init.h) - fixed pv_table_free() and tr_table_free() bug commit 0b79ce29dadb655301490724f360c9ae7055edeb Author: Andrei Pelinescu-Onciul Date: Thu Oct 8 12:11:39 2009 +0200 mem: nicer fm_status() & fm_sums() output Removed useless and confusing current file location information (we are interested where the fragment was allocated from, and not where the information is printed). commit 220ac6e202bd7bbd69989bc812465cb4173831a6 Author: Andrei Pelinescu-Onciul Date: Thu Oct 8 11:33:25 2009 +0200 mem: include the module name in the debugging info - use when recording the filename information for debugging (DBQ_QM_MALLOC defined) - added a new file that should define in a portable way the various location info (file, function, a.s.o.) commit 29e63735632a379df5d6b49130d05d47e2829a60 Author: Andrei Pelinescu-Onciul Date: Thu Oct 8 00:14:32 2009 +0200 core: fix cfg_update() on config error Don't try to use the cfg framework if it was not initialized (it could happen if for example config parsing fails and shutdown is triggered before the cfg framework is initialized). commit e0d9b790d1971995823020777525cda63638973c Author: Andrei Pelinescu-Onciul Date: Thu Oct 8 00:03:25 2009 +0200 pv(k): removed $rc and $retcode (they are now in core) commit 0c73dfed30960affda3a096f07f9679f18527585 Author: Andrei Pelinescu-Onciul Date: Wed Oct 7 23:57:45 2009 +0200 core: core pvars added for $?/$retcode/$rc - added core pvars (registered before script parsing) for the return code ($?, $retcode, $rc). This solves script conflicts between the different return code handling (kamailio - pvars and ser built-in expr. elem). - removed ser expr. elem for retcode (not needed anymore) - added '?' as a valid pvar char (needed so that $? will be accepted) commit e36890e2b6a8deb678c7b24f3701d63ba8c449c5 Author: Henning Westerholt Date: Wed Oct 7 18:37:55 2009 +0200 unit test(sr): fix debug setting and a bunch of paths commit e9a6621bd51f4cec0a74fcc0ce5706953d4da4ce Author: Henning Westerholt Date: Wed Oct 7 18:35:51 2009 +0200 unit test(sr): fix location of kamailio ctl tool commit da3327522527211fcd76aba394de9f2f538d8b9d Author: Henning Westerholt Date: Wed Oct 7 18:35:00 2009 +0200 unit test(sr): add initial small test for memcache module commit f3528b2e48a8dca862f61ebef2dd2eb2bd843234 Author: Henning Westerholt Date: Wed Oct 7 18:31:08 2009 +0200 memcached(sr): add support for setting of value expiration - $mctex(key) - add support for setting of value expiration. As the memcache library don't provide functions to later change the expire value of an existing key we need to fetch the value and then store it again with the given time. This should be changed with a different (improved) library - refactor functions a bit, use a helper method instead of duplicating the cache access functions - update documentation commit da5d964be8818cadad03a637223257824bf3d031 Author: Andrei Pelinescu-Onciul Date: Tue Oct 6 14:53:26 2009 +0200 core ev: minor cleanups - use if (unlikely(...)) when executing the callbacks (optimize for the case where there are no callbacks) - debugging info printed only #if EXTRA_DEBUG commit 5c323052cc0a84d8a7c98ffe0354071dc00be23f Author: Andrei Pelinescu-Onciul Date: Tue Oct 6 12:47:14 2009 +0200 cfg framework: fix shutdown crash for non registered modules Added cfg_update_no_cbs() which partially updates (no per-child callbacks are called) the local config. It's needed for config update on exit (SIGTERM) for modules that do not register as cfg users and when the code is compiled with SIG_DEBUG. commit 18a91e776b9a99de46eb637caee860c0bcd6b117 Author: Marius Zbihlei Date: Tue Oct 6 12:41:59 2009 +0300 Changes to documentation of carrierroute module: changed cr_route usage in example as it didn't matched the actual interface by removing the crc32 parameter. commit 8459110abc3e0241e7b8a028e0252c97c8a5d9b5 Author: Andrei Pelinescu-Onciul Date: Mon Oct 5 16:15:30 2009 +0200 sctp: linux kernel obsolete api bug workaround set SPP_PMTUD_ENABLE when changing pathmaxrxt on linux. This was required on older versions of the api draft (<=14, most likely a draft bug) and is still required on linux. Reported-by: Libor Chocholaty libor at iptel org commit 64e15b63e449d26e9c56ee28b3fde22d069e03e6 Author: Juha Heinanen Date: Mon Oct 5 15:13:56 2009 +0300 modules_k/msilo: send composed body only if content type is text/plain commit ceaf70375ee1a597478119380c4f677cdcf3c948 Author: Henning Westerholt Date: Mon Oct 5 13:04:54 2009 +0200 db schemes(k): related to commit 8eb5c7071b79, fix Makefile variable commit d953ef7a6060793aebb06fedc986cd88acb194e4 Author: Henning Westerholt Date: Mon Oct 5 13:03:52 2009 +0200 db schemes(k): fix loading of DTD from internet, reported from Juha commit 39a927e9d0103414806efcb6a66f2e2cc6265443 Author: Andrei Pelinescu-Onciul Date: Mon Oct 5 13:08:05 2009 +0200 db_mysql: fix install instead of compile bug Fix for trying to install the extra utils instead of compiling bug (introduced in the last commit). commit b7a06e40596e98f7c44d7166fe72845fde3106e4 Author: Juha Heinanen Date: Fri Oct 2 16:37:17 2009 +0300 * modules_k/permissions: fixed checking of db connection - In allow_trusted(), check existence of db connection only when in non-caching mode. commit f26601329fd510bff08f684b3e445cc0c4a9995b Author: Juha Heinanen Date: Fri Oct 2 12:00:58 2009 +0300 modules_k/permissions: fixed handling of db connection * Do not close db connection if query fails. * Check that db connection exists before making a query commit e09ace60ef5b9db270e25e6b27d27e894a71d338 Author: Henning Westerholt Date: Thu Oct 1 18:42:54 2009 +0200 lcr: regenerate database tables commit 72f1a207344cd5fab981086a2c7bb0aef6883304 Author: Henning Westerholt Date: Thu Oct 1 18:41:57 2009 +0200 dialog(k): use the version from (old) trunk, the ones from 1.5 is also old commit 677f0b3e53cc5fa26d332144b87098fc3c1da215 Author: Henning Westerholt Date: Thu Oct 1 18:40:07 2009 +0200 db docs(k): better to place this in the existing dir 'databases' commit 9113fae618d347a8b1689e14dd94a1e7d314d85a Author: Henning Westerholt Date: Thu Oct 1 18:33:20 2009 +0200 db schema(k): add XSL files, as the ones from sr not work for us (extensions etc..) commit 1f36a7beaaac6eacdc5bebd76e0830aba9af7f55 Author: Henning Westerholt Date: Thu Oct 1 18:32:34 2009 +0200 sr: add 'make dbschema' target, compatibility to kamailio commit 2bd1d39b5c1d77da40ad0debb414de0eacba944c Author: Henning Westerholt Date: Thu Oct 1 18:27:15 2009 +0200 purple(k): add missing purple xml db scheme sources commit d0b60d5b967e9ea8df5c911c606ae1ddad490379 Author: Henning Westerholt Date: Thu Oct 1 18:26:17 2009 +0200 dialog(k): copy dialog table from 1.5 branch, the version in this tree is older commit 04424443dc83e18bf75cdcf5e04aa23b44ed2ce3 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 16:52:17 2009 +0200 makefile: mysql shared *.sql removed mysql shared *.sql files are no longer installed by the main makefile, but by the db_mysql module. commit c7683811e99d30c95b0dfeaeeeee446cb6533d78 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 16:51:36 2009 +0200 db_mysql: install shared *.sql files commit 80c36172af7040d9d1da75121dda90abcc640ce4 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 16:48:30 2009 +0200 makefile: per modules arch. indep. files install support Support for easily adding arch. independent files that should be installed along a module. The following new module makefile variable is supported: MOD_INSTALL_SHARE - list of files to install into the arch-independent shared directory (by default /usr/local/share/$(MAIN_NAME)). commit aae2c1f4b05b297bc4e459cc91cc9f57485e5f94 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 16:29:14 2009 +0200 doc: serdoc2man.xsl revived serdoc2man.xsl is still needed for the ser modules that have manpages. commit 6f7433d3d0f493e0ea65e4fe64e4f0d6a1c29420 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 16:05:02 2009 +0200 makefile: doc update for Makefile.utils commit 48dd70783900038f379a35817df942dc59d5e646 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 16:02:51 2009 +0200 makefile: utils and cfg cleanup Moved sercmd, sip-router_mysql.sh and tls.cfg install to their respective modules. commit ce383454955291178e9fd097711ca28a11363009 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 16:01:34 2009 +0200 tls: updated to the new auto install cfg makefile commit 14122925eb86238b8bae707776fba0ef283b8dd7 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 15:57:33 2009 +0200 db_mysql: automatically install sip-router_mysql.sh commit 9e4c500f6e6e6ad0725316968878d3ae661ace8c Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 15:56:56 2009 +0200 ctl(s): automatically install sercmd commit 6bfac69a5b6e4672ae24e51903612e09662ca36d Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 15:51:47 2009 +0200 makefile: per module extra utils and cfgs install Support for easy adding per module extra scripts, utils (require compile) or configs. The following new module makefile variables are supported: MOD_INSTALL_UTILS - list of utils directories that should be compiled and installed along the module. The utils must know how to install themselves (make install). E.g.: MOD_INSTALL_UTILS=../../utils/sercmd MOD_INSTALL_SCRIPTS - list of scripts (complete path including the file name) that should be installed along the module. E.g.: MOD_INSTALL_SCRIPTS=../../scripts/foo/foo.sh MOD_INSTALL_CFGS - list of extra config files that should be installed in the main config directory. They should be set before including Makefile.modules. commit 1b5b2a85d3ca43ff7302dc4f04ea64dc9792b6ee Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 13:47:05 2009 +0200 makefile: libs install-if-newer minor fix - install-if-newer did re-install the library every time commit f37495005e66e8f7ff0a6bf94bc9d25e437b2d9a Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 13:45:15 2009 +0200 makefile: modules install obeys $(err_fail) - if err_fail is 1 and a library fails to install the whole make install will fail commit 911f3742596a127913e6033cf1ad52d5084ad0dd Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 13:42:36 2009 +0200 makefile: make install for utils - make install for utils - various small Makefile.utils fixes commit 4ef2fe37b80d26f34a656daeb890825e4e21f5fc Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 11:28:02 2009 +0200 makefile: use -fsigned-char on some archs Use -fsigned-char for gcc on ppc, ppc64, arm and armv6 to avoid possible bugs (most people assume char is signed). commit a5af9eccf88a7696a5b3519da4651859f4a354f9 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 11:25:43 2009 +0200 uac: use signed char (minor fix) On some platform/compiler combination char can be unsigned by default (e.g. gcc arm and ppc) => use signed char when comparing it with 0. commit 64e3977d3b6b605711f68ea8bd820c16e5bdd7c2 Author: Andrei Pelinescu-Onciul Date: Wed Sep 30 20:28:03 2009 +0200 libsrdb1: fix bad include Removed unneeded #include which breaks cross-compiling (#include is enough). commit 4cd5605bb9b28e6ffb872068d0aab833ea3d8811 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 01:26:52 2009 +0200 usrloc(s): gcc 2.9x var decls. fixes variable declarations must be at the beginning of the function and not intercalated in the code. commit c60ba81953e59f57ad3d11f4ec2918120f7b924e Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 01:26:13 2009 +0200 pike(s): gcc 2.9x var decls. fixes variable declarations must be at the beginning of the function and not intercalated in the code. commit 19cb04ddf374356fcd90f244bcdb86bde45d530f Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 01:16:08 2009 +0200 permissions(s): gcc 2.9x fixes: 0-len arrays & anonymous unions - replaced flexible arrays (array[]) in structs with 0 length arrays (array[0]). Flexible array members are supported in C99, but not by gcc 2.9x. - anonymous union members cannot be accessed when compiling with gcc 2.9x. commit 142eae1df4416122dc9e81c97d1fd4634e446a68 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 01:14:58 2009 +0200 avp_db(s): gcc 2.9x var decls. fixes variable declarations must be at the beginning of the function and not intercalated in the code. commit 91eadbeda403afefdb26ab94d79ed58ea78779d2 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 01:13:57 2009 +0200 avp(s): tm: gcc-2.9x warning fixes (%zd) - %zd is not supported in the format string for gcc < 3.0 commit b57080326a9215461a789323021d062b1a12c17f Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 01:11:48 2009 +0200 libsrdb1: gcc 2.9x var decls. fixes variable declarations must be at the beginning of the function and not intercalated in the code. commit cb6fd5e3e98c2982774058059b333f6e1d90b8d3 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 01:09:39 2009 +0200 tm: gcc-2.9x warning fixes (%zd) - %zd is not supported in the format string for gcc < 3.0 - fixed %.*s with non int length warnings (gcc 2.9x) commit b0c1c3fb3bd53b65022fd1e2d6d34023db9043c6 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 01:06:03 2009 +0200 core: fix gcc 2.9x #ifdef in macro args gcc version < 3.0 do not support compile directives in macro arguments. commit 20ce876472b6216207ec2e75aff2434097a835a8 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 00:58:15 2009 +0200 core: LOG() gcc 2.9x fixes In gcc versions older then 3.0 ## before a variable argument when the argument is empty will "eat" the _entire_ preceding sequence of non-whitespace characters (not only the ','). The fix just adds a space in front of ',' in all the macros calls that use var args and ##. commit a22f9ee5231623236574d7728905940e72fdb7b9 Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 00:56:49 2009 +0200 compiler_opts: __builtin_prefetch supported from gcc 3.1 commit c69ee0ff5ea74d3f8d028635ae03dc33f2d72c3c Author: Andrei Pelinescu-Onciul Date: Thu Oct 1 00:54:32 2009 +0200 makefile: -m32/-m64 fixes - gcc supports -m32/-m64 only from version 3.2 on x86/x86_64 and from version 3.0 on sparc/sparc64. commit c46e79709216c4975abc83869fbce9fa696eac74 Author: Andrei Pelinescu-Onciul Date: Wed Sep 30 20:18:23 2009 +0200 makefile: arch detection uses gcc Target architecture detection switched from using the host to using the target architecture of the compiler, if the compiler is gcc. Extra options (CC_EXTRA_OPTS) are taken into account (e.g. make config CC_EXTRA_OPTS=-m32 will result in i386 on a gcc configured with default x86_64 arch.). This should make cross-compiling much easier and should also fix problems with systems with 64-bit kernels and 32-bits userland or vice versa (e.g. snow leopard which by default boots a 32-bit kernel, but its gcc produces only 64-bit binaries). commit 00634dc0869c2e65a6626b8ad2408cd9a2b3598a Author: Juha Heinanen Date: Wed Sep 30 16:33:05 2009 +0300 * modules/lcr: gw table db schema fixes - Added missing defunct column. - Replaced index lcr_id_idx with index lcr_id_gw_name_idx. commit 873d03503afa2059f4b1d6ca3903b1a2a6428d1f Author: Juha Heinanen Date: Sat Sep 26 11:50:10 2009 +0300 * Fixed to_any_gw() example. commit 7362f8245bf66205c4720f65cf07c0db8039f191 Author: Andrei Pelinescu-Onciul Date: Tue Sep 29 17:22:01 2009 +0200 core: use current config for the attendant process Changes in relevant config variables at runtime are now visible in the attendant process (e.g. debug, memlog, mem_summary). Signed-off-by: Miklos Tirpak commit 4a9a969de84eef3aac616d49ec02c25aceff2a68 Author: Andrei Pelinescu-Onciul Date: Tue Sep 29 17:18:37 2009 +0200 cfg framework: support for no per-child callbacks procs Support for using the config framework from processes that cannot or do not need to execute cfg per-child callbacks. For example a process that only monitors some cfg values that do not involve per-child callbacks, does not ever need to execute one. Signed-off-by: Miklos Tirpak commit f2e2f898112ed402147cd2072a4bfae3d864a925 Author: Andrei Pelinescu-Onciul Date: Tue Sep 29 20:06:06 2009 +0200 registrar(k): missing include commit 820c58ec91c147548bcfcaca1a2786f46a1e7456 Author: Andrei Pelinescu-Onciul Date: Tue Sep 29 20:05:24 2009 +0200 exec(k): append_branch() api changes commit 140d0a351d8dd0779610f53ec97809b1edacfb52 Author: Andrei Pelinescu-Onciul Date: Tue Sep 29 20:04:32 2009 +0200 drouting(k): typo fix commit 94ec0ae08c85a1d84e05a5689c8bfcd13652d5a4 Author: Andrei Pelinescu-Onciul Date: Tue Sep 29 20:04:02 2009 +0200 dispatcher(k): append_branch() api changes commit 2a791567ae8697c171a9584c2a10e7d6a16253c5 Author: Andrei Pelinescu-Onciul Date: Tue Sep 29 20:03:35 2009 +0200 cpl-c(k): append_branch() api changes commit b23a7ab13046347a70ffb1be19a9896d0ff3fc61 Author: Andrei Pelinescu-Onciul Date: Tue Sep 29 20:02:09 2009 +0200 alias_db(k): append_branch() api changes commit 9558980b9087ce3ff227941d33e7e5224568226e Author: Andrei Pelinescu-Onciul Date: Tue Sep 29 18:38:32 2009 +0200 makefile: use -fno_strict-overflow on gcc 4.2+ For gcc versions >= 4.2, use the -fno_strict_overflow compile option. This is needed to avoid gcc optimizations that assume signed overflow is undefined and does not wrap around (some parts of the code assume using two complement arithmetic and -fstrict-overflow might break them). commit e4f42ce1ded4bc0b6b7142f496119178f8cba15a Author: Andrei Pelinescu-Onciul Date: Tue Sep 29 15:25:50 2009 +0200 core: mem dbg options updates + cleanups - memlog and memdbg can now be changed at runtime - double define warning fix for fm_malloc (when compiled with -DF_MALLOC) - nicer qm_status() & qm_sums() output - BSD licence for mem/* commit f92113d8e16d6e59c170dfa703d9db30980b6877 Author: Henning Westerholt Date: Tue Mar 17 13:24:42 2009 +0100 core: remove VQ_MALLOC memory manager attached patch removes the VQ_MALLOC memory manager from the sip-router core. As discussed some time ago, this memory manager doesn't provide a realloc implementation, and is thus not really usable for the modules, as some of them needs this. We removed this in kamailio in the last year, so far nobody missed it. Signed-off-by: Andrei Pelinescu-Onciul commit d740c34e417acd84d0ccad47fc65af2668d09654 Author: Andrei Pelinescu-Onciul Date: Tue Sep 29 13:32:48 2009 +0200 core: added mem_summary config option - added mem_summary which controls the memory debugging info logged on exit or on SIGUSR1. Its value is a combination of flags: 0 - off, 1 - dump all used memory blocks and some statistics (lots of output), 2 - dump a summary of the used memory blocks (works only if compiled with DBG_QM_MALLOC or DBG_F_MALLOC). The default value is 1 (same behaviour as older versions). - fix: don't call the memory status/summary functions if memlog > debug level (since nothing will be logged anyway). commit ed20ee1dd197ecaead7549f762e5d331a14db34e Author: Dragos Vingarzan Date: Mon Sep 28 22:01:17 2009 +0200 mem: summarize in-use memory on exit Additional qm_sums and fm_sums as extension to qm_status/fm_status, with summarized values per allocation source. Slightly modified SER-224 patch version (no locking, sr changes --andrei). Closes SER-224. Signed-off-by: Andrei Pelinescu-Onciul commit 4490351bdea670fe407f67649fba4f900110c56f Author: Daniel-Constantin Mierla Date: Mon Sep 28 21:42:28 2009 +0200 snmpstats(k): updated enterprise number - IANA assignment for kamailio.org is 34352 commit 2a25dc596fd202e7836f51a0cc5b0740aaaa53fd Author: Daniel-Constantin Mierla Date: Mon Sep 28 21:29:55 2009 +0200 snmpstats(k): updated file names in include commit bc5277f65e53c3dc0ffaa29b9925701992097cf0 Author: Daniel-Constantin Mierla Date: Mon Sep 28 21:08:24 2009 +0200 snmpstats (k): renamed files - openser* to snmp* commit cf593d2fd64bcc6a04526beaa228b028e065d304 Author: Andrei Pelinescu-Onciul Date: Thu Sep 24 18:20:54 2009 +0200 mi_rpc: doc update - async mi commands supported - added the list of the various rpc mi commands versions (mi, mi_dg, mi_xmlrpc and mi_fifo). commit 244d4d4729b295be999acb3a4ca4cf156a9bfbbf Author: Andrei Pelinescu-Onciul Date: Thu Sep 24 18:06:22 2009 +0200 mi_rpc: support for async mi commands async mi commands can now be executed, if the underlying rpc transport module supports it (e.g. xmlrpc). commit 4d5abbd5a1070ce45f5c7f31d758a70df686296c Author: Andrei Pelinescu-Onciul Date: Thu Sep 24 17:58:38 2009 +0200 tm: t_uac_wait rpc error path fixes - fix no reply sent on t_uac() failure - free "delayed" context on t_uac() failure commit 0d6fcb8e786c89e25ac0ac11eab59ab108b97ab6 Author: Andrei Pelinescu-Onciul Date: Wed Sep 23 22:21:07 2009 +0200 tm: fixed empty sl reply warning commit 33c8757246f5a775f6b918f4e629e3c645ad1345 Author: Andrei Pelinescu-Onciul Date: Wed Sep 23 21:48:32 2009 +0200 tcp: killed warning Killed warning for the case when a connection is force closed on purpose (via set_reply_close()). commit 3cf20fed4d75797eec1ae820da8d8ab9abcdc668 Author: Andrei Pelinescu-Onciul Date: Wed Sep 23 20:59:40 2009 +0200 tm: set T before entering local-request route commit 07599b8befbc37f37372c64b83e84bbc1164e1cd Author: Andrei Pelinescu-Onciul Date: Wed Sep 23 16:19:11 2009 +0200 xmlrpc(s): doc updated - escape_cr and double_lf_to_crlf documented commit da2a085760f30c8b0afb72555871465e551f0060 Author: Andrei Pelinescu-Onciul Date: Wed Sep 23 14:12:50 2009 +0200 xmlrpc(s): option for replacing double lf with crlf Added "double_lf_to_crlf" config parameter. When set double LFs in the input xmlrpc strings are replaced with CR LF. This is needed to work around some xmlrpc buggy clients that don't escape CR ('\r' should be escaped to ). When using one of those buggy clients, use double LF as an escape for CR LF and turn this option on.Turning this option on makes it also more compatible with kamailio tools (kamailio mi xmlrpc always converts double LF to CR LF). Note that when double_lf_to_crlf is on it's not possible to send a double lf. Here is what the xmlrpc modules sees for various combinations of CR and LF in the input, when CR is _not_ escaped: 0 1 (double_lf_to_crlf) \n -> \r \r \r -> \r \r \r\r -> \n\n \r\n \n\n -> \n\n \r\n \r\n -> \n !!! \n !!! \n\r -> \n\n \r\n Note that when double_lf_to_crlf is 0, the xmlrpc module behaves correctly according to the xml specs. commit 238635d54eff8a176cfaf1fe26322b7de86fdac1 Author: Andrei Pelinescu-Onciul Date: Wed Sep 23 12:59:56 2009 +0200 xmlrpc(s): escape CR in replies - escape CR ('\r') in replies: each '\r' is replaced with &xD; - added new parameter: escape_cr which controls CR escaping: if on (default) CR in replies are escaped (according to the xml spec), if off, they are not (which in most cases would result in the xmlrpc client ignoring them). commit d9100ccaadbb3d6cb6696ac6919d8dce163f5abd Author: Andrei Pelinescu-Onciul Date: Tue Sep 22 19:27:16 2009 +0200 tm docs update Added disable_6xx_block, ruri_matching, via1_matching, pass_provisional_replies, default_code, default_reason, t_set_disable_6xx(), t_set_disable_failover(). commit cfa35518d7517092efef75d2d296f4340f1dfb53 Author: Andrei Pelinescu-Onciul Date: Tue Sep 22 16:34:04 2009 +0200 core: minor macro fix commit 4f03bb4d8f3d274f2a1f123dc527d2b702b6ad7c Author: Andrei Pelinescu-Onciul Date: Tue Sep 22 16:27:16 2009 +0200 tm: disable 6xx or failover on a per message basis Added support for disabling 6xx special handling and dns failover on a per transaction basis: - t_set_disable_6xx(0|1): disable(1)/enable(0) 6xx rfc special handling. - t_set_disable_failover(0|1): disable/enable dns failover. They both work either on the current transaction (if it was already created) or on the next transaction that will be created (e.g. t_set_disable_6xx(1); t_relay() works). commit 700002804c7438c6b7f35572d4b5854bdb203389 Author: Daniel-Constantin Mierla Date: Tue Sep 22 15:37:52 2009 +0200 perl(k): makefile vars use '_' instead of '-' commit 45e905059a12f242abd84e0adf2a5afa613da145 Author: Andrei Pelinescu-Onciul Date: Tue Sep 22 14:20:54 2009 +0200 tm: more cfg framework parameters marked as ATOMIC commit 77e7d5164dde66d3ec5dd7b86c3cbd586e9e25d7 Author: Andrei Pelinescu-Onciul Date: Tue Sep 22 13:07:14 2009 +0200 tm: support for disabling 6xx special handling Added disable_6xx_block (same name as in kamailio), which when set will cause the 6xx to be treated like a normal reply (breaking the rfc). Default is off. It can be set also at runtime, e.g.: sercmd cfg.set_now_int tm disable_6xx_block 1 commit 10f862b37d9ffa8776f80dd9f2e952c8d9a00913 Author: Daniel-Constantin Mierla Date: Tue Sep 22 12:47:19 2009 +0200 kamctl: Makefile to install the tool commit f6f895e95d3274c5f872f81a83dbbc71fe7623fb Author: Daniel-Constantin Mierla Date: Tue Sep 22 11:29:22 2009 +0200 kamctl: files moved in tools/kamctl/ - second stange of moving files in own directory - renamed tmp dir: tools/kamctl1 => tools/kamctl commit 04a0e7f4c8ea05641029060c92313f1c4b3ca7bd Author: Daniel-Constantin Mierla Date: Tue Sep 22 11:27:49 2009 +0200 kamctl: moved files in own directory - tools/* => tools/kamctl1/* - avoid the mixture of kamctl and pike_top tools commit 68e94429aed653c73f80db1a742e291ffd6e3384 Author: Andrei Pelinescu-Onciul Date: Mon Sep 21 18:43:37 2009 +0200 tls: tls state is now separate from tcp state - tls connection state is now kept separately from the tcp state. - update tls_h_fix_read_conn() to what tcp expects now. Closes: FlySpray#14. commit c390fed30a67655a8d45c7210b06d82bde9f3820 Author: Andrei Pelinescu-Onciul Date: Mon Sep 21 18:41:26 2009 +0200 tcp: tls fix_read_con hook return changes tls_fix_read_con doesn't change the tcp connection state any longer, relying instead on different return codes. commit 6d263c0c6152fea5991f02a26f24a6488e94c73b Author: Andrei Pelinescu-Onciul Date: Mon Sep 21 18:39:41 2009 +0200 tcp: remember which connections were accepted Use a new flag to remember which connection were passively opened (accept()) and which were locally initiated (connect). commit 58e87237864ceee603f6f0273019296208542153 Author: Andrei Pelinescu-Onciul Date: Mon Sep 21 18:37:14 2009 +0200 script paser: snd_proto names not recognized fix - if (snd_proto==...) did not work anymore when used with proto names instead of numbers. commit d29c959ab97d4f51975401b85b0bb84f85589e12 Author: Andrei Pelinescu-Onciul Date: Mon Sep 21 10:06:11 2009 +0200 script paser: proto names not recognized fix - if (proto==...) did not work anymore when used with proto names instead of numbers. Reported-by: Nils Ohlmeier nils at iptel org. Closes FlySpray#15. commit ba3d64ff8d1ec6904df906012d1e9f89e5abdc8a Author: Andrei Pelinescu-Onciul Date: Mon Sep 21 09:17:04 2009 +0200 tls: makefile fix - wrong order (extra rules should be placed after include Makefile.modules) Closes FlySpray#17. commit 8205f043c43282a209673364961d23c6b74cee72 Author: Andrei Pelinescu-Onciul Date: Mon Sep 21 09:16:14 2009 +0200 tls mk cert script: typo fix commit b2ba3a96b33e4bac14a9de6b615665af9f598c78 Author: Andrei Pelinescu-Onciul Date: Fri Sep 18 23:56:08 2009 +0200 xmlrpc doc: use set_reply_close() Updated doc & examples to use set_reply_close() and set_reply_no_connect() in the XMLRPC route instead of return -1. (this allows using rpc async commands with the broken python xmlrpclib). commit cc256eba86a81f61ead4e00c39d81858b5e5e56c Author: Andrei Pelinescu-Onciul Date: Fri Sep 18 21:03:26 2009 +0200 tm: send_flags can be used in branch & reply routes Forwarding send flags can now be used in branch routes (and they will affect only the current branch) and in reply routes (if the reply will be forwarded, either as provisional or final reply, the send_flags will affect it, but they will not affect other replies). commit 8ed9165103cfe93172ee18904a2f210674edfdce Author: Andrei Pelinescu-Onciul Date: Fri Sep 18 20:58:20 2009 +0200 core: send_flags support in the onsend_route send_flags can now be set also in the onsend_route (via set_forward_no_connect() or set_forward_close()). E.g.: onsend_route{ if (dsp_ip!=10.0.0.0/8) set_forward_no_connect(); # don't open new connection, # only reuse } commit b8d528b657bd52fce0b342e01380001b4ffa15fe Author: Andrei Pelinescu-Onciul Date: Fri Sep 18 20:52:37 2009 +0200 tcp: fix fd leak on async error or quick connect In some error cases (from which the most likely to appear in real-life would be maximum global send queue size exceeded), the fd for a new created connection (in tcp_send()) was not closed when the connection was destroyed. Same thing happened in the case of a "quick" connect (connect & send finish immediately, this happens in general only on localhost) for a connection marked as close-after-send (via the new msg send_flags). commit 0fa4b2d5a4d9700eed970d36ed1bb803c1f07d21 Merge: 5b1cd71 3c7744d Author: Andrei Pelinescu-Onciul Date: Fri Sep 18 13:36:33 2009 +0200 Merge commit 'origin/andrei/path' * commit 'origin/andrei/path': core: add path route headers after local via core: path support when forwarding tm: path support xlog(s): updated to the new next_branch() registrar(s): updated to the new append_branch() permissions(s): updated to the new next_branch() osp(s): updated to the new append_branch() exec(s): use ser_append_branch() instead of append_branch() cpl-c(s): updated to the new append_branch() tm: updated to the new append_branch() & next_branch() enum: s/km_append_brach/append_branch/ avpops: updated to the new append_branch() core: append_branch & next_branch api changes Conflicts: modules/tm/sip_msg.c modules/tm/t_fwd.c commit 5b1cd719918a51ca8f4b4a05dbc34e27fd1ae58c Merge: 643491d d12ab18 Author: Andrei Pelinescu-Onciul Date: Fri Sep 18 13:16:26 2009 +0200 Merge branch 'rpc_async' * rpc_async: tm: async t_uac (t_uac_wait) support xmlrpc(s): basic support for delayed replies core: rpc capabilities and delayed reply api core+tm: moved sip msg clone functions to the core commit 643491da0b3cb9a87d278c08ed5e0879511ddfc1 Merge: 43d869c 51205ff Author: Andrei Pelinescu-Onciul Date: Fri Sep 18 12:57:42 2009 +0200 Merge commit 'origin/andrei/send_flags' * commit 'origin/andrei/send_flags': NEWS: update core: new close after send and reuse only script functions tcp: send_flags support sl: use the msg reply send_flags tm: support for send_flags core: send flags support commit 43d869ccd2ae997338e4009aa760862589feca3d Merge: d36cf00 ac7dd1c Author: Andrei Pelinescu-Onciul Date: Fri Sep 18 12:54:50 2009 +0200 Merge commit 'origin/andrei/to_parser_fix' * commit 'origin/andrei/to_parser_fix': core: to parser fix commit d36cf0094b7bc5c11e2c1f6aa26a0e8af79ed746 Author: Andrei Pelinescu-Onciul Date: Thu Sep 17 21:10:26 2009 +0200 iptrtpproxy doc: regenerated README commit 4c46434cd34b01eb01c5f2cd03505112e4cc07d9 Merge: 54ec528 bff30ca Author: Andrei Pelinescu-Onciul Date: Thu Sep 17 21:07:54 2009 +0200 Merge commit 'origin/ser_modules' * commit 'origin/ser_modules': cfg framework: fix the initialization of child processes - iptrtpproxy.cfg support (share config data between iptables and ser module) commit bff30ca30dcda56130c780af63089327cc8dfaaa Merge: 8e1f906 c76cffa Author: Andrei Pelinescu-Onciul Date: Thu Sep 17 21:05:45 2009 +0200 Merge branch 'cvs-head' of ssh://git.sip-router.org/ser_modules into ser_modules * 'cvs-head' of ssh://git.sip-router.org/ser_modules: cfg framework: fix the initialization of child processes - iptrtpproxy.cfg support (share config data between iptables and ser module) commit 51205ff5d47a04a8a4f89ac18b45b3c05f02ec1f Author: Andrei Pelinescu-Onciul Date: Tue Sep 15 17:51:40 2009 +0200 NEWS: update commit 58cbf7f7e13fa383a76d9f67d38a686ae5e8babe Author: Andrei Pelinescu-Onciul Date: Tue Sep 15 17:47:33 2009 +0200 core: new close after send and reuse only script functions Added new script functions for setting send options for the current message or its replies: - set_forward_no_connect() - the message will be forwarded only if there is already an open connection to the destination. - set_reply_no_connect() - like above but for replies to the current message. - set_forward_close() - hint that after forwarding the current message the connection should be closed. - set reply_close() - like above but for replies. commit 340ce466abb2938ba9db1d3cb1d8b10819c1e2aa Author: Andrei Pelinescu-Onciul Date: Tue Sep 15 17:45:41 2009 +0200 tcp: send_flags support Support for SND_F_FORCE_CON_REUSE and SND_F_CON_CLOSE added to the tcp code. commit c055af91592c671f6a97f23c0c11dcf8d73f3010 Author: Andrei Pelinescu-Onciul Date: Tue Sep 15 17:44:50 2009 +0200 sl: use the msg reply send_flags commit bf0a0d42e810f6f8c3999b7f3f2b668ae0bad1d6 Author: Andrei Pelinescu-Onciul Date: Tue Sep 15 17:43:24 2009 +0200 tm: support for send_flags The send_flags are taken from the current message and added to the retr_bufs (for branch uacs and replies). commit 67c9277aaa07fb6b8c91fc38e761d30426ded8b5 Author: Andrei Pelinescu-Onciul Date: Tue Sep 15 17:38:06 2009 +0200 core: send flags support Added support for send flags and per message send flags. Right now there are 2 flags defined: - SND_F_FORCE_CON_REUSE (forces connection reuse, send will fail if a connection does not already exist to the destination) - SND_F_CON_CLOSE (hint that after the send completes the connection should be closed). The send flags can be passed directly to msg_send() via dest_info.send_flags or they can be set for each sip_msg, in which case forward_request() and forward_reply() will obey them. The sip_msg flags can be set for replies or for forwarding. commit 54ec52858d97a416d3927b1ea2f58e7ebe46af46 Author: Miklos Tirpak Date: Mon Sep 14 17:57:40 2009 +0200 tm: callback param free functions can use shm_free() The release function of the callback parameters is called outside of the shared memory lock to make the implementation of such functions easier. commit 3c7744da21a2c2cb82dfdfc28f43f65e139b91cf Author: Andrei Pelinescu-Onciul Date: Mon Sep 14 13:32:08 2009 +0200 core: add path route headers after local via - minor header order fix: route header generated from recorded path are added after the local via if no other route headers are present in the message (they were added in front of the local via until now). commit 821fd05f219b677e08173c5aeb1c1456118b6200 Author: Daniel-Constantin Mierla Date: Mon Sep 14 10:16:24 2009 +0200 imc(k): fix copy&paste error in example commit d22073013189ded58fffe3aad4ef65b9085bc99a Author: Miklos Tirpak Date: Fri Sep 11 12:54:19 2009 +0200 cfg framework: CFG_CB_ONLY_ONCE documented CFG_CB_ONLY_ONCE has been documented commit ceef844014b6e4d93e319a3ff8ecf70983bdc30f Author: Miklos Tirpak Date: Fri Sep 11 12:08:13 2009 +0200 cfg framework: CFG_CB_ONLY_ONCE flag CFG_CB_ONLY_ONCE flag indicates that the per-child process callback is called only once after the changes to the global config have been committed. (The first child process that updates its local config calls the callback, and no other child process does so.) The per-child process cb is intended to be used to update the config variables that are stored outside of the cfg framework. By default this callback is called by all the child processes separately, this can be change with this flag. commit 170ad2a01ec5047a05222dab115955e2544e5845 Author: Henning Westerholt Date: Thu Sep 10 19:32:41 2009 +0200 pdbt: add one helper script, protocol and input data documentation commit d32fa103f1ddad5f44d986dd0b148d110ed3033c Author: Henning Westerholt Date: Thu Sep 10 18:35:05 2009 +0200 pdb: add daemon 'pdb_server' and optimising data compiler 'pdbt' - add number portability database daemon and optimizing data compiler - add debian packaging scripts for tool and daemon as well - TODO: - add documentation (run binaries with '-h' for now to get help) - fix this redundant declaration of trie (dt* files) and logging (log*). There exists already an implementation that uses the sr core parts for this, but we import the proven implementation for now. - add data helper scripts as well, they need some cleanup first - initial implementation was done from Hardy Kahl @ 1&1 Internet Ag - further bug fixes from Timo Reimann, timo dot reimann at 1und1 dot de commit 72c4ec9e940d635684b4963ea5175292caa9604e Author: Henning Westerholt Date: Thu Sep 10 18:23:21 2009 +0200 test: fix path in test 2, add pdb module commit 008e40a3c1e948f2af213489a9eefd95ea3f51eb Author: Henning Westerholt Date: Thu Sep 10 18:22:07 2009 +0200 add pdb module to the 'stable, but for special use' group in Makefile commit 2ea97b8a9a65aaceba8e19fbfc043924a4a82038 Author: Miklos Tirpak Date: Thu Sep 10 18:11:56 2009 +0200 tm: mem leak correction #2 - shm_free() needs to be used instead of shm_free_unsafe() - The callback params may have a release function commit 05af490239a5556704999d613e140e25425b0888 Author: Miklos Tirpak Date: Thu Sep 10 17:50:57 2009 +0200 tm: minor mem leak corrected After the memory of a cell is allocated other modules immediately have a chance to register transaction callbacks, and they may also allocate additional memory for the callback parameters. When sip_msg_cloner() failed, the memory allocated for the callback list was not freed. This happend only when the available shm memory was already very low which caused sip_msg_cloner() to fail. commit 0e24d9be231fc54e13fd069ae28cc050cc708664 Author: Daniel-Constantin Mierla Date: Thu Sep 10 16:22:08 2009 +0200 textops(k): new function - msg_apply_changes() - apply changes done to SIP request content (e.g., via subst(), append_hf(), remove_hf(), etc.) - after using this function, the content of SIP message buffer is updated and the initially recevied content is lost - function can be used in request route blocks - be careful when used since: - it changes the way you're used so far - not much tested with various modules commit e265d13757b57e88c53bfdbb9f6d3580383d3788 Author: Daniel-Constantin Mierla Date: Thu Sep 10 14:51:08 2009 +0200 imc(k): return code classes per command - for each imc command a range of negative numbers is reserved to signal errors to config file - example enhanced to replect the need of sending replies from config file commit 3c807bd3a4428566ad00e12fb0155b04fe636403 Author: Juha Heinanen Date: Wed Sep 9 12:12:58 2009 +0300 modules_k/imc: fixed typo in #help reply commit f884abbb574bdbfee99e234d0d3876f589c8d9dd Author: Juha Heinanen Date: Wed Sep 9 09:54:38 2009 +0300 modules_k/imc: added "extra_hdrs" module variable Added "extra_hdrs" module variable that can be used to inject extra headers to messages send out from IMC server. commit d64d6bb9dd10499b83aa811557beb77714b74c5f Author: Andrei Pelinescu-Onciul Date: Tue Sep 8 19:21:49 2009 +0200 core: path support when forwarding Path support compatible with kamailio (although there might be differences in the added Route header position). commit 7d242ad8e9070724e7e4b0eedf1576d53b1b2aa7 Author: Andrei Pelinescu-Onciul Date: Tue Sep 8 19:20:00 2009 +0200 tm: path support Path support compatible with kamailio. commit e6cb84bec9a11cafc2283e4c89089c5efd280156 Author: Henning Westerholt Date: Tue Sep 8 19:14:01 2009 +0200 new module: connector to Portability number DataBase daemon - new module, connector to portable number database daemon, pdbd - the daemon implements a custom UDP protocol that allows the query of a custom number portability database optimized for speed and memory efficieny based on the 'cr' trie datastructure - the daemon allows the storage of a number to carrier mapping for e.g. whole germany in a few hundred megabytes of RAM, and their efficient retrival - the connector module supports aggressive time outs to keep the post dial delay low, it will return then a failure and default routing is possible - TODO: port daemon and optimizing compiler as well, extend README - this daemon (in its OpenSER version) has been used in production, but some bugs could be slipped in the porting process - credits for implementation: Hardy Kahl @ 1&1 Internet AG commit 4fece01ed8687e1be8678dd4de63cebd2095d95b Author: Henning Westerholt Date: Tue Sep 8 18:03:50 2009 +0200 cr: bug fix in new introduced function, cr_nofallback_routing commit cb632b338cad0e7229372bec7eb1cd0d97a63014 Author: Henning Westerholt Date: Tue Sep 8 17:42:14 2009 +0200 cr: protect against user error when backup is the same as initial host, port from r5924 commit c576a5a2e638aa05d31305d11ec05994af7584d9 Author: Juha Heinanen Date: Mon Sep 7 13:15:44 2009 +0300 modules_k/imc: degraded log message * Degraded log message from info to dbg in imc_parse_cmd function. commit 8dc53feb5a6b72d9f3ebf934fed9564d4e884ed5 Author: Henning Westerholt Date: Mon Sep 7 10:34:58 2009 +0200 cr: new function 'cr_nofallback_route' - add new function 'cr_nofallback_route' which behaves exactly like the existing 'cr_prime_route' function but uses the standard CRC32 hash instead of this prime function to provide an path away from this function - mark 'cr_prime_route' function as obselete in docs - patch from Carsten Gross, carsten dot gross at 1und1 dot de commit 3b70140725f180026e30d327a0fb81b3e8902905 Author: Henning Westerholt Date: Mon Sep 7 10:19:38 2009 +0200 cr: add random distribution function - add a random distribution function to cr - patch from Marius Zbihlei, marius dot zbihlei at 1and1 dot ro commit f0a71b9957f94715c5cf7c25a7265e19ff1e277c Author: Henning Westerholt Date: Fri Sep 4 18:14:11 2009 +0200 registrar(k): port from r5923: information leak bug in registrar commit 9566b04be793c5a4219cd0ebb55f95b7659d2e41 Author: Henning Westerholt Date: Fri Sep 4 17:56:31 2009 +0200 userblacklist(k): fix error in check_user_blacklist DB code - fix an error in the check_user_blacklist DB code, we need to return the WHITELIST node when we found a value != zero - reported from Alexandr Dubovikov, Alexandr dot Dubovikov at qsc dot de commit 9a0b182593cd4709cc73c463a916de6a78aa7ccc Author: Henning Westerholt Date: Fri Sep 4 17:44:43 2009 +0200 userblacklist(k): add new function 'check_user_whitelist' - add new function 'check_user whitelist' - patch from Alexandr Dubovikov, Alexandr dot Dubovikov at qsc dot de - works like the existing check_user_blacklist, but return -1 when not the user is not found commit 858f5afd22ee01a4b476f47474314ee4735467c3 Author: Andrei Pelinescu-Onciul Date: Fri Sep 4 15:24:16 2009 +0200 xlog(s): updated to the new next_branch() commit d9ebb640e2d659aa5d76809b18c9b1241f69525c Author: Andrei Pelinescu-Onciul Date: Fri Sep 4 15:23:44 2009 +0200 registrar(s): updated to the new append_branch() commit 8a9b30a1ddef464ac1f0f5759528f79e65597e14 Author: Andrei Pelinescu-Onciul Date: Fri Sep 4 15:23:17 2009 +0200 permissions(s): updated to the new next_branch() commit bf527133f33fdeb09dfbd4525fedf33a32a821cd Author: Andrei Pelinescu-Onciul Date: Fri Sep 4 15:22:38 2009 +0200 osp(s): updated to the new append_branch() commit 71cd365421f6ee1ac302e2c1d3473f71bb74dd30 Author: Andrei Pelinescu-Onciul Date: Fri Sep 4 15:22:07 2009 +0200 exec(s): use ser_append_branch() instead of append_branch() commit dda1de2cad624c351b252f02829314f0130c8f0f Author: Andrei Pelinescu-Onciul Date: Fri Sep 4 15:21:26 2009 +0200 cpl-c(s): updated to the new append_branch() commit c667a8c4af42fb4291d37809e721cc3bd811027c Author: Andrei Pelinescu-Onciul Date: Fri Sep 4 15:19:27 2009 +0200 tm: updated to the new append_branch() & next_branch() commit 92b49b268e31a6a3e154e03aff671dc828a89e42 Author: Andrei Pelinescu-Onciul Date: Fri Sep 4 15:18:17 2009 +0200 enum: s/km_append_brach/append_branch/ commit 47e589e01fb9f927b135c41a0fcc1caadbd6fef7 Author: Andrei Pelinescu-Onciul Date: Fri Sep 4 15:16:58 2009 +0200 avpops: updated to the new append_branch() - fixed swapped params in append_branch() call - updated to the new append_branch() commit c43dc0cd35eff000a2eb7e40c65d85367c58e412 Author: Andrei Pelinescu-Onciul Date: Fri Sep 4 15:09:08 2009 +0200 core: append_branch & next_branch api changes - added path, branch flags support and switched the parameters to str for append_branch and next_branch. append_branch is now exactly the same as km_append_branch. - added ser_append_branch for compatibility with ser modules which don't need the extra parameters. - updated core code to use the modified api. commit 3e493f4d363966db93bc32bca62c10ca6a14b927 Author: Nils Ohlmeier Date: Thu Sep 3 16:22:48 2009 +0200 oob cfg: merged changes from last SIPit This version of sip-router-oob.cfg was successfully tested at SIPit 24. The changes are: - re-organzied the NAT detection - added lots of comments about NAT detection - renamed the record- and loose-routes - added an inactive ENUM route - activated DNS NAPTR and SRV options - disabled TCP async to allow usage of TLS - disabled the files limit as this prevents the usage of the config as non-root user on most systems commit c92d65efc7ea5abb4c4a718ff5e90e2ec7ad6cb3 Author: Daniel-Constantin Mierla Date: Thu Sep 3 14:43:29 2009 +0200 domain(k): regenerated readme - include new parameter 'register_myself' commit 1c9c433f7be395652bb28c5af61d2f64f33da926 Author: Daniel-Constantin Mierla Date: Thu Sep 3 13:18:31 2009 +0300 core: include replaced with include_file - due to opinions expressed on mailing list suggesting it reflects better the meaning commit 3653a528efc6f9f760ec31f506b37e567c6ed275 Author: Daniel-Constantin Mierla Date: Thu Sep 3 13:16:27 2009 +0300 domain(k): new module parameter - register_myself - cotrol registration of domain list to 'myself' check callbacks - disabled by default (requested by Juha Heinanen for backward compatibility) commit c76cffae64d8f1711f776de2bf23f64265b1a432 Author: Miklos Tirpak Date: Thu Sep 3 09:56:18 2009 +0000 cfg framework: fix the initialization of child processes (backport from sip-router) The number of child processes that keep updating their local configuration needs to be known before any child process is forked. Before this the child processes increased the reference counter of the callback function list items after forking. If a child process was forked "too fast" then it freed the list before the other processes had a chance to refer to the list item. The result was that some child processes missed the initial configuration changes. (Those changes that had per-child process callback defined.) commit d12ab1890360072e6b1658b3f738f56a9590f872 Author: Andrei Pelinescu-Onciul Date: Tue Sep 1 18:44:36 2009 +0200 tm: async t_uac (t_uac_wait) support t_uac_wait implemented using the new rpc "wait" support. For now the implementation is just the fifo uac updated to use rpcs. The result of the rpc call is the reply code (int) followed by a list of strings: reason phrase, request uri, next hop uri, dialog routes list (one string with all of them), rest of the reply (everything except the first line in one string). Missing parts are represented by empty strings. The current format is not yet final. It might make sense to switch to a structure if there is no backwards compatibility problem. commit 4dc222c20c93899a35046c1559a94618fb01e84d Author: Andrei Pelinescu-Onciul Date: Thu Jul 30 15:45:11 2009 +0200 xmlrpc(s): basic support for delayed replies Support for delaying replies with a few caveats: - a special delayed reply context must be created first (via the new rpc hooks). - a function using this context does not have any access to the original rpc message (so if it needs any parameters from the original rpc request it must pass them somehow to the function that will use the delayed reply context). - a delayed reply context can be used _only_ from one process (is not possible to add part of the reply from one process and another part from another process). - when finished the delayed reply context _must_ be closed (using the new rpc hook). This must be done from the same process in which the delayed reply context was used. commit e256ce91db53172264a6e42cfd5040b30dada526 Author: Andrei Pelinescu-Onciul Date: Thu Jul 30 15:40:42 2009 +0200 core: rpc capabilities and delayed reply api - added a new rpc function for interrogating the current rpc transport capabilities (for now the only extra capability is RPC_DELAYED_REPLY). - added a new special delayed reply rpc context and rpc functions hooks for creating and closing it. commit 81860287cd49b762eafb49a50a0345fc89be2b93 Author: Andrei Pelinescu-Onciul Date: Thu Jul 30 15:35:37 2009 +0200 core+tm: moved sip msg clone functions to the core - moved all sip msg clone related functions to the core, since the xmlrpc modules will need them too. - renamed sip_msg_cloner() to sip_msg_shm_clone(). - msg_lump_cloner() is no longer static and returns 1 for no change, 0 for successful cloning and -1 on error. commit 5322385b2238c1cff272a42b8fa7e234f36a6f0b Author: Miklos Tirpak Date: Wed Sep 2 17:03:57 2009 +0200 cfg framework: fix the initialization of child processes The number of child processes that keep updating their local configuration needs to be known before any child process is forked. Before this the child processes increased the reference counter of the callback function list items after forking. If a child process was forked "too fast" then it freed the list before the other processes had a chance to refer to the list item. The result was that some child processes missed the initial configuration changes. (Those changes that had per-child process callback defined.) commit ef2cebf7ac61e36c7cb0f3b01853e8560cd3bf86 Author: Juha Heinanen Date: Wed Sep 2 18:02:20 2009 +0300 modules_k/htable - documentation clarification * Clarified meaning of "size" parameter in htable definition. commit 67ae0865fbdc175b0e72eadb6a098325e9168a70 Author: Daniel-Constantin Mierla Date: Mon Aug 31 13:01:46 2009 +0300 core & avpops: fix overlapping avp flag - k avpops uses a flag to mark whether a loaded avp from db has changed, in order to decide if worth to update db - the value was overlapping with flags defined in sr core - reported by Juha Heinanen commit b1a941a21c7404c6a21df45b988b40695efcb347 Author: Juha Heinanen Date: Fri Aug 28 20:40:05 2009 +0300 modules/lcr: added checks on validity of lcr_id parameter. commit c29222b15340f6b86b839811b322e4953b020041 Author: Daniel-Constantin Mierla Date: Fri Aug 28 11:46:31 2009 +0300 modules_s: include sr_module.h - some modules updated to include sr_module.h as they need access to fparam_t - previously that was inherited from modules_s/sl/sl_funcs.h which was included by modules_s/sl/sl.h - modules_s/sl/sl.h became simple API definition being included by modules_k/sl/sl.h in order to export same API in K version commit 0658a37570683eaec57f138e5a07feb59f4bfbaf Author: Daniel-Constantin Mierla Date: Fri Aug 28 11:44:37 2009 +0300 xmlrpc(s): remove the K sl define - no more needed - the modules should work the same with any version of sl module commit 91c1f6c8b9731d0c6d760e93cd5477f7b4cf938a Author: Daniel-Constantin Mierla Date: Fri Aug 28 11:40:35 2009 +0300 sl(k): implement ser-like SL api - SER modules dependent of sl module can work now with k-sl - exported sl_send_reply() ser function takes the reason as charz while k version is str - conflict was resolved since SER does the export via sl_api_t structure and bind_sl() function, kamailio does via sl_binds structure and load_sl() function - both are now included in k-sl module commit 974722abe961b7833ca06292f8032737fe2a479e Author: Daniel-Constantin Mierla Date: Fri Aug 28 11:38:14 2009 +0300 sl(s): move typedef of sl_send_reply_f in sl.h - modules_s/sl/sl.h is included by modules_k/sl/sl.h to export ser-like SL API in kamailio sl module - allow using ser modules dependent of sl with k-sl module commit 0fa738b70e8978587f0a1ca7e5db54b12ece4e43 Author: Daniel-Constantin Mierla Date: Thu Aug 27 11:28:33 2009 +0300 core: use count() for 'include' directive commit 1dfc197d38672eac079ad2a93238cb5642c6c253 Author: Daniel-Constantin Mierla Date: Thu Aug 27 11:22:10 2009 +0300 core: callback function support for myself check - modules can register callback functions for myself check condition - domain module is one candidate, resulting in coherent handling of local domains via check myself operation - callback functions must have same prototype and return codes as check_self(...) function from core commit a9f1019eea67956117677bb2566106db07128c86 Author: Daniel-Constantin Mierla Date: Thu Aug 27 11:20:29 2009 +0300 domain(k): register check self function - list of domains handled by module match now the 'myself' condition - the module register a callback function for 'myself' checks - port and proto are ignored since it has only domain names commit b3368c5296efeba88b4823fa50903e2d4f9a975d Author: Daniel-Constantin Mierla Date: Wed Aug 26 20:23:03 2009 +0200 perl: use C append_branch() in Perl function - perviously mk_action() was used resulting in lot of pkg operations at runtime - fixes the memory leak reported by James Pucket commit eb31249895a52c351529c05ce7622b6382c87d83 Author: Daniel-Constantin Mierla Date: Wed Aug 26 13:19:36 2009 +0300 core: included file name must be between double quotes - better suggestion that is a static string value (Jan Janak) - new syntax: include "file_name" - inside double quotes, following escape are allowed for now - \t - tab - \w - white space - \r - CR - \n - LF commit eac773a6d4701391739a61e7eca8c23b80e1e429 Author: Daniel-Constantin Mierla Date: Wed Aug 26 11:51:51 2009 +0300 core: action struct holds cfg file name and line - useful to print cfg file position for runtime action errors commit 8c69c5036d520d9b846f0a9fc0c8d20e686cdcb8 Author: Daniel-Constantin Mierla Date: Wed Aug 26 11:50:25 2009 +0300 core: print cfg position for action's runtime error commit 7484db5b7d25b10c3603a6676c66232f430fc863 Author: Tomas Mandys Date: Tue Aug 25 19:30:14 2009 +0000 - iptrtpproxy.cfg support (share config data between iptables and ser module) commit d20565193c1176312a29d75710d494707abdf6a5 Author: Daniel-Constantin Mierla Date: Tue Aug 25 19:27:01 2009 +0300 core: support for include file in cfg - syntax: include path/to/file - example: include checks.cfg - path can be absolute or relative - if path is relative: - first attempt is to open the file relative to current directory - second attempt is to open the file relative to the directory of the file including it - if include file fails, then print error and exit - cfg syntax error messages print file name - there is no restriction where 'include' can be used, can have global parameters, module configs or entire/parts of route blocks commit 778c4352f2cbbc572a001e7ef9f2bf18d453a302 Author: Elena-Ramona Modroiu Date: Tue Aug 25 11:36:59 2009 +0300 rls: memory leak fix - port of K #5909 commit a3b0f700d10d0b310766a34ec6e7390455e5ba64 Author: Elena-Ramona Modroiu Date: Tue Aug 25 11:16:53 2009 +0300 rls: fixed supported header name - port of K #5908 commit 6dac6b618015314811b94127490e906d535f44fd Author: Daniel-Constantin Mierla Date: Thu Aug 20 16:12:35 2009 +0300 pv: new pv class $sel(name) - access select (ser cfg variables) values via PV framework - read-only PV - examples: $sel(@ruri), $sel(@via[2].host) commit c37c22b4af29fed88c5655a5405876ffc640e5b2 Author: Daniel-Constantin Mierla Date: Thu Aug 20 12:57:01 2009 +0300 core: support to add rport parameter to local via hdr - new cfg function - add_local_rport() - to add rport parameter to local via header (rfc3581) commit c745469fb8af0101b26de8bee82c4314dfcafab9 Author: Daniel-Constantin Mierla Date: Thu Aug 20 11:49:14 2009 +0300 core: server signature value can be set via param - server and user agent signature were only defines so far - two new parameters server_header and user_agent_header allow to define them via cfg parameters - default values are the same so far commit d3be842237ba670d671b8af0f59a39dda7503545 Author: Daniel-Constantin Mierla Date: Thu Aug 20 11:48:35 2009 +0300 tm: use server signature from config var commit 95bf86454e277a7a0ef1c41c2995806f65eda17b Author: Daniel-Constantin Mierla Date: Thu Aug 20 10:41:02 2009 +0300 core: added log_name config parameter - log_name allows to set app name to be used when printing to syslog - useful to filter log messages when running many instance on same server commit bb0fac6ac04af672dceca9ae1f4ca43106fb56d1 Author: Henning Westerholt Date: Wed Aug 19 16:54:53 2009 +0200 auth(k): fix proxy/ www_challenge function, extends docs a bit (port r5874) - proxy_challenge / www_challenge was not sending any reply, in case the nonce could not be created (with nonce_reuse = 0, default since 1.4) - added a note to the docs about return-values from the auth-module - regenerate README file commit c742ca80bcdfdd844a0dd03138b1c67c6995be57 Author: Henning Westerholt Date: Wed Aug 19 16:51:44 2009 +0200 lib kmi: fix double allocation length calculation in mi_add_attr function - patch from marius zbihlei, marius dot zbihlei at 1and1 dot ro, port from r5882 commit 1a0c0dd44a6d45d6193d7adb487a2d7665474d2f Author: Henning Westerholt Date: Wed Aug 19 16:44:48 2009 +0200 cr: small fix in doxygen, fix obselete function description (port from r5897) commit 5ec9f271fad97a4abbf151e55eaf509c3d9f5722 Author: Henning Westerholt Date: Wed Aug 19 16:40:04 2009 +0200 cr: documentation extension related to the prime route behaviour (port r5898) commit 91d2ed7e550aee380a03333abff557cb427bf03d Author: Henning Westerholt Date: Wed Aug 19 16:37:10 2009 +0200 auth_db(k): fix error in auth_db documentation for calc_ha1 (port from r5910) commit 21775b41536b6d623e3bd750feb015b13b423fcf Author: Henning Westerholt Date: Wed Aug 19 16:35:06 2009 +0200 cr: fix stupid bug related to the (legacy..) prime_route function (port from r5911) commit 20747a3a7ce264b8f6bef5e79d2d49ba107c6259 Author: Jan Janak Date: Fri Aug 7 14:19:36 2009 +0200 auth_identity: Add -lrt and -ldap to the list of libraries Two more libraries are needed when compiling auth_identity module statically, -lrt and -lldap. Reported by MÉSZÁROS Mihály commit a2bae03c1760ea5764728e3611ee82161270bedd Author: Jan Janak Date: Fri Aug 7 13:35:39 2009 +0200 tls: Set internal module name to "tls". Set module name to "tls", not "tlsops". Reported by MÉSZÁROS Mihály commit b16b129457bb7f1198fab78bea367e5c19ea8ca7 Author: Daniel-Constantin Mierla Date: Tue Aug 4 16:53:44 2009 +0200 topoh: new module for hiding topology details - transparent for script writer and processing type (stateless, stateful) - it is not affected by server restart - can handle cloud deployments by using same secret key commit 85acffe10f182c5d0cfb382f33ff5a2d1203524a Author: Daniel-Constantin Mierla Date: Tue Aug 4 16:47:10 2009 +0200 core: new sr events system - designed to have small footprint in core - the goal is to execute a event manager function during core processing - event managers can be implemented in modules or elsewhere - two event types added: SREV_NET_DATA_IN and SREV_NET_DATA_OUT (see the other commit) commit 88b792e4932b33700f5240be3923c19394c8e4d0 Author: Daniel-Constantin Mierla Date: Tue Aug 4 16:43:30 2009 +0200 core: execute callbacks for NET_DATA_IN and NET_DATA_OUT - NET_DATA_IN is executed when a sip message is received. The callback may replace the content of incoming buffer, assuming BUF_SIZE for its size - NET_DATA_OUT is executed when a sip message is sent. The callback may replace the output buffer content with a new pkg location commit cabd988384344a485377b817da4dc49ab0151a91 Author: Daniel-Constantin Mierla Date: Mon Aug 3 15:54:54 2009 +0200 presence_xml: define _DARWIN_C_SOURCE 1 - compile the module on darwin, workaround for strptime commit b1336a679ad482b67e0373ac71744c18cbbd3942 Author: Andrei Pelinescu-Onciul Date: Thu Jul 30 15:57:27 2009 +0200 core: script parsing avp flags fix Fix bug when parsing attr_id_any_str used by the avp flags script functions (setavpflag(), resetavpflag(), isavpflagset()). Closes: SR #11. Reported-by: Greger Viken Teigre gregert at teigre com. commit 46b785247c6d9c4c96fca25ad3ad66312933aa48 Author: Daniel-Constantin Mierla Date: Wed Jul 29 16:39:07 2009 +0200 ignore auto-generated files on mac os x commit d34c702efad58d158c01aca988c006227292488f Author: Daniel-Constantin Mierla Date: Wed Jul 29 11:20:59 2009 +0200 registrar(k): local send_reply() renamed - new name reg_send_reply() - symbol conflict with sl module version on darwinos commit ba2df49a2b69c1fd13cf579a79747188bd77d596 Author: Daniel-Constantin Mierla Date: Wed Jul 29 11:13:05 2009 +0200 rls(k): include lib/kcore/hash_func.h - fix warning for using core_hash() function commit 0899e739f510fde20ff0705076aeb6e3ee57a2ce Author: Daniel-Constantin Mierla Date: Wed Jul 29 11:08:39 2009 +0200 modules_s: destroy() function set to static - fix namespace conflicts on darwinos commit 81fad30ac1b1e0674442e1651d20dd7ffceac19e Author: Daniel-Constantin Mierla Date: Wed Jul 29 10:41:25 2009 +0200 modules_k: destroy() functions set to static - fix namespacing conflicts in darwinos commit 1ba4916a601b9be89507b7b1d3f3f583ca40a6eb Author: Juha Heinanen Date: Fri Jul 24 19:10:23 2009 +0300 modules/utils: added check on size of http_query reply - Added check on actual size of http_query reply body that fixes possible crash if body does not contain a linefeed. - If body does not contain a linefeed, return whole body as result. commit 934de3e13e2d37ef7d820fbba80264de7cb1fd9e Author: Andrei Pelinescu-Onciul Date: Tue Jul 21 01:18:38 2009 +0200 tm: dialog send_socket support t_uac()/t_uac_prepare() use now the dialog->send_sock if set (fixes rpc t_uac_* and mi_t_uac_dlg not obeying the send socket parameter). commit ded509e08679fe9f836386badca21c0fe3170de1 Author: Andrei Pelinescu-Onciul Date: Tue Jul 21 01:15:02 2009 +0200 tm: new uri2dst() version - new uri2dst2() function which can have the send_socket passed directly to it. - uri2dst() is now a wrapper over uri2dst2(). commit bc71de00c3e8cddf76044180315f5ce8c93495f4 Author: Andrei Pelinescu-Onciul Date: Tue Jul 21 01:10:05 2009 +0200 core: get_send_socket fix for tcp or tls forced socket One of the get_send_socket() sanity tests, checks if ser really listens on the forced socket. For tcp and tls this test should not be performed (the sockets are closed for the processes that do not need them => cannot test by looking at the fd). commit 9981e48a4f9517c016402897e6b90916d5f64eb2 Author: Andrei Pelinescu-Onciul Date: Mon Jul 20 23:51:27 2009 +0200 core: enhanced get_send_socket() version get_send_socket2() added. commit 4bc6bf9e8469ffc67dc1e19f1695125180b40f9d Merge: f90cfa1 6be3dfe Author: Andrei Pelinescu-Onciul Date: Tue Jul 21 14:53:26 2009 +0200 Merge commit 'origin/tmp/build_local' * commit 'origin/tmp/build_local': core: init via_len to cope with no via update flag tm: local req. route: do not save/restore the avps tm: local req. route: cache route id tm: local req. route: always free the tmp sip msg tm: local req. route rcv init fix tm: updated execution of event route core: build_req_buf_from_sip_req() has a new parameter tm: update to new signature of build_req_buf_from_sip_req() tm: execute event_route[tm:local-request] if defined commit 6be3dfe5d0ae5f05fd5acb2e1b8858fa658044ed Author: Daniel-Constantin Mierla Date: Tue Jul 21 13:49:36 2009 +0200 core: init via_len to cope with no via update flag commit fa699018d34721c79426fa657a68ca46ed0293b7 Author: Andrei Pelinescu-Onciul Date: Tue Jul 21 12:20:16 2009 +0200 tm: local req. route: do not save/restore the avps - reset_avps() moved after running the local req. route so at least there is a chance that some avps could be used (although it's unclear what non-global avps could have made it so far so it's probably safer to say that in general no defined avps should be expected). - no need to save or restore the avps after running the local req. route (they are reset anyway). commit 5c037f80bd047518c6bc879f33acad611014143a Author: Andrei Pelinescu-Onciul Date: Tue Jul 21 11:58:51 2009 +0200 tm: local req. route: cache route id - resolve the route name only once, at startup (mod_init since this route name is fixed) and cache it. - more likely()/unlikely() added to the ifs (optimizing for no local req. route and local req. route not changing the message). commit 0f6dc007f9454ed000df5b6601961950e0b72367 Author: Andrei Pelinescu-Onciul Date: Tue Jul 21 11:25:39 2009 +0200 tm: local req. route: always free the tmp sip msg commit ef6fed5b07e4f199974e2236d1f44526d487559c Author: Andrei Pelinescu-Onciul Date: Tue Jul 21 11:10:48 2009 +0200 tm: local req. route rcv init fix - dialog->send_sock can be null and should not be used (switched to dst.send_sock which is guaranteed to be non-null at that point) - initialize also the other members of the msg rcv structure: dst_ip, dst_port, src_su, bind_address and dst.comp. Note: the rcv structure is initialized as if the message originated from the dst.send_sock, so in the script src_ip & friends will be the send ip. This is different from on_send route, were src_ip is the original forwarded message source and snd_ip is the send ip. commit f90cfa15340ad74737cc3b2cc67f08347e7fbacc Author: Andrei Pelinescu-Onciul Date: Mon Jul 20 18:28:03 2009 +0200 tmx(k): mi_tm_uac_dlg uris fix Replaced dlg.hooks.request_uri with dlg.rem_uri and dlg.hooks.next_hop with dlg.rem_target. [ In sr tm the dialog hooks should not be changed, they are only used for internal caching. Any change to the hooks will be lost immediately after t_uac() is called (t_uac() re-calculates the hooks each time it is called). One should use instead the correspondent dlg structure members. ] commit d6f5b4b05166f3124379337ca3c0e28c54b7ab09 Author: Andrei Pelinescu-Onciul Date: Mon Jul 20 17:21:25 2009 +0200 tm: rpc_uac* support fifo/unixsock uac revived in rpc form and updated to the latest tm: - tm.t_uac_start - fifo_uac rpc equivalent with the following differences: * extra send_socket parameter for kamailio compatibility. * empty parameters can be specified either by '.' (backwards compatibility) or by "" (empty string). * it doesn't wait for the final reply and it doesn't include the sip reply in the rpc reply (it sends immediately an empty reply indicating only success or failure) - tm.t_uac_wait - like above, but it's supposed to wait and return the final reply. However right now it will only return an error (it's not yet fully implemented). commit df088fb86adaf8f10bbdfebd5502ea9590341bc8 Author: Andrei Pelinescu-Onciul Date: Mon Jul 20 13:00:37 2009 +0200 core: parse_phostport split for k compatibility parse_phostport in sr and ser returned a list of pkg_malloc'ed addresses belonging to the same multi-homed "group". For example sctp:(1.2.3.4, 5.6.7.8):5080 is a valid address and it means that this sctp listening socket must use multi-homing on the 2 IPs. However several kamailio modules use parse_phostport and expect the old integer returning version. In this case it was easier to split the function in the core into parse_phostport() (old behaviour) and parse_phostport_mh() (returns list of MH addresses) and make the core command line parser use the MH supporting version. commit beb71da826ed6e8b533bb1c62b7e5ff179ed5e6f Author: Andrei Pelinescu-Onciul Date: Mon Jul 20 10:21:36 2009 +0200 tmx(k): missing type for mi_tm_uac_dlg callback sr tm t_uac() does not automatically register any transaction callback (unlike old ser or kamailio versions). If a callback is desired, besides the callback pointer, the callback type mask must also be specified (in this case TMCB_LOCAL_COMPLETED). commit f0ab0db3b66fcc7912065ee960aff71615e9ce3e Author: Andrei Pelinescu-Onciul Date: Mon Jul 20 10:16:10 2009 +0200 tm: AS added needed membar When compiled with -DWITH_AS_SUPPORT build_local_ack() needed a membar_write_atomic_op() before setting the new local ack retr. buf pointer (this will force the local_ack content to be fully written before replacing the pointer and it's need on some non-x86 archs.). commit 311d365b18fca29379e57e02855fd71b325fb7eb Author: Andrei Pelinescu-Onciul Date: Mon Jul 20 10:13:47 2009 +0200 tm: AS - fixed onsend callbacks invocation When compiled with WITH_AS_SUPPORT and TMCB_ONSEND, ack_local_uac() used a wrong way for calling the onsend callbacks (compile error). commit 1ff6c9a7fbbc9369d0d240587b21857a4888c47a Author: Daniel-Constantin Mierla Date: Sun Jul 19 17:37:22 2009 +0200 dispatcher(k): safety checks for duri - due to usage of SR append_branch() instead of km_append_branch(), duri has to be checked before giving inner fields as parameters commit fd5621f188d23d89bc4e475e3bc1e7964a065a90 Author: Daniel-Constantin Mierla Date: Sun Jul 19 17:19:25 2009 +0200 dialog(k): fixed db initialization - child init DB initialization condition properly tests the db mode - reported by Juha Heinanen commit 3390d4cf787b58f440ecd46dcb05910b060f8dc4 Author: Andrei Pelinescu-Onciul Date: Sat Jul 18 11:24:19 2009 +0200 makefile: don't install tls certs & cfg by default Install tls certs & cfg only if the tls module is installed (moved certs & cfg installation from the main Makefile to the tls module Makefile). commit aa9fa735a88363d9a452a4b84dcd25b516d731cd Author: Andrei Pelinescu-Onciul Date: Sat Jul 18 11:05:05 2009 +0200 core: script engine cleanups Use named enums for action types, expression types, expressions left operands, expression right operands and action parameter types. This should avoid future type mismatching bugs (like trying to compare a left expr. operand type with a type that can exist only on the right part) by triggering compile time warnings. For extra protection the expression left operands and right operands possible value do not overlap anymore. commit 009a8756c1accb2406adecf3e1b20f315f51a24d Author: Andrei Pelinescu-Onciul Date: Sat Jul 18 10:05:16 2009 +0200 core: expr string length fixup fix - moved the string length fixup before the rve/rval optimisations: the string length fixup was executed after the rve/rval optimisations and would try to re-calculate the length of the string (which was already filled in by the optimizer). However the rval optimizer did not 0-terminate strings => this second re-calculation was wrong. - the rve/rval optimiser 0 terminates strings (although not strictly needed it's better for debugging and would avoid problems similar to the above one). - don't try to fix a string in the left side of an expression, there can be no strings there (and by chance METHOD_O==STRING_ST). Reported-by: Juha Heinanen jh at tutpro com commit c5e8ac5603f5a770b2306cd0d574c20586d788ad Author: Andrei Pelinescu-Onciul Date: Fri Jul 17 18:15:44 2009 +0200 core: config parser minor fix - use a pkg_malloc'ed copy of yy_number_str for host_if_id - always free ID/NUM_ID/host_if_id after copying them (bug introduced in the last merge) commit 4d601c6d0b41eb26cc3a89ae3661b8be555f8dad Merge: 98c5d63 f9276a5 Author: Andrei Pelinescu-Onciul Date: Fri Jul 17 18:09:01 2009 +0200 Merge commit 'origin/ser_core_cvs' * commit 'origin/ser_core_cvs': core: config parser listen if names fix core: config parser listen fix core: interface names in socket list port fix core: startup socket list fix core: parse_headers flags fix tm: fifo access From fix cfg framework: fix the group handles in the main process Conflicts: cfg.lex cfg.y commit 98c5d63ebb246b1c640f228dcf0035e957246dd0 Merge: dba9e85 8e1f906 Author: Andrei Pelinescu-Onciul Date: Fri Jul 17 17:45:40 2009 +0200 Merge commit 'origin/ser_modules' * commit 'origin/ser_modules': - socket support - more -h messages - minor ERR message improvment presence_b2b: fix from & to header access rr: fix from header access commit 8e1f906e8dee090025f82e5c76355b75f7919d66 Merge: b9ec929 36e77b3 Author: Andrei Pelinescu-Onciul Date: Fri Jul 17 17:37:32 2009 +0200 Merge branch 'cvs-head' of ssh://git.sip-router.org/ser_modules into ser_modules * 'cvs-head' of ssh://git.sip-router.org/ser_modules: - socket support - more -h messages - minor ERR message improvment presence_b2b: fix from & to header access rr: fix from header access commit dba9e85e137cc3818a01cccb2930e7580564ecd1 Author: Andrei Pelinescu-Onciul Date: Fri Jul 17 17:10:07 2009 +0200 core: expr =~ fixup order fix The fixup for built-in expressions were in the wrong order: first RE and then RVE/RVALs, but a RVE/RVALs could be optimized away to a string => because of the wrong order at runtime the match operator might end up being used with a normal string instead of a RE. Now the order is RVE/RVALs fixup & optimisations, string fixups (len) and then RE fixups (so that by the time the RE fixup is run we know the final type of its operand). Reported-by: Nils Ohlmeier nils at iptel org commit f9276a5b4875a1e3ecda29d50013725642cc8af2 Author: Andrei Pelinescu-Onciul Date: Fri Jul 17 13:37:11 2009 +0000 core: config parser listen if names fix If no quotes were used in listen=x, it was assumed that x was an ip or a valid hostname (each domain part starts with a letter, numbers and '_' are not allowed as first chars). However this assumption failed when interface names were used, e.g. eth0.1 is a valid interface name, but listen=eth0.1 resulted in error (it worked only if quotes were used, e.g. listen="eth0.1"). commit 06020e851fcab3b4cdec6b613170214606fbbfb0 Author: Andrei Pelinescu-Onciul Date: Fri Jul 17 13:37:01 2009 +0000 core: config parser listen fix - do not crash when the listen=host line contains an invalid host (e.g. foo.1) - more null checks Reported-by: Cristian Constantin cristian.constantin at iptel org commit c4dbb39571c5e8d801956d8afc5134387de1a59a Author: Jan Janak Date: Fri Jul 17 11:34:24 2009 +0200 domain: Documentation of internal API Add docbook documentation for the internal API of domain module. commit d8fdebf9c589516185d5c6a4ff9453148f1b76f2 Author: Jan Janak Date: Fri Jul 17 11:10:51 2009 +0200 domain: Add internal function is_domain_local Add internal function is_domain_local that can be used to determine if the domain name given in parameter is on the list of local domains. The comparison of the domain name is always case insensitive. There already is is_local function that does something similar, so we can reuse the code from that function. is_domain_local takes a pointer to str as parameter and this function is then called by is_local which takes all the usual parameters that function which can be called from the script take. Finally, is_domain_local is exported through the internal API of the domain module. Function is_domain_local is now located in file domain.c and because of db_get_did was also moved to file domain.c commit dd5490500f006f86e520958c5ca2646a1e3a96b7 Author: Jan Janak Date: Fri Jul 17 00:15:39 2009 +0200 domain: API framework to be used by other modules Add a new data structure and function bind_domain that can be used by other modules to gain access to internal functions of domain module. Implement inline function load_domain_api that does everything that is necessary to make the API of the domain module available to the caller. commit bc807b614be48f959419d98ec0befe09a795d72a Author: Jan Janak Date: Thu Jul 16 23:46:27 2009 +0200 domain: Source cleanup Cleanup of source files: * Wrap long lines * Fix wrong indentations * Update logging macros to the current calling convention commit aa4e8fb0969a839b25b1d6081fb638159f5a28e8 Author: Jan Janak Date: Wed Jul 15 15:44:56 2009 +0200 domain: Boilerplace cleanup Remove the reference to proprietary license from iptel.org, rename ser to sip-router, remove cvs $Id$ tag, wrap the license text to 78 characters wide lines. commit 04938dc72661dfe0c8954f392558812f7aa3da78 Author: Andrei Pelinescu-Onciul Date: Thu Jul 16 14:05:50 2009 +0200 core: futexlock include hack for older futex.h Older non-fixed linux/futex.h version (<2.6.20) cannot be included from userspace without additional type declarations (which otherwise are included only if __KERNEL__ is defined). Note that most distribution fix this problem by distributing a modified /usr/include/linux/futex.h and not the default kernel one. However there are other distributions (like CentOS 5) for which this hack is needed. commit 5ca1a775f63f2b5f905fd89cafb0b614ee44b522 Author: Andrei Pelinescu-Onciul Date: Thu Jul 16 10:45:41 2009 +0200 ctl(s) doc: added the autoconversion parameter - info about the new autoconversion parameter - README re-generated commit 9216f8c4005dc3e8ef9e31b9a3eb0bd9dc3840e9 Author: Andrei Pelinescu-Onciul Date: Thu Jul 16 10:43:40 2009 +0200 xmlrpc(s): removed the introspection parameter Removed the enable_introspection parameter. It's hard-wired to on and cannot be changed (the methods needed are always exported by the core). commit b15f37fc1eb2fceaf8ea04e35e94850164f06cf5 Author: Andrei Pelinescu-Onciul Date: Thu Jul 16 10:39:36 2009 +0200 xmlrpc(s) doc: note about xmlrpclib bug - added note about xmlrpclib bug (waiting for connection closing) and workarounds (use a different transport class or make ser close the tcp connection after each answer). - list examples/xmlrpc_test.{pl,py} among the client examples - updated & fixed some links - README re-generated commit d6e8fdb3a06aab44c01ce5e5a2ca4f2d43117676 Author: Andrei Pelinescu-Onciul Date: Thu Jul 16 10:38:14 2009 +0200 xmlrpc(s) doc: added the autoconversion parameter commit 46fb4917c2163fd5c8bd01fdd866813211cd6ec7 Author: Andrei Pelinescu-Onciul Date: Thu Jul 16 09:36:22 2009 +0200 doc: rpc api documentation updated: the '.' modifier commit 36e77b35c20518c84f169a4092ca34c4908e81da Author: Tomas Mandys Date: Wed Jul 15 23:02:15 2009 +0000 - socket support commit 47cca1121e45d6c99375cfe80b63cbf634e05bd0 Author: Andrei Pelinescu-Onciul Date: Wed Jul 15 22:55:28 2009 +0200 mi_rpc: use autoconversion to string Because mi doesn't understand anything else besides strings, use the new auto-convert modifier when reading the mi commands parameters. commit 1f7b7e075d35d0ca00fb943795f74af99fce06a1 Author: Andrei Pelinescu-Onciul Date: Wed Jul 15 22:49:23 2009 +0200 core: rpc more verbose when duplicates found When duplicate rpc names are detected, print them (WARN(..)). commit aafc8ea72a36be3ac9bd6115cd492a68e4166e85 Author: Andrei Pelinescu-Onciul Date: Wed Jul 15 22:46:07 2009 +0200 core: new debug core rpcs - added core.printi that expects integer parameters and prints them back in the reply (works with variable numbers of params.) - added core.echo that echoes back its parameters (works with variable number of parameters and with any type, it auto-converts all of them to string). - changed core.prints to work with variable number of parameters. commit 07276eb9a1173b4e58d14aa82a7b81e5f2dca824 Author: Andrei Pelinescu-Onciul Date: Wed Jul 15 22:39:20 2009 +0200 ctl(s): support for '.' and type autoconversion - support for the new '.' rpc->scan modifier (when used it turns auto-conversion on for the next input parameter, e.g.: rpc->scan(".s", &str)) - new module "autoconversion" module parameter that enables auto-conversion globally - fixed minor parameter number bug in binrpc faults, when the '*' modifier was used in rpc->scan() - added binrpc context garbage collection supports (needed to track memory allocation used in type conversions) commit 6f38c000cc3b5c76c99904fa7d5ab244aaa774f4 Author: Andrei Pelinescu-Onciul Date: Wed Jul 15 20:32:53 2009 +0200 xmlrpc(s): type autoconversion support - added a new module parameter ("autoconversion") that when enabled will try to autoconvert the xmlrpc parameters types into what the rpc method expects (e.g. if the method expects a string, but receives an int, convert the int to string). By default it's off. - support for a new modifier: '.' for rpc_scan. When used it turns auto-conversion on for the next input. E.g. rpc->scan(".s", &string) will work even if the next input is an int (it will convert it to string). More complex example: while((rpc->scan(c, "*.s", &p)>0)) rpc->add(c, "s", p); (work with any number of inputs/parameters, convert all of them to string and echo them back in the reply) commit 7a1676e337f40c286735060394963436854e999e Author: Henning Westerholt Date: Wed Jul 15 15:06:25 2009 +0200 fix error in cr dump command, reported from Edson 4lists at gmail dot com commit e437fdeacce0b07180b4d445a2eb2e920731fcb0 Author: Henning Westerholt Date: Wed Jul 15 14:50:02 2009 +0200 bugfix in cr and userblacklist modules (kamailio r5894) - fix error in module initialization which happened if a custom table name was configured in carrierroute and also userblacklist - it was reported as table version mismatch, which was of course really misleading - many thanks to Uriel Rozenbaum (uriel dot rozenbaum at gmail dot com) for his help in debugging this problem with a sample cfg and a binary build commit ad2df476fc2010c30a18a35551caebf87bba1c08 Author: Tomas Mandys Date: Wed Jul 15 10:45:37 2009 +0000 - more -h messages commit 5e06f219ce6d3c0572c31cd5fe0efff004e596fb Author: Andrei Pelinescu-Onciul Date: Wed Jul 15 00:12:03 2009 +0000 core: interface names in socket list port fix Due to an unfortunate typo, the port number was always set to 5060 for a listen address containing an interface name (e.g. -l eth0:5070 or -l udp:eth1:5062). commit 786670ec30e349f79a4237a5bdcd0edc513ac234 Author: Andrei Pelinescu-Onciul Date: Wed Jul 15 00:11:40 2009 +0000 core: startup socket list fix Fix crash on startup when dealing with consecutive duplicate socket ("listen") addresses. commit c13d686fb4b289968c707a1f45fc648f9773eaee Author: Tomas Mandys Date: Tue Jul 14 16:56:23 2009 +0000 - minor ERR message improvment - new clean_rtpproxy_attrs script commit 51aeea7d5197ca44d5aabd46085c6c1661a98d73 Author: Andrei Pelinescu-Onciul Date: Tue Jul 14 18:18:02 2009 +0200 tmx(k): remove unnecessary reply locking - reply locking is not needed around prepare_to_cancel() (former which_cancel()). commit 95a1194f97e74effbdf557e7fcc5db69c26ea1d7 Author: Andrei Pelinescu-Onciul Date: Tue Jul 14 18:13:26 2009 +0200 tm: remove unnecessary locking around prepare_to_cancel() - prepare_to_cancel() is lockless, doesn't need the reply lock anymore (_reply_light() and rpc_cancel()). - _reply_light() minor fix: don't run prepare_to_cancel() if the reply is not a final reply (might affect latter cancel generation) commit f7d892e55753f84461bbadd661ac8a4482137d6a Author: Andrei Pelinescu-Onciul Date: Tue Jul 14 15:00:36 2009 +0200 tm: minor improvement - killed an if in prepare_to_cancel commit d71043e8b74d5a4c30c7553d6722ec5d336c0d8d Author: Juha Heinanen Date: Tue Jul 14 17:48:14 2009 +0300 modules_k/permissions: fixed child initialization - Database was not initialized for all necessary children, which caused trusted_reload and trusted_dump mi commands to fail. commit 1a43484b132393a10f1530f7e71cc190eacaf56a Author: Andrei Pelinescu-Onciul Date: Tue Jul 14 14:49:05 2009 +0200 tmx(k): updated to the which_cancel change - updated to the which_cancel name change - use the new prepare_to_cancel skip_branches parameter to skip the current branch when generating the CANCEL, instead of the previous unsafe way (in sr which_cancel/prepare_to_cancel is lockless and so it's not safe to directly manipulate the cancel buffers even if the reply lock is held). commit 79edcdf278ff95b17b08f44affa636ec7a40aa40 Author: Andrei Pelinescu-Onciul Date: Tue Jul 14 14:44:21 2009 +0200 tm: which_cancel renamed and takes more parameters - which_cancel() renamed to prepare_to_cancel() to better reflect its real purpose. - which_cancel_f renamed to prepare_to_cancel_f - tm_binds which_cancel member renamed to prepare_to_cancel - should_cancel_branch() renamed to prepare_cancel_branch(). - prepare_to_cancel() takes now an extra parameter (skip_branches) which contains a bitmap of the branches that should be skipped (not canceled). commit 418a2312875436ca0402f9b0b39831c6353f8403 Author: Andrei Pelinescu-Onciul Date: Tue Jul 14 07:40:17 2009 +0000 core: parse_headers flags fix Restore original flags after parse_headers was called with "next" (without restoring them, if parse_headers doesn't find again all the requested headers it will leave their flags cleared although they might be present in the message). commit 2b038252c53ebf3e149249037983c4bad6827a04 Author: Andrei Pelinescu-Onciul Date: Tue Jul 14 07:38:32 2009 +0000 tm: fifo access From fix Access the From header contents only if non-null. commit ee6eee271dceec6e1d4d581edd389687697ccdc7 Author: Andrei Pelinescu-Onciul Date: Tue Jul 14 07:36:51 2009 +0000 presence_b2b: fix from & to header access Access the parsed part of a From or To header only if non-zero and/or parse_from_header() returned success. commit 6fcd5e9fd6944e8e8ddac718c8f9ad51dcb46b7b Author: Andrei Pelinescu-Onciul Date: Tue Jul 14 07:36:19 2009 +0000 rr: fix from header access get_from() can be used _only_ if parse_from_header() returned success or if msg->from!=0. commit ad12d90508ef5f896ef0327362971cd9afba81f2 Author: Andrei Pelinescu-Onciul Date: Mon Jul 13 22:40:33 2009 +0200 sercmd: updated to the new mi_rpc format - updated to the new mi output format - support for tab completion for mi_dg, mi_fifo and mi_xmlrpc commit 1e1cc81d8f7c18615b78335f889c8a3de21dac24 Author: Andrei Pelinescu-Onciul Date: Mon Jul 13 22:35:34 2009 +0200 mi_rpc: support for different "modes" Added more rpc commands: mi_fifo - output compatible with the k mi_fifo module, when using with sercmd (e.g. sercmd -f "%v" mi_fifo which) mi_dg - output compatible with the k mi_datagram module, when using with sermcd (e.g. sercmd -f "%v" mi_dg which) mi_xmlrpc - output compatible with the k mi_xmlrpc module (should be used with the xmlrpc module) The "mi" command was changed too: it doesn't output a leading '+' anymore on each line and it doesn't print the result code (the result code is embedded in the rpc reply, there no need to print it). commit 4903fc5f9b5fa2b6047780dc192d6b41fd746d68 Author: Andrei Pelinescu-Onciul Date: Mon Jul 13 19:04:52 2009 +0200 xmlrpc(s): added rpc client examples Added rpc client examples/test scripts in perl and python. The python script has 2 versions: one with re-defined transport (that works properly without expecting the server side to immediately close the connection after answering) and one using the default xmlrpclib transport (which requires closing the connection from the ser xmlrpc route). commit 7dced0f9e7f8315c7a39b46e38a488cff105de7e Author: Andrei Pelinescu-Onciul Date: Mon Jul 13 18:03:47 2009 +0200 mi_rpc: mi returns always an array Try returning always an array: it makes no difference for sercmd, but it helps for xmlrpc. commit e792b7614aaa57ddf4482a23e21c959dd2f45f98 Author: Andrei Pelinescu-Onciul Date: Mon Jul 13 18:00:40 2009 +0200 xmlrpc(s): fix '*' rpc_scan handling The '*' modifier (marking the next parameters as optional) was not properly handled (the current input parameter was "eaten"). Reported-by: Juha Heinanen jh at tutpro com commit c0f12714391fa6b359cceaed22ed238ba5387457 Author: Miklos Tirpak Date: Mon Jul 13 15:13:12 2009 +0000 cfg framework: fix the group handles in the main process (backport from GIT) The main process does not have a local configuration, it has access only to the config values that were set before forking. As a result, the group handles cannot ponint to the shared memory address because the shared memory block may be freed later by one of the child processes. This problem resulted sometimes in a core dump after the processes were killed when the main process tried to access a variable from shared mem which was no longer available. commit f38774811308f3e33984fd1e7d1375f00202572f Author: Miklos Tirpak Date: Mon Jul 13 16:58:22 2009 +0200 cfg framework: readme correction Documentation about how to read "foreign" config values is corrected. commit df8b1cf011e0ecf4c9f06578ddc6b991fd1444c4 Author: Miklos Tirpak Date: Mon Jul 13 16:36:36 2009 +0200 cfg framework: fix the group handles in the main process The main process does not have a local configuration, it has access only to the config values that were set before forking. As a result, the group handles cannot ponint to the shared memory address because the shared memory block may be freed later by one of the child processes. This problem resulted sometimes in a core dump after the processes were killed when the main process tried to access a variable from shared mem which was no longer available. commit e12cf4810aa16da679bdad77359d7a29ed4225eb Author: Andrei Pelinescu-Onciul Date: Mon Jul 13 15:29:55 2009 +0200 core: deleted test.c.bak test.c.bak was one of the first files in the ser repository. test.c was used to test the first version of the sip parser and test.c.bak made it by mistake into the first cvs repository. commit e10380691300bcf5c88d1393d3b05f32657525a0 Author: Daniel-Constantin Mierla Date: Mon Jul 13 15:26:30 2009 +0200 seas: use TMCB_DESTROY tm callback commit 543f9a533699b1d963ee42c4e94f608082a3367c Author: darilion Date: Mon Jul 13 13:39:47 2009 +0200 Makefile: fix module names - radius_... --> misc_radius commit 462acb9bf0864bbb18f1a0683869cce8e35aafe0 Author: darilion Date: Mon Jul 13 13:36:53 2009 +0200 debian: fix rules file - fix postgress typo - remove non-existing modules - fix list of broken modules, and activate it, so that beta-users can make debian packages without errors commit a86fdc96c147c584836d44fb41c92176338bfa8d Author: Juha Heinanen Date: Mon Jul 13 15:28:59 2009 +0300 modules_s/domain: is_local can now be called from BRANCH_ROUTE - Added BRANCH_ROUTE to list of routes for is_local function after no one answered to my question on if it would cause any trouble. commit 5775f9b86b14ef5887112a12d098d38e283b47c0 Author: Miklos Tirpak Date: Fri Jul 10 16:02:14 2009 +0200 tm: reason phrase of 100 is corrected in t_suspend() - t_suspend() now uses the tm_auto_inv_100_r config option to form the 100 reply message. commit a3fe154263bd4c94e53c55ea7af42cf6e1952cd5 Author: Miklos Tirpak Date: Fri Jul 10 15:58:17 2009 +0200 tm: check whether or not 100 response has already been sent - Do not send the 100 Trying response when it has already been sent The script writer can do it for example before t_relay(). commit cd0ce113e857289f2b0e964a43abfa57ac3be707 Author: Daniel-Constantin Mierla Date: Fri Jul 10 00:23:58 2009 +0200 siptrace: removed trailing whitespaces - makes git happy, avoiding warning messages commit 94393b2da7e7922458653d8fa7f413a673383de1 Author: Daniel-Constantin Mierla Date: Fri Jul 10 00:18:42 2009 +0200 siptrace: module facelift - better structured traced data - more modularity to avoid duplicity commit bce53e2a14c07203e5914fdb41ca887765a28799 Author: Daniel-Constantin Mierla Date: Fri Jul 10 00:17:54 2009 +0200 tm: enabbled TMCB_ONSEND - used by siptrace module commit 53413e1f7ba0388fcaf7b2ed24e25067785f16ed Author: Andrei Pelinescu-Onciul Date: Thu Jul 9 21:51:03 2009 +0200 debian: various fixes and cleanups - fixed duplicate libraries - fixed wrong config install path - added a ser-db-modules package containing db dependent modules - debian rules major cleanup commit 2af7504fe4be356b59a53f7cb65311f433d107f3 Author: Andrei Pelinescu-Onciul Date: Thu Jul 9 21:47:26 2009 +0200 makefile: fix group_include fix recently introduced group_include bug commit de9ef971f95fbc086eb68be63864934ae8d608b2 Author: Daniel-Constantin Mierla Date: Thu Jul 9 19:05:16 2009 +0200 siptrace(k): some updates to work with sip-router core - module not completely ready - prepared to enable sip_trace() in onsend route to be able to store stateless forwarded messages commit d908ca84a6a6d0216ae53486f71221a21cfd53ae Author: Daniel-Constantin Mierla Date: Thu Jul 9 17:18:13 2009 +0200 nat_traversal(k): module compiles with sip-router core commit 8d26ed40d5646b410928ce44d85201a6b57a5ebb Author: Daniel-Constantin Mierla Date: Thu Jul 9 16:47:49 2009 +0200 core: temporary sip_msg flags reserved for K moved to end of bitmask - respective modules updated commit 56a54e9431ae76e676f2e8b93da9fefdf75894ec Author: Andrei Pelinescu-Onciul Date: Thu Jul 9 13:52:53 2009 +0200 makefile: dbtext(s) removed from the db group dbtext(s) is not yet migrated to the current db interfaces. commit 40a285274bbec1d9d56eae00f8ccd7d1a0751f36 Author: Daniel-Constantin Mierla Date: Thu Jul 9 12:35:13 2009 +0200 core: backup/restore script flags - safe usage of script flags in nested top routes commit 3734194dfe4b3e81c49119508ff9aa3dd4682978 Author: Daniel-Constantin Mierla Date: Thu Jul 9 12:30:48 2009 +0200 table: drop in event_route[htable:mod-init] - usage of drop in event_route[htable:mod-init] causes failure of child_init(), stopping the start process commit e17e027c920235fe0726b8948f647d76afb86ac7 Author: Daniel-Constantin Mierla Date: Thu Jul 9 11:56:26 2009 +0200 tm: updated execution of event route - use the new run_top_route() signature commit b70792cb874fd6193023838d2d38fa9c7a99420a Merge: 61f8641 4ce1715 Author: Daniel-Constantin Mierla Date: Thu Jul 9 11:54:35 2009 +0200 Merge branch 'master' of ssh://daniel@git.sip-router.org/sip-router * 'master' of ssh://daniel@git.sip-router.org/sip-router: core: run_top_route() can be give action context core: internal difference between cfg drop and exit kex: several K core stats implemented in callbacks makefile: more modules groups and make modules-all prefix_route(s): fix: the lock should be in shm prefix_route(s): fix mod_destroy/tree_close() debian: updated debian spec for sip-router makefile: fix make cfg when the cfg vars are already exported core: derive default config name from -DNAME commit 4ce1715db779ce1c805cbaa257a99e14adc44056 Author: Daniel-Constantin Mierla Date: Thu Jul 9 11:23:14 2009 +0200 core: run_top_route() can be give action context - functions calling run_top_route() can get access to context fields if they need - modules updated to new function signature commit 8ebb586dc492cb8c214c1aef9c14eab0110583b3 Author: Daniel-Constantin Mierla Date: Wed Jul 8 23:24:52 2009 +0200 core: internal difference between cfg drop and exit - drop sets the flag for exit and one extra: EXIT_R_F and DROP_R_F - no difference in processing right now (DROP_R_F not tested anywhere yet) commit ade0f159ac0aa28006c12b6116d5d7a69aa62488 Author: Daniel-Constantin Mierla Date: Wed Jul 8 22:55:14 2009 +0200 kex: several K core stats implemented in callbacks commit 380398ad08e1080ea3a2f7d521aeb4c8aa04bef6 Author: Andrei Pelinescu-Onciul Date: Wed Jul 8 18:41:38 2009 +0200 makefile: more modules groups and make modules-all - added more module groups (db, mysql_driver, postgres_driver) - cleaned up module groups usage (replaced a lot of ifs with a foreach) - modules-all is now a synonym for every-module commit 17b8e2fc2858e2f5578ad7374a36d22f82f2233f Author: Andrei Pelinescu-Onciul Date: Wed Jul 8 18:03:40 2009 +0200 prefix_route(s): fix: the lock should be in shm The shared_tree_lock was not in shared memory. commit 7fc0ed074caa98f1542a5b741f00b01078c730fc Author: Andrei Pelinescu-Onciul Date: Wed Jul 8 17:54:46 2009 +0200 prefix_route(s): fix mod_destroy/tree_close() tree_close(), called from mod_destroy did not take into account the possibility of mod_init not being run (e.g. startup error). Reported-by: Klaus Darilion klaus.mailinglists pernau at commit a506fcc07a9c30f7f0e79c1ba858444d8a81e395 Author: Andrei Pelinescu-Onciul Date: Wed Jul 8 17:36:38 2009 +0200 debian: updated debian spec for sip-router - fixed & cleaned "rules", they now use make cfg and are generally simpler - added a ser-tls package - re-enabled the ser-postgres package Note: right now the packages being built will be called "ser*", but they do include all the modules. commit b5cb01a366c63dd1e3cbf1f488f38a5dd61c8f7d Author: Andrei Pelinescu-Onciul Date: Wed Jul 8 17:31:56 2009 +0200 makefile: fix make cfg when the cfg vars are already exported - when make cfg was called with the cfg vars already exported it failed to generate a proper config.mak (e.g. called from make deb) - extra config sanity check - s/mysql/db_mysql in the mysql module group - added "deb" to the list of targets that don't need dependencies (minor optimization) commit 4c969ea99ac8a986fd7f5a4381bcd0fca0963770 Author: Andrei Pelinescu-Onciul Date: Wed Jul 8 15:42:47 2009 +0200 core: derive default config name from -DNAME The default config name was hard-wired to sip-router.cfg. Reported-by: Klaus Darilion klaus.mailinglists at pernau at commit 61f864106e136ab3100717f35511a0a82bcf9668 Author: Daniel-Constantin Mierla Date: Wed Jul 8 13:10:37 2009 +0200 core: build_req_buf_from_sip_req() has a new parameter - mode - a set of flags that define how the sip request is printed to buffer - BUILD_NO_LOCAL_VIA (1<<0) - skip adding local via - BUILD_NO_VIA1_UPDATE (1<<1) - skip updating top most via - BUILD_IN_SHM (1<<2) - output buffer allocated in memory - new function inc_msg_no() - increment and return msg_no - new function build_sip_msg_from_buf(...) to parse and partially fill sip_msg structure from a buffer commit fda26842518a286471ce27b5a74699dc798f64ab Author: Daniel-Constantin Mierla Date: Wed Jul 8 13:09:50 2009 +0200 tm: update to new signature of build_req_buf_from_sip_req() commit 8bae6347fdc3957110ae562e443f63dd8fd598a5 Author: Daniel-Constantin Mierla Date: Wed Jul 8 13:08:30 2009 +0200 tm: execute event_route[tm:local-request] if defined - call event_route[tm:local-request] if defined and local requests are sent by tm (similar to K local_route) commit 94ed30477687aa255a5b022eafe3aec8811c8214 Author: Raul Alexis Betancor Santana Date: Tue Jul 7 19:43:48 2009 +0100 drouting: Updated documentation - Erased references to blacklist management commit dd0874121b2bc8c0a2a76a4cd3238e1a8e720be2 Merge: 78120e1 4df07e0 Author: Raul Alexis Betancor Santana Date: Tue Jul 7 19:41:39 2009 +0100 Merge commit 'origin/rbetancor/drouting' * commit 'origin/rbetancor/drouting': drouting: blacklist functions remove drouting: Now the module compiles, but it's not tested drouting: drouting: drouting: drouting: Module for more flexible dynamic routing rules drouting: Documentation updated drouting: Updated all Copyright notices drouting: Makefile fixed to compile with OPENSER_MOD_INTERFACE drouting: new module to support Dynamic Routing commit 4df07e0bc7f8ac71dd788bf4d4b79072e7ea7d42 Author: Raul Alexis Betancor Santana Date: Tue Jul 7 17:48:39 2009 +0100 drouting: blacklist functions remove - All blacklist management functions removed, core take cares of BL when sending out request as we only rewrite uri's commit 78120e1cad5769d18899e77f1583b863a03ecbea Author: Andrei Pelinescu-Onciul Date: Mon Jul 6 22:58:19 2009 +0200 xmlrpc: propagate route error exit If the xmlrpc route exits with error, propagate the error downwards (return NONSIP_MSG_ERROR instead of NONSIP_MSG_DROP). commit 471589c5c0ae27e9d3937e3b9318982a8ec96fc7 Author: Andrei Pelinescu-Onciul Date: Mon Jul 6 22:54:52 2009 +0200 core: error handling for non-sip hooks receive_msg will exit with error if a non-sip msg hook returns NONSIP_MSG_ERROR. commit ed6838004eef2734a1a9667bbe56526de1463bf2 Author: Andrei Pelinescu-Onciul Date: Mon Jul 6 12:36:22 2009 +0200 tm: t_reply() first param. can be any var. type Switched first param. fixup to fixup_var_int_12(), thus allowing it to be a pvar. commit b25e31aaab556941d4f3057d7f6b106b2ed749bb Author: Andrei Pelinescu-Onciul Date: Mon Jul 6 12:26:19 2009 +0200 core: pvars support in ser *var fixups - all ser generic fixups (fixup_var_{int,str}_*) work with pvars (e.g. the fallback order for str is: pvar->avp->select->str). - fixed FPARAM_* definitions to allow better fallback for fix_param_types (int->select->pvar->avp->str) - fix_param() does not print anymore error messages for invalid pvars or avps, to allow fallback commit 537fbbea7382d6a47d41e6789dd84428f9b1e1ef Author: Juha Heinanen Date: Mon Jul 6 13:06:35 2009 +0300 modules_s/domain: log message level changes - Made module less noisy by turning INFOs to DBGs. - Print error instead of debug message if domain name to be looked for cannot be accessed. commit 2d14c2a6cf212743b49ed07e76241ea5d3186c55 Author: Juha Heinanen Date: Sun Jul 5 10:55:48 2009 +0300 scripts/mysql: updated 'gw' and 'lcr' table definitions - Updated 'gw' and 'lcr' MySQL table definitions. - No idea if a schema exists somewhere where sr tables are auto-generated. - The tables are assumed to have versions 10 and 3, respectively although there is no 'version' table in sr database. commit cd18b51a0676abcd0732acb25495b322bb76df40 Author: Juha Heinanen Date: Sun Jul 5 10:52:47 2009 +0300 modules/lcr: added 'defunct' column to 'gw' table - Added 'defunct' column to 'gw' table that can be used to defunct a gateway until the given time. commit f90164d0f430ab891f29e82125a56eddc3cf319a Author: Juha Heinanen Date: Sat Jul 4 22:36:41 2009 +0300 * modules_s/xmlrpc: allow use of k ls module api - Added Makefile #define for choosing between s and k sl API. commit d9d008e34130f2e85e3df78580e589f98f8c447a Author: Daniel-Constantin Mierla Date: Sat Jul 4 21:10:36 2009 +0200 tm: fix cloning parsed uri for to/from headers - parsed structure was not cloned - several fields in struct uri were not cloned commit f717262c67a45419d457989cf408fd81264ba900 Author: Juha Heinanen Date: Sat Jul 4 15:17:58 2009 +0300 modules_s/xmlrpc: fixed typo in name of module parameter - enable_instrospection => enable_introspection. commit 9c77d5329b45a493b741527bc8902456dbf51e7e Author: Daniel-Constantin Mierla Date: Fri Jul 3 20:19:47 2009 +0200 core: km_parse_avp_spec() update - fallback to ser style of avp name in $avp(id) if 'id' has no ':' and there is no avp alias defined - behavior was changed when I added support for K compatible avp aliases in pv module - issue reported by Andrei Pelinscu-Onciul commit db2eed950c3eba36f14ec5bc256120098fe3c024 Author: Daniel-Constantin Mierla Date: Fri Jul 3 20:18:26 2009 +0200 makefile: removed avpops from exclude modules - it compiles fine after removing ser version and moving the module in 'modules' folder commit b078383c95ebf4f3a3ee17b000e8c957c45278f9 Author: Juha Heinanen Date: Fri Jul 3 19:50:00 2009 +0300 lib/srdb2: marked four db flags as "reserved" - Marked last four db flags as "reserved" for private use. commit 7249f49dd59cdef9302ecbe2ceaa5965ba27e35f Author: Juha Heinanen Date: Wed Jul 1 16:38:35 2009 +0300 man pages: editorial changes - In sip-router.cfg 5 changed reference to "Sip Express Router" to "SIP Router" and changed reference to documentation page. commit e06c100b976cfec7c5b2976a88e9706be4aacf81 Author: Andrei Pelinescu-Onciul Date: Fri Jul 3 18:28:38 2009 +0200 cfg framework: fix sanity checks (again) The previous sanity check fix wrongly assumed that CFG_VAR_MASK would return 1< Date: Fri Jul 3 17:15:05 2009 +0200 domain: Documentation update Update domain module documentation. Now it describes all functions and parameters and also contains description of some of the concepts, such as virtual domains and domain-level attributes. commit 6c019568ad63476909d4af534238e567f7a49f33 Author: Klaus Darilion Date: Fri Jul 3 15:57:36 2009 +0200 - tm: document the unmatched_cancel parameter commit d738d2a722446d1606a420da16d381f3fd93d8cb Merge: 05914c3 e2f4753 Author: Klaus Darilion Date: Fri Jul 3 15:06:53 2009 +0200 Merge branch 'master' of ssh://git.sip-router.org/sip-router * 'master' of ssh://git.sip-router.org/sip-router: mangler(s): fixed missing var. definitions test: fix test 13, avp name for domain core: add openser database URL for compatibility, used with OPENSER_MOD_INTERFACE test: fix ctl and dbctl script path after import commit e2f4753b2591a8564907f09531ce44c0c397cc65 Author: Andrei Pelinescu-Onciul Date: Fri Jul 3 14:46:31 2009 +0200 mangler(s): fixed missing var. definitions ipExpression and portExpression were only declared as extern, they had no definition in sdp_mangler.c. Reported-by: Klaus Darilion klaus.mailinglists at pernau at commit 24a521c6e5da3256b51aa94533026aba0245de75 Author: Henning Westerholt Date: Fri Jul 3 14:46:41 2009 +0200 test: fix test 13, avp name for domain commit 146264f95b4e6523409ab4cf6db8785b44b33c91 Author: Henning Westerholt Date: Fri Jul 3 14:34:41 2009 +0200 core: add openser database URL for compatibility, used with OPENSER_MOD_INTERFACE commit 6f8c21bb608dd471bc7327433f01502ad0f6bad6 Author: Henning Westerholt Date: Fri Jul 3 14:32:44 2009 +0200 test: fix ctl and dbctl script path after import commit 05914c3f4b6f3e7c31712285fd44584003a8ec8b Author: Klaus Darilion Date: Fri Jul 3 14:40:57 2009 +0200 Revert "according to Di-Shi are K's and ser's osp module more or less the same, whereas Kamailio's osp module should be more up2date than ser's module. Thus, ser's osp module will be removed and K's osp module will be used as common OSP module." This reverts commit 6bdbd8e2ab1ec15695cc156ff74f20af799a947b. commit b48a399e12719878a52a307154d22e048dfbcd5c Author: sobomax Date: Thu Jul 2 15:07:14 2009 -0700 FORCE_RTP_PROXY_ERET -> FORCE_RTP_PROXY_RET for clarity. commit e79dd5d9649f02909e6a87dadba952d44a81e04a Author: sobomax Date: Thu Jul 2 15:06:25 2009 -0700 Forgot to update parameters of the send_rtpp_command() in the last checkin. commit 10250c1255a2c25f828726d01cfc64ad6a2906ef Author: sobomax Date: Thu Jul 2 15:02:44 2009 -0700 Rework fix for the static buffer overflow with the content of the overly long payload types list. Instead of silently truncating the list, use dynamic buffer allocated on heap to keep that list growing it if necessary. commit c5927189da3f7c4b7b736b24d8a9258c1a5ccaa3 Author: sobomax Date: Thu Jul 2 14:12:45 2009 -0700 Rework fix for the static buffer overflow with the content of the overly long payload types list. Instead of silently truncating the list, use dynamic buffer allocated on heap to keep that list growing it if necessary. commit 75837023e6793499720e06cff4a867633e8f21e5 Merge: 1ea464a 0902435 Author: Raul Alexis Betancor Santana Date: Thu Jul 2 21:14:37 2009 +0100 Merge branch 'master' into drouting * master: (728 commits) tm: suspended transaction was not always replied and freed core: fix EXTRA_DEBUG information about second via in parse_msg nathelper(k): fix for very long payload-type nathelper (k): fix for flag 'l' avpops: merge avpops modules according to Di-Shi are K's and ser's osp module more or less the same, whereas Kamailio's osp module should be more up2date than ser's module. Thus, ser's osp module will be removed and K's osp module will be used as common OSP module. remove shm_str_dup() from tls_util.[c|h] as it breaks compilation and is not used at all cfg framework: documentation for cfg_read_var* Add missed include. cfg framework: read variables by name with a handle domain: init db connection for RPC process presence: use event name from parsed structure core: parse_event - skip first ; for parameters select_core: fix @ruri.rn_user moving parsed ptr modules/lcr: fixed printing of lcr_id by lcr.dump_lcrs carrierroute: port from 1.5 branch, r5885 siputils(k): port from 1.5 branch, r5880 carrierroute: port from 1.5 branch, r5877 carrierroute: port from 1.5 branch, r5876, remove dead code (double return) registrar(k): port from 1.5 branch, r5873 ... commit 1ea464a3ee271810a560ca3c4cee0e96d8790027 Author: Raul Alexis Betancor Santana Date: Thu Jul 2 18:08:52 2009 +0100 drouting: Now the module compiles, but it's not tested - fixed call to sip_resolvehost commit 9b675c5a60ebb7c7a747312c0f3928eff9c2a966 Author: Raul Alexis Betancor Santana Date: Thu Jul 2 17:45:43 2009 +0100 drouting: - fixed access to rlist commit 090243564b4d54be19991457f7e014c46a131e06 Author: Miklos Tirpak Date: Thu Jul 2 18:37:56 2009 +0200 tm: suspended transaction was not always replied and freed - When the suspended transaction continued but no new UAC was added to the transaction, for example all the new branches tried to reach a blacklisted destination, then there was no error message returned and the transaction was never freed. commit 854020b243c1c608324c41621da583ca5ad30a7b Author: Raul Alexis Betancor Santana Date: Thu Jul 2 16:29:58 2009 +0100 drouting: - fixed do_action calls commit 4f3dbdd89505497b78ce7ce005f2e3a41923955e Author: Raul Alexis Betancor Santana Date: Thu Jul 2 15:53:08 2009 +0100 drouting: - changed db support to db1_k calls commit e90d502b2620391047b04c670c6c408b75d362f6 Author: Raul Alexis Betancor Santana Date: Thu Jul 2 15:42:11 2009 +0100 drouting: Module for more flexible dynamic routing rules - disabled blacklisting support till reviewed sr bl support commit da589b753539ebecfc2294b86bdcfe4bd09d64fb Author: Henning Westerholt Date: Thu Jul 2 12:38:48 2009 +0200 core: fix EXTRA_DEBUG information about second via in parse_msg commit 8c97cfc35fcaf17f67810f98725bb636601bb38b Author: Daniel-Constantin Mierla Date: Thu Jul 2 11:47:29 2009 +0200 nathelper(k): fix for very long payload-type - fix SF: #2813924: publishing very long payload-type to the rtp-proxy overflows a buffer - patch by Marcus Hunger commit d4796d9a04562e3bc9d45acd68393eb418828e98 Author: Daniel-Constantin Mierla Date: Thu Jul 2 11:44:58 2009 +0200 nathelper (k): fix for flag 'l' - fix SF: #2814137 - handle re-invite with force_rtp_proxy("l"); - patch by Marcus Hunger commit 90d2ba0236c7cb4a72ba074fbec7a86a89024e37 Author: Klaus Darilion Date: Thu Jul 2 11:35:22 2009 +0200 avpops: merge avpops modules - delete ser's avpops module (does not compile anyway) - use K's avpops module as common avpops module - Note: probably many of the avpops commands are not needed anymore as AVPs can be used directly in config script commit 6bdbd8e2ab1ec15695cc156ff74f20af799a947b Author: Klaus Darilion Date: Thu Jul 2 10:34:13 2009 +0200 according to Di-Shi are K's and ser's osp module more or less the same, whereas Kamailio's osp module should be more up2date than ser's module. Thus, ser's osp module will be removed and K's osp module will be used as common OSP module. commit 07afde0840cb537b281c250b34f0fd9e9576410c Author: Klaus Darilion Date: Wed Jul 1 14:36:11 2009 +0200 remove shm_str_dup() from tls_util.[c|h] as it breaks compilation and is not used at all commit 249df0253d2ef8fa3948ce50a4a76ba8f256fd1e Author: Miklos Tirpak Date: Wed Jul 1 14:23:09 2009 +0200 cfg framework: documentation for cfg_read_var* - How to read the variables of another module, core, or the script is documented. - cfg_read_var() fixed -- it did not allow reading the variables that had a fixup function. commit bdec66211cb75de63ee63b29ee3372739f4d283e Author: sobomax Date: Wed Jul 1 02:47:01 2009 -0700 Add missed include. commit bcf3fff9389fc06a0fcc92f7e9875b185929987f Author: Miklos Tirpak Date: Tue Jun 30 17:33:52 2009 +0200 cfg framework: read variables by name with a handle - read_cfg_var() is introduced which allows reading even the custom declared variables from the modules. It requires a handle returned by read_cfg_var_fixup() - read_cfg_var_int() and read_cfg_var_str() are wrapper functions commit d60f872ac4ae3b656585ceac69c15d536131ec92 Author: Daniel-Constantin Mierla Date: Wed Jul 1 00:10:22 2009 +0200 domain: init db connection for RPC process - make mi commands to work properly via RPC interface - reported by Juha Heinanen commit 602552de12720c9ab57eea1b33958953f1dfd336 Author: Daniel-Constantin Mierla Date: Tue Jun 30 22:26:32 2009 +0200 presence: use event name from parsed structure - event name is taken from event_t as the given value might have parameters - wipeer search uses above mentioned name - fill given parameter in contains_event() instead of local var and then copy commit 10e82c040dbf2ca5a3b200b2b232b9c362092706 Author: Daniel-Constantin Mierla Date: Tue Jun 30 22:18:52 2009 +0200 core: parse_event - skip first ; for parameters - skip ; after event body - event debug function prints to stderr since stdout is closed commit b7d3c7eafb994c768f4b7768b3e3f2fa93550819 Merge: 21ba29a d99a410 Author: Michal Matyska Date: Tue Jun 30 17:53:50 2009 +0200 Merge branch 'master' of ssh://mma@git.sip-router.org/sip-router commit 21ba29a12f505b107ef4fb70d74bff6df02acc7b Author: Michal Matyska Date: Tue Jun 30 17:44:54 2009 +0200 select_core: fix @ruri.rn_user moving parsed ptr - changed str* to str parameter type in search_param function to keep value of the parameter intact upon function return, otherwise the function moved the ptr to the beginning of the rn parameter or at the end of the pameters string. commit d99a4102bc1314e45185f84bd0daecd7d73c8dc3 Author: Juha Heinanen Date: Tue Jun 30 17:41:22 2009 +0300 modules/lcr: fixed printing of lcr_id by lcr.dump_lcrs - Fixed printing of lcr_id by lcr.dump_lcrs command. commit 68b6d2a99475cc0fdff9093d7212e91d4227c72f Author: Henning Westerholt Date: Tue Jun 30 14:19:52 2009 +0200 carrierroute: port from 1.5 branch, r5885 - apparently its not possible to use ID 0 with autoincrement columns, so we should start the example domain with id '1' commit 0c5cd640fa89038338555d69eec6496222e2e31c Author: Henning Westerholt Date: Tue Jun 30 14:17:26 2009 +0200 siputils(k): port from 1.5 branch, r5880 fix a bunch of docs errors, wrong module name in modparam commit 72b7c0f963a46d36cccca961d04f1c0a0655f937 Author: Henning Westerholt Date: Tue Jun 30 14:14:59 2009 +0200 carrierroute: port from 1.5 branch, r5877 fix error behaviour for cr_dump_routes MI command, e.g. in OOM conditions commit a06115db66feb2aa2b70afe5f98e02d7ba3b51d0 Author: Henning Westerholt Date: Tue Jun 30 14:12:28 2009 +0200 carrierroute: port from 1.5 branch, r5876, remove dead code (double return) commit 37bf92a82b5ff14d38cc22d7d30cc09fd537b98f Author: Henning Westerholt Date: Tue Jun 30 14:09:53 2009 +0200 registrar(k): port from 1.5 branch, r5873 "match_callid" should be initialized properly, otherwise "registered" may return false in some cases. commit 1a1ec3377814512dc7704ad381243faf24f40ef3 Author: Henning Westerholt Date: Tue Jun 30 11:46:30 2009 +0200 memcached: fix error in docs, reported from Alex Balashov commit 6c6e272929fe211467f894fd7bcdcb2dc1327552 Author: Andrei Pelinescu-Onciul Date: Mon Jun 29 20:50:47 2009 +0200 xmlrpc(s): support for the "*" modifier rpc_scan supports now the "*" modifier for marking optional parameters. commit eb367fc968ca3e9644e3fdfaf25ff13d776c4777 Author: Andrei Pelinescu-Onciul Date: Mon Jun 29 20:46:47 2009 +0200 ctl: fix rpc_scan return when "*" is used - the rpc_scan function (both for binrpc and fifo) did return the wrong number of parameters when the newly introduced "*" modifier was used. - for binrpcs, "*" switches to "nofault" mode only if the error is E_BINRPC_MORE_DATA or E_BINRPC_EOP (meaning no more data to read parameters from). All the other errors will generate faults, even with "*" in the format strings (e.g. parameter type mismatch, invalid value a.s.o.). commit 32c1a13ef4b1395cb891289af9b854f5686178d2 Author: Andrei Pelinescu-Onciul Date: Mon Jun 29 20:30:44 2009 +0200 rpc doc: added "*" and some minor fixes - documented the newly introduced "*" modifier for optional parameters. - fixed return value description for rpc->scan and rpc->struct_scan (these function always return the number of parameters read on success and - number of parameters read so far on failure and not 0/-1). - changed ctl and xmlrpc links to point to the auto-generated html files on sip-router.org/docbook/. - re-generated ser_rpc.txt commit d803b87b0f2ecf8da3954c28ad8af72000e862ce Author: Daniel-Constantin Mierla Date: Mon Jun 29 17:54:26 2009 +0200 kmi: added missing file mi_mem.h commit 85f2302e8448ee20edb12bc3b4e2911ca3b111ec Author: Daniel-Constantin Mierla Date: Mon Jun 29 12:34:08 2009 +0200 lib/kmi: option to build it with system malloc - MI lib can be built independently of core with system malloc for pkg memory (see Makefile) commit 5caeeb1266d5541bfe0437dcefba3d96d4ee03eb Author: Daniel-Constantin Mierla Date: Mon Jun 29 12:32:17 2009 +0200 tmx: t_hash MI command fixes - return 500 if TM_HASH_STATS is not defined - print only nodes corresponding to entries that have cur_entries or acc_entries != 0, otherwise is a huge list (2^16) of useless values commit 17ce4b4f36122b515efc7d62f70b55cb0cb17675 Author: Andrei Pelinescu-Onciul Date: Mon Jun 29 11:03:46 2009 +0200 sercmd: tab completion support for mi commands - tab completion is now supported for mi commands. E.g.: sercmd> mi p ps pwd sercmd> mi pw sercmd> mi pwd commit 72a573889c0126fedee20e80ff0fb5cf9f772a49 Author: Andrei Pelinescu-Onciul Date: Mon Jun 29 00:59:17 2009 +0200 sercmd: tab completion support for cfg. vars & groups - tab completion is now supported for cfg. groups and variables parameters for the following rpc commands: cfg.help, cfg,get, cfg.set_now_int, cfg.set_now_string, cfg.set_delayed_int, cfg.set_delayed_int. E.g.: sercmd> cfg.help t tcp tm sercmd> cfg.help tm fr_ fr_inv_timer fr_timer sercmd> cfg.help tm fr_i sercmd> cfg.help tm fr_inv_timer - tab completion fixed when spaces are in front of the command name (e.g. sercmd> wh works now). commit 1f0341882763c34493f0ff5e6ab7dd4f5b4ff992 Author: Daniel-Constantin Mierla Date: Sun Jun 28 12:53:27 2009 +0200 mi_rpc: new module - rpc command to execute MI commands - 'mi' rpc command can be used to execute K MI commands - example using sercmd: sercmd> mi uptime 200 OK + Now:: Sun Jun 28 12:45:37 2009 + Up since:: Sun Jun 28 12:24:27 2009 + Up time:: 1270 [sec] commit 13d7e923c4bb9b9a58371deb81727d2a10d13ef8 Author: Daniel-Constantin Mierla Date: Sun Jun 28 12:28:41 2009 +0200 ctl: '*' optional scan modifier - '*' can be used in rpc scan to mark the start of optional parameter reading - example: 'Sd*Sb' - mandatory str, mandatory int, optional str, optional bool - if optinal modifier is used, then scan does not call rpc_fault, so execution of rpc command can continue - to be used by rpc command 'mi' - execute K MI commands commit 282a314fca125783803ac67dc926519fb2ecb8df Merge: 220f00d f836b64 Author: Andrei Pelinescu-Onciul Date: Sun Jun 28 11:52:24 2009 +0200 Merge commit 'origin/ser_core_cvs' * commit 'origin/ser_core_cvs': core: compile io_wait support even if -DUSE_TCP is not set tcp: compile fix if -DUSE_TCP is not defined sctp: compile fix if -DUSE_SCTP is not defined commit f836b647ba8ef0bff1f7041c4cc6c9d6e41abff7 Author: Andrei Pelinescu-Onciul Date: Sun Jun 28 09:23:12 2009 +0000 core: compile io_wait support even if -DUSE_TCP is not set io_wait is needed now also by the ctl module, so it should be compiled even if no tcp support is desired. Its compilation can be turned off if NO_IO_WAIT is defined (but in this case one must make sure so no other piece of code using it will be compiled). commit 2e8c0383eb7ac0d58ecb34e53a261e52b7b2edd3 Author: Andrei Pelinescu-Onciul Date: Sun Jun 28 09:23:02 2009 +0000 tcp: compile fix if -DUSE_TCP is not defined Don't try to use tcp_max_connections if tcp support is not compiled-in. commit 650b96b5764db2196e2afeaf49bd7ff34fea72e8 Author: Andrei Pelinescu-Onciul Date: Sun Jun 28 09:22:38 2009 +0000 sctp: compile fix if -DUSE_SCTP is not defined If -DUSE_SCTP is not defined don't try to use sctp library includes. commit 220f00d67cb8eac370aeb97b763f9236e0d3cb5f Author: Daniel-Constantin Mierla Date: Sat Jun 27 23:05:13 2009 +0200 kex: init uptime value for mi cmd commit 721d126145538a9291a384c0b116a33b38674296 Author: Daniel-Constantin Mierla Date: Sat Jun 27 21:26:13 2009 +0200 pdt: fixed rank testing in child init commit 64321a99fa882dd60a473dbfb3cc8e589a1c139b Author: Juha Heinanen Date: Sat Jun 27 17:13:30 2009 +0300 * modules/lcr: check that r-uri user exists * Added check to load_gws() function that Request-URI user exists. Credits to Andrew Pogrebennyk. commit fbf689cce16836c91f684bca59ac2e6cd90a7fac Author: Andrei Pelinescu - Onciul Date: Sat Jun 27 14:35:59 2009 +0200 sctp cfg: fix -1 not allowed in some cfg options -1 is now allowed in sctp_hbinterval and sctp_max_assocs. commit a9529ef43640621ecced53c8fe9374f5b0c12fca Author: Juha Heinanen Date: Sat Jun 27 14:50:40 2009 +0300 * modules/utils: xcap table used already in child_init function * Optimization: moved use of xcap table from get_rules_doc function to child_init function. commit f3a1c116d430ed8de9081e9f605e5060a99e86f4 Merge: 12e2827 f5863aa Author: Andrei Pelinescu-Onciul Date: Fri Jun 26 20:25:09 2009 +0200 Merge commit 'origin/ser_core_cvs' * commit 'origin/ser_core_cvs': (22 commits) sctp: sctp_max_assocs support from the script sctp: core.sctp_options shows now also sctp_max_assocs sctp: max_assocs options sctp: sctp_assoc_tracking support from the script sctp: core.sctp_options shows now also sctp_assoc_tracking sctp: assoc_tracking option sctp: SCTP_PEER_ADDR_PARAMS fix for older kernels sctp: assoc_reuse option core: cfg vars for the new sctp options core: sctp_options rpc updated sctp: more config variables tcp: remove unused var. decls dns: fix missing out-of-memory check - @next_hop.src_ip: source ip of outgoing message sctp: retransmission options sctp: sctp autoclose can now be changed at runtime sctp: enable runtime changing for some of the cfg vars tcp: minor fix: TCP_EV_IDLE_CONN_CLOSED tcp: minor fix: TCP_EV_CONNECT_RST() not always called sctp: compatibility with older linux kernels ... commit 12e28271dd9af2bd1cdedd6d9930b2159bafca90 Merge: bad3c06 b9ec929 Author: Andrei Pelinescu-Onciul Date: Fri Jun 26 20:24:24 2009 +0200 Merge commit 'origin/ser_modules' * commit 'origin/ser_modules': - iptrtpproxy_adjust_timeout() function commit bad3c064285bb56cb367081c268d4ea7a47b927e Author: Andrei Pelinescu-Onciul Date: Thu Jun 25 16:54:45 2009 +0200 gitignore: ignore autover.h commit b9ec92931879ddc30bf149d5187bb15ef4c58329 Merge: 35ce882 6ff8e1d Author: Andrei Pelinescu-Onciul Date: Fri Jun 26 20:14:00 2009 +0200 Merge branch 'cvs-head' of git://git.sip-router.org/ser_modules into ser_modules * 'cvs-head' of git://git.sip-router.org/ser_modules: - iptrtpproxy_adjust_timeout() function commit f5863aa01d653c652854dbbd3000531e8a0388ac Author: Andrei Pelinescu-Onciul Date: Fri Jun 26 17:59:09 2009 +0000 sctp: sctp_max_assocs support from the script commit 847fdfa493ecab48d3287287133141ff4705a1c0 Author: Andrei Pelinescu-Onciul Date: Fri Jun 26 17:57:06 2009 +0000 sctp: core.sctp_options shows now also sctp_max_assocs commit 92b6de79c7734da50dbc23c05e116a5259171806 Author: Andrei Pelinescu-Onciul Date: Fri Jun 26 17:56:44 2009 +0000 sctp: max_assocs options Added a new option controlling the maximum number of open associations allowed. When exceeded new associations will be immediately closed (using ABORT). If connection tracking is used (default) trying to open new associations will gracefully fail before actually opening them. If no connection tracking is used, the associations will first be opened and then immediately closed. In this case the packet triggering the active open will be sent (as part of the initial 4-way handshake), before the association is closed. commit 42e3dc75f49dab19f22a14c8d9620d2d9ab57b18 Author: Andrei Pelinescu-Onciul Date: Fri Jun 26 17:56:25 2009 +0000 sctp: sctp_assoc_tracking support from the script commit 49e4784a3bf57989645592cb481cdd299c9e5c46 Author: Andrei Pelinescu-Onciul Date: Fri Jun 26 17:56:04 2009 +0000 sctp: core.sctp_options shows now also sctp_assoc_tracking commit 709fb806388cc9c31f94e0cc4b6cdccb8da1c1c6 Author: Andrei Pelinescu-Onciul Date: Fri Jun 26 17:55:05 2009 +0000 sctp: assoc_tracking option Association tracking can now be turned on/off at runtime. Turning it off saves some memory and gives slightly better performance at the cost of having to turn off some other features that depend on it (right now that will be sctp_assoc_reuse). commit b9117ecdc8f1c122fc472fc5c9c18c0473e8d357 Author: Juha Heinanen Date: Thu Jun 25 19:00:57 2009 +0300 * modules/utils: fixed type of DB query string * In xcap doc query, user and domain query parameters are of type DB1_STR instead of DB1_STRING. commit 277225d51277d62063071e5b615dc83d8c409503 Author: Andrei Pelinescu-Onciul Date: Thu Jun 25 12:56:06 2009 +0200 makefile: better "dirty" local copy detection Better detection for local changes, when re-generating autover.h. commit 1849815b51ad28a86e8af72c36930474f89ae948 Author: Andrei Pelinescu-Onciul Date: Thu Jun 25 12:21:35 2009 +0200 makefile: minor fixes - main.d and core_cmd.d generation failed on clean sources, because of missing autover.h - make tar excludes now .git*, *.swo and includes autover.h commit 5c00f5c2987b9cbdae7734db89019f6ef1d3f815 Author: Andrei Pelinescu-Onciul Date: Wed Jun 24 23:55:16 2009 +0200 makefile: MAIN_NAME reverted MAIN_NAME reverted to ser (should be changed _only_ when we agree on the short name). commit 6f816e54bf008059dded804c0e55e2e3ce60d358 Author: Andrei Pelinescu-Onciul Date: Wed Jun 24 23:38:19 2009 +0200 makefile: added CFG_NAME and SCR_NAME CFG_NAME and SCR_NAME are used now to hold the name or prefix for the config and scripts _in_ the repository. All this configs and scripts will be installed using MAIN_NAME (e.g. $(CFG_NAME)-basic.cfg is installed into etc/$(MAIN_NAME)/$(MAIN_NAME)-basic.cfg). This was needed to allow installing using different names, without having to revert the recent mass re-naming of man, config and scripts. commit 1af00fc924116ca97b7acd42ed8640712fcd33f0 Author: Andrei Pelinescu-Onciul Date: Wed Jun 24 22:30:55 2009 +0200 version number changed to 2.99.0-dev-01-serk commit a868066e82310eef6f7e00d3b4e941ed50e7dc6f Author: Andrei Pelinescu-Onciul Date: Wed Jun 24 22:25:33 2009 +0200 makefile: REPO_VER: try to detect dirty local repo - add -dirty to the git sha if when autover.h is generated the local repository contains locally modified files. - make tar forces autover.h generation commit 92721dc19c76b91e0e24683a9b2b47e2e40aefb8 Author: Andrei Pelinescu-Onciul Date: Wed Jun 24 21:15:06 2009 +0200 core: the version contains now the git sha if known The version numbers displayed by ser -V or sercmd core.version contain now the git sha. commit 51690b9e45be569ca87e6d0af9e288a3656249f3 Author: Andrei Pelinescu-Onciul Date: Wed Jun 24 21:11:24 2009 +0200 makefile: auto-generate autover.h based on the git sha Automatically re-generate autover.h each time some change in the repository happens. The file will contain a macro (REPO_VER) set to the first 6 letters of the git sha. This allows unique identification for the git branch and commits from which the code was generated. If the code is not compiled from a git repository, use "unknown" for the REPO_VER. commit 4d106ce392b94295d983f9188d73937ac5f80e24 Author: Daniel-Constantin Mierla Date: Wed Jun 24 22:42:47 2009 +0200 tmx: new pseudo-variable $T_inv(pv) - access the INVITE request while processing the CANCEL - flags, parts of INVITE can be now used during CANCEL handling in config commit 9a9627a248e751700d4392cf7a45a2b00cf939cd Author: Daniel-Constantin Mierla Date: Tue Jun 23 17:22:08 2009 +0200 tm: t_lookupOriginalT() added to TM API structure commit 527ba6b4bc9c1af245a19968b864491ff55dace0 Author: Daniel-Constantin Mierla Date: Tue Jun 23 17:15:25 2009 +0200 tmx: grouped pv static variables in a structure - cleaner representation of $T_{req,rpl} contexts commit 91ced80144bb3d570c55547e2d5c7cd79003d738 Author: Juha Heinanen Date: Wed Jun 24 22:49:26 2009 +0300 * Core: Changed sip-router to $(MAIN_NAME) in Makefile. commit 4cf1ce0e147162f458c5534ea978acb81055e3c2 Author: Juha Heinanen Date: Wed Jun 24 22:10:57 2009 +0300 * Scripts: Renamed ser_mysql.sh -> sip-router_mysql.sh. commit a0ce24fed910050ea3210ded0cc94c9c059e6b55 Author: Juha Heinanen Date: Wed Jun 24 22:01:55 2009 +0300 * Core: ser -> sip-router changes * Changed ser to sip-router. * Updated mailing lists and URLs. commit cdc6a4091763fe5731d6af94c60a817b0828fb9b Author: Juha Heinanen Date: Wed Jun 24 21:57:20 2009 +0300 Core: Renamed ser.cfg.5 to sip-router.cfg.5 commit 5623ef894a6e15818de87a4a2b2fc95ede3972ef Author: Juha Heinanen Date: Wed Jun 24 21:25:58 2009 +0300 * Core: Renamed ser.8 to sip-router.8 * Renamed ser.8 to sip-router.8. * Small edits in sip-router.8. commit 8632598cac189adb557ad0c65f15744ef4256e45 Author: Andrei Pelinescu-Onciul Date: Wed Jun 24 20:01:46 2009 +0200 tm: safety checks for possible escaped neg. ACKs In normal operation looking up a transaction corresponding to an ACK to a neg. reply or to a local transaction should end up in script termination, so when t_relay_to() is called for a neg. ACK, the transaction should not have been looked up previously. If this assumption fails, the ACK will be processed normally (resulting at worst in calling the TMCB_ACK_NEG_IN callback multiple times for the same ACK) and a warning message will be logged. commit 4e4228db232201f2921152303e969240d4f68c49 Author: Andrei Pelinescu-Onciul Date: Wed Jun 24 19:50:06 2009 +0200 make: excluded more modules by default Excluded more modules which either require external libraries or external includes to compile. New modules on the exclude_modules list: perl, dialplan, lcr, utils, presence, presence_dialoginfo, presence_xml, pua, pua_bla, pua_dialoginfo, pua_usrloc, pua_xmpp, regex, xcap_client, h350. commit 16121d4615bd20baee32337958f0f42ee5a42f20 Author: Juha Heinanen Date: Wed Jun 24 20:49:10 2009 +0300 * modules/tls: ser to sip-router renaming * Renamed ser files to sip-router files and updated README. commit 30ea1726754fdc12646e35a6ec49a636a57ab7f0 Author: Andrei Pelinescu-Onciul Date: Wed Jun 24 15:06:26 2009 +0200 tm: fix t_check messing up replies branch - when t_check was called twice for a reply (e.g. t_check_trans() in script in the main onreply_route and then internally in tm reply_received), the second call did return an invalid branch. Now the current branch is remembered along T so t_check will always return a valid branch. - added T_branch, a new global variable that holds the current branch corresponding to T (is valid only if T is valid). - set_t() takes now 2 parameters: a transaction and the current branch for the transaction. If the current branch does not make sense (e.g. for requests), T_BR_UNDEFINED must be used. This change ensures that every time T is set or changed, the current branch is also updated. - more comments added commit f9477aa2bec8508197837875ebc199f1bf569fa4 Author: Juha Heinanen Date: Wed Jun 24 16:08:09 2009 +0300 * modules/lcr: fixed crash when module initialization failed * Added checks that shared memory has been really allocated before trying to free it. Fixes crash when during failed module initialization. commit 5d1a75a61b349690125db87c1e48b3de580613e6 Author: Juha Heinanen Date: Wed Jun 24 15:44:10 2009 +0300 * Core, etc, documentation: renamed ser to sip-router * Renamed ser to sip-router in Makefile, etc files and some core files. * Renamed some etc files from ser based name to sip-router based name. commit 4743d4995809198166cf9067a68a018a1b87bd0e Merge: f01d125 b98da5f Author: Jan Janak Date: Wed Jun 24 13:36:56 2009 +0200 Merge branch 'missing_imports' Add various tools and scripts from Kamailio svn repository to the shared sip-router git repository. * missing_imports: (628 commits) - updated email address - fix kamctl for cr after table changes for 1.5.x, bug #2794168 - 2 fixes in commented examples - call nat detection route (reported by Mark Sidell) - set 0 default values for the new columns - small rephrasing, extend man page a bit - layout fix in man page for kamdbctl - Fixed "kamctl ping": From and Contact in generated OPTIONS didn't contain "sip:" - build memcached module as own debian package - Added libmemcache-dev to "control" files for deb packages (patch by Andreas Heise) - Improved RR section in default config file: record_route() just for INVITE and SUBSCRIBE (credits to Jon Bonilla) - Improved Debian init script: - remove debian-sarge, etch is now oldstable - increment debian packaging version for trunk - add missing libpcre3-dev depencency - fix purple table name for non mysql databases setup - small spelling fix - remove purple module from sarge packaging - updated with more examples - regenerated db table creation for dialog and purplemap ... commit f01d1251f12325b777a7af980fa1d5c2be2caabf Author: Daniel-Constantin Mierla Date: Tue Jun 23 12:46:21 2009 +0200 tmx: added K compatible tm statistics commit a98476c55ffdce59bff96ac63d00fad0c337b70b Author: Daniel-Constantin Mierla Date: Tue Jun 23 12:44:39 2009 +0200 tm: small wrapper to get TM stats via API - used for K style statistics commit a0993fbf1d35b27644c6837eff3832c1e12d2495 Author: Daniel-Constantin Mierla Date: Tue Jun 23 11:58:26 2009 +0200 nathelper(k): fixed content type check - mistakenly introduced with multipart body support - reported by Pascal Maugeri commit b98da5f7ef6ca30679a24b2c9762873e16a612b2 Merge: 8c187e7 12239ae Author: Jan Janak Date: Mon Jun 22 18:22:13 2009 +0200 Merge 'utils/profile' of kamailio svn into sip-router/utils * 'utils/profile' of kamailio svn: Initial revision commit 8c187e76a2c517b4accd49ac55df148647015cc6 Merge: f2bdb5d 3372a27 Author: Jan Janak Date: Mon Jun 22 18:20:46 2009 +0200 Merge 'utils/kamunix' of kamailio svn into sip-router/utils * 'utils/kamunix' of kamailio svn: - fix another linking error on solaris - fix linking errors on solaris, this needs lresolv, reported - don't link with unnecessary libs, related to bug #1855859 - renamed: openserunix -> kamunix commit f2bdb5deaa668078f7142c3c0a5cca3e0bff04bd Merge: 879424b d53150f Author: Jan Janak Date: Mon Jun 22 18:19:55 2009 +0200 Merge 'utils/db_oracle' of kamailio svn into sip-router/utils * 'utils/db_oracle' of kamailio svn: - renamed: openserunix -> kamunix Add db_oracle module and toolses for it commit 879424b0adf74d4d0360c3905a6302510d10834a Merge: 427dfb2 d336a86 Author: Jan Janak Date: Mon Jun 22 18:18:49 2009 +0200 Merge 'utils/db_berkeley' of kamailio svn into sip-router/utils * 'utils/db_berkeley' of kamailio svn: - fix compilation on OpenBSD, related to missing includes paths and wrong - port from opensips r4574, credits goes to Bogdan - renamed: bdb_recover -> kambdb_recover - renamed: bdb_recover -> kambdb_recover - fix missing variable if compiled with EXTRA_DEBUG - change name in copyright headers - fix LIBS, don't link with unnecessary libraries, related to #1855859 -fix memory leak in 'bdb_insert' - don't try to install the openserctl.db_berkeley, this is not available for now - disabled the utility compiling as it requires external libs. - import berkeley database module into trunk commit 427dfb25f555ed98d6c9ce37d056e190aef060c0 Merge: 5c4cc07 bbd176f Author: Jan Janak Date: Mon Jun 22 18:17:41 2009 +0200 Merge '/scripts' of kamailio svn into sip-router/tools * 'scripts' of kamailio svn: (389 commits) - fix kamctl for cr after table changes for 1.5.x, bug #2794168 - set 0 default values for the new columns - small rephrasing, extend man page a bit - layout fix in man page for kamdbctl - Fixed "kamctl ping": From and Contact in generated OPTIONS didn't contain "sip:" - fix purple table name for non mysql databases setup - regenerated db table creation for dialog and purplemap provided db schemes for purple module - update man pages date - small layout fix in man pages - add man page for kamdbctl command, credits to Frederick Bullik - update man page to actual kamctl help text, closes #2009848 - sync database files with xml source (gw change, r5478) fix error introduced by previous commit (dump option for lcr) kamctl lcr: new option: dump * Fixed errors in 'lcr addgw' parameter handling. fix addgw for lcr - new column to dispatcher table to hold priority - update database schemes after recent lcr extension (ping functionality) * Introduced optional aliveness checking of gateways. Contributed by ... commit 5c4cc0750b46e3abb148796dd1751c97d1b41483 Merge: 9bd59c5 18ce720 Author: Jan Janak Date: Mon Jun 22 18:16:47 2009 +0200 Merge 'pkg' of kamailio svn into sip-router/pkg/kamailio * 'pkg' of kamailio svn: (166 commits) - updated email address - build memcached module as own debian package - Added libmemcache-dev to "control" files for deb packages (patch by Andreas Heise) - Improved Debian init script: - remove debian-sarge, etch is now oldstable - increment debian packaging version for trunk - add missing libpcre3-dev depencency - remove purple module from sarge packaging - fix description, debian radius packages also contains the peering module - add purple module to debian packaging - fix packaging for utils module, wrong directory name - add utils module to packaging - activate module man page building for debian packages Add RLS to the debian-presence-package. - update port for OpenBSD (created for 1.4.2) * LCR module is now using Perl compatible PCRE regular expression - add modules for dialog-info support to pua and presence module - add manifest file to start/ stop/ restart kamailio/ openser with Solaris 10 * Packaging changes related to new misc_radius module - fix e-mail address ... commit 9bd59c5647f323e81e041b696ccb25b361c33eda Merge: 9687fb8 f41e32d Author: Jan Janak Date: Mon Jun 22 18:14:07 2009 +0200 Merge '/examples' of kamailio svn into sip-router/examples * '/examples' of kamailio svn: - renaming: openser -> kamailio - doubled $ sign for the env variables, otherwise they would be considered openser PVs - fix extra acc mysql example table - fix several errors in example configuration set proper SVN properties - send Message and click-to-dial scripts updated to current IM fifo syntax - fix for handling \r\n - ctd.sh version for 1.2.0+ - added sample config to do accounting to MySQL based on default config file - examples updated - config scripts updated to reflect latest changes (mainly FIFO related) - 'break' replaced with 'return' in default config and example files Initial revision commit 9687fb8134fff30237facbe9e3271eea299902a5 Merge: e5cf7a1 436bfbf Author: Jan Janak Date: Mon Jun 22 18:13:05 2009 +0200 Merge etc/ of kamailio svn into sip-router/etc * '/etc' of kamailio svn: (42 commits) - 2 fixes in commented examples - call nat detection route (reported by Mark Sidell) - Improved RR section in default config file: record_route() just for INVITE and SUBSCRIBE (credits to Jon Bonilla) - small spelling fix - updated with more examples - the example of arming other event routes for INVITE commentted - uri module has been merged in siputils - default config also need pv - renaming - rename openser.cfg -> kamailio.cfg - renaming scripts part 1 - revert commit as this don't work for installation where radius is - disable radius support in the default config for the acc module, as - spelling fix, accouting -> accounting - examples set to default values - update default config after db name change - turn debugging off - fix ACK handling - fix in-dialog SUBSCRIBE routing - fix error in default config that prevents the server start ... commit e5cf7a1831e380cd6bd43e5a36dfd6d04625bc41 Author: Andrei Pelinescu-Onciul Date: Mon Jun 22 17:32:44 2009 +0200 tm doc: README re-generated commit c263b1a7a83f7143093e699754b377647d54496d Author: Andrei Pelinescu-Onciul Date: Mon Jun 22 17:26:47 2009 +0200 tm doc: t_check_trans and note about fr_timer_avp - added missing t_check_trans docs - added fr_timer_avp and fr_inv_timer_avp notes about new empty/zero avp value handling (use default value) and about using seconds instead of milliseconds. commit bcc993680ca2722aec2e4f240569cb7979808e18 Author: Andrei Pelinescu-Onciul Date: Mon Jun 22 16:00:10 2009 +0200 tm: ignore avp timers with 0 or empty value Kamailio compatibility: If an avp timer (fr_timer_avp or fr_inv_timer_avp) is empty ("") or 0, use the default timer value (fr_timer or fr_inv_timer). Reported-by: Juha Heinanen jh at tutpro com. commit caef5ace2026fcb2a9dffb471e2cec6d843082f8 Author: Daniel-Constantin Mierla Date: Mon Jun 22 17:25:18 2009 +0200 nathelper(k): skip trailing whitespaces and crlf - was affecting multipart bodies, causing nortpproxy string to be placed in the wrong position - reported by Pascal Maugeri commit adc19f419c86897ff73934ea3791dcf4da564061 Author: Juha Heinanen Date: Mon Jun 22 17:36:59 2009 +0300 * core * Updated gw and lcr table schemas. commit a141107dda2d65892b175c160af9101d161b2a73 Author: Juha Heinanen Date: Mon Jun 22 17:19:53 2009 +0300 * modules: lcr * New version of lcr module that adds support for multiple LCR instances and possibility to defunct unresponsive gateways. commit 6387ae76ce94f2fb8cc74f458c1761b3fe13c24d Author: Juha Heinanen Date: Mon Jun 22 17:02:01 2009 +0300 * Core (documentation) * Added some SIP Router entities. commit e4fc24fe3c350a231cf00b74c05c3c05c2a1e289 Author: Daniel-Constantin Mierla Date: Mon Jun 22 11:17:58 2009 +0200 kex: fix in mi debug command with no parameter - reported by Juha Heinanen commit 998ac3c6efcf30fadd3c5b5c80fdbdf3ca4f2e90 Author: Daniel-Constantin Mierla Date: Mon Jun 22 00:25:50 2009 +0200 msilo(k): check_message_support() only for REGISTER - it verifies if the contact has a non-zero expires value - look first at contact parameters then Expires header commit 1f41271e1c1b879217835b8b3fdbdc2680138f25 Author: Daniel-Constantin Mierla Date: Sun Jun 21 23:31:43 2009 +0200 nathelper(k): support for multipart/mixed body commit e45ac57e67a4e858c24fbb53d6d41f7ea01b3730 Author: Daniel-Constantin Mierla Date: Sun Jun 21 23:25:16 2009 +0200 registrar(k): different return codes for successful save - save(...) returns different return codes - -1: error - 1: insert - 2: update - 3: delete - 4: contacts list replied commit 9d8cb1917800e096d8a34232e63fb01ca83855d7 Author: Raul Alexis Betancor Santana Date: Sat Jun 20 00:58:32 2009 +0100 drouting: Documentation updated - entities.xml path fixed - &osips references changed to &kamailio references - README regenated commit 0fbd2328d880d54cc2e4c68d09c7f5d52f4f6820 Author: Raul Alexis Betancor Santana Date: Sat Jun 20 00:49:23 2009 +0100 drouting: Updated all Copyright notices commit c4f2871cd47376ee1c5131dbbf5c8151753ff905 Author: Raul Alexis Betancor Santana Date: Sat Jun 20 00:45:02 2009 +0100 drouting: Makefile fixed to compile with OPENSER_MOD_INTERFACE commit 08e1be29be51ca720be5b796baa40ef4b786ef54 Author: Raul Alexis Betancor Santana Date: Fri Jun 19 23:36:43 2009 +0100 drouting: new module to support Dynamic Routing -Adapted from OpenSips drouting module rev. #5770 commit 1c5d19277a14e71167c81665d6de8173e61a2ccb Author: Juha Heinanen Date: Fri Jun 19 16:40:24 2009 +0300 * core * Added fixup_igp_pvar and fixup_free_igp_pvar fixup functions. commit af0d2038a36502e0d786aa62dbb8ae7378e1f5e6 Author: Juha Heinanen Date: Wed Jun 17 21:37:36 2009 +0300 * Small clarification in filter_body text. commit b3e2889f22db199c04e9d32999d143cefad37b2a Author: Juha Heinanen Date: Wed Jun 17 21:23:57 2009 +0300 * modules_k/textops * filter_body function now takes multipart/mixed boundary string from Content-Type ;boundary parameter. commit bc18eab9c61678de1e7a58ffd5aca55ecadacf95 Author: Daniel-Constantin Mierla Date: Wed Jun 17 11:09:19 2009 +0200 kex: implemented mi debug command - MI command to change the debug level at runtime - uses same signature as previous Kamailio versions commit 6deb1c538b11a63533f38c684083fd9d0a5f6a5c Author: Andrei Pelinescu-Onciul Date: Wed Jun 17 09:12:08 2009 +0000 sctp: SCTP_PEER_ADDR_PARAMS fix for older kernels On older kernels (< 2.6.27) one has to set the AF when setting a SCTP_PEER_ADDR_PARAMS socket option even if the address is the wildcard (INADDR_ANY). This affects the sctp_hbinterval and sctp_pathmaxrxt config options. Reported-by: Cristian Constantin commit 61d0ee551872fc55c0f70ba8d4f9a5ab0c1d0e87 Author: Andrei Pelinescu-Onciul Date: Mon Jun 15 22:34:55 2009 +0000 sctp: assoc_reuse option Association reuse for replies can now be turned off (the default is on). Config name: sctp_assoc_reuse, real time name: assoc_reuse (sercmd cfg.set_now_int sctp assoc_reuse 0). commit 80a6149e604ad663580551efd80d77068a22e6f5 Author: Elena-Ramona Modroiu Date: Fri Jun 12 13:03:00 2009 +0300 htable: more match ops in counting items with $shtcn and $shtcv commit b9aa4016c76434204692d4a2dc97aed5b5c9f239 Author: Elena-Ramona Modroiu Date: Fri Jun 12 13:01:48 2009 +0300 htable: delete item when assigning $null - compatibility with K style of removing item commit d0809a64c34389d82ed1e023aa79372f721a6bbe Author: Daniel-Constantin Mierla Date: Fri Jun 12 11:24:39 2009 +0300 presence_xml: documentation for xml_ns parameter - parameter that allow registering namespace prefixes for XPath handling commit 30e285d05fe32235c0befde9573fafd8a162a974 Author: Daniel-Constantin Mierla Date: Fri Jun 12 11:19:37 2009 +0300 presence_xml: support to handle namespace prefixes commit 5605e1fc7d0dab50f444d9c24edc8d50d8ae3eb4 Author: Daniel-Constantin Mierla Date: Fri Jun 12 00:31:39 2009 +0300 presence_xml: safety checks for null node set - print string reprezentation of the node if it has no cdata value commit 986c26b70e4733172b6b0038494fd81eb983bb48 Author: Daniel-Constantin Mierla Date: Thu Jun 11 22:21:28 2009 +0300 presence_xml: readme updated - documented passive_mode parameter and mentioned $xml(...) PV commit 22f9bd6620b851848853befc677ce6b6b318c483 Author: Andrei Pelinescu-Onciul Date: Thu Jun 11 20:25:47 2009 +0200 tm: t_check_trans ends script on neg. or local ACK - t_check_trans will now end the script if the message is an ACK to an existing transaction ended with a negative reply or an ACK to a local transaction (as opposed to a normal proxied one). Before ending the script it will process the ACK in the same way t_newtran would, including calling the appropriate callbacks. t_check_trans behaviour for other requests (e.g. retransmissions, cancels, e2e ACK) remains unchanged. - added missing callbacks for the retransmitted request case. Reported-and-tested-by: Juha Heinanen jh at tutpro com. commit 6e729562274f7b5ec5230a7df2764f36ddb0f39f Author: Daniel-Constantin Mierla Date: Thu Jun 11 21:02:47 2009 +0300 presence_xml: implementation of pv $xml(...) - handling of xml docs using xpath - $xml(name=>doc) - get/set an xml doc under 'name' - $xml(name=>xpath:xpath-expression) - evaluate/update xpath extension - example: $xml(x=>doc) = 'test'; xlog("content of node b: $xml(a=>xpath:/a/b/text())\n"); $xml(a=>xpath:/a/b) = "1234"; - TODO list: - extend presence modules to work also with xml documents from $xml() PV - support to set node content to an xml tree - usage: - do routing decisions based on content of xml documents comming with SIP messages (such as PUBLISH) - update xml document content - evaluate XPath-allowed expressions and functions, see: http://www.w3.org/TR/xpath commit df5b7ebf3f91ab4335fe3c390a521cbb7b15e2f7 Author: Daniel-Constantin Mierla Date: Thu Jun 11 20:12:35 2009 +0300 presence_xml: new pv $xml(...) - $xml(...) can be used to handle xml documents - xpath access and set of content - module can act in passive mode by settin 'passive_mode' parameter to 1 (no bind to presence module, no connection to database) commit 0a9e22751e3f9c85d81a974ae5c06107f45650a4 Author: Daniel-Constantin Mierla Date: Thu Jun 11 20:10:57 2009 +0300 core: pvapi - be consistent in pv_printf_s() - there were cases when no copy was done, therefore no ending '\0' commit 09b7b0b356153335bcbb17220397f2a20801d4a2 Author: Miklos Tirpak Date: Thu Jun 11 16:53:59 2009 +0200 tm: callbacks: obsolate description is removed. The description about the callback insertion was confusing because no locking is necessary to insert new callbacks. commit 3ac29ef0133bf29047c4bcd414e246791e164744 Author: Raul Alexis Betancor Santana Date: Thu Jun 11 15:07:21 2009 +0100 call_control: changed LM_ macro calls - LM_ macro call changed to LOG calls commit b8d12a322f17aa302f21ee9fb2068400586bace3 Author: Raul Alexis Betancor Santana Date: Thu Jun 11 13:01:15 2009 +0100 * Just the call-control module from OpenSIPS ported to Sip-Router commit c8586f86b34945cdb0b30655b2ae655d9ceb7740 Author: Andrei Pelinescu-Onciul Date: Wed Jun 10 23:24:42 2009 +0000 core: cfg vars for the new sctp options - new script vars: sctp_asocmaxrxt, sctp_init_max_attempts, sctp_init_max_timeo, sctp_hbinterval, sctp_pathmaxrxt, sctp_sack_delay, sctp_sack_freq, sctp_max_burst. - updated NEWS commit 617dda5c7cf4fda589ffb7666f281a073f17adec Author: Andrei Pelinescu-Onciul Date: Wed Jun 10 23:23:52 2009 +0000 core: sctp_options rpc updated Updated sctp_options with the new options (asocmaxrxt, init_max_attempts, init_max_timeo, hbinterval, pathmaxrxt, sack_delay, sack_freq, max_burst). E.g.: $ sercmd core.sctp_options { sctp_socket_rcvbuf: 54784 sctp_socket_sndbuf: 54784 sctp_autoclose: 180 sctp_send_ttl: 32000 sctp_send_retries: 0 sctp_srto_initial: 3000 sctp_srto_max: 60000 sctp_srto_min: 1000 sctp_asocmaxrxt: 10 sctp_init_max_attempts: 8 sctp_init_max_timeo: 60000 sctp_hbinterval: 30000 sctp_pathmaxrxt: 5 sctp_sack_delay: 200 sctp_sack_freq: 0 sctp_max_burst: 4 } commit 2c552c8d6e9ce21a7f1e6a9b71b904a68bdf0ebe Author: Andrei Pelinescu-Onciul Date: Wed Jun 10 23:21:25 2009 +0000 sctp: more config variables Added more config variables for various sctp protocol specific parameters: asocmaxrxt - maximum retransmissions attempts per association init_max_attempts - maximum INIT retransmission attempts init_max_timeo - maximum INIT retransmission timeout (RTO max for INIT) hbinterval - sctp heartbeat interval, -1 for disable pathmaxrxt - maximum retransmission attempts per path sack_delay - delay until an ACK is generated after receiving a packet. sack_freq - number of packets received before an ACK is sent max_burst - maximum burst of packets that can be emitted by an association All of them can be changed at runtime (e.g. $ sercmd cfg.set_now_int sctp hbinterval -1 ), but the changes will affect only new associations (they will not affect the already established ones). commit 82a5ef65ffe69b33accecc67b24376307aa46812 Author: Jan Janak Date: Wed Jun 10 22:41:27 2009 +0200 db: Fixing problem with incorrect initialization of db connections The sip-router core is based on the ser core and thus has a slightly different initialization sequence of the main sr process. Namely we also call the child_init function of all modules in the main process with rank PROC_INIT. This is a kind of delayed initialization (called after all mod_init functions have finished but before the main process started forking children). There should be no database connections opened in child_init called with PROC_INIT parameter. This would result in database connections opened in the main process and inherited by all children. Such connections could then be used from multiple processes simultaneously and that can cause race conditions. This change checks for the value of the rank parameter in child_init functions and skips database initialization if the value is PROC_INIT, PROC_MAIN, or PROC_TCP_MAIN. The problem was reported by Juha and he deserves the credit for helping to investigate the issue. commit 2e51695a7e26ad0e2dabd6dc44787b41862164fc Author: Daniel-Constantin Mierla Date: Tue Jun 9 18:34:35 2009 +0300 xcap_client: proper return code in child init function when all is ok - introduced by previous commit, reported by Pascal Maugeri commit f3e18e3885eff64d5808ede28a12210a4ad4ae19 Author: Juha Heinanen Date: Tue Jun 9 15:54:42 2009 +0300 * Closed database connection after two error case. Thanks to Jan for pointing out the bug. commit 7e2bf0f1c1a7a84e2b4fb33f2175d7bc0d057c10 Author: Daniel-Constantin Mierla Date: Tue Jun 9 14:47:15 2009 +0300 xcap_client: init db con per process - introduced child_init function to init db connection per process - db connection closed in destroy function - reported and credits to Pascal Maugeri and Inaki Baz Castillo commit 33e4b20ffeb6a26f49080f701dc03e35498ac221 Author: Daniel-Constantin Mierla Date: Tue Jun 9 12:02:22 2009 +0300 htable: replace PV_NAME_PVAR with PV_NAME_OTHER - forgotten to be updated when PV_NAME_OTHER was introduced to get rid of PVAR type hack - name of $sht is a custom structure, not a PV - reported by Christian Koch commit a93f14f36e007741ba2c531ae4d15170a449deca Author: Daniel-Constantin Mierla Date: Tue Jun 9 11:59:53 2009 +0300 core: fixed pv_get_spec_name() - check for PV_NAME_PVAR was wrongly used with PV_NAME_INTSTR - reported and credits to Christian Koch commit 05eb09c1d7bdada655bd29137e2cfe8d1563e689 Author: Elena-Ramona Modroiu Date: Tue Jun 9 10:20:51 2009 +0300 xlog(k): readme updated commit 0911088466011cde4ba9104c301a744b67bf4d9c Author: Elena-Ramona Modroiu Date: Tue Jun 9 10:10:15 2009 +0300 xlog(k): replaced LM_GEN1 with LOG_ - do not print file name and line - printed prefix defaulted to "