=========================== Release 2.1.1 ============================== 2015-08-19 Razvan Crainea * [d695567] : packaging: update version to 2.1.1 2015-08-19 Razvan Crainea * [4dcacf7] : tm: fix bavp leaks in case of error Thanks go to Mickael Marrache for spotting and debugging (cherry picked from commit 70a34b9e974132c6c5269c0c02b2311566bddd12) 2015-08-19 Razvan Crainea * [87a6660] : fix previous commit (cherry picked from commit dcd3ec4433548db469492e8a3c96df5c70d81a3f) 2015-08-19 Razvan Crainea * [9481f7a] : Makefile.defs: print target info only if changed (cherry picked from commit 14b3bb69ea1d98f5ce06a27e010964f4fac48fbb) 2015-08-19 Răzvan Crainea * [53e7ae8] : mi_xmlrpc_ng: fix include warning (cherry picked from commit 668533eb9a4320dfd4ddc3c0f3cb35eecde326dc) 2015-08-19 Răzvan Crainea * [d32f1ca] : debian: change from native to quilt 2015-08-19 Răzvan Crainea * [857857c] : remove useless route.c include 2015-08-19 Răzvan Crainea * [6f07dab] : fix EXPRESSION typo 2015-08-19 Răzvan Crainea * [f537612] : debian/rules: add build-{arch,indep} rules 2015-08-19 Răzvan Crainea * [ac3ce34] : update github watch file 2015-08-19 Răzvan Crainea * [d094f09] : fix http package description 2015-08-19 Răzvan Crainea * [39bccea] : fix some spellchecks detected by lintian 2015-08-19 Răzvan Crainea * [4afbfef] : install-modules: each module install its own custom files 2015-08-19 Răzvan Crainea * [2ac0d08] : man: fix hyphens 2015-08-19 Răzvan Crainea * [7524b2b] : init: add LSB functions support 2015-08-19 Răzvan Crainea * [2d1a5d9] : debian: add python dependency for opensips 2015-08-19 Răzvan Crainea * [064d562] : Makefile: do not install docs on debian installs 2015-08-19 Răzvan Crainea * [979ee74] : Fix man pages * add osipsconfig man page * fix lists info for opensipsconsole and opensipsdbctl 2015-08-19 Răzvan Crainea * [d4a5a6a] : fix debian packaging 2015-08-19 Răzvan Crainea * [fbcfb2a] : Merge pull request #605 from saghul/makefile-target-master makefile: detect target architecture using the compiler (cherry picked from commit 87a195823abf123630d06b71cae1150c3ef76ee0) 2015-08-19 Bogdan-Andrei Iancu * [65b94e2] : Fix infinit loopin in TCP reactor. When connection is S_CONN_CONNECTING (async pending connect), some READ events may be delivered by the reactor (still not fully understood way). This is a temporary fix (fixing the effect and not the cause) following Rahul Gupta's suggestion in #591 2015-08-18 Bogdan-Andrei Iancu * [9843504] : Fix handling of ASYNC MI commands Similar to report #552. (cherry picked from commit 2b3a3ea9588854be5d7b64d4c04b48f6907a91ba) Conflicts: modules/mi_http/mi_http.c 2015-08-18 Bogdan-Andrei Iancu * [cc03352] : Fix restoring/freeing the path_vec in failure route. The path_vec (array holding the PATH string) was not properly pushed into the faked requests before calling the failure route. This was generating a mixture of shm/pkg memory when the faked request had to be freed. This crash was trigger only if PATH support was used and requests were looked up with PATH header. Reported by @AVFedorov and @petekelly. Closes #484 Many thanks to @AVFedorov for his details information and to @petekelly for support in investigating and testing. 2015-08-18 Bogdan-Andrei Iancu * [c8c8410] : Fix handling of ASYNC MI commands Part of fixing #552. Reported by @mqandeel . Closes #552 (cherry picked from commit c08b03310b9d8001b346ff3ba5a45996b1a5dc45) Conflicts: modules/mi_xmlrpc_ng/http_fnc.h modules/mi_xmlrpc_ng/mi_xmlrpc_http.c 2015-08-18 Bogdan-Andrei Iancu * [b1ee3a5] : Fix handling of ASYNC MI commands Part of fixing #552. Reported by Damien Sandras. (cherry picked from commit 5244b54afe63bba02fe45f82b736c327672b221a) Conflicts: modules/mi_json/mi_json.c 2015-08-18 Bogdan-Andrei Iancu * [a3c2569] : Fix reporting if t_request() failed. Capture and report futher if the t_request() failed to send out the PUBLISH request. (cherry picked from commit 4791a506912d67f90dfe66e7292500046d59ef4a) 2015-08-12 Jarrod Baumann * [f4a411d] : Do not append colon if uri password is NULL (cherry picked from commit 76dc734df0926dbfa5cb6d463dcbf5a82ea6dc2a) 2015-08-10 Bogdan-Andrei Iancu * [f2f5808] : Free double pointer. While looping over all location-like tables, set to NULL the result pointer after each iteration. Reported by @ionutrazvanionita Closes #566 . (cherry picked from commit 719f298d5ad3300b790f64cfed40e797eeb23225) 2015-08-10 Bogdan-Andrei Iancu * [089284b] : Fix use_domain, escaping, cases in remove() Use extract_aor() in script function remove() ; extract_aor() takes into account the use_domain and cases settings and is also able to deal with escaped chars. Closes #557 . (cherry picked from commit 0e1fabbc71c6c315b1f00d3ea58d1796054f2590) 2015-08-10 Bogdan-Andrei Iancu * [3634b86] : Proper test on active destinatins for failover. Test both INACTIVE and PROBING flags before considering a destination suitable for failover. Reported by @gergelypeli Closes #564 . 2015-08-10 Bogdan-Andrei Iancu * [22f4c1a] : Fix race condition - the log must be under lock As information from the alias strucuture is printed, this must be done under lock protection. Closes #589 by @dbeskoek. 2015-08-07 Razvan Crainea * [3de6036] : add mi_xmlrpc dependency for travis 2015-08-07 Razvan Crainea * [6355644] : add travis support 2015-08-07 Bogdan-Andrei Iancu * [0bbd42f] : DBschema regenerated 2015-08-07 Bogdan-Andrei Iancu * [9bde2df] : MyISAM no longer default table engine. InnoDB is now the default, and this value can now be changed via MYSQL_ENGINE env variable in opensipsctlrc. Closes #399 (cherry picked from commit 6112b8bd3a40d1266c448bf508ede8b9193c35e9) Conflicts: scripts/mysql/call_center-create.sql scripts/mysql/emergency-create.sql 2015-08-07 Bogdan-Andrei Iancu * [f6e1513] : Use SIP pinging when NAT traversal is on (cherry picked from commit 67c2c91844641980970d8445291242bdd5ec5310) 2015-08-06 Bogdan-Andrei Iancu * [ad08a0d] : Fix missing typedef. It seems the code is a bit different from 2.2 , so fixing a8a487 2015-08-06 Răzvan Crainea * [2671738] : fix debian packaging (cherry picked from commit 2d15060e48333ab3cad2e9cf3cafb7a006324185) 2015-08-06 Razvan Crainea * [b7524e2] : add rest_client specs for debian, fedora and rpms Closes #587 (cherry picked from commit 3dfc83cb254f150d2e6dbbb49f48ec9927be3a3c) 2015-08-06 Bogdan-Andrei Iancu * [a8a4875] : Remove double define. param_export_t is already defined by sr_module_deps.h which is included from here. (cherry picked from commit 0ff15f63e7002e58385228a16bb4e43dbf75a400) 2015-07-22 Bogdan-Andrei Iancu * [eaf3ca5] : Fix broken condition in handling ASYNC_CONTINUE. 2015-07-17 Bogdan-Andrei Iancu * [4480d11] : Fixed memeory exhausting during concurrent reloads. Add a new module parameter no_concurrent_reload to prevent multiple reloads in the same time. If you have a large routing set (millions of rules/prefixes), you should consider disabling concurrent reload as they will exhaust the shared memory (by reloading into memory, in the same time, multiple instances of routing data). 2015-07-16 Liviu Chircu * [9982088] : db_virtual: Do not crash if no DB sets are defined (cherry picked from commit b391ea3d25dbe286ddd12d4ffc5f53b32cfdc268) 2015-07-10 Liviu Chircu * [7c0b087] : config parser: Exit if no more memory available Otherwise, some code paths would generate segmentation faults (cherry picked from commit 5415531a162093a070990bae6e23af68a0137618) Conflicts: cfg.y 2015-07-10 Liviu Chircu * [2b50281] : db_virtual: Do not crash if no DB URLs are defined (cherry picked from commit 5a832d94bd2af95929a5b8451ee6895a585d6989) 2015-07-10 Liviu Chircu * [3aa7bbc] : avpops: Proper handling for async with non-async drivers Fallback to normal mode in case of no async capabilities. If this behaviour is employed, a startup warning will be issued. (cherry picked from commit 1e675ac0ae07e4dfd4d795beb2eacd0fff8346da) 2015-07-10 Liviu Chircu * [244140c] : db_mysql: Improve error handling in async mode i.e. Logging and error handling in case of bad async queries (cherry picked from commit aad94dadec71c0cd3fcefa25ce2dec800b4f089b) 2015-07-10 Liviu Chircu * [b523dc9] : core API: Add detection for async script function usage (cherry picked from commit 87acbbca4ad1f26000bf8bd59f4076100d250438) 2015-07-07 Bogdan-Andrei Iancu * [8fefc91] : More verbous logging. Log the error reported by stat() when it fails. 2015-07-06 Vlad Paiu * [f610f3c] : Fixed typo in encoding the callid (cherry picked from commit 43a2619f59b30782a5aa6bf310088365895b04cb) 2015-07-02 Vlad Paiu * [3adfb0e] : Fixed generated callid = is not a valid character in a callid, so replaced it with a hyphen (cherry picked from commit a0ec25a4f52d181e02b92aeada322eaa76d14e20) 2015-06-30 Bogdan-Andrei Iancu * [2ef8cd0] : Expose unset_dlg_profile() to Request Route. Related to issue #554. (cherry picked from commit 23f2322db56540be4d0b36a099a02e380aeafe19) 2015-06-26 Cerghit Ionel * [1c6e619] : event_route: fix route name when no sync/async (cherry picked from commit 996fadff4c0935caee71e9315a0564decebd8a5e) 2015-06-26 Bogdan-Andrei Iancu * [b0f52d5] : Fix TH for BYEs used as CANCEL Trigger the dialog callbacks (used by TH) for BYEs which do not terminate the call (BYEs in early state can be used as CANCELs). Reported by Antonis Psaras. Closes #555 2015-06-26 Razvan Crainea * [4a2e29c] : always create tar with TLS files (cherry picked from commit 31f46c244a92e5aa49ae80b4fedb7f1efb4f4e20) 2015-06-26 Razvan Crainea * [6ed37de] : acc: fix column type mismatch for db missed calls This bug was making OpenSIPS crash when a missed call was inserted in DB Thanks go to Peter Baines for reporting it (Issue #559) (cherry picked from commit ea2a04155f9a37460b2f0476a35a64309b57bb77) 2015-06-25 Razvan Crainea * [b98687d] : acc: fix multi_leg_bye info behavior This bug was making the ACC module to print less information in case there were no AVPs populated for the BYE multi_leg_info (cherry picked from commit 307388d7499fe2cf4f1ea7f54f2ef11a628e327d) 2015-06-23 Bogdan-Andrei Iancu * [19d0f60] : Fix $ct and $ct.fields variables. Force parsing of all Contact headers. Reported by Nick Altmann. 2015-06-15 Bogdan-Andrei Iancu * [d3409fe] : Added DB schema for emergency module 2015-06-12 Ovidiu Sas * [fb9a475] : mi_xmlrpc_ng: unescape xml strings - related to bug #537 (cherry picked from commit 8450630617b2504ffdc4089f2500a26b4187e078) 2015-06-12 Ovidiu Sas * [db9a16e] : core: adding unescape_xml() function helper to strcommon.[ch] (cherry picked from commit f6386ca9029fb56233ef1ac0b2cc2034d88e0928) 2015-06-11 Nick Altmann * [badb86e] : RPM spec: enabled restart feature (in case of crash) in systemd service (cherry picked from commit 611b9bb55135b899746a0c71f21f25b0561a81b4) 2015-06-11 Nick Altmann * [7e1fa37] : RPM spec: returned missed m4 feature, corrected version numbering 2015-06-11 Bogdan-Andrei Iancu * [8b1bd12] : Fix documentation on loose_route(). loose_route() returns FALSE only if there is no Route header or if preloaded local Route only. Reported by @gergelypeli on github Closes #550 (cherry picked from commit 2421034845068bbc243a8bd5de8aeebd071fc729) 2015-06-11 Bogdan-Andrei Iancu * [c0df4e9] : Revert "Fix parsing for Diversion header." This reverts commit 518b2c12192fcc018bedf5f1ad714697966bbdb4. 2015-06-11 Bogdan-Andrei Iancu * [1f7bae0] : Fix fixing hdr names shorter than 3 chars. The fixup function fails to identify header names shorter than 3 (like To or short formats). This affected script functions like is_present_hf() or remove_hf(). Reported by Nick Altmann 2015-06-09 Bogdan Andrei IANCU * [bffeee0] : Merge pull request #546 from dynamicpacket/2.1 fixes for Debian packaging 2015-06-09 User * [ec6a1ec] : * Check for freeradius libs in Makefile * Check for json lib include paths in Makefile * Update debian/control with new dependency names and standards * Update debian/rules to remove deprecated dpatch 2015-06-08 Bogdan-Andrei Iancu * [ca0cb37] : Add emergency tables to TABLES_EXTRA (cherry picked from commit 84e78f238cc5374c42f7d84a0892d4653bdd54ef) Conflicts: scripts/opensipsdbctl.base 2015-06-04 Bogdan-Andrei Iancu * [00862dc] : Fix init of UDP listener in nofork mode. Init the UDP listener before forking the MI procs, otherwise they will not be aware of the network sockets. Closes #541 Self reported. (cherry picked from commit c14659471bc0fc61b59ce3c8518cf228cd1a3b7d) 2015-06-04 Di-Shi Sun * [b9a4e43] : Updated for OSP Toolkit 4.5.0. 2015-06-03 Bogdan-Andrei Iancu * [518b2c1] : Fix parsing for Diversion header. As Diversion header may be a multi-body header, do not use the parse_to() function as it does not accept multiple bodies. Use parse_rr() function. Reported by Nick Altmann. (cherry picked from commit 36384927a5d2fd1d900ac36adc2ee15b2acad0c9) 2015-06-03 Razvan Crainea * [895614e] : event_rabbitmq: EINTR is not an error and should not be considered for retry (cherry picked from commit 008b42363fc7294a169924be350c512f8c32e26d) 2015-06-03 Eric Tamme * [90f836a] : do not always retry write to pipe if we get blocking errors as this causes the proxy to lock up and consume cpu (cherry picked from commit ac419bc0a1e87fe3e0750a983e61b9fcbe4daedd) 2015-06-03 Razvan Crainea * [9904dc6] : event_xmlrpc: only retry send/recv a couple of times if there are errors Credits go to Joseph Frazier (onsip) for spotting this (cherry picked from commit 05bc754133dd7fe02dc0c780a7f625a83bfef61f) 2015-06-03 Bogdan Andrei IANCU * [2033360] : Merge pull request #534 from seanchann/1.11 fix rpm build error on centos (cherry picked from commit 715914848153678c473dc3d4211b8b534bf66fa1) 2015-06-02 Liviu Chircu * [cfdc74e] : s.fill transformation: Prioritize string pvars over integer ones Reason for this is that a pvar which holds a string is a more particular occurrence than an int one, since integers can be easily stringified. This fixes some issues with pvars which have multiple internal representations (e.g. $rm is "INVITE" and 1 at the same time) Reported by Eric Tamme (cherry picked from commit 0db7e0e38c0974ec393446237aa09bc5658c0d24) 2015-06-02 Liviu Chircu * [cc91b1e] : s.fill transformations: Allow whitespace in quoted params This patch actually fixes several issues: * allows the "s.fill" functions to be used for alignment purposes * bugfix: possible "s.fill" usage which caused infinite loop * new: trim.h string trimming macros * some code refactoring Fixes #531 (cherry picked from commit ee4374f97d7f7fc8628ca0dfe1a50fedce8bebaf) 2015-06-02 Jarrod Baumann * [5f442bf] : verify pv_export_t parse_name function is set before calling (cherry picked from commit 3c47edd9b007aa60e36d6a094e995956509f1da4) 2015-06-01 Ovidiu Sas * [ad4070c] : event_rabbitmq: add specif error probe for AMQP_STATUS_SOCKET_ERROR - triggered after rabbitmq server restart (cherry picked from commit 1288d269e5fdf7506298d9e0b904050b601c8e32) 2015-06-01 Ovidiu Sas * [1edbca6] : event_rabbitmq: enhance AMQP connection error probe (cherry picked from commit b5165107d493eedda8b63616db189a044dd18848) 2015-05-29 Bogdan-Andrei Iancu * [59d0f33] : Fix debug log. Do not print un-initialized variables. Reported by miha- on IRC. 2015-05-27 Liviu Chircu * [de2b113] : avpops: Fix possible runtime crash The patch corrects a bug in commit 685da74670, since mod_init() is actually run _before_ module function fixups. Detection for raw SQL function calls is now done (properly) at fixup time, rather than at module initialization. Reported by Antonis Psaras Closes #523 (cherry picked from commit 91d1b4f4b65b4bf70d8db93d956a42d2f58500f9) 2015-05-26 Liviu Chircu * [a5cf2ca] : residential cfg: Set db_url for "uri" module when doing auth (cherry picked from commit 724d16d99f9ae46cbeaa6894f45afbb0b4fd650a) 2015-05-26 Vlad Paiu * [bdbf504] : Set the upsert flag when incrementing / decrementing counters This way the counters don't need to be pre-populated in the DB ( eg. when using them for dialog profiles ) (cherry picked from commit 74a52d0da12395367019028034c6c20b5cff5b38) 2015-05-26 Bogdan-Andrei Iancu * [293a127] : Fix "dialplan addrule" command. The match_len column was replaced with match_flags Closes #513 (cherry picked from commit 607fb3e78c9d39b7c0b97fbd5be615369f5a1ef1) 2015-05-25 ionutrazvanionita * [5a3af0b] : Closed connection in child init after data load; Connected to db from mi process in mi_child_init (cherry picked from commit 6164d1c3cab077957e91118c8094cfa97b2bfc7b) 2015-05-25 ionutrazvanionita * [52554da] : move db data initialization from mi_child_init to child init (cherry picked from commit fa14431830bde1c8ede30bf77a609197e7d002fa) 2015-05-22 Bogdan-Andrei Iancu * [9cd6e6f] : Fix NULL value as route param. Closes #516, open by @liviuchircu. (cherry picked from commit 032c425424846045227d57e88b506c4603315bc4) 2015-05-22 Bogdan-Andrei Iancu * [3870a57] : Fix handling of gw_priprefix_avp param. Closes #518, reported by @apsaras. 2015-05-20 Bogdan Andrei IANCU * [33c1415] : Merge pull request #517 from staskobzar/1.11 Make sure httpd can recognize Content-Type headers with parameters. (cherry picked from commit a8971c2fcb0207a34005a2ee586de97ecf759638) Conflicts: modules/httpd/httpd_proc.c 2015-05-20 Liviu Chircu * [8e95b8d] : route params: increment nesting level on no-param routes Completes commit f3ed4db99 (cherry picked from commit 564acbe638fab63deb2d39462b667b2d83a75f05) 2015-05-20 ionutrazvanionita * [5aae5ab] : fixed partition parsing 2015-05-20 Vlad Paiu * [320c825] : Expose API for setting connection attributes in WS module Fix so that tcp_persistent_flag in registrar also works for WS connections (cherry picked from commit a57d67f3609237ad2b5480b8924f701681002fcf) 2015-05-19 Bogdan-Andrei Iancu * [59145d2] : Fix $proto to read from loaded protocols (cherry picked from commit 1c1d7321324b229aeb948fb88b6a6028cba13643) 2015-05-18 Jarrod Baumann * [6d33b02] : set local variable memory to 0 to prevent core dump (cherry picked from commit d84df1900267516b30e560d20e225abbe2aea071) 2015-05-18 Bogdan-Andrei Iancu * [da8ec88] : Fix restoring the route type after async jump. A more accurate fix on preserving the route type after an async jump - see commit 950966. (cherry picked from commit 9597bc9ec4f3c49eddd8d23c2fc5f7e2f94eca48) 2015-05-18 Liviu Chircu * [d0f5acb] : async: set route type before running resume routes (cherry picked from commit 9509665640782b197feec34acd1e7b66935e66f4) 2015-05-18 Bogdan-Andrei Iancu * [d82e26e] : Fix - DLG_STATE_CHANGED event contains the DID too Reported by Dan Bogos. This is a bug, as without the Dialog ID, the DLG_STATE_CHANGED event is useless. (cherry picked from commit e461b65c10486c9f2d7504ab446eaf7335851a3d) 2015-05-18 Razvan Crainea * [a9a4ffb] : dialog: do not raise event under lock This allows nested dialog operations and prevents opensips from dialog deadlock (cherry picked from commit a63d6fe983ef461af9965e1874aff76bb874f28f) 2015-05-16 Liviu Chircu * [02b93b3] : fix doc typo Reported by Nick Altmann (cherry picked from commit be873729874b2b68ab779666374e2996a7ace727) 2015-05-15 Razvan Crainea * [e502fac] : proto_tls: fix README tcp typo (cherry picked from commit a5d16d29a626becb120518534b23204090c4bdf0) 2015-05-15 Liviu Chircu * [43b8fda] : fraud_detection: fix "daysoftheweek" parsing bug Parsing was incorrect for sequences such as "Fri-Mon", "Thu-Wed" etc. (cherry picked from commit 3e82c485d939df8153c4b2833941a8ed2f64e8aa) 2015-05-15 Liviu Chircu * [a519c83] : fraud_detection: properly release stats lock on error (cherry picked from commit 2d5dcadd4029bbbadd9ddcbf842d22f03a2d32ea) 2015-05-15 Liviu Chircu * [66ab6ca] : bin_interface: use blocking I/O The 2.1 code uses non-blocking UDP socket init primitives. This specifically made the binary interface workers do a lot of busy-waiting Reported by Rik Broers Fixes #502 (cherry picked from commit df2c030d1408a7d886cf13e3772af81f6deae9a7) 2015-05-11 Liviu Chircu * [47aab17] : io_wait.h: always include pt.h pt.h is required even without HAVE_SIGIO_RT Reported by @narunask Fixes #505 (cherry picked from commit 4d6baa5c4f6c05eec26688df63489176c676d377) 2015-05-11 Liviu Chircu * [f894ed0] : build system: properly parse "uname -r" output Also handle "MAJOR.MINOR-SUB" types of strings (cherry picked from commit 999364ed550c7fe8031820cadd2db800fa95aae6) 2015-05-11 Bogdan-Andrei Iancu * [9c066e6] : Fix bogus jump to "error" label. if unhash_fd_map() is not done, do not try to do fix_fd_array() . 2015-05-08 Liviu Chircu * [e16ab48] : async DB core: fix noisy logs (cherry picked from commit fd8fc60212e8e43f27a3411470d56f7f707a8652) 2015-05-08 Razvan Crainea * [d1428f9] : fix RPM versioning for 2.1.0 2015-05-08 Razvan Crainea * [647d798] : Revert "Fix RPM packages for 2.1.0" This reverts commit c772cea7c37810463d5ee8592c57dae57f01e0b7. 2015-05-08 Razvan Crainea * [c772cea] : Fix RPM packages for 2.1.0 2015-05-07 Razvan Crainea * [b365aed] : Update ChangeLog with latest commits for 2.1.0 =========================== Release 2.1.0 ============================== commit 47e9a077c0aa59b92cbe5d1a042268a822d51f4c Author: Razvan Crainea Date: Thu May 7 17:31:36 2015 +0300 Update ChangeLog to 2.1.0 commit bb5b3de94f6998439d715a613c4771ee21c612af Author: Razvan Crainea Date: Thu May 7 17:19:22 2015 +0300 Update packaging to 2.1.0 commit e3222cf4e95b3f77754bc5889817eeab1edf6bcc Author: Liviu Chircu Date: Thu May 7 19:18:19 2015 +0300 rest_client: properly free ctype buffer (cherry picked from commit 2ef34a582fd6bd02725fe71a36ab72177829680b) commit 9958b2280de540b16a743b20998143ab86d7f890 Author: Liviu Chircu Date: Thu May 7 19:06:15 2015 +0300 rest_client: update doc & README (cherry picked from commit 910990c21d252f21060b45e61974020f60aac33c) commit 17d82244c6e7aeb5c1e4f22f03b252c5d237fc5a Author: Liviu Chircu Date: Thu May 7 18:46:07 2015 +0300 rest_client: properly handle async calls in local deployments Proper libcurl usage is to poll for handle status updates after each perform operation. This patch also fixes a few cleanup issues with the global list of pending HTTP headers Thanks to Dan Bogos for reporting and helping with troubleshooting (cherry picked from commit a614e21b2d7982b4d56d7acbb99aee1b51f632ec) Conflicts: modules/rest_client/rest_methods.c 2015-05-07 Vlad Paiu * [ef3c253] : While doing retransmissions, set the current processing transaction - in case anybody uses it 2015-05-07 Bogdan-Andrei Iancu * [75106d9] : Fix crash on building CANCEL requests. Avoid the race condition between building a local cancel and handling a negative reply (for the same branch, in different processes). The build_local mya use the temporary uac->reply and end up with a dnagling pointer. Anyhow, in CANCEL situation, you never have a stored reply in transaction (storing is done only during parallel forking for nagative branches - which are not to be cancelled anyhow). (cherry picked from commit 156fba8d5eeedaa3bbb5cd89a525e1591a288123) 2015-05-06 Liviu Chircu * [c26b5a5] : DBG_QM_MALLOC: do not abort() on NULL pointer free/realloc 2015-05-05 Liviu Chircu * [d77b5e2] : sipmsgops: fix possible crash with debug=4 Introduced in commit 445d90bc7 Reported by Hieu Ta (cherry picked from commit 2e9b36c0031e619899aa2544c7e23caff5b49b80) 2015-05-05 Liviu Chircu * [56cca87] : core fd management: suppress DEL errors for closed fds (EBADF) Reasons: * library-specific corner-case (e.g. libcurl with async ops) * network core removes the fds anyway (cherry picked from commit 21344d1f78bcb7b492b8f07f7f34e21f1dc3a337) 2015-05-05 Liviu Chircu * [dac81ff] : core fd management: properly remove fds on DEL errors Also improve debug printing (cherry picked from commit 82eded80cb49b8c82406f2e4385998b3d09cd90e) 2015-05-05 Razvan Crainea * [f3ffd09] : acc: when doing no-cdr accounting, do not use CDR-generated info Related to ticket #495 (cherry picked from commit 89eb9dc5f9f30e07ff8a40cd1b1c000f8eaf33f0) 2015-05-05 Bogdan Andrei IANCU * [904e00c] : Merge pull request #498 from olivermt/master Make rtpengine retry sending command on UDP fragmentation (cherry picked from commit a91de4c461e4c9ce94cdc7a513a7191cb7fd249f) 2015-05-04 Bogdan-Andrei Iancu * [acfed21] : Fix order of rows during query; respect file order When buidling the response to a select query, respect the order of rows as given by the file; before the selected rows were given in the reverted order. Reported by @jockmckechnie on github. Closes bug #479 . (cherry picked from commit 54f6c22303f0d258c9e5f24520bba342aeb11ac3) 2015-05-04 Vlad Paiu * [3bf8b49] : Fixed json results for negative integers 2015-05-04 Liviu Chircu * [65d3c88] : rest_client: caseless matching when searching for Content-Type Also properly handle missing "Content-Type" (cherry picked from commit 4d651f4a868e26fb93674950e6f4654a329d3beb) 2015-05-01 Jarrod Baumann * [59d7d48] : Updated log macro used for reporting event_rabbitmq heartbeat modparam (cherry picked from commit 25fc10c1379358de6a25e7ee664d9fd911f7ab0b) 2015-04-29 Razvan Crainea * [f187657] : socket_info: return socket list only for known protocols (cherry picked from commit bf3ae34f6af4e680ca43f2f352540898cd3e98e3) 2015-04-27 Bogdan-Andrei Iancu * [7ebd184] : Docs updated and refurbished. (cherry picked from commit d154fe2749bd28cb8ace20df6ec88d7a9808b86b) 2015-04-27 Bogdan-Andrei Iancu * [28031c7] : Fix: do not try to kill procs which were not created. (cherry picked from commit ed82ac8b6445104eaec6de84d7c57e7fe601fa30) 2015-04-25 Bogdan-Andrei Iancu * [c3f551f] : Fix name of variable in passwd test (cherry picked from commit 4588f843c7ba81e7b679df9abeadc38f1c08c174) 2015-04-25 satishdotpatel * [460f33e] : Fix reading password from prompt for PGSQ root@dopensips:/etc/opensips# opensipsdbctl create INFO: creating database opensips ... Password for user postgres: Password for user postgres: Password for user postgres: NOTICE: CREATE TABLE / UNIQUE will create implicit index "version_t_name_idx" for table "version" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "acc_id_seq" for serial column "acc.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "acc_pkey" for table "acc" NOTICE: CREATE TABLE will create implicit sequence "missed_calls_id_seq" for serial column "missed_calls.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "missed_calls_pkey" for table "missed_calls" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "domain_id_seq" for serial column "domain.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "domain_pkey" for table "domain" NOTICE: CREATE TABLE / UNIQUE will create implicit index "domain_domain_idx" for table "domain" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "grp_id_seq" for serial column "grp.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "grp_pkey" for table "grp" NOTICE: CREATE TABLE / UNIQUE will create implicit index "grp_account_group_idx" for table "grp" NOTICE: CREATE TABLE will create implicit sequence "re_grp_id_seq" for serial column "re_grp.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "re_grp_pkey" for table "re_grp" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "address_id_seq" for serial column "address.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "address_pkey" for table "address" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "aliases_id_seq" for serial column "aliases.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "aliases_pkey" for table "aliases" NOTICE: CREATE TABLE / UNIQUE will create implicit index "aliases_alias_idx" for table "aliases" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "location_id_seq" for serial column "location.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "location_pkey" for table "location" NOTICE: CREATE TABLE / UNIQUE will create implicit index "location_account_contact_idx" for table "location" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "silo_id_seq" for serial column "silo.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "silo_pkey" for table "silo" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "dbaliases_id_seq" for serial column "dbaliases.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "dbaliases_pkey" for table "dbaliases" NOTICE: CREATE TABLE / UNIQUE will create implicit index "dbaliases_alias_idx" for table "dbaliases" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "uri_id_seq" for serial column "uri.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "uri_pkey" for table "uri" NOTICE: CREATE TABLE / UNIQUE will create implicit index "uri_account_idx" for table "uri" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "rtpproxy_sockets_id_seq" for serial column "rtpproxy_sockets.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "rtpproxy_sockets_pkey" for table "rtpproxy_sockets" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "speed_dial_id_seq" for serial column "speed_dial.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "speed_dial_pkey" for table "speed_dial" NOTICE: CREATE TABLE / UNIQUE will create implicit index "speed_dial_speed_dial_idx" for table "speed_dial" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "usr_preferences_id_seq" for serial column "usr_preferences.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "usr_preferences_pkey" for table "usr_preferences" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "subscriber_id_seq" for serial column "subscriber.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "subscriber_pkey" for table "subscriber" NOTICE: CREATE TABLE / UNIQUE will create implicit index "subscriber_account_idx" for table "subscriber" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "pdt_id_seq" for serial column "pdt.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "pdt_pkey" for table "pdt" NOTICE: CREATE TABLE / UNIQUE will create implicit index "pdt_sdomain_prefix_idx" for table "pdt" Password for user postgres: NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "dialog_pkey" for table "dialog" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "dispatcher_id_seq" for serial column "dispatcher.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "dispatcher_pkey" for table "dispatcher" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "dialplan_id_seq" for serial column "dialplan.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "dialplan_pkey" for table "dialplan" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "dr_gateways_id_seq" for serial column "dr_gateways.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "dr_gateways_pkey" for table "dr_gateways" NOTICE: CREATE TABLE / UNIQUE will create implicit index "dr_gateways_dr_gw_idx" for table "dr_gateways" NOTICE: CREATE TABLE will create implicit sequence "dr_rules_ruleid_seq" for serial column "dr_rules.ruleid" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "dr_rules_pkey" for table "dr_rules" NOTICE: CREATE TABLE will create implicit sequence "dr_carriers_id_seq" for serial column "dr_carriers.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "dr_carriers_pkey" for table "dr_carriers" NOTICE: CREATE TABLE / UNIQUE will create implicit index "dr_carriers_dr_carrier_idx" for table "dr_carriers" NOTICE: CREATE TABLE will create implicit sequence "dr_groups_id_seq" for serial column "dr_groups.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "dr_groups_pkey" for table "dr_groups" Password for user postgres: NOTICE: CREATE TABLE will create implicit sequence "load_balancer_id_seq" for serial column "load_balancer.id" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "load_balancer_pkey" for table "load_balancer" Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: (cherry picked from commit e0ab1ce8e538fd81356c2cd5feb96658d7517430) 2015-04-24 Jarrod Baumann * [f97f5ce] : Populate the rcode pval in rest get/post methods before returning error (cherry picked from commit 9945b9da3b9eb89f0a80392f8d04ac568eade8a5) 2015-04-22 Razvan Crainea * [cb3ec27] : Increase version to 2.1-rc2 2015-04-22 Liviu Chircu * [692ae66] : F_MALLOC: suppress warnings for free(NULL) (cherry picked from commit 17d639b9f11b415d51062005aadb86dd6c2375e2) 2015-04-21 Razvan Crainea * [112b2fe] : rtpproxy: store the notification buffer in the main stack frame Thanks go to Hamid Elaosta for reporting and helping me debug this bug (cherry picked from commit cb9f46ba80ccb4da9f362e4c686be6e497d0ee9e) 2015-04-21 Razvan Crainea * [0eac1c1] : rtpproxy: properly parse rtpproxy timeout notifications (cherry picked from commit c26a4a34fcf790741918224ce9557eb4d1f51edf) 2015-04-21 Vlad Paiu * [30fd659] : Fixed json lib dependency (cherry picked from commit 138813faf7a72f6580ebb5f7c0959c86634ccf88) 2015-04-21 Liviu Chircu * [4138759] : proto_tcp: fix "microsec" -> "millisec" doc typo (cherry picked from commit 0e80ba3c06d6c449819f3572ece792e56773a7b1) 2015-04-20 ionutrazvanionita * [5a0552e] : don't log errors in case connection closed by the other peer; don't call SSL_shutdown when connection is bad/eof 2015-04-20 Liviu Chircu * [a6fa182] : db_mysql: properly set TCP-related timeouts According to official documentation, mysql_options() must be used _after_ mysql_init() (cherry picked from commit 1f154c01fc3d064f1cf4f9c333775d857afb6528) 2015-04-20 Vlad Paiu * [9d366cd] : Do not leak the dialog in case there's an error on creation, after linking (cherry picked from commit 57f331fee808f1a039c02d477ebf0048e32ad08c) 2015-04-20 Bogdan Andrei IANCU * [ed8c21c] : Merge pull request #442 from rgagnon24/redirect_fix Fix get_redirects(max, reason) (cherry picked from commit ead10331a2f5b024f885f1f69e160c78c9d8eb7b) 2015-04-16 Liviu Chircu * [a18fae9] : sipmsgops: fix buffer management issue is_present_hf() and remove_hf() would sometimes misbehave when used with pseudo-variables (commit 6e88f653702). Reported by Eric Werkhoven Also fix a couple of noisy log messages. (cherry picked from commit 445d90bc794887f6e0d8ce7716a5480bb50e3b51) 2015-04-16 Razvan Crainea * [f4287b3] : do not add Makefile.conf to the tarball Since every tarball install is independent, Makefile.conf should not be inherited (cherry picked from commit 0a3803244c1ccfa8598c8d82c15e11b8d89bb015) 2015-04-15 Liviu Chircu * [0d04e75] : hp_malloc.h: properly include sys/time.h Prevents compilation issues with some modules Credits to Hamid Elaosta for reporting (cherry picked from commit 00cdfc6bd5943c8b31de2960ec70e95137ee465a) 2015-04-15 Liviu Chircu * [17c078e] : fix compilation issues with no -DSTATISTICS (cherry picked from commit 008fba152f3e399e6bd1f95bb33095beacba7f12) 2015-04-15 Vlad Paiu * [6c0625e] : Set T to T_UNDEFINED 2015-04-15 Vlad Paiu * [15ab1dd] : Set the current transaction to NULL when adding FD to reactor for async jump (cherry picked from commit eeff37fe495104011e7eae05e03d6a6f2c78b63e) 2015-04-15 Razvan Crainea * [fe9281d] : replace libmysqlclient*-dev with metapackage libmysqlclient-dev Credits go to Leo for reporting this (cherry picked from commit e5b793e2411826a23138298721879f6749f597ac) 2015-04-15 Bogdan-Andrei Iancu * [4b393f5] : Removed useless var setting. (cherry picked from commit 1ebf8139332069cacddbfe95fb66ebf300d0fb27) 2015-04-15 Bogdan-Andrei Iancu * [fcf8a93] : Fix race condition on terminating child procs. There is a race condition between a child getting initalized (and properly setting all its vars like is_main, pid, etc) and main process trying to terminate that child proc (due a failed startup). Use the pt[].pid as a marker to know when the child is init (to be filled only by child). Main proc (when delivering signals) will do a busy waiting if a proc haven't set its pid (still doing init). Closes #463 (cherry picked from commit 4884d6c921695c588b8076ded186665504550773) 2015-04-15 Razvan Crainea * [eed3d77] : acc: always populate the created AVP (cherry picked from commit 3ac458f968a0503f55cc23a18ab61b7ffd90ae0e) 2015-04-14 Bogdan-Andrei Iancu * [1a1d72c] : Fix dont_fork mode. Closes #445. (cherry picked from commit dbf2aec66c9294d7ea0270e9e5e94447d5fbdad4) 2015-04-14 Razvan Crainea * [3459128] : rr: do not force send socket on preloaded routes (cherry picked from commit b8c0740a63f80577bff8314b4cf0e17867a1fda4) 2015-04-14 Vlad Paiu * [fa2f5f6] : Maintain rport and received in VIA header of replies when doing topology hiding (cherry picked from commit 521bfc00a01eb5a7b4d5ee5494212412bcad0597) 2015-04-14 Răzvan Crainea * [a1382a2] : Merge pull request #462 from jarrodb/dlg_hash Verify the dialog mi parameter is not null before passing to dlg_hash (cherry picked from commit 432c9cc5dcbfadf69c1b9b1fee44a0fcad8cb8f6) 2015-04-09 Razvan Crainea * [5863cda] : tcp: drop CRLF TCP messages (cherry picked from commit 111df6804b5a58f26767674c30bed369dd0209ca) 2015-04-07 Vlad Paiu * [9e9818f] : Silence t_newtrani log error in case transaction was already created 2015-04-07 Vlad Paiu * [2247d90] : Do not crash when faked req has no lumps added to it (cherry picked from commit 210a09608e8591b618bf0d82984816e814e1df47) 2015-04-06 Ovidiu Sas * [18c3c71] : parser: fix memory leak - add Supported header to the list of headers that performs memory allocation (cherry picked from commit b52b2b9239bd59e7515fa35c29e5d6d8c3f6dc2c) 2015-04-06 Ovidiu Sas * [087f706] : nathelper: fix documentation typo (cherry picked from commit 0a404a709cb105cb16617fb4ed8e8a6fd3ae60e0) 2015-04-02 Bogdan-Andrei Iancu * [2284294] : Fix changing proto via force_send_socket(). If the RURI does not request any protocol, use the proto of the forced socket (if any). Related to #420 (cherry picked from commit ac8c2e6845ecea7d01d267b61720d332ee571e1d) 2015-04-02 Bogdan-Andrei Iancu * [a9ea0a1] : Better err logging 2015-04-01 Liviu Chircu * [ef6a375] : force_send_socket(): update error message on bad parameter The transport protocol is now mandatory Reported by @hydrosine Closes #447 (cherry picked from commit 5a346da223071201e4e9b04d462ee1219d8e5f2d) 2015-04-01 Liviu Chircu * [f1053ec] : flag fixups: fix a sign conversion bug Reported by @hydrosine Fixes #448 (cherry picked from commit bc160a7bab3fb2d0eb979bfedac8f67db05d42b2) 2015-04-01 Vlad Paiu * [ccb3777] : Accept TCP aliases by default Do not rely on the previous hop signaling alias via param (cherry picked from commit d62bc967b0d6784d2baced88b895da57f3f4ab9a) 2015-03-31 Eric Tamme * [e696f6f] : fixed flex sub version check to include unistd.h for anything subversion 36 or higher (cherry picked from commit 9393492307b85a91031a5f4f35338eac44af4f5d) 2015-03-31 Eric Tamme * [f1ffe77] : fixed flex sub version check for isatty definition - isatty was removed in .36 (cherry picked from commit 4015747f3d0771e2f71cc7897fbd28dd3e49de9f) 2015-03-30 Bogdan-Andrei Iancu * [a09487b] : Fix documentation typo. Credits go to Antonis Psaras. (cherry picked from commit 3da2b0dfcb9e59025da6052972dc5ee3bcbeec02) 2015-03-27 Razvan Crainea * [77b9d64] : proto_ws: prevent buffer overflow when masking (cherry picked from commit 9a4ae5c2f655cba57c4a542b07ad7a9da9d4e011) 2015-03-25 Razvan Crainea * [9aeb470] : rename modules_obsolete to obsolete_modules this makes tree browsing easier using autocompletion (cherry picked from commit adc4455d9223ddbe75dd899fbb3a8e4cafcb22c7) 2015-03-24 Razvan Crainea * [f26c7e6] : tcp & tls: preserve fd after connect succeeds Credits go to Peter Kelly for reporting this and helping with the testing (cherry picked from commit a3051522e5f9350cf690e0f2686d44838ae20308) 2015-03-24 Vlad Paiu * [f3b03dc] : Fixed TLS CRLF pingpong regression Properly handle CRLFCRLF pings over TLS (cherry picked from commit 558a4f133d12d2590075550be3094b697c57db1e) 2015-03-23 Vlad Paiu * [9ee5093] : Fixed TLS connection closing Update the SSL library with the TCP main socket before running SSL_Shutdown Thanks to Lirakis for the help in debugging this 2015-03-23 Răzvan Crainea * [867bf99] : python: add documentation (cherry picked from commit 1dd83cfa6a99ce10876f2391d4baf5a7a986b11e) 2015-03-23 Razvan Crainea * [454852a] : python: properly parse the script name (cherry picked from commit 593f26913228678d02ee5c5d6a749ed5a52fc846) 2015-03-23 ionutrazvanionita * [97db6e7] : removed unecessary rootCA files 2015-03-23 Bogdan-Andrei Iancu * [525bd70] : Have tcp_async by default ON. 2015-03-23 Vlad Paiu * [3eb5f2b] : opensipsdbctl : Fixed creating Postgres database 2015-03-23 Liviu Chircu * [3283130] : fix typo in previous commit (cherry picked from commit eed1c0ad0798902bc76f2955eb1ad11f2bfe4ca2) 2015-03-23 Liviu Chircu * [645094b] : opensipsdbctl: allow running from root dir for _all_ SQL backends (completes commit 31c472c) (cherry picked from commit 49ed85a252d2b1f6b36eff56709bf73fcbca6d38) 2015-03-23 Vlad Paiu * [4c6d3f0] : Added compression and emergency to excluded modules list They depend on zlib and respectively libcurl for compiling (cherry picked from commit 8cc812dac2abe1206522e24d369d34f9dc9c231a) 2015-03-19 Bogdan-Andrei Iancu * [a1ea06b] : Fix compile err/warn on redhat. Reported by Nick Altmann. Credits go to Liviu Chircu. 2015-03-18 Eric Tamme * [25d47d8] : fix rtpstat for rtpengine - thanks to jarrod for tracking down the fix (cherry picked from commit d10e6796aa312374592892e58af98a017f6925d5) 2015-03-18 Razvan Crainea * [936e93b] : update version name 2015-03-18 Razvan Crainea * [d1c151a] : update ChangeLog for 2.1 2015-03-18 Ovidiu Sas * [f1652d2] : mi_http: update copyright 2015-03-18 Ovidiu Sas * [b7e2137] : pi_http: fix compiler warning 2015-03-18 Vlad Paiu * [75c8154] : Fix route_to_carrier and route_to_gw Duplicate the RURI before pushing GWs for usage ( first gw will overwrite the actual URI ) 2015-03-18 Liviu Chircu * [3c6873c] : update acc SQL scripts 2015-03-18 Liviu Chircu * [3865052] : update CREDITS 2015-03-18 Răzvan Crainea * [d68733e] : update debian rules to create separate debs 2015-03-18 Razvan Crainea * [b89660b] : update specs for the new modules * fixed a few fedora copy&paste error * add specs in debian 2015-03-18 Vlad Paiu * [adf2b4c] : Fixed SIP message updating into SHM Do not touch the existing message ( might be regular MSG or fake one ) - let the respective cleaning functions ( per regular MSG or faked ) to take care of this 2015-03-18 Vlad Paiu * [28ef79c] : Input is not mandatory when running exec 2015-03-18 Răzvan Crainea * [23d240f] : presence: update documentation for the new E_PRESENCE_PUBLISH event 2015-03-18 Răzvan Crainea * [32ded12] : Merge pull request #423 from telematico/master add event support to presence module. 2015-03-18 Răzvan Crainea * [0b78ab1] : Merge pull request #404 from wdoekes/wjd-cfgutils-errmsg-fix cfgutils: Clarify shvset/varset error message. 2015-03-18 Vlad Paiu * [fcf5544] : Add second parameter for m_dump to limit maximum number of dumped messags Credits to Nick Altmann 2015-03-18 Vlad Paiu * [e5cb980] : Add User-Agent filtering capabilities for lookup() Credits to Nick Altmann 2015-03-18 Vlad Paiu * [645b56c] : Lower log level to WARNING for certain cases in order to reduce log polution Credits to Nick Altmann 2015-03-17 Razvan Crainea * [dbca5f4] : rtpengine: do not register mi functions twice 2015-03-17 Bogdan-Andrei Iancu * [9a82575] : Update documentation 2015-03-17 ionutrazvanionita * [38dc567] : Regenerated certificates with OpenSIPS DN 2015-03-17 ionutrazvanionita * [bb0ef8c] : Renewed certificates expiry date: Mar 16 2016 2015-03-17 Liviu Chircu * [4d019ce] : dispatcher: doc update 2015-03-17 Liviu Chircu * [388ce73] : dispatcher: add the "persistent_state" modparam Closes #430 2015-03-17 Liviu Chircu * [b3880a4] : fraud_detection: fix uninitialized pointer 2015-03-17 Liviu Chircu * [667e379] : fraud_detection: fix crash if db_url not given 2015-03-17 Liviu Chircu * [9ff8bf3] : startup: only run destroy_f if init_f has been run This prevents some particular startup crashes (e.g. fraud_detection). 2015-03-17 Liviu Chircu * [264f466] : drouting: fix crash with empty db_url 2015-03-16 ionutrazvanionita * [1422358] : Removed content that is now in Advanced tutorial section from proto_tls documentation 2015-03-16 Liviu Chircu * [ceb3a11] : opensipsdbctl: proper OpenSIPS version in command list 2015-03-14 Nick Altmann * [73ae1a8] : RPM spec: updated for 2.1 2015-03-13 Liviu Chircu * [7f2ac40] : dispatcher: document prio column 2015-03-13 Răzvan Crainea * [cfd25fa] : remove devel section from proto_tls keep proto_tls_devel.xml for further processing 2015-03-13 Răzvan Crainea * [28f5eb9] : add proto_ws readme 2015-03-13 Răzvan Crainea * [a193aa1] : add proto_tcp readme 2015-03-13 Liviu Chircu * [a674a45] : forking phase: properly handle signals on startup_route Properly detect an abort within startup_route (e.g. if an assert() fails with abort_on_assert = yes) 2015-03-13 Vlad Paiu * [717cffb] : Always load proto_udp.so module since we have default UDP listener 2015-03-13 Vlad Paiu * [65a15aa] : Fixed FD closing in proto_ws Don't close FD if in our own process when write fails 2015-03-13 Bogdan-Andrei Iancu * [03da45a] : Fix adding RR params. Do not use context for keep track of added RR params, as other modules (like TH) may change the RR lumps, so you may end up inconsitent (context says YES, lumps say NO). All the time look at the lumps to see if RR was done, if params are there, etc. 2015-03-13 Razvan Crainea * [cb427c9] : relax alias declaration syntax 2015-03-13 Razvan Crainea * [522dc7d] : update opensips.cfg to 2.1 2015-03-13 Razvan Crainea * [417aa9a] : properly populate the source address for siptrace 2015-03-13 ionutrazvanionita * [8de908d] : Fixed proto_tls FD closing When sending through a TLS connection, do not close the FD if already in our process x 2015-03-12 Vlad Paiu * [ca12c67] : Have osipsconfig generate config files with proper mpath set Fixes issue #418 2015-03-12 Razvan Crainea * [b9ffd9c] : set default WebSocket port 2015-03-12 Vlad Paiu * [9a4b9a6] : Fixed callback ordering for TH replies to initial requests when using dialog First the dialog callbacks should get called so the module can update it's internal structures, and then the TH cbs should strip things 2015-03-12 Liviu Chircu * [ae0d275] : opensipsdbctl: update "migration" command for OpenSIPS 2.1 2015-03-12 Liviu Chircu * [f1ba20b] : opensipsdbctl: appropriate terminal colors for info and warning 2015-03-12 Liviu Chircu * [cd90816] : opensipsdbctl: add "cachedb" in the list of extra tables 2015-03-12 Bogdan-Andrei Iancu * [f4f0227] : Identation fixes 2015-03-12 Bogdan-Andrei Iancu * [4cbbfaa] : Copyright updated 2015-03-12 Razvan Crainea * [b6d4230] : rr: no need to search the outbound interface for single route messages, the outbound interfaces is the same with the inbound one, so there is no need to search for an outbound socket 2015-03-12 Bogdan-Andrei Iancu * [f612548] : Proper WS support in tracing and capturing (Homer) 2015-03-12 Razvan Crainea * [73f5a23] : mi_xmlrpc: format error message as XML 2015-03-12 Razvan Crainea * [aafe2ef] : httpd: propagate tree status code in http return 2015-03-12 Razvan Crainea * [d897605] : allow any protocol in blacklist 2015-03-12 Bogdan-Andrei Iancu * [c948b8e] : Fix compile err (using deprecated macros) 2015-03-12 Bogdan-Andrei Iancu * [bef76d1] : removed all SHM_MEM - shared mem is mandatory 2015-03-12 Bogdan-Andrei Iancu * [cb0a88f] : remove SHM_MEM defines + beautification 2015-03-12 Liviu Chircu * [1a8a993] : Fix routing list debug output (on -DEXTRA_DEBUG) 2015-03-12 Razvan Crainea * [9018a94] : import unistd for versions lower than 2.5.39 2015-03-12 Razvan Crainea * [870fa0d] : Revert "Solve isatty flex warning" This reverts commit 752d776e24eded80b4fa9e56a53329c03c8f1d49. 2015-03-12 Razvan Crainea * [3ba1804] : do not change publish status in EXPIRE callback 2015-03-11 Bogdan-Andrei Iancu * [4e30e8d] : Fix detection for HAVE_TCP_KEEPxxxx support. Reported by Pete Kelly 2015-03-11 Vlad Paiu * [be9d58c] : Added FAQ note in the readme about the moving of the topology_hiding() function 2015-03-11 ionutrazvanionita * [55d8355] : merged tlsops module in proto_tls 2015-03-11 Razvan Crainea * [7cdd58a] : check if the callback is not expire, then verify ctx Thanks go to Peter Kelly for reporting this 2015-03-11 Liviu Chircu * [dc6c865] : tm: fix compilation issues on -DEXTRA_DEBUG 2015-03-10 Bogdan Andrei IANCU * [66837ba] : Merge pull request #429 from etamme/master expose the DTLS passive flag to allow for passive relay through rtpengine 2015-03-10 Eric Tamme * [b577559] : expose the DTLS passive flag to allow for passive relay through rtpengine 2015-03-10 Bogdan-Andrei Iancu * [eaa5f1a] : Fix ul_show_contact output. 2015-03-10 Liviu Chircu * [ab5ec5b] : msg, branch flags: add extra logging if -DEXTRA_DEBUG is present 2015-03-10 Liviu Chircu * [d4fec77] : tm: proper handling of branch flags in branch_route 2015-03-10 Vlad Paiu * [f0869bc] : Do not close the FD on write errors even if in our context, so we don't get errors when we remove from worker's list 2015-03-10 Vlad Paiu * [4d97a8d] : Fixed freeing of per connection buffer Do not touch the buffer in case we are in a writing context 2015-03-10 Razvan Crainea * [d080bcc] : properly parse WS socket Credits go to Eric Tamme for reporting this 2015-03-10 ionutrazvanionita * [43eaaac] : Fixed copyright for tls doc 2015-03-10 ionutrazvanionita * [59ecda4] : updated tls documentation 2015-03-10 Razvan Crainea * [2781c81] : fix offset when adding WS transport parameter 2015-03-10 Bogdan-Andrei Iancu * [90c410c] : Fix timer delay detection. Instead of using the timer TICK to detect its own delays (which is a bit bogus), use the internal timer (which has a higher granularity) to detect delays in the TIMER or UTIMER timers. 2015-03-10 Vlad Paiu * [7987850] : Changed menuconfig templates for generating configs to use the proto_tcp and proto_tls modules 2015-03-10 Razvan Crainea * [ad9d1ce] : exec: fix inline compile errors 2015-03-10 Liviu Chircu * [07118f8] : modules/proto_sctp: add documentation & README 2015-03-10 Liviu Chircu * [1eff0b3] : net/proto_udp: add documentation & README 2015-03-10 Liviu Chircu * [18da7b4] : .html, .pdf and README generation: also build inside "net/" dir The following commands will now also build documentation from the net/ directory: * make modules-readme * make modules-docbook-html * make modules-docbook-txt * make modules-docbook-pdf Some examples: * make modules-readme modules="proto_udp proto_sctp dialog" * make modules-docbook-html modules="net/proto_udp modules/tm" 2015-03-09 Vlad Paiu * [aba0f90] : Removed USE_TLS and USE_TCP defines - added support for compiling proto_tls and proto_sctp modules 2015-03-09 Liviu Chircu * [122ace5] : proto_ws: fix unitialized var 2015-03-09 Razvan Crainea * [e25e029] : WS: remove polarssl dependency 2015-03-09 Vlad Paiu * [3e440cb] : When adding FD to hash, check if it exceeds max_fd_no in order to avoid mem corruption 2015-03-09 Razvan Crainea * [5f268d6] : siptrace: support ws protocol 2015-03-09 Razvan Crainea * [922fc63] : ws: for now, we only need the state in shmem 2015-03-09 Razvan Crainea * [5d659ff] : ws: properly search params within a header 2015-03-09 Razvan Crainea * [3b88906] : ws: add module parameters 2015-03-09 Razvan Crainea * [7903f2c] : add WebSocket transport protocol 2015-03-09 Razvan Crainea * [178b0cc] : siptrace: check protocol without colon Thanks for Satish Patel for reporting this 2015-03-08 Liviu Chircu * [0509320] : dialplan: document timerec_col 2015-03-07 Liviu Chircu * [9b626bf] : cfg.y: do not start OpenSIPS when using HP_MALLOC cfg params Also fix a linking error on other allocators (commit 607fdddf) Reported by SamyGo 2015-03-06 Liviu Chircu * [607fddd] : HP_MALLOC: fix hp_status() * Proper display of free fragment buckets on sig USR1/TERM/shutdown * some code refactoring 2015-03-06 Vlad Paiu * [0aa3df4] : Fix poll method before initializing UDP & TCP layers 2015-03-06 Vlad Paiu * [a3deecc] : Properly close FDs When releasing the connection in a bad state, we don't always want to close the actual FD in con ( eg. we have the con in a write context, and we have acquire the FD from main - con->fd will be from another worker's context ) 2015-03-06 Liviu Chircu * [ca0290b] : remove all svn-specific $Id$ tokens from license headers 2015-03-06 Vlad Paiu * [aec9956] : Fixed bug in unhashing FDs Reset the READ pending flags before running the IO handler 2015-03-05 Liviu Chircu * [8dfe15e] : json: set $json content to NULL if assignment fails This makes it possible to test for parsing errors if the $json variable was already populated (possibly even from other SIP requests!) 2015-03-05 Liviu Chircu * [8ae9f60] : rest_client: documentation update 2015-03-05 Liviu Chircu * [60d2473] : rest_post: allow the Content-Type parameter to be NULL This makes libcurl use the default Content-Type for POST requests: "application/x-www-form-urlencoded" 2015-03-05 Vlad Paiu * [0802311] : Optimized TCP writing Do not try to aquire FD from main on TCP write in case the TCP connection is already polled on in the context of the current TCP worker 2015-03-05 Liviu Chircu * [4efeba5] : bin interface processing: add check for min length 2015-03-04 Liviu Chircu * [5451ab6] : rest_client: add async capabilities to rest_post() 2015-03-04 Carlos Oliva * [dc751e5] : added event support to presence module. The event E_PRESENCE_PUBLISH will be triggered each time the presence module receives a PUBLISH The parameters of the event are: user::AOR domain::domain event::event_type expires::int_time_to_expire etag::etag_string body::string_with_xml_body_of_publish 2015-03-03 Liviu Chircu * [7b96d7a] : Documentation improvements and fixed typos 2015-03-03 Liviu Chircu * [0b04f61] : sngtc: Improve documentation on fetching and compiling libsngtc_node (cherry picked from commit 9b8b13072e22426f4e5b8e1c3942a0b225e6da2d) Conflicts: modules/sngtc/sngtc.c pt.c 2015-03-03 Liviu Chircu * [f3ed4db] : Fix infinite recursion when nesting $param variables Keep an array with the route parameters of each nesting level. This makes it possible to access the parameters of previous route() statements even if they contain $param variables. Closes #412 2015-03-03 Vlad Paiu * [1f517c3] : Fix param.valueat at param.name - params are stored in the same order 2015-03-03 Liviu Chircu * [685da74] : avpops: Proper validation for DB_CAP_RAW_QUERY capability Prevent OpenSIPS from starting if avp_db_query() is used and the concerned DB engine does not support raw SQL queries. This prevents runtime crashes in some rare cases (e.g. issues with db_http module, which might not have full support) Fixes #405 (cherry picked from commit 8d978ac4530ebf95925efc44cb11d0a549e20a52) 2015-03-02 Liviu Chircu * [31c472c] : opensipsdbctl: Fix DB creation in dev mode * scripts/opensipsdbctl ... now works 2015-03-02 Liviu Chircu * [7fefe50] : opensipsctl: Fix TLS certificate generation in dev mode * you can now run scripts/opensipsctl tls ... * no need to specify ETCDIR * do not throw error when giving no command * add template for explicit ETCDIR in opensipsctlrc Fixes #369 2015-03-01 Bogdan-Andrei Iancu * [1b08408] : Fix setb0flags() usage 2015-03-01 Bogdan-Andrei Iancu * [4eeb67d] : Fix compile warnings 2015-03-01 Bogdan-Andrei Iancu * [f3e711d] : expose get_sock_info_list() 2015-02-28 Ovidiu Sas * [3e5915a] : Makefile.conf.template" add proto_sctp to the list of excluded modules 2015-02-28 Bogdan-Andrei Iancu * [2dd472a] : Update for the new proto design 2015-02-28 Bogdan-Andrei Iancu * [2052432] : If fd is NULL, tcp_conn_get() skips aquire fd 2015-02-28 Bogdan-Andrei Iancu * [713e22f] : Fix: do not set timeout on tcp_conn_get() 2015-02-27 Bogdan-Andrei Iancu * [98796b3] : Merge branch 'transport-interface' Conflicts: Makefile.conf.template io_wait.c io_wait.h reactor_defs.h tcp_main.c tcp_read.c udp_server.c 2015-02-27 Razvan Crainea * [487998a] : expose init_tcp_req() to other modules 2015-02-27 Bogdan-Andrei Iancu * [44f3f55] : Use conn idx as it is known. 2015-02-26 Bogdan-Andrei Iancu * [11aedc6] : Major rework on TCP conns lifetime and timeouts. 2015-02-26 Liviu Chircu * [7e966f6] : opensipsctl: fix compatibility issues with FreeBSD [part 2] Yet another /bin/sh compatibility issue. Completes commit a2494eba 2015-02-25 ionutrazvanionita * [2e25e95] : added schema to uri transformations 2015-02-25 Razvan Crainea * [0e720aa] : store the last called prefix Check why we keep the last prefix global 2015-02-25 root * [3f9ed17] : Merge branch 'master' of github.com:OpenSIPS/opensips 2015-02-24 Bogdan-Andrei Iancu * [608de67] : Fix parser error - URI in Contact hdr is mandatory (cherry picked from commit 1fa6a230e499347b29003826790917d44576bda3) 2015-02-24 Bogdan-Andrei Iancu * [66f368e] : FIXME -> TODO 2015-02-24 Bogdan-Andrei Iancu * [3222e1e] : FIX some race condition of conn handling. Credits go to Vlad. 2015-02-23 Bogdan-Andrei Iancu * [3018687] : Do not release conn from worker after read. 2015-02-23 Bogdan-Andrei Iancu * [deee756] : Set conn lifetime via fcntl like function. 2015-02-23 Bogdan-Andrei Iancu * [41dc79d] : Expose a conn fcntl like function to App level. 1. tcp_conn_fcntl() function offered by TCP net layer 2. TLS and TCP protos reuses this function for Transport layer. 2015-02-22 Bogdan-Andrei Iancu * [78c8462] : Better timeout granularity on connect. 2015-02-22 Bogdan-Andrei Iancu * [eb1b02c] : setting tcp_send_timeout to default 10 ms 2015-02-22 Bogdan-Andrei Iancu * [b343ca1] : TCP related timeouts migreate to ms. tcp_send_timeout moved as parameter to proto_tcp module tcp_send_timoout, tcp_async_local_connect_timeout, tcp_async_local_write_timeout consistenly moved to miliseconds. default tcp_send_timeout value set to 10 ms 2015-02-22 Bogdan-Andrei Iancu * [0ef2199] : Migrate timeouts from sec to msecs. Reduce the default timeouts from 30secs to 100 msecs. 2015-02-22 Bogdan-Andrei Iancu * [dd3d898] : Total removal of USE_IPV6 define 2015-02-22 Bogdan-Andrei Iancu * [5c3f2f3] : Fix SCTP proto detection in TM module. Credits go to @jamesabravo on GITHUB Closes #413 . 2015-02-21 root * [7ae82f6] : emergency module refactoring -- dividing in smaller C files 2015-02-20 Bogdan-Andrei Iancu * [8ff6195] : Add auto-disabling of TCP/UDP layers if not used by any proto. 2015-02-20 Bogdan-Andrei Iancu * [25455ca] : Removed all USE_TCP dependencies 2015-02-20 Razvan Crainea * [2c99b4e] : if no listeners are defined, remove the module 2015-02-20 Bogdan-Andrei Iancu * [c488a94] : Partial removal of USE_TCP 2015-02-20 Bogdan-Andrei Iancu * [8becb75] : Re-order TCP related parameters 2015-02-20 Bogdan-Andrei Iancu * [172eea3] : Each protocol has its own default port parameter. Removed the global core parameter "port". Each protocol exports a module parameter for setting the defaul port. 2015-02-19 Bogdan-Andrei Iancu * [eb3355a] : Fix complile err, remove old files 2015-02-19 Bogdan-Andrei Iancu * [29438b6] : Remove USE_SCTP define 2015-02-19 Bogdan-Andrei Iancu * [6f31dda] : Full migration of SCTP support to module 2015-02-19 Bogdan-Andrei Iancu * [3c1043b] : Add SCTP proto as module/proto_sctp 2015-02-19 Ovidiu Sas * [f3f7f42] : httpd: fix memory leak for non-POST requests 2015-02-19 Razvan Crainea * [5e5aec4] : merge proto bind and init in a single step 2015-02-19 Razvan Crainea * [36586d6] : net: bind protocols and default port before mod_init 2015-02-18 Bogdan-Andrei Iancu * [2a14ce8] : Add missing files with the TLS param handling 2015-02-18 Bogdan-Andrei Iancu * [fac0275] : TLS final & major cleanup in core. Move all TLS related parameters from core to proto_tls module. Remove USE_TLS from all code. Make mandatory to specify the proto in the definition of a listener (in cfg file). 2015-02-18 Bogdan Andrei IANCU * [20ebcf0] : Merge pull request #416 from etamme/master fixed bitmask to cover all 3 bits vs. 1st and 3rd. Thanks to eldonogith... 2015-02-18 Bogdan Andrei IANCU * [60e03a1] : Merge pull request #414 from jbonicioli/master modified source and target table for registrant table migration 2015-02-18 Razvan Crainea * [465c4be] : rabbitmq: set the connected flag only after socket is created Credits go to Ovidiu Sas for detecting, debugging and solving this issue 2015-02-18 Eric Tamme * [adf010e] : fixed bitmask to cover all 3 bits vs. 1st and 3rd. Thanks to eldonogithub. 2015-02-18 Bogdan-Andrei Iancu * [a059c26] : init_proto() merged into mod_init() 2015-02-18 jbonicioli * [9139584] : modified source and target table for registrant table migration 2015-02-18 Bogdan-Andrei Iancu * [b8cc61e] : Proper integration of TLS conn clean with TCP net. 2015-02-18 Bogdan-Andrei Iancu * [a73e0b7] : USE_TLS massive removal 2015-02-17 Bogdan-Andrei Iancu * [e7ed341] : TLS state machine and write ops added. 2015-02-17 Bogdan-Andrei Iancu * [776380f] : tcp_conn_create() enhanced. Remeber if the conn was accepted or connected. Use proto from the involved socket (must be the same). Conn has also proto_flags (protocol specific flags) 2015-02-17 Bogdan-Andrei Iancu * [ee3227b] : Cleanup in TCP connection states. 2015-02-17 Bogdan-Andrei Iancu * [135120f] : tcp_blocking_connect() moved from TCP proto layer to TCP network layer (to be reused by TLS too). 2015-02-17 Vlad Paiu * [f61f685] : Check for dlg api loading when trying to call match_dialog() 2015-02-17 ionutrazvanionita * [0eb2b4d] : Merge branch 'master' of https://github.com/OpenSIPS/opensips 2015-02-17 ionutrazvanionita * [48a2193] : avoid compilation warning 2015-02-17 Vlad Paiu * [c03e0b6] : Added license headers 2015-02-17 Vlad Paiu * [d84649e] : Added topology_hiding module The module can work on top of the dialog module, or as a standalone module ( thus alowing topology hiding for all types of dialogs - not just INVITE based ) Exposes topology_hiding() and topology_hiding_match() funcs. Current limitations : - uac_replace_from / uac_replace_to will not work if running without the dialog module ( the Record-Route headers added by the Proxy are stripped ) - callid hiding works just when running on top of the dialog module 2015-02-17 ionutrazvanionita * [c53bd4f] : Merge branch 'master' of https://github.com/OpenSIPS/opensips 2015-02-17 ionutrazvanionita * [94cf5dd] : Added created and setup time on missed calls when cdr flag is set 2015-02-17 Bogdan-Andrei Iancu * [076e5dd] : Reading part made functional. 2015-02-17 Bogdan-Andrei Iancu * [31ff8e5] : One more split in defs and funcs hdr files. 2015-02-17 Bogdan-Andrei Iancu * [8527f36] : Separate common TCP functions to be reused by TLS. 2015-02-16 Bogdan-Andrei Iancu * [4444595] : Moving TLS related files into modules/proto_tls 2015-02-13 Bogdan-Andrei Iancu * [e1bbbe5] : Intial upload of call emergency module. Credits go to Robison Tesini & Evandro Villaron. 2015-02-13 Bogdan-Andrei Iancu * [e8158cd] : More on re-arranging the TLS code 2015-02-13 Bogdan-Andrei Iancu * [d8cfac6] : Initial move of TLS code into proto_tls module 2015-02-12 Ovidiu Sas * [4915af5] : Merge pull request #411 from staskobzar/master httpd: Make sure httpd can recognize Content-Type headers with params. 2015-02-12 Stas Kobzar * [918f718] : httpd: Make sure httpd can recognize Content-Type headers with params. 2015-02-12 Bogdan-Andrei Iancu * [efd4a07] : Proper init of protos (via the net layer) 2015-02-12 Vlad Paiu * [85d4820] : Fix dialog race condition on BIN replication The writing of dialog profiles needs to be done under the dialog lock ( in case there's a race condition with the BYE freeing the profile linkers ) 2015-02-11 Bogdan-Andrei Iancu * [795c8ed] : Proper loading of the UDP-plain proto module 2015-02-11 Bogdan-Andrei Iancu * [6cd7822] : Missing UDP files added/removed 2015-02-11 Bogdan-Andrei Iancu * [aaeeb7d] : UDP files split into Network and Proto layers. 2015-02-11 Bogdan-Andrei Iancu * [c3fe175] : Fix bug in TCP inter-proc communication 2015-02-10 Bogdan-Andrei Iancu * [0cfa149] : Couple of fixes on the new TCP rework 2015-02-10 Razvan Crainea * [170566b] : Merge the two interfaces implemented by the transport protocols 2015-02-10 Razvan Crainea * [a1f041c] : fix the proto name 2015-02-10 Razvan Crainea * [39e0f36] : fix PROTO_FIRST typo in seas module 2015-02-10 Razvan Crainea * [b6dab49] : consistent index protocols starting from 1 2015-02-10 Vlad Paiu * [4782d0a] : Added support for DATE fields in mongodb raw queries - date fields will be returned as UNIX timestamp (cherry picked from commit 8302fc8f545a4fb169ade55fdfbcf916cf6b9cd6) 2015-02-09 Bogdan-Andrei Iancu * [0d743fb] : Remove global holders for listeners. 2015-02-09 Bogdan-Andrei Iancu * [bc17dac] : Remove global holders for listeners. 2015-02-09 Bogdan-Andrei Iancu * [2922fcd] : Several TCP related params moved from core to TCP plain module. Moved from core to TCP module: * tcp_max_msg_chunks * tcp_crlf_pingpong * tcp_crlf_drop * tcp_async * tcp_async_max_postponed_chunks * tcp_async_local_connect_timeout * tcp_async_local_write_timeout The async support test moved from reactor into TCP-plain module. 2015-02-09 ionutrazvanionita * [b003f50] : Sip-wisely Content-Type parsing 2015-02-09 Bogdan-Andrei Iancu * [1673663] : Add conn_init() and conn_clean() per connection. Network layer triggers corresponding (to proto) init() and clean() functions when creating or trashing a TCP connection. For TCP plain, the handling of data chunks (pending writes) moved into these new function, independent of the TCP network layer. 2015-02-09 Bogdan-Andrei Iancu * [3ba41f5] : send() function added in proto API. proto TCP exposes a send() function via API. send_msg() is using the proto APIs to select the send() function according to the protocol. 2015-02-06 Bogdan-Andrei Iancu * [ded5102] : Splitting TCP code into net and proto layers. This code is not yet functional, but it compiles ;) (work in progress) 2015-02-06 Bogdan-Andrei Iancu * [c322f5d] : File re-organizing for spliting TCP code into net and proto layers. 2015-02-05 Liviu Chircu * [6b32871] : tm: fix memory handling when updating the SIP transaction Related to commit 7eaf122 2015-02-04 ionutrazvanionita * [57d2870] : avoid memory leak by not making all the table list null when removing only one table 2015-02-04 Liviu Chircu * [a268b1d] : db_mysql: properly NULL the result pointer if a query fails This prevents issues with non-initialized pointers (issue #406) 2015-02-04 Liviu Chircu * [c8f3604] : module dependencies: immediately exit on mod_init failures 2015-02-04 Liviu Chircu * [e2c77e4] : dialog: do not start OpenSIPS on DB init failure 2015-02-04 Liviu Chircu * [32b613a] : db_text: improve error reporting on startup * show the table concerned * show mismatching column counts 2015-02-04 Bogdan-Andrei Iancu * [56d6927] : Encapsulate the sending of the return code per process 2015-02-03 Aron Podrigal * [d6a0975] : fixes #406 Fix segfault caused by referencing uninitialized pointer in dispatcher module. (cherry picked from commit b71f6de9ea21d0f9c39ec92f4df0e6d56e2a9753) 2015-02-03 Bogdan-Andrei Iancu * [131bd99] : Aligne the proto TCP-plain to TCP networking layer 2015-02-02 Razvan Crainea * [d6597a6] : net: add a flag to indicate whether a protocol uses TCP or UDP underneath 2015-02-02 Razvan Crainea * [5c7340c] : net: rename proto and proto_net structures Moved them in corresponding files: api_proto and api_proto_net 2015-02-02 Bogdan-Andrei Iancu * [3f0b8fe] : Inconssistenci error when pkg_realloc() fails. If malloc fails and new static buff=NULL, we have to modify buff_size accordingly, or we will face out-of bound exception. Credits go to Sergey KHripchenko, related to pull request #345 2015-01-30 ionutrazvanionita * [38522f1] : Made null table parameter after being freed to avoid double free ( individual free from each module and group free from db_text in destroy function of each module) 2015-01-29 Bogdan-Andrei Iancu * [80c5b83] : copyright added 2015-01-29 Bogdan-Andrei Iancu * [0bd2934] : Add priorities for the fds in reactor. It is important to have priorities between the fds triggered in reactor/poll. Operations like timer or async resume must have priority over reading new SIP messages from network. Current code generically implements a priority mechanism, for all types of polling. We may optimize it in the next weeks, with specific implementations for each type of polling. 2015-01-29 Razvan Crainea * [b64d554] : ti: implement tcp_read function 2015-01-28 Razvan Crainea * [2f84c74] : get_current_dlg(): don't reference a NULL dialog 2015-01-28 Walter Doekes * [a3fdc1d] : cfgutils: Clarify shvset/varset error message. 2015-01-27 Bogdan-Andrei Iancu * [378dae9] : Fix missing dlg reference when copying from TM. 2015-01-27 Ovidiu Sas * [e8101df] : usrloc: consolidate mi output for ul_show_contact - same output format for ul_show_contact and ul_dump 2015-01-27 Ovidiu Sas * [4f070e2] : mi_http: fix escaping 2015-01-27 Razvan Crainea * [2184def] : tcp: rename TCP connection 2015-01-27 Razvan Crainea * [6725e57] : ti: add TCP static module 2015-01-26 Bogdan-Andrei Iancu * [54ec98e] : Fix missing comma. 2015-01-26 Ovidiu Sas * [e7467c5] : Makefile.conf.template: remove references to mi_xmlrpc (deleted) 2015-01-26 Razvan Crainea * [39f6735] : configurable proto name 2015-01-26 Razvan Crainea * [3c7c44f] : add bind() prototype 2015-01-26 Razvan Crainea * [fe71b14] : implement add_listener logic 2015-01-23 Liviu Chircu * [1a6a9e2] : async DB API: revise return codes Align return codes to changes imposed by commit bd4b488afee 2015-01-23 Liviu Chircu * [827ebbc] : avpops: update documentation 2015-01-23 Liviu Chircu * [72fb6f1] : avpops: add optional asynchronous capabilities to avp_db_query() avp_db_query() may now also be used in an asynchronous manner. (currently only with db_mysql). Scripting example: async( avp_db_query( "SELECT table_name, SLEEP(0.1) from version", "$avp(tb_name); $avp(tb_ver); $avp(time)"), my_resume_route); 2015-01-23 Liviu Chircu * [6c4f266] : db_mysql: implement async_raw_query and async_raw_resume The db_mysql module is now fully capable of running asynchronous raw queries. 2015-01-23 Liviu Chircu * [d9411e9] : DB core: fix compilation issue on newer gcc versions aka Redundant redeclaration of function typedefs 2015-01-23 Liviu Chircu * [3eacd98] : OpenSIPS script: "db_max_async_connections" global parameter Maximum number of TCP connections opened from a single OpenSIPS worker to each individual SQL backend. Default value is 10. Individual backends are determined from URLs as follows: [ scheme, user, pass, host, port, database ] 2015-01-23 Razvan Crainea * [17817f8] : Merge branch 'master' into transport-interface Conflicts: main.c modules/rest_client/rest_client.c modules/rest_client/rest_methods.c 2015-01-23 Razvan Crainea * [c28a9a6] : dialog: prevent the same reply from changing the same state twice 2015-01-23 Razvan Crainea * [6786291] : mi_xmlrpc_ng: add \n after each node 2015-01-23 Saúl Ibarra Corretgé * [353a519] : Revert "Changes to stop keepalives on unregisters" This reverts commit 4c9a1fa2a791d37629b7272581f6d52c4b0f9666. 2015-01-23 Razvan Crainea * [b280f8d] : permissions: raise the proper error when the IP is not provided 2015-01-23 Liviu Chircu * [f545ba0] : Makefile: fix concurrency issue leading to linking errors main.c needs to be recompiled if the version name changes. When doing multi-threaded compiling (make -j), main.o would sometimes be deleted right after it was compiled, triggering a linking error of the "opensips" binary. The patch also prevents main.c to be recompiled each time if the ".git" dir is not present. (i.e. compiling a tarball archive). Credits to Răzvan Crainea. Thanks to Bobby Hakimi for offering a replication environment. Closes #373 2015-01-23 Liviu Chircu * [1a71a44] : event_route: fix compile warning on i386 2015-01-23 Liviu Chircu * [5044d7d] : DB core: add the DB_CAP_ASYNC_RAW_QUERY capability DB modules who define both "async_raw_query" and "async_raw_resume" will have this capability enabled after handle initialization. 2015-01-23 Liviu Chircu * [257e84b] : async DB core: fix possible buffer overflow 2015-01-22 Liviu Chircu * [92755be] : DB core: add support for asynchronous raw SQL queries The DB core now allows SQL modules to register async raw query functions. For normal, blocking queries, execution flow remains exactly the same. Documentation available in db/db_async.h 2015-01-22 Liviu Chircu * [5081dde] : async fd management: do not close read fds by default Also add a new async_ret_code: ASYNC_DONE_CLOSE_FD. To be used by modules who want to have their fds closed when respective async operations are completed. (e.g. exec) 2015-01-22 Bogdan-Andrei Iancu * [4324f71] : Merge branch 'shripchenko-master' 2015-01-22 Bogdan-Andrei Iancu * [ca45388] : Small fixes. 2015-01-22 Razvan Crainea * [0b3ac29] : add listener functions 2015-01-22 Razvan Crainea * [0b3cf88] : add TCP dummy connection 2015-01-22 Razvan Crainea * [f435ce6] : rename old tcp_init function 2015-01-22 Bogdan-Andrei Iancu * [02a2025] : Merge branch 'master' of git://github.com/shripchenko/opensips into shripchenko-master Conflicts: modules/load_balancer/lb_data.c 2015-01-21 Bogdan-Andrei Iancu * [2fdeba6] : Fix updating contact records in DB. If Contact-only matching mode is used, the callid is not part of the key in DB query, but part of the updated values (as callid may change). Closes #402. 2015-01-21 Bogdan-Andrei Iancu * [444b680] : Fix balancing on failover. First, the way the calls were re-distributed if the calculated destination is inactive was completely unbalanced and did not respect the hashing concepts (same hash hits the same destination). Along with this problem, the fix covers the re-balancing problem - if a destination becomes inactive, the balancing over the remaining destination should not be affected (if hash H1 hits destination D1, after D2 goes inactive, H1 must still hit D1). The use_default concept was reworked to properly work with all algorithms and in all cases (with or without weights). Closes #387. 2015-01-21 ionutrazvanionita * [b69ae32] : fixed load_credentials avp default name when no name is specified 2015-01-21 Bogdan-Andrei Iancu * [4787f57] : README fix 2015-01-21 Bogdan-Andrei Iancu * [92334e6] : Updates on return codes and README 2015-01-21 Bogdan-Andrei Iancu * [870ab01] : Several updates: -use the "async_status" to report the status at async level -drop the old async implementation (kind of exec and do not wait) -if no output is required from command, do not wait on it at all -README file updated 2015-01-21 Bogdan-Andrei Iancu * [bd4b488] : Use 2 ret codes - function and async. We need to have to kinds of return codes in parallel - the return code of the function, reporting whatever it is doing inside (like for the sync'ed functions) and one for the async engine, to report what is the status of the async part (started, not started, done in sync way, no IO done, etc). 2015-01-21 Bogdan-Andrei Iancu * [f1f5545] : Do waitpid() if a SIGCHILD is received. Generic handling on non-OpenSIPS processes (external forks) - if an OpenSIPS process receives SIGCHILD, do automatically a waitpid (non-blocking) to avoid zombi processes. 2015-01-19 Razvan Crainea * [e89c58e] : load transport protocols and initialize them 2015-01-19 Razvan Crainea * [d3c05fb] : remove trailing spaces for parser 2015-01-19 Razvan Crainea * [752d776] : Solve isatty flex warning Fixes 'warning: implicit declaration of function ‘isatty’ ' warning 2015-01-16 Razvan Crainea * [390cf79] : Add network API headers 2015-01-15 Ovidiu Sas * [3e18886] : rr: enhance some logs 2015-01-14 Razvan Crainea * [6a648c9] : fix the vars db type to BLOB Indicate the DB engine that the dlg vars column is a BLOB Thanks go to John Nash for reporting this. Close #398 2015-01-14 Bogdan-Andrei Iancu * [8e44e4d] : Fix handling dst_uri in cloned messages. Thanks to Liviu for pointing out - the dst_uri, after doing a fake msg (a copy from a shm cloned msg) had the wrong dst_uri linked (one in shm mem). 2015-01-14 Liviu Chircu * [c3d9ceb] : rest_client: add optional asynchronous capabilities to rest_get() rest_get() may now be used in an asynchronous manner, thanks to libcurl's multi interface. Its syntax is identical to its blocking counterpart. Scripting example: async(rest_get("URL", "$var(res)"), my_resume_route); 2015-01-14 Liviu Chircu * [651f0e2] : tm: fix transaction cleanup in async scenarios The transaction state is now saved within and restored from each async operation. (in the _async_ctx struct) This prevents transaction leaks when stacking up multiple async jumps. 2015-01-14 Liviu Chircu * [0a9e813] : mem/mem.h: fix header includes 2015-01-14 Bogdan-Andrei Iancu * [ad06ace] : Fixes realated to previous commit (double siptrace) (cherry picked from commit d4e81886c41e17fe259ba2ee48d6b2ce3e7eb016) 2015-01-14 Bogdan-Andrei Iancu * [e88f1b6] : Fix double tracing in trace_dialog(). If user AVPs are set and the trace flas is not, the code was forcing the tracing flag which was producing a duplicate of the trace. Now, the flags status (on/off) is also stored in the dialog (as var) and restore later, for each sequential request. (cherry picked from commit 24ba3ed467bebc1f029e5c0627225f8d54163143) 2015-01-14 Liviu Chircu * [4b6f80f] : F_MALLOC: add extra safety checks at runtime The F_MALLOC allocator now properly reports any free() or realloc() operations which are performed on bogus memory regions, making OpenSIPS immediately abort. These checks may be skipped by defining F_MALLOC_OPTIMIZATIONS at compile time. 2015-01-14 Bogdan-Andrei Iancu * [1b4124d] : Fixes realated to previous commit (double siptrace) (cherry picked from commit d4e81886c41e17fe259ba2ee48d6b2ce3e7eb016) 2015-01-14 Bogdan-Andrei Iancu * [0c47186] : Fix double tracing in trace_dialog(). If user AVPs are set and the trace flas is not, the code was forcing the tracing flag which was producing a duplicate of the trace. Now, the flags status (on/off) is also stored in the dialog (as var) and restore later, for each sequential request. (cherry picked from commit 24ba3ed467bebc1f029e5c0627225f8d54163143) 2015-01-14 Razvan Crainea * [bb7f121] : fix the vars db type to BLOB Indicate the DB engine that the dlg vars column is a BLOB Thanks go to John Nash for reporting this. Close #398 2015-01-13 Bogdan-Andrei Iancu * [b8611c1] : Fix handling dst_uri in cloned messages. Thanks to Liviu for pointing out - the dst_uri, after doing a fake msg (a copy from a shm cloned msg) had the wrong dst_uri linked (one in shm mem). 2015-01-12 Liviu Chircu * [93c7c55] : rest_client: add optional asynchronous capabilities to rest_get() rest_get() may now be used in an asynchronous manner, thanks to libcurl's multi interface. Its syntax is identical to its blocking counterpart. Scripting example: async(rest_get("URL", "$var(res)"), my_resume_route); 2015-01-12 Liviu Chircu * [5487dcd] : tm: fix transaction cleanup in async scenarios The transaction state is now saved within and restored from each async operation. (in the _async_ctx struct) This prevents transaction leaks when stacking up multiple async jumps. 2015-01-12 Liviu Chircu * [b20ef80] : mem/mem.h: fix header includes 2015-01-12 Bogdan-Andrei Iancu * [2ada3bf] : Fixes realated to previous commit (double siptrace) (cherry picked from commit d4e81886c41e17fe259ba2ee48d6b2ce3e7eb016) 2015-01-12 Bogdan-Andrei Iancu * [37523de] : Fix double tracing in trace_dialog(). If user AVPs are set and the trace flas is not, the code was forcing the tracing flag which was producing a duplicate of the trace. Now, the flags status (on/off) is also stored in the dialog (as var) and restore later, for each sequential request. (cherry picked from commit 24ba3ed467bebc1f029e5c0627225f8d54163143) 2015-01-12 Liviu Chircu * [604c781] : F_MALLOC: add extra safety checks at runtime The F_MALLOC allocator now properly reports any free() or realloc() operations which are performed on bogus memory regions, making OpenSIPS immediately abort. These checks may be skipped by defining F_MALLOC_OPTIMIZATIONS at compile time. 2015-01-12 Bogdan-Andrei Iancu * [74890a9] : Better description of handle_subscribe(). 2015-01-12 Eric Tamme * [f7a491d] : fix for RFC5245 15.1 and MUST be present for server reflexive, peer, and relay candidates 2015-01-12 Liviu Chircu * [d49e0d3] : mem/mem.h: fix header includes 2015-01-12 Razvan Crainea * [4a0f61a] : fix gcc 4.9 warning about the _BSD_SOURCE usage 2015-01-12 Liviu Chircu * [fbc796e] : mem/mem.h: fix header includes 2015-01-12 Razvan Crainea * [7b30b2c] : modules: obsolete mi_xmlrpc, auth_diameter and closedial modules 2015-01-12 Bogdan-Andrei Iancu * [e0dd556] : Fixes realated to previous commit (double siptrace) (cherry picked from commit d4e81886c41e17fe259ba2ee48d6b2ce3e7eb016) 2015-01-12 Bogdan-Andrei Iancu * [6839a0a] : Fix double tracing in trace_dialog(). If user AVPs are set and the trace flas is not, the code was forcing the tracing flag which was producing a duplicate of the trace. Now, the flags status (on/off) is also stored in the dialog (as var) and restore later, for each sequential request. (cherry picked from commit 24ba3ed467bebc1f029e5c0627225f8d54163143) 2015-01-12 ionutrazvanionita * [a65a763] : Updated module to adapt global contexts. Fixed failure route bug for callbacks 2015-01-12 ionutrazvanionita * [ffb8ce5] : added new flag: FL_TM_CB_REGISTERED telling that tm callbacks for this message have been registered 2015-01-12 ionutrazvanionita * [a9679e7] : return code bigger than 0 on script cbs means that you do not want to free the callback 2015-01-12 ionutrazvanionita * [3e10a39] : no context passed when 100 trying is sent\n 2015-01-12 Razvan Crainea * [afdcad5] : fix gcc 4.9 warning about the _BSD_SOURCE usage 2015-01-12 Liviu Chircu * [d62074e] : mem/mem.h: fix header includes 2015-01-12 Razvan Crainea * [00a7a89] : modules: obsolete mi_xmlrpc, auth_diameter and closedial modules 2015-01-12 Bogdan-Andrei Iancu * [2635284] : Fixes realated to previous commit (double siptrace) (cherry picked from commit d4e81886c41e17fe259ba2ee48d6b2ce3e7eb016) 2015-01-12 Bogdan-Andrei Iancu * [338700f] : Fix double tracing in trace_dialog(). If user AVPs are set and the trace flas is not, the code was forcing the tracing flag which was producing a duplicate of the trace. Now, the flags status (on/off) is also stored in the dialog (as var) and restore later, for each sequential request. (cherry picked from commit 24ba3ed467bebc1f029e5c0627225f8d54163143) 2015-01-12 Razvan Crainea * [9e8ddd5] : add DEBUG_PARSER macro Define this macro if you want to debug the parser states 2015-01-09 ionutrazvanionita * [d6c14c2] : Updated module to adapt global contexts. Fixed failure route bug for callbacks 2015-01-09 ionutrazvanionita * [df30eca] : added new flag: FL_TM_CB_REGISTERED telling that tm callbacks for this message have been registered 2015-01-09 ionutrazvanionita * [cd34771] : return code bigger than 0 on script cbs means that you do not want to free the callback 2015-01-09 ionutrazvanionita * [c865747] : no context passed when 100 trying is sent\n 2015-01-08 Razvan Crainea * [c93bda0] : add DEBUG_PARSER macro Define this macro if you want to debug the parser states 2015-01-06 Liviu Chircu * [3593505] : F_MALLOC: add extra safety checks at runtime The F_MALLOC allocator now properly reports any free() or realloc() operations which are performed on bogus memory regions, making OpenSIPS immediately abort. These checks may be skipped by defining F_MALLOC_OPTIMIZATIONS at compile time. 2015-01-06 Bogdan-Andrei Iancu * [29a8f8d] : Better description of handle_subscribe(). 2015-01-06 Bogdan Andrei IANCU * [06309a1] : Merge pull request #264 from etamme/mediaproxy-rfc5245fix fix for RFC5245 15.1 compliant candidate injection 2014-12-30 Bogdan Andrei IANCU * [3505ae4] : Merge pull request #400 from etamme/rtpengine_transport_fix added more rtp transports to match those available in rtpengine 2014-12-30 Eric Tamme * [629c7e8] : added more rtp transports to match those available in rtpengine 2014-12-30 Damien Sandras * [8e95c58] : Fixed presentity naming. 'Calling' is disturbing especially when the given peer is _receiving_ a call. 2014-12-30 Bogdan Andrei IANCU * [0306824] : Merge pull request #397 from etamme/master added missing force-relay flag option for ICE 2014-12-23 Bogdan-Andrei Iancu * [0fa9f1d] : Fix missing context on fake replies -timer trigger 2014-12-22 Bogdan-Andrei Iancu * [5a5a3ad] : Fix bogus order in module exports 2014-12-19 Bogdan-Andrei Iancu * [abe8150] : Move RURI Q and BFLAGS into sip_msg. Drop the static global variables storing the Q value and bflags for the RURI and move them into sip_msg structure, along with dst_uri, send_socket, path, etc. Now, all the information about the first/default branch (the RURI) is kept in sip_msg. 2014-12-19 Bogdan-Andrei Iancu * [0740011] : Fix module export (missing async function array) 2014-12-19 Liviu Chircu * [4991aa0] : tm: properly initialize context buffers 2014-12-19 Liviu Chircu * [d60562d] : sip_msg context: completely removed Replaced by the current script processing context (commit 78c803566) 2014-12-19 Bogdan-Andrei Iancu * [f4b4457] : Fix order of param for async function 2014-12-19 Bogdan-Andrei Iancu * [1bbe2ef] : Merge branch 'async' Conflicts: Makefile context.h modules/dialog/dialog.c modules/dispatcher/README modules/dispatcher/doc/dispatcher_admin.xml modules/dispatcher/ds_fixups.c modules/exec/exec.c modules/exec/exec.h modules/exec/exec_mod.c modules/tm/t_ctx.c modules/tm/tm.c msg_translator.c 2014-12-19 Bogdan-Andrei Iancu * [e7a090f] : Add exec() with full async support. This is the first module function that uses the async support from core - in "sleeps" in async reactor until data in available (for stdout), allowing other tasks to be handled in the mean while by the process. 2014-12-19 Bogdan-Andrei Iancu * [51d76a9] : Rework the RR param buffering (use non-static vars) Keep in processing context the RR status (if done, if pending RR params, etc) -> this simplify the logic for detecting double RR (from script) and for adding RR param. Instead of buffering RR params (to wait for actual RR call) in a static buffer, add them directly as lumps in msg - lumps will be moved at RR time into the proper position. 2014-12-19 Bogdan-Andrei Iancu * [dd46ea0] : Converted dup shallow to ful dup (for lumps). Shallow duplicating for lump is not used any more, so the coresponding functions were either drop, either converting to full duplication (including the payload, for the ADD lumps). 2014-12-19 Razvan Crainea * [487e7b5] : add tcp_crlf_drop parameter Drops CRLF (\r\n) messages received over TCP. This prevents closing the TCP connection when an unhandled pining is sent. By default it is disabled. 2014-12-18 Eric Tamme * [0cf6662] : added missing force-relay flag option for ICE 2014-12-18 Bogdan-Andrei Iancu * [0bfff25] : More on migration (if RR was done is in ctx now) 2014-12-18 Bogdan-Andrei Iancu * [d15847d] : Migrate from static holders to processing context 2014-12-18 Bogdan-Andrei Iancu * [313a515] : Migrated from static holders to processing context 2014-12-18 Bogdan-Andrei Iancu * [b7b161e] : Migrate static holders to processing context 2014-12-18 Razvan Crainea * [c4f47a3] : mc_compact: Contact header is mandatory 2014-12-17 Bogdan-Andrei Iancu * [b6b71df] : Remove static holders. 2014-12-17 Bogdan-Andrei Iancu * [6351bef] : Use processing context instead of static variables. Current_dlg, last_dst_leg, timeout moved into processing context, so their value will survive a async jump. 2014-12-16 Razvan Crainea * [2799f28] : rtpproxy: properly handle ipv6 IPs Close #394 2014-12-16 Liviu Chircu * [c7870bd] : dispatcher: fix several issues with empty destination sets Upon (re)load, a dispatching set may be empty if none of its destinations can be resolved. This patch fixes a couple of crashes which are directly related to empty destination sets: * fix a bug in reindex_dests() where a single bogus destination would be allocated for each empty set * prevent ds_select_dst() from routing to empty sets 2014-12-15 Bogdan-Andrei Iancu * [aa48678] : Support for processing context for msgs and async 2014-12-15 Razvan Crainea * [eb8b8f1] : ds_is_in_list: properly pass -1 for all sets Related to #389 2014-12-15 Razvan Crainea * [6150e89] : tm: check if the reply transaction is defined closes #388 2014-12-12 Bogdan-Andrei Iancu * [ccada03] : Aligne to the latest changes in dialog module 2014-12-12 Bogdan-Andrei Iancu * [8aebd8b] : Migrate the dialog module to processing context. Instead of keeping data about the current processing into statis global variables, use the processing context. Warning: this is Alpha stage, maybe unstable at this moment 2014-12-12 Bogdan-Andrei Iancu * [73e0fed] : Rename the pointer to the current processing context. 2014-12-11 ionutrazvanionita * [f63dbbe] : mc_compact: Record-Route is now mandatory. Also Content-Type is mandatory only if Content-Length > 0 2014-12-10 Liviu Chircu * [afa8c78] : context operations: add extra safety checks 2014-12-10 Liviu Chircu * [78c8035] : core context code: add support for a global processing context The newly introduced CONTEXT_GLOBAL represents the current flow of script execution. It is a more uniform way of handling the majority of async script usage scenarios. The initial direction (by simply using CONTEXT_MSG) runs into too many problems: * portions of code where the "current sip_msg" is unavailable * concurrency issues (insufficient referencing) due to sip_msg cloning logic in tm, which also clones the context, but fails to properly count possible additional dialog references CONTEXT_MSG logic will be removed in a future commit. 2014-12-09 ionutrazvanionita * [b625c77] : no '\0' at the end of the message(-- instead of ++) 2014-12-09 ionutrazvanionita * [276b842] : no '\0' at the end of the message 2014-12-09 ionutrazvanionita * [70857e7] : compaction multiple \0 characters in the end fix 2014-12-05 ionutrazvanionita * [cf8253e] : fixed: mc_compress works with no argument 2014-12-05 Razvan Crainea * [99d7e7f] : Makefile: fix missing space in tls overwite test 2014-12-05 ionutrazvanionita * [8537890] : fixed compilation warning on convert_mime2string_CT 2014-11-28 Ovidiu Sas * [46fe012] : dispatcher: README - avoid line split-over 2014-11-28 Ovidiu Sas * [f15021d] : dispatcher: documentation clarifications 2014-11-28 Ovidiu Sas * [e93a98b] : mi_xmlrpc_ng: set default path to "RPC2" - closes #391 2014-11-28 Bogdan-Andrei Iancu * [7eaf122] : Added 2 stage update for UAS side of a transaction. The cloned UAS msg (from a transaction) can be now updated (new_uri, dst_uri, lumps, etc) after the orignal cloning. Also, a original cloning can be done without saving the updatable part of the UAS msg (like when you do t_newtran() in script, a partial UAS is cloned and full cloning (update) is done on t_relay() ) - this allows the transaction to remember all the changes you do between the creation of the transaction and the actual relay. 2014-11-28 Bogdan-Andrei Iancu * [27810d7] : Readme regenerated 2014-11-28 Bogdan-Andrei Iancu * [607f7a6] : Docs updated: added t_new request and t_add_hdrs (cherry picked from commit f4d8ded684a1f9050a000fa50d3b804deda2356a) 2014-11-28 ionutrazvanionita * [338b089] : removed unnecessary tm dependency 2014-11-28 ionutrazvanionita * [1986385] : Access multi-part body and Content-Type headers from script 2014-11-27 Sergey Khripchenko * [f457334] : changed lb_disable_dst() to rize event if we disable destination from script and do logging if 'prob_verbose' is set 2014-11-26 ionutrazvanionita * [8364998] : Compression: fixed bug for mc_compact when body might contain '\0'. Fixed sdp body a=rtpmap: codec removal logic. 2014-11-25 ionutrazvanionita * [6cf6312] : Introducing compression module 2014-11-25 ionutrazvanionita * [e1d47be] : removed unnecessary code from tm. Modified script_cb callbacks. Modified msg_send from void* to sip_msg* 2014-11-25 Bogdan-Andrei Iancu * [acd36a4] : Add support for updatable cloned msg, phase one. Changeable parts of the cloned SIP requests may be separately allocated in shm mem (outside the single msg chunk) - later, these fields maybe updated (during transaction lifetime). 2014-11-25 Bogdan-Andrei Iancu * [ac1dcb0] : Just some spaces cleanup. 2014-11-25 Sergey Khripchenko * [b7180d0] : correct logging levels from dev LM_ERR to production LM_DBG 2014-11-24 Sergey Khripchenko * [f43a405] : next round of changes. cumulative commit: 1. get rid of load_balance() in favor of lb_*() family of functions to make the workflow more clear and defined: lb_start() - strictly used to start LB session. if sessions already started, old session will be lost and re-started again. lb_next() - strictly used to to continue LB session previousely started by lb_start(). lb_is_started() - used to check whenever LB session is already started or not. lb_reset() - used to clean up LB session and everything LB internally does for this dialog. ln_disable_dst() - mark destination currently choosen by LB in current active LB session as disabled. lb_start_and_next() - is simply a shorthand for 'lb_is_started()?lb_next():lb_start()' to simplify scripting. this function logically almost the same as old load_balance() function, so we could leave old name for compatibility reasons. lb_count_call() - manually register call as a load for particular resource(es). 2. lb_start(..., alg) parameter changed to 'flags' parameter with possible values: 'r' - use relative versus absolute estimation 'n' - do not skip negative loads 3. new module parameter 'probing_verbose' to log INFO message whenever we enable/disable destinations by probing/MI. 2014-11-24 Bogdan-Andrei Iancu * [cb4f0d8] : Do not run post script CBs if ASYNC suspend happened 2014-11-24 Razvan Crainea * [eb20beb] : fixed tm module merging error 2014-11-24 Bogdan-Andrei Iancu * [4812fb7] : Fixes realated to previous commit (double siptrace) (cherry picked from commit d4e81886c41e17fe259ba2ee48d6b2ce3e7eb016) 2014-11-24 Bogdan-Andrei Iancu * [fdf9d56] : Fix double tracing in trace_dialog(). If user AVPs are set and the trace flas is not, the code was forcing the tracing flag which was producing a duplicate of the trace. Now, the flags status (on/off) is also stored in the dialog (as var) and restore later, for each sequential request. (cherry picked from commit 24ba3ed467bebc1f029e5c0627225f8d54163143) 2014-11-24 ionutrazvanionita * [000ff34] : fixed dispatcher error when not intro M delimiter 2014-11-24 ionutrazvanionita * [5d0d6e1] : ds_select_dst:null parameter fix 2014-11-24 ionutrazvanionita * [2d05bf8] : exec_sync: fork() error check 2014-11-24 ionutrazvanionita * [4e37881] : ds_select_dst flags specification modified 2014-11-24 Bogdan-Andrei Iancu * [58bf69b] : More fixing on mk_action usage (function name was added). 2014-11-24 ionutrazvanionita * [01a1bfe] : fix_nated_sdp: oldmediaip replaced with oldcip(c=) and oldoip(o=) 2014-11-24 Vlad Paiu * [f8e4417] : Since the dialog timeout is not done under dialog lock, we might have cases where the state is checked and is established, but until we get to update the timer, the dialog transitions to terminated & removes it from the timer. Use marker that's set under d_timer lock in order to avoid this 2014-11-24 Vlad Paiu * [1309063] : Only update the dialog timeout in case we are in established state - otherwise it might lead to multiple unrefs related to multiple removal from timer list (cherry picked from commit e515134cc1cd7fceafad60a620f5e77331de682e) 2014-11-24 Bogdan-Andrei Iancu * [5772e25] : Filename in script actions must be non-null. 2014-11-24 Bogdan-Andrei Iancu * [c222126] : Add end_sub_on_timeout module parameter. If a presence subscription should be automatically terminated (destroyed) when receiving a SIP timeout (408) for a sent NOTIFY requests. Closes feature request #380. 2014-11-24 Bogdan-Andrei Iancu * [f34d16c] : Disable MI commands when presence is in lib mode. Reported by Carlos Oliva @telematico, closing #382 (cherry picked from commit 7058396dfff62769a58103517ae42bf57078b8bd) 2014-11-24 Liviu Chircu * [9e68b2d] : tm: export transaction context operations All transactions may now hold additional context-specific data. Data can be stored/fetched using the newly added functions in tm_binds. 2014-11-24 Liviu Chircu * [4230d18] : core: export sip_msg context operations All sip_msg structures may now hold additional data within a context. 2014-11-24 Liviu Chircu * [37f1556] : core: introducing OpenSIPS contexts A context is simply a data buffer. It can also be seen as a key-value database, where different pieces of code register certain keys, in order to maintain their values within each newly created context. Contexts may be attached to any structure. The primitives defined in "context.h" represent a generic way of registering/storing/fetching data. 2014-11-24 David Sanders * [6d633c3] : Changes to stop keepalives on unregisters Observed cases where keepalives from `nat_traversal` continued after unregister were traced back to a few lines of code which prevented stopping keepalives on unregister events. 2014-11-24 ionutrazvanionita * [7bd7901] : fixed flags max_list bug for ds_select_* 2014-11-24 ionutrazvanionita * [768849a] : only generic function __popen3 left and put exec parameters in logical order:stdin, stdout, stderr 2014-11-24 ionutrazvanionita * [40ed05b] : modified documentation for exec function 2014-11-24 Ionut Ionita * [cc61084] : StartTLS Support For LDAP Module 2014-11-24 Saúl Ibarra Corretgé * [e555869] : tls: add TLSAny alias for SSLv23 method 2014-11-24 Saúl Ibarra Corretgé * [8862867] : tls: removed SSLv2 and SSLv3 support 2014-11-24 Bogdan-Andrei Iancu * [50623c1] : Run POST script CBs after all ASYNC resumes. 2014-11-24 Bogdan-Andrei Iancu * [4b9b183] : Improved loging when timer jobs overlap. 2014-11-21 ionutrazvanionita * [700d326] : Stateful and stateless callbacks just before sending the message. One more parameter to msg_send 2014-11-21 ionutrazvanionita * [b3beb20] : fixed dispatcher error when not intro M delimiter 2014-11-18 Bogdan-Andrei Iancu * [12ff6f3] : Final-1 step in adding script async support. Fix module interface for async resume function (msg is needed). Fix mod_fixup for async function. Add "resume" route triggering after a complete async handling Add multi-step async reading (multiple triggering in reactor before finishing the I/O) NOTE: this is a first working version of the async support (still some things needs to be addressed) 2014-11-17 ionutrazvanionita * [e6b20b1] : ds_select_dst:null parameter fix 2014-11-17 ionutrazvanionita * [eda84f7] : exec_sync: fork() error check 2014-11-17 ionutrazvanionita * [818cebc] : ds_select_dst flags specification modified 2014-11-05 Bogdan-Andrei Iancu * [06ade00] : More fixing on mk_action usage (function name was added). 2014-11-05 ionutrazvanionita * [11e3f7a] : Merge branch 'master' of https://github.com/OpenSIPS/opensips 2014-11-05 ionutrazvanionita * [a5900b5] : fix_nated_sdp: oldmediaip replaced with oldcip(c=) and oldoip(o=) 2014-11-05 Vlad Paiu * [721e4af] : Since the dialog timeout is not done under dialog lock, we might have cases where the state is checked and is established, but until we get to update the timer, the dialog transitions to terminated & removes it from the timer. Use marker that's set under d_timer lock in order to avoid this 2014-11-05 Vlad Paiu * [923f243] : Only update the dialog timeout in case we are in established state - otherwise it might lead to multiple unrefs related to multiple removal from timer list (cherry picked from commit e515134cc1cd7fceafad60a620f5e77331de682e) 2014-11-05 Bogdan-Andrei Iancu * [0607b90] : Filename in script actions must be non-null. 2014-11-05 Bogdan-Andrei Iancu * [7aa96b2] : Add end_sub_on_timeout module parameter. If a presence subscription should be automatically terminated (destroyed) when receiving a SIP timeout (408) for a sent NOTIFY requests. Closes feature request #380. 2014-11-05 Bogdan-Andrei Iancu * [1cf7484] : Disable MI commands when presence is in lib mode. Reported by Carlos Oliva @telematico, closing #382 (cherry picked from commit 7058396dfff62769a58103517ae42bf57078b8bd) 2014-11-05 Liviu Chircu * [eb5bb0f] : tm: export transaction context operations All transactions may now hold additional context-specific data. Data can be stored/fetched using the newly added functions in tm_binds. 2014-11-05 Liviu Chircu * [3a6f613] : core: export sip_msg context operations All sip_msg structures may now hold additional data within a context. 2014-11-05 Liviu Chircu * [b942bef] : core: introducing OpenSIPS contexts A context is simply a data buffer. It can also be seen as a key-value database, where different pieces of code register certain keys, in order to maintain their values within each newly created context. Contexts may be attached to any structure. The primitives defined in "context.h" represent a generic way of registering/storing/fetching data. 2014-11-05 David Sanders * [4c9a1fa] : Changes to stop keepalives on unregisters Observed cases where keepalives from `nat_traversal` continued after unregister were traced back to a few lines of code which prevented stopping keepalives on unregister events. 2014-11-04 ionutrazvanionita * [b994ddf] : fixed flags max_list bug for ds_select_* 2014-11-04 ionutrazvanionita * [5ade2ad] : fixed flags max_list bug for ds_select_* 2014-11-02 Bogdan-Andrei Iancu * [d411b46] : Add proper triggering of Async funcs from script. 2014-10-30 ionutrazvanionita * [bc9bef2] : only generic function __popen3 left and put exec parameters in logical order:stdin, stdout, stderr 2014-10-30 ionutrazvanionita * [9ef1be7] : Merge branch 'master' of https://github.com/OpenSIPS/opensips 2014-10-30 ionutrazvanionita * [4573f88] : modified documentation for exec function 2014-10-30 Ionut Ionita * [023eb45] : added exec(cmd,output,input,error,avpenv) function for exec 2014-10-30 Ezequiel Lovelle * [dd1ea2f] : fix load_balancer doc in lb_count_call() function 2014-10-30 Ezequiel Lovelle * [2d093ac] : add newline at the end of error messages 2014-10-30 Saúl Ibarra Corretgé * [134a34b] : tls: add TLSAny alias for SSLv23 method 2014-10-30 Razvan Crainea * [465acb6] : Makefile: do not overwrite TLS certificates Closes #368 2014-10-30 Razvan Crainea * [01bce3f] : opensipsctl: properly enclose strings when checking their values 2014-10-30 Razvan Crainea * [010f4f2] : lexer: allow multiple scriptvar parameters Fixes #361 2014-10-30 Bogdan-Andrei Iancu * [7047b95] : Fix silo table definition - body field can be null. 2014-10-30 Bogdan-Andrei Iancu * [e38a24c] : Fix restoring route type and AVP list when droping branch. Closes #365. (cherry picked from commit 9e033465cb2328dd10b6e0ac0d09bf92136dfd33) 2014-10-30 Bogdan-Andrei Iancu * [fd186a2] : Fix bogus unsigned to signed int conversion. This leads to failures of computing VIA branches when hash label is higer than 2^31 (cherry picked from commit 2759890fcf41c1af1237206a0f97957cca1f635c) 2014-10-30 Saúl Ibarra Corretgé * [c99a62b] : tls: removed SSLv2 and SSLv3 support 2014-10-30 Saúl Ibarra Corretgé * [0903bd6] : tls: removed code to support OpenSSL <= 0.9.7 2014-10-30 Liviu Chircu * [a2494eb] : opensipsctl: fix compatibility issues with FreeBSD * FreeBSD's mkfifo only accepts "-m", not "--mode" * Improve compatibility of stderr redirect (change "&>" to ">&") Reported by buchtajz. Closes #364 2014-10-28 Ionut Ionita * [0b61cba] : StartTLS Support For LDAP Module 2014-10-28 Ionut Ionita * [bebc548] : Merge pull request #375 from ionutrazvanionita/master added exec(cmd,output,input,error,avpenv) function for exec 2014-10-28 Ionut Ionita * [3c2947e] : added exec(cmd,output,input,error,avpenv) function for exec 2014-10-24 Răzvan Crainea * [80778fa] : Merge pull request #371 from lovelle/patch-2 fix load_balancer doc in lb_count_call() function 2014-10-24 Răzvan Crainea * [5f77710] : Merge pull request #370 from lovelle/patch-1 add newline at the end of error messages 2014-10-23 Ezequiel Lovelle * [383687a] : fix load_balancer doc in lb_count_call() function 2014-10-23 Ezequiel Lovelle * [4c20604] : add newline at the end of error messages 2014-10-23 Răzvan Crainea * [801b4a9] : Merge pull request #367 from saghul/crypto_fixes TLS: remove support for SSLv2 and SSLv3 2014-10-23 Saúl Ibarra Corretgé * [ea2a5c9] : tls: add TLSAny alias for SSLv23 method 2014-10-23 Razvan Crainea * [a9d7dd8] : Makefile: do not overwrite TLS certificates Closes #368 2014-10-23 Razvan Crainea * [711fa8c] : opensipsctl: properly enclose strings when checking their values 2014-10-22 Bogdan-Andrei Iancu * [64bc0c8] : Update module interface to add async cmds. 2014-10-22 Bogdan-Andrei Iancu * [9b9a047] : Add cfg support for async cmd triggering. 2014-10-22 Razvan Crainea * [589cdf6] : lexer: allow multiple scriptvar parameters Fixes #361 2014-10-22 Bogdan-Andrei Iancu * [e02a004] : Fix silo table definition - body field can be null. 2014-10-22 Bogdan-Andrei Iancu * [ec7926d] : Fix restoring route type and AVP list when droping branch. Closes #365. (cherry picked from commit 9e033465cb2328dd10b6e0ac0d09bf92136dfd33) 2014-10-21 Bogdan-Andrei Iancu * [0742c74] : Fix bogus unsigned to signed int conversion. This leads to failures of computing VIA branches when hash label is higer than 2^31 (cherry picked from commit 2759890fcf41c1af1237206a0f97957cca1f635c) 2014-10-21 Saúl Ibarra Corretgé * [4c56d98] : tls: removed SSLv2 and SSLv3 support 2014-10-21 Saúl Ibarra Corretgé * [06f9025] : tls: removed code to support OpenSSL <= 0.9.7 2014-10-17 Liviu Chircu * [a479b72] : opensipsctl: fix compatibility issues with FreeBSD * FreeBSD's mkfifo only accepts "-m", not "--mode" * Improve compatibility of stderr redirect (change "&>" to ">&") Reported by buchtajz. Closes #364 2014-10-17 Bogdan-Andrei Iancu * [55ecd24] : More async definition (module export related). 2014-10-17 Bogdan-Andrei Iancu * [0a9f00a] : Added async related definitions. - aysnc holder for resume action - async script function 2014-10-16 Bogdan-Andrei Iancu * [c0754e6] : TM exports async related handlers to core. 2014-10-16 Bogdan-Andrei Iancu * [bc94423] : Include script async events into reactor. 2014-10-15 Bogdan-Andrei Iancu * [8052c80] : Add definition of the async handler. 2014-10-15 Bogdan-Andrei Iancu * [9303744] : Update the timer handler registration (with flags) 2014-10-15 Bogdan-Andrei Iancu * [35a14b1] : Enhance timer behaviour on delay. Three modes are available if the timer triggering (for same handler) overlap: - force overlaping - delay until prev execution is done - skip current triggering Added flags when timer handlers are registered 2014-10-15 Liviu Chircu * [683dfaa] : db_unixodbc: fix query result handling and improve performance Until now, query rows were incrementally stored in a list with separately allocated length and string buffers, along with a great deal of useless pointer dereferencing, effectively wasting CPU cycles and pkg mem usage. This patch eliminates the linked list logic with a global buffer of pointers (doubling in size when required) meant to hold each result column. Each column is transparently freed by the DB backend. This completes commit d63ee19a8. 2014-10-15 Bogdan-Andrei Iancu * [8054dbf] : Compatibility fix for add_body() with new body. When computing the new content-len, accept the case when there is no pre-existing body and a newly added body. Reported by Antonis Psaras via LinkedIn 2014-10-14 Ovidiu Sas * [aee169e] : dispatcher: fix multilist selection when one set might be out of active destinations 2014-10-14 Ovidiu Sas * [2cffa32] : drouting: safe ptr -> string conversion 2014-10-14 Ovidiu Sas * [86132b6] : dispatcher: safe ptr -> string conversion 2014-10-14 Ovidiu Sas * [94c78d6] : ut.h: define constants for str/strings holding pointers 2014-10-14 Bogdan-Andrei Iancu * [5b95983] : Devel version increased from 2.1.0 to 2.1.1 2014-10-14 Razvan Crainea * [56ca96a] : fix rr force_send_socket when using mhomed 2014-10-10 Bogdan-Andrei Iancu * [266712b] : Create fraud_detection table as extra table. 2014-10-10 Bogdan-Andrei Iancu * [1360530] : Updating some DB related things 2014-10-10 Bogdan-Andrei Iancu * [13a4348] : Remove useless file 2014-10-10 Bogdan Andrei IANCU * [03effa2] : Merge pull request #350 from andrei-datcu/fraud_detection Importing the "Fraud detection" module 2014-10-09 Vlad Paiu * [b7928cf] : Do profile freeing under lock - avoid double free issues 2014-10-09 Bogdan Andrei IANCU * [5ef838d] : Merge pull request #357 from ionutrazvanionita/master fixed dispatcher failover when max results not specified 2014-10-09 Ionut Ionita * [1844539] : fixed dispatcher failover when max results not specified 2014-10-09 Razvan Crainea * [5ee8ec5] : fix redis FQDN URL when using a single node cluster 2014-10-08 Bogdan-Andrei Iancu * [1972d39] : Fix default timeout for CPL PROXY node. 2014-10-08 Bogdan-Andrei Iancu * [ae84ff0] : Fix escaping of XML chars in the MI output. Credits go to Razvan. 2014-10-08 Bogdan Andrei IANCU * [7717c86] : Merge pull request #351 from wdoekes/wjd-dialog-modparam-columns dialog: Fix dialog_admin documentation regarding column names. 2014-10-08 Bogdan-Andrei Iancu * [f647e34] : Fix setting proxy timeout from CPL script. Reported by sekil on IRC. 2014-10-08 Bogdan-Andrei Iancu * [8762c5e] : Remove useless ops with the AVP list. 2014-10-08 Walter Doekes * [b519d69] : dialog: Fix dialog_admin documentation regarding column names. 2014-10-08 Bogdan-Andrei Iancu * [c95ddd8] : Fix validation of the send_sock in t_uac(). If a send_sock is already provided, no need to do socket discovery again. We need just the protocol (from mk_proxy) in order to validate (or not) the already given send_sock. Do socket discovery only if there no send_sock given or the protocol does not match. 2014-10-06 Bogdan-Andrei Iancu * [61c64e7] : Fix queued inserts with new timer implementation 2014-10-06 Bogdan-Andrei Iancu * [6679918] : Fix how the contact URI is build. Do not add transport info to URI when storing it, but rather when using it - avoid double "transport" param. (cherry picked from commit bef1f938b8e6479b563c1164e0110c76753b7b02) 2014-10-06 Bogdan-Andrei Iancu * [a0328bc] : Update DB conn usage in TIMER process(es). As the timer handler are not run any more in the TIMER process (which does only triggering), but in the worker processes, we need to update the child_init() to open the DB conns required by timer handlers in the worker processes and not in the TIMER proc. 2014-10-06 Razvan Crainea * [1572ed0] : fix aliases db schema 2014-10-03 Bogdan-Andrei Iancu * [15c36b3] : Fix DB init in child procs (time change related) 2014-10-03 Bogdan-Andrei Iancu * [8dc65a7] : Missing init added. 2014-10-03 Bogdan-Andrei Iancu * [4e2bf86] : Fix bogus undefined external variable. 2014-10-03 Bogdan-Andrei Iancu * [69f5cd9] : Version increased from 1.12 to 2.1 for MASTER 2014-10-03 Bogdan-Andrei Iancu * [caabbe5] : Removed the concept of timer routine per process. This makes nosense now as the timer routines are dispatched across all the worker processes. 2014-10-03 Bogdan-Andrei Iancu * [cca99b6] : Reactors have names, easier for debugging purposes. 2014-10-03 Bogdan-Andrei Iancu * [6d7e826] : Timer system must be init after daemonize !! 2014-10-03 Bogdan-Andrei Iancu * [68a04d0] : Add generic reactor support for the TCP processes. "extra_loop" instruction can be forced in reactor to be executed in the loop; TCP procs code migrated to the generic reactor; FD del functions added to the reactor; Timer jobs now also handled by the TCP processes; 2014-10-03 Bogdan-Andrei Iancu * [4c5e6ea] : Timer jobs are dispached via reactor to all workers. Instead of running the timer jobs in dedicated timer processes, now we simply dispatche the jobs to all SIP workers processes. Still need some working on priorities. TCP workers still not running the "SIP worker" reactor, so no timer jobs in these processes for the moment. 2014-10-03 Bogdan-Andrei Iancu * [7edce06] : Introducing I/O reactor in UDP listeners 2014-10-03 Ovidiu Sas * [9e2a616] : core: fix forced sync event handling in event_route 2014-10-03 Bogdan-Andrei Iancu * [465a978] : Fix parsing of the SIP URI in db_get_auth_id() . Closes #340. 2014-10-03 Vlad Paiu * [aec1260] : Fixed arrays processing ( arrays can be part of arrays or object ) Fixed processing of sub-objects 2014-10-03 Răzvan Crainea * [00f720e] : Merge pull request #347 from ionutrazvanionita/master Event route handling way declaration without quotes 2014-10-03 Bogdan Andrei IANCU * [e13ab39] : Merge pull request #346 from dsanders11/patch-1 Always update the call ID when updating a contact in usrloc table 2014-10-02 Ionut Ionita * [e6af6f9] : event_route doc: declare event_route handling way without quotes 2014-10-02 David Sanders * [26a31e0] : usrloc: Always update the call ID when updating a contact 2014-10-01 Liviu Chircu * [bd46517] : exec: reduce impact of the Shellshock bash exploit * by default, do not set any environment vars for exec commands * improve documentation awareness for Shellshock 2014-10-01 Ionut Ionita * [30c92bd] : changed sync/async to sync/async in route_event config script declaration 2014-10-01 shripchenko * [5986074] : introduced two more algorithms for load_balance() that the same as existing, but do not ignore resources with negative availability, and thus able to select for load balancing destinations with exceeded capacity. this might be needed in scenarios where we want to limit generic calls volume and always pass important/high-priority calls. 2014-10-01 Răzvan Crainea * [0b0af49] : Merge pull request #344 from ionutrazvanionita/master Event route fixed '\0' bug and updated documentation 2014-10-01 shripchenko * [cd0ac14] : changed lb_count_call(ip,port,grp,resources[,mode]) function to allow one parameter that trigger whenever this function will actually 'count' call (add LB profiles) or 'un-count' call (clean up things after convential lb_count_call() call) this might be needed if we count call for particular resources and then need to un-count it. 2014-10-01 Ionut Ionita * [115522b] : fixed '\0' bug when getting event name from socket 2014-10-01 shripchenko * [301e6d3] : add lb_reset() function to reset LB state in case you want to stop load-ballancing call and proxy call somewere else and clean LB usage (dialog profiles) for this call. (or re-start LB process from the beginning) 2014-10-01 Liviu Chircu * [e5ccde1] : cachedb_sql: fix pkg memory leak When fetching a key, the db_res_t structure would not be properly freed. 2014-10-01 shripchenko * [a7549e0] : changed load_ballance() function to 1. save profiles applied in the current iteration 2. process previous iteration's profiles to clean them up 3. allow group and/or resources list changes in subsequent calls 4. sanity check if dst_bitmap size chaged 2014-10-01 Ionut Ionita * [d5b1a8c] : updated documentation for event_route event handling method 2014-10-01 Răzvan Crainea * [c4724b6] : Merge pull request #343 from ionutrazvanionita/master Dialog events and sync/async support in event_route 2014-10-01 Ionut Ionita * [e3d37f4] : added in script sync/async support for event_route 2014-10-01 Ionut Ionita * [10083ed] : added E_DLG_STATE_CHANGED event for dialog module 2014-09-30 Liviu Chircu * [caec1a5] : new string transformations: s.fill.left / s.fill.right Fills a string with a char/string until the given final length is reached. The initial string is returned if its length is greater or equal to the given final length. Examples: $var(in) = "485"; (also works for integer PVs) * $(var(in){s.fill.left, 0, 6}) => 000485 * $(var(in){s.fill.left, abc, 8}) => bcabc485 * $(var(in){s.fill.right, 0, 6}) => 485000 * $(var(in){s.fill.right, abc, 8}) => 485abcab 2014-09-29 Andrei Datcu * [f8a72e8] : [fraud_detection] Added doc and schema 2014-09-29 Liviu Chircu * [01c61de] : dispatcher: update doc 2014-09-29 Liviu Chircu * [e7bccda] : dispatcher: ds_is_in_list() - allow non-PV params 2014-09-25 Norm Brandinger * [b8d86c6] : Fix spelling 2014-09-24 Andrei Datcu * [57740d7] : [fraud_detection] Mi reload command fully working 2014-09-24 Andrei Datcu * [751aa72] : [fraud_detection] Added show stats mi command 2014-09-24 Liviu Chircu * [48cf32f] : opensipsctl: complete commit d205f017 - additional dir existence test 2014-09-24 Liviu Chircu * [d205f01] : opensipsctl: Improve error reporting - test READ permission for fifo dir - test existence of fifo - test WRITE permission for fifo 2014-09-23 Andrei Datcu * [24d2158] : [fraud_detection]Manually alloc event param list, to avoid automatic freeing and memory corruption 2014-09-23 Răzvan Crainea * [af23b15] : Merge pull request #338 from andrei-datcu/dr_api dynamic routing api 2014-09-23 Andrei Datcu * [3cd4c2c] : [fraud_detection] Added events for sync params 2014-09-17 Andrei Datcu * [1da3cb1] : [dr_api] dr_head freeing is now done without freeing the time_rec field of each rule 2014-09-17 Andrei Datcu * [a7471f4] : Fixed user hashmap struct 2014-09-17 Liviu Chircu * [32f2c24] : cachedb_memcached: extend the host+port printing buffer 2014-09-16 Ovidiu Sas * [2b1ccf3] : usrloc: E_UL_CONTACT_* events documentation updates 2014-09-16 Vlad Paiu * [02453de] : Added th_passed_contact_uri_params along with th_passed_contact_params - to be used when needing to pass Contact URI params or Contact header params from one side to the other when doing topology hiding 2014-09-16 Bogdan Andrei IANCU * [1043900] : Merge pull request #336 from andrei-datcu/usrloc_events [usrloc] Added AOR parameter for E_UL_CONTACT_* events 2014-09-16 Andrei Datcu * [e4a10ed] : [usrloc] Added AOR parameter for E_UL_CONTACT_* events 2014-09-16 Andrei Datcu * [e49090f] : Fraud detection - first version - untested yet 2014-09-11 Liviu Chircu * [2ff79d9] : dialplan DB schema: complete commit e7502169 2014-09-11 Bogdan-Andrei Iancu * [6a9cb00] : Removed useless "ping_interval" parameter. Closes #320, reported by @hydrosine . (cherry picked from commit c529bb142b455a0db87c9661208e9271f912a4ec) 2014-09-11 Bogdan-Andrei Iancu * [307c173] : Fix setting transaction timeout from CPL script. Using AVPs in obsolete; we need to do it now via the TM API. 2014-09-11 Razvan Crainea * [4cf5a16] : redis: fix crash when using FQDN in URL 2014-09-09 Andrei Datcu * [5e87d43] : Matched prefix's length available through match_number function 2014-09-07 Vlad Paiu * [a166313] : Fixed the dialog timeout that gets replicated via BIN for updates (cherry picked from commit 4c08b62cdabb3549ac99c4dc9cae8485d1f40e68) 2014-09-05 Andrei Datcu * [8d497dc] : [fraud_detection] Backend is now functional 2014-09-04 Andrei Datcu * [aa1fdf1] : [drouting] dr_api: match_number returns rt_info_t 2014-09-04 Andrei Datcu * [4ddf3a1] : [fraud_detection] DB loading working ok 2014-09-04 Andrei Datcu * [e76c25d] : Added modparams 2014-09-04 Andrei Datcu * [e86815a] : [fraud_detection] HashMap created 2014-09-04 Andrei Datcu * [82e6e1c] : [drouting] dr_api removed unnecessary label 2014-09-04 Liviu Chircu * [f6685a5] : dialplan: do not start if a partition fails to initialize 2014-09-04 Andrei Datcu * [f0c2bf7] : [drouting] Fixed api leak and added rule_id as parameter when adding rule. No more internal lock per partition 2014-09-04 Andrei Datcu * [3aadea7] : dr-api removed unnecessary lock when deleting partition 2014-09-04 Andrei Datcu * [7cb83e8] : Exported load_dr function for loading dr_api 2014-09-04 Andrei Datcu * [a400113] : drouting api implementation done 2014-09-04 Andrei Datcu * [8fb0996] : First dr_api draft 2014-09-04 Liviu Chircu * [24724fd] : regenerate SQL scripts 2014-09-04 Liviu Chircu * [e750216] : dialplan: db schema update * new dialplan table version : 5 * new dialplan column : timerec 2014-09-04 Liviu Chircu * [6f8e32d] : Merge pull request #319 from Parantido/master dialplan: add possibility of time recurrence based rule enabling (RFC 2445 compatible strings) 2014-09-03 Parantido Julius De Rica * [263151c] : Fixed rule->parsed_timerec memory allocation leak 2014-09-02 Parantido Julius De Rica * [3079aa1] : Fixed shared memory issue due to parsed_timerec data structure. 2014-09-01 Parantido Julius De Rica * [bb9a057] : Fixed timerec_parsed memory leak problem on new clean pull request. 2014-09-01 Parantido Julius De Rica * [92647be] : Fixed timerec_parsed memory leak problem. 2014-09-01 Parantido Julius De Rica * [e71485f] : - A new column (named timerec varchar 255 not nullable) in dialplan database schema is needed. - TimeRec value should be compliant to RFC2445 (Internet Calendaring and Scheduling - Core Object Specification) standards in order to match. - A timerec failed match doesn't stops dialplan rule searching. - An empty timerec value is not evaluated in rule matching algorithm. - Attached patch should to be applied to Dialplan Module rev.5895 (actual master). 2014-09-01 Parantido De Rica * [5e59cb5] : Merge pull request #1 from OpenSIPS/master Dialplan Features/Patch Backport 2014-09-01 Vlad Paiu * [07f9a58] : Added EVENT_ROUTE in $rT output 2014-09-01 vladpaiu * [ff17849] : Merge pull request #316 from dsanders11/master New PV which holds the current route type 2014-08-30 Liviu Chircu * [1334ca3] : lua, perl: fix compilation issues (from commit dcc07b4c) 2014-08-29 Vlad Paiu * [9f3b148] : Fixed CDR writing for replicated dialogs (cherry picked from commit 128d3777f4a11a21eabb3e94a720c223bf0cf654) 2014-08-29 Vlad Paiu * [b0cd70a] : Fixed deadlock when calling dr_number_routing Added the matched prefix to the output of the dr_number_routing MI func 2014-08-28 David Sanders * [7a520c6] : New PV which holds the current route type 2014-08-28 Vlad Paiu * [ec018a2] : Avoid useless from header parsing in case the dr group was passed from script 2014-08-26 Bogdan-Andrei Iancu * [3cd6db2] : Fix sending PRACK for multiple provisional replies. Reported by Giuseppe Cardone. 2014-08-26 Liviu Chircu * [603f4dc] : dialplan: fix incorrect ERROR on shutdown 2014-08-26 Liviu Chircu * [a2172b2] : db_text: fix issues when database file is missing an ending newline * do not crash if file contains columns only and is missing the ending newline * do not skip the last row of a database file if it lacks an ending newline Reported by gergelypeli on GitHub Closes issue #308 2014-08-26 Liviu Chircu * [23bb7c6] : Merge pull request #313 from dsanders11/master New assert script keyword for script debugging 2014-08-26 David Sanders * [877d6b9] : New assert script keyword for script debugging 2014-08-25 Vlad Paiu * [6dea2eb] : Updated License 2014-08-25 Vlad Paiu * [fc2ed8a] : Added missing auth.h file 2014-08-25 Vlad Paiu * [7989c4f] : Added support for increasing CSEQ number when doing remote SIP auth via uac_auth() 2014-08-25 Vlad Paiu * [3316a2a] : Fixed simplified callid parser 2014-08-25 Liviu Chircu * [fc944ea] : dialplan: prevent memory corruption when parsing db_url Properly allocate and use the required memory to hold the string 2014-08-25 Liviu Chircu * [b5ad64d] : dialplan: prevent memory corruption when DB backend fails to start Fix a couple of incorrect free operations 2014-08-24 Bogdan-Andrei Iancu * [e0dcd97] : Fix missing "p" state to MI ds_set_state command. Closes #312 Reported by @gergelypeli 2014-08-24 Bogdan-Andrei Iancu * [dcc07b4] : Report the cfg filename in all cfg related errors. Fixes #299. 2014-08-24 Bogdan Andrei IANCU * [83626bc] : Merge pull request #305 from wdoekes/wjd-msg_trans_no_via-no_crash msg_translator: Passing MSG_TRANS_NOVIA_FLAG means don't touch Via. 2014-08-22 Liviu Chircu * [ab7f422] : Merge pull request #294 from tallicamike/feature-sipmsgvalidate-for-tofrom sipmsgops: Additional "f", "t" and "c" flags for sipmsg_validate() which check To, From and Contact header integrity 2014-08-21 Ovidiu Sas * [e2f1969] : drouting: fix warning: "current_partition" may be used uninitialized in this function 2014-08-21 Liviu Chircu * [0ad3e4f] : dialog: fix primary key when updating dialogs in REALTIME db mode When updating rows in the dialog table in REALTIME db mode, the dlg_id update key is not properly initialized (actually contains random data). Reported by miko95 on GitHub Closes issue #306 2014-08-19 Vlad Paiu * [5266427] : Removed INFO debug 2014-08-19 Vlad Paiu * [a162072] : Properly propagate parameters with no value 2014-08-19 Liviu Chircu * [72028d2] : dialplan: fix shm leak when parsing invalid regex Upon (re)load, if the subst or repl columns contain expressions which fail to compile, OpenSIPS will leak shared memory. Reported by miko95 on GitHub Closes issue #307 2014-08-19 Walter Doekes * [d8abf71] : msg_translator: Passing MSG_TRANS_NOVIA_FLAG means don't touch Via. Before this, if you passed the MSG_TRANS_NOVIA_FLAG flag to build_res_buf_from_sip_res, the msg->via1->next would get checked but not used. Now it's not touched at all. 2014-08-19 Liviu Chircu * [b7c3686] : dialog: fix possible hash id conflict on restart When restarting the proxy, the auto-generated next_id of each hash entry is not properly incremented if a loaded dialog happens to have this same next_id as hash id. This will soon lead to duplicate hash ids. Reported by miko95 on GitHub. 2014-08-18 Răzvan Crainea * [adddc5f] : Merge pull request #302 from tallicamike/fix-whitelists whitelist fix 2014-08-18 tallicamike * [7455d69] : whitelist fix 2014-08-18 Vlad Paiu * [1c4bd9d] : Do not crash on replicated update if replicated create has failed Free dlg memory in case replicated create fails (cherry picked from commit c9b39731c4669bc2d91182bb6130cc1e88286b8a) 2014-08-18 Vlad Paiu * [59a0360] : Do not replicate dialog termination if dialog creation was not done ( failed calls ) (cherry picked from commit 0705a29de1fdf865f7fa11cd3b68c43ccb9e9671) 2014-08-18 Vlad Paiu * [d171022] : Fixed deadlock when replicating dialog which has pinging enabled. Remove pinging entirely for replicated dialogs, since it might cause issues when running in active-backup mode Properly set the dialog timeout for update bin requests (cherry picked from commit 837032b63b092b45cae64668fd56e6e7cb3d7184) 2014-08-15 Ovidiu Sas * [c3a5a75] : core: fix error: redefinition of typedef param_export_t 2014-08-15 Ovidiu Sas * [ae3b8e3] : Merge branch 'master' of github.com:OpenSIPS/opensips 2014-08-14 Vlad Paiu * [1dd4ea2] : Fix iteration of to be sent MSILO messages Fixes issue #291 Thanks to Nick Altmann for reporting & testing 2014-08-13 Vlad Paiu * [795d5cb] : Added param with list of Contact URI parameters to be passed from one side to the other when doing topology hiding Closes feature request #301 2014-08-13 Liviu Chircu * [104d533] : sst: add a silent module dependency with pua_dialoginfo Since "sst" performs a callback-based update on the "Session-Expires" header, pua_dialoginfo must be loaded before sst. 2014-08-13 Liviu Chircu * [57a042b] : module dependencies core: reclaim all used pkg memory After startup, all module dependency structs will be freed. 2014-08-13 Liviu Chircu * [61a973d] : module dependencies: Add configurable behaviour on dependency failures When exporting a dependency, a module must also specify the action taken if this dependency is not met during startup. Current possible behaviours: SILENT, WARN and ABORT. 2014-08-13 Liviu Chircu * [8d4b329] : module dependencies core: properly handle the USE_FUNC_PARAM 2014-08-13 Liviu Chircu * [5b470b8] : module dependencies: declare the dependencies of each OpenSIPS module 2014-08-13 Liviu Chircu * [7e40919] : module dependencies core: fix a string comparison bug when looking up modules, strcmp is more appropriate then memcmp, since otherwise, "presence_xml" would match a search for "presence", thus leading to "presence_xml" depending on itself 2014-08-13 Liviu Chircu * [c6afc24] : module dependencies: allow generic dependencies of own type In other words, the modules which make use of this will be the last ones of their type category to be loaded e.g. db_virtual is of type MOD_TYPE_SQLDB, and requires all MOD_TYPE_SQLDBs to be loaded before itself Note: abuse of this functionality may lead to dependency loops db_virtual is the only module to make use of it, currently 2014-08-13 Liviu Chircu * [0462ff0] : module dependencies core: add a commonly used function Any module which depends on all SQL DB modules once its db_url is set may use "get_deps_sqldb_url". Declared in sr_module_deps.h Usage example: acc module 2014-08-13 Liviu Chircu * [4b62c0a] : core: new module dependency specification interface introduced Allows OpenSIPS modules to specify dependency relations with others. This eliminates the need for explicit ordering of "loadmodule" script statements. More details in "sr_module_deps.h" All this logic is transparent at script level. 2014-08-13 Vlad Paiu * [5b55845] : Added generic fixup functions that accept either static regexps or regexps containing pvars All the sipmsgops functions accepting regexps as input can now have pvars as input 2014-08-13 Razvan Crainea * [dd03176] : add new MI command named list_statistics The new command lists all registered statistics and displays their types 2014-08-12 Răzvan Crainea * [57043d1] : Merge pull request #298 from andrei-datcu/master [drouting] dr_number_routing fixed lock and documentation 2014-08-12 Andrei Datcu * [88215db] : [drouting] dr_number_routing fixed lock and documentation 2014-08-12 Liviu Chircu * [b50e42b] : logging levels: switch to a per-process model * the MI "debug" command may change the logging level for one or all processes * global/specific log controlling functions available for core and modules 2014-08-12 Vlad Paiu * [246d3d8] : Fixed error reporting for dialog DID matching when dealing with BIN interface replication 2014-08-12 Răzvan Crainea * [8fc2769] : Merge pull request #295 from tallicamike/dr-time-of-last-update Dr time of last update 2014-08-12 tallicamike * [52734f6] : date of dr_reload as mi_attr, default partition name not displayed, change use_db_config to use_partitions 2014-08-12 Razvan Crainea * [9b79b1b] : consider string size in hex2dec transformation Reported by gergelypeli on GitHub Closes #296 2014-08-11 Razvan Crainea * [92744fa] : event_route: check how many octets were sent over pipe 2014-08-11 Razvan Crainea * [9f36016] : event_route: do not start external process in synch mode 2014-08-11 tallicamike * [2d34a23] : [drouting] time of last update(dr_reload) for partition 2014-08-11 tallicamike * [a7fed47] : update dbg message 2014-08-11 tallicamike * [deea984] : resolve conflicts for merge 2014-08-11 tallicamike * [028f8fc] : [drouting] indentation with tabs 2014-08-11 Liviu Chircu * [b85d1f4] : dialog: suppress parsing errors when hiding topology Ultimately a revert of commit 7f562f91c99 2014-08-11 tallicamike * [e4b080f] : indentation with tabs, correct typos, remove escaped quotes. thank you Walter Doekes for the code review. 2014-08-11 Răzvan Crainea * [c05142b] : Merge pull request #293 from andrei-datcu/dr_api [drouting] Testing roules through MI now posssible 2014-08-11 Andrei Datcu * [f5a20b6] : [drouting] Changed name to dr_number_routing. Corect flags for nodes 2014-08-11 tallicamike * [b2c39b4] : save time to partition 2014-08-08 Andrei Datcu * [522b405] : [drouting] Testing roules through MI now posssible 2014-08-08 tallicamike * [f8e210e] : sanity check for contact header(s) 2014-08-08 Razvan Crainea * [f4fb9fb] : mi_fifo: add mechanism to recreate FIFO file The module checks every 30 seconds if the FIFO file was deleted. If it was, it recreates it. One can force file recreation by sending a SIGHUP signal to the MI FIFO process. 2014-08-08 Razvan Crainea * [06a6ea6] : domain: update column length when using custom attributes 2014-08-07 Răzvan Crainea * [4dc8d62] : Update domain documentation 2014-08-07 tallicamike * [d2ad483] : check validity for to/from in sipmsg_validate 2014-08-06 Răzvan Crainea * [43dc0c1] : Merge pull request #289 from tallicamike/master Partitions support for drouting 2014-08-06 tallicamike * [f5d422b] : remove debug related printing 2014-08-06 Razvan Crainea * [6ecfda8] : domain: fix is_domain_local when used from internal 2014-08-06 tallicamike * [d1fe7ed] : merge with ev 2014-08-05 tallicamike * [58112e9] : Merge commit 'c664d40' Conflicts: modules/drouting/README modules/drouting/drouting.c scripts/opensipsctlrc 2014-08-05 tallicamike * [c664d40] : add table version check 2014-08-05 Răzvan Crainea * [1887794] : Merge pull request #287 from andrei-datcu/master [dispatcher]Fixed README 2014-08-05 Andrei Datcu * [122df6f] : [dispatcher]Fixed README 2014-08-04 Vlad Paiu * [5010d3a] : Don't report an error if no event registered (cherry picked from commit 4669637db8956b72f6078eb0b9858cf76d1ca222) 2014-08-04 Razvan Crainea * [57ec0f3] : domain: add attributes support Provide a method to pass certain attributes to a domain. 2014-08-04 Răzvan Crainea * [5bc30f4] : Merge pull request #286 from andrei-datcu/master [usrloc]New contact-aware events 2014-08-04 Andrei Datcu * [16038cd] : [usrloc]New contact-aware events 2014-08-04 Ionut Ionita * [cea5518] : Clarified necessity to add table name to version table 2014-08-04 Ionut Ionita * [1b561c7] : Moved force_dst and use_default parameters to ds_select_dst 2014-08-04 Ionut Ionita * [d1bf366] : Moved flags parameter inside max_results parameter 2014-08-04 Ionut Ionita * [1e6f33a] : Fixed: Error at fixup when flags are given as PVs 2014-08-04 Ionut Ionita * [14bd307] : Moved flags definition from startup(modparam) to ds_select and can now be different per transaction 2014-08-01 Liviu Chircu * [8e4d62d] : opensipsctlrc: Add a new DBPORT parameter This parameter will also work with osipsconsole Credits to Norman Brandinger for the initial version of the patch 2014-08-01 Răzvan Crainea * [0a119ed] : Merge pull request #285 from andrei-datcu/master [dispatcher] ds_select_dst domain working corectly now 2014-08-01 Andrei Datcu * [80ef8f4] : [dispatcher] ds_select_dst domain working corectly now 2014-08-01 Răzvan Crainea * [6f4ed2f] : Merge pull request #284 from andrei-datcu/master [Dispatcher] info about version table into documentation 2014-08-01 Andrei Datcu * [b8fa1df] : [dispatcher] Fixed README 2014-08-01 Andrei Datcu * [6ce118e] : [Dispatcher] info about version table into documentation 2014-07-31 Razvan Crainea * [aaaf85c] : mi_json: send 'Command not found' if mi cmd does not exist Closes issue #282 2014-07-30 Liviu Chircu * [7396231] : tm: fix script-level read operations on the timeout variables Read operations before setting them or calling t_relay() would return 0. Reported by Jamuel Starkey 2014-07-30 Răzvan Crainea * [147f57a] : Add events readme for drouting and load_balancer modules Closes issue #280 2014-07-30 Razvan Crainea * [a0c1873] : load_balancer: add events for status changes Related to issue #280 2014-07-30 Razvan Crainea * [e499666] : drouting: add events for status changes Related to issue #280 2014-07-29 Razvan Crainea * [475b7c5] : drouting: add events for status changes Related to issue #280 2014-07-29 Vlad Paiu * [b7bd5b5] : Do not crash if script locks were not initialized ( eg - OpenSIPS failed to start ) 2014-07-28 Ovidiu Sas * [9c63d02] : event_route: make sure that that all info is sent over the socket 2014-07-28 Liviu Chircu * [fcabc93] : Merge pull request #279 from andrei-datcu/master [dispatcher] Fixed two allocs for uri str. No more shm leak. 2014-07-28 Andrei Datcu * [6f40e56] : [dispatcher] Fixed two allocs for uri str. No more shm leak. 2014-07-28 Răzvan Crainea * [092dddc] : Merge pull request #277 from andrei-datcu/master [Dialogs] Module flags 2014-07-28 Andrei Datcu * [db1c78e] : [Dialog] Added internal flags to use from other modules - i.e set of boolean vars 2014-07-28 Andrei Datcu * [925d9e5] : [sst]Return when there's no sst_info when loading dialog 2014-07-28 Andrei Datcu * [9558972] : [Dispatcher] Smart uri replacement when using ds_select_domain 2014-07-28 Andrei Datcu * [c2492e6] : [Dialog] Added internal flags to use from other modules - i.e set of boolean vars 2014-07-28 Andrei Datcu * [9973256] : [sst]Return when there's no sst_info when loading dialog 2014-07-28 Andrei Datcu * [2ea1061] : [sst]No error when loading from db non-sst dialogs 2014-07-28 Andrei Datcu * [5036b1d] : SST module now also works with dialogs loaded from db 2014-07-25 Andrei Datcu * [7d81d13] : [Dispatcher] Smart uri replacement when using ds_select_domain 2014-07-25 Bogdan-Andrei Iancu * [7078c0f] : Better generation of random names for reply FIFO. Related to issue #257 2014-07-25 Razvan Crainea * [33c9d48] : acc: parse db_extra before initializing db Fixes commit aa6f64 2014-07-24 Andrei Datcu * [d5c0e17] : [Siptrace] Added table version check 2014-07-24 Andrei Datcu * [abe3389] : [Siptrace] Added table version check 2014-07-24 Andrei Datcu * [5ce2836] : [Dialog] Added internal flags to use from other modules - i.e set of boolean vars 2014-07-23 Ovidiu Sas * [744a5c2] : event_route: support for handling EVI events in asynch mode - "event-route handler": new dedicated process for handling EVI events - "synch_mode": new module param to set the default EVI event handling 2014-07-23 tallicamike * [3c3a7e9] : Partitions support added (provisioned by database). dr_init using continue to skip broken configurations 2014-07-23 Vlad Paiu * [4313f93] : Revert "allow opensipsdbctl to run from a different folder" This reverts commit 684a3e0ba17dc4f8dcd771a8f0ab648e0cc8121e. 2014-07-23 Andrei Datcu * [4bf46f4] : Merge remote-tracking branch 'upstream/master' 2014-07-23 Andrei Datcu * [d54dd21] : [sst]Return when there's no sst_info when loading dialog 2014-07-22 Andrei Datcu * [93528d4] : [sst]No error when loading from db non-sst dialogs 2014-07-22 Vlad Paiu * [17bc5d9] : Check for all negative values when fetching cachedb counter 2014-07-21 Andrei Datcu * [e1b5994] : SST module now also works with dialogs loaded from db 2014-07-21 Razvan Crainea * [7f562f9] : dialog: do not change debugging level when parsing TH messages Although this might print error messages multiple times, we should not change the level because it also affects other processes. 2014-07-21 Răzvan Crainea * [49371c3] : Merge pull request #273 from zhangst/master Fix bogus README 2014-07-21 zhangst * [bacaaca] : Fix bogus README 2014-07-18 Răzvan Crainea * [ecf11ef] : Merge pull request #272 from ionutrazvanionita/master Partitions for dialplan 2014-07-18 Razvan Crainea * [ea5e7f1] : dialog: run loaded callbacks after dialog mod_init() 2014-07-18 Razvan Crainea * [3d16b30] : sst: fix UAC enum 2014-07-16 Ionut Ionita * [e43f56d] : Merge remote-tracking branch 'upstream/master' 2014-07-16 Răzvan Crainea * [07373cc] : Merge pull request #269 from andrei-datcu/master Partitions for dispatcher module 2014-07-16 Razvan Crainea * [61d8b2c] : acc: trigger the proper event when doing old-style accounting 2014-07-15 Bogdan-Andrei Iancu * [1a8bfb4] : Fix bogus README example. Reprted by Alexander (@sashker on HitHub) Closes #268 . 2014-07-15 Ionut Ionita * [4d3cfe2] : Documentation grammar fix 2014-07-15 Andrei Datcu * [04762c7] : [Dispatcher]Fixed typos into documentation 2014-07-14 Liviu Chircu * [b1158ab] : correct several typos 2014-07-14 Andrei Datcu * [0f2c7bc] : Fixed linkning new set in list and deleting set on error 2014-07-14 Ionut Ionita * [39407ad] : Lock before destroy hash 2014-07-13 Liviu Chircu * [965baa2] : pi_http: fix compiler warning 2014-07-12 Liviu Chircu * [aa6f647] : acc: fix startup crash with empty db_url 2014-07-11 Liviu Chircu * [7a47e0c] : perl: ignore auto-generated C file 2014-07-11 Liviu Chircu * [b048a17] : sipcapture: fix startup crash with undefined db_url 2014-07-11 Ionut Ionita * [9893c33] : init_db_url bug fix 2014-07-11 Ionut Ionita * [952e905] : Db_url null check bug fix 2014-07-10 Bogdan-Andrei Iancu * [2c7e33e] : Fix broken dlg_val assignment when value is NULL. 2014-07-09 Andrei Datcu * [7a58426] : No more empty sets in the cached data. mi_reload per partition now possible 2014-07-09 Ionut Ionita * [ad90f6f] : mi_cmds definition dp_reload parameter NO_PARAMETER flag fix 2014-07-08 Andrei Datcu * [114d570] : Improved fixups. Tokenizing partition_name:set_id is now faster 2014-07-08 Ionut Ionita * [64526db] : Readme 2014-07-08 Ionut Ionita * [15cc4e4] : PV Support for partition name in translate exported function 2014-07-08 Ionut Ionita * [d7e8c1f] : PV Support for partition name in translate exported function 2014-07-08 Ionut Ionita * [24436d3] : PV Support for partition name in translate exported function 2014-07-07 Bogdan Andrei IANCU * [b573ae6] : Merge pull request #265 from jalung/patch-2 Update osipsconsole 2014-07-07 jalung * [024a106] : Update osipsconsole missing semi-colon; 2014-07-04 Liviu Chircu * [2a547f6] : flags.c: drop empty-string flags Also issue a scripting error warning 2014-07-04 Razvan Crainea * [1ad3fcb] : Makefile: add extra_objs while opensips linking 2014-07-04 Liviu Chircu * [9b372b4] : config files and templates: fix deprecation warnings 2014-07-04 Ionut Ionita * [6b7c154] : Child Init modification and code design 2014-07-03 Andrei Datcu * [45353a5] : [Dispatcher] Fixed three memory leaks 2014-07-03 Ionut Ionita * [7f89e8c] : Merge remote-tracking branch 'upstream/master' 2014-07-03 Razvan Crainea * [9f012e8] : rw_locking local label for each macro 2014-07-03 Razvan Crainea * [9245316] : event_route: properly backup the event's name Reported and fixed by Ovidiu Sas 2014-07-03 Andrei Datcu * [c5c97af] : [Dispatcher] tm's request within callback correctly free param 2014-07-03 Ionut Ionita * [8d73e01] : Bug fixing 2014-07-02 Eric Tamme * [d930f92] : fix for RFC5245 15.1 and MUST be present for server reflexive, peer, and relay candidates 2014-07-02 Ionut Ionita * [0640954] : Documentation support 2014-07-02 Razvan Crainea * [9620397] : add LM_BUG alias to report_programming_bug 2014-07-02 Razvan Crainea * [bfa6ab0] : add module variable to simplify single module compile 2014-07-02 Andrei Datcu * [579e53a] : Fixed blacklists and updated documentation 2014-07-02 Bogdan Andrei IANCU * [bf93a37] : Merge pull request #263 from wdoekes/wjd-unbreak_modules_readme make: Let `make modules-readme modules=aaa_radius` work again. 2014-07-02 Walter Doekes * [3dd0529] : make: Let `make modules-readme modules=aaa_radius` work again. 2014-07-01 Razvan Crainea * [798798b] : replace deprecated json_object_object_get() function 2014-07-01 Bogdan Andrei IANCU * [2e025df] : Merge pull request #262 from zytron/ratelimit_failure_route ratelimit: Allow FAILURE_ROUTE instead of duplicate LOCAL_ROUTE 2014-07-01 Vlad Paiu * [6f9c8c3] : Added detection for the version of libjson used in the system Also, fixed printing of entire json objects 2014-07-01 Bill Hau * [633b1b8] : ratelimit: Allow FAILURE_ROUTE instead of duplicate LOCAL_ROUTE 2014-07-01 Liviu Chircu * [a1b0495] : script_helper: minor logging improvements Do not report errors when ACKs to 487 responses fail to match any on-going dialogues Reported by Gary Nyquist 2014-07-01 vladpaiu * [da159ad] : Merge pull request #260 from jalung/patch-1 Update cachedb_redis_utils.c to properly support latest redis clusters running with three masters 2014-07-01 Razvan Crainea * [684a3e0] : allow opensipsdbctl to run from a different folder 2014-07-01 Bogdan-Andrei Iancu * [59061f1] : Add index on the pua table for peformance reasons. Credits go to "lirakin" on IRC 2014-07-01 Bogdan-Andrei Iancu * [f80f9fc] : Update dbschema for siptrace table version. 2014-07-01 Vlad Paiu * [843fdde] : Fixed JSON fetching of array string fields 2014-07-01 Bogdan-Andrei Iancu * [28a974b] : Add "set ID" param to "rtpproxy_enable" MI. A second optional param added to specify the set ID too. 2014-07-01 Bogdan-Andrei Iancu * [acb1b37] : Fix fetching cseq number for replies. Closes #165. 2014-07-01 Vlad Paiu * [5ebc1ef] : Allow variables to be assigned variables containing NULL values 2014-07-01 Ionut Ionita * [baef64d] : Added partition support for dialplan module 2014-07-01 Andrei Datcu * [cf0e9ab] : [Dispatcher] fixed db_url checking 2014-07-01 Razvan Crainea * [84cfab2] : change default prefix to /usr/local 2014-07-01 jalung * [cba8570] : Update cachedb_redis_utils.c Opensips 1.11 fails to connect to Redis Cluster (beta6) running three masters. This change should be backwards compatible. 2014-06-30 Razvan Crainea * [6782497] : event_rabbitmq: destroy socket for older AMQP versions 2014-06-30 Razvan Crainea * [522bd27] : event_rabbitmq: properly reconnect after closing a connection 2014-06-30 Razvan Crainea * [c8f26cb] : event_rabbitmq: allow cross-compile 2014-06-30 Andrei Datcu * [66c98e5] : Partitions for dispatcher module 2014-06-30 Bogdan-Andrei Iancu * [81e76cd] : Merge branch 'wdoekes-wjd-misc_typos' 2014-06-30 Walter Doekes * [72d3381] : doc/dialog: Remove double quotes from $dlg_val examples. 2014-06-30 Walter Doekes * [bcdbf27] : doc: Fix typo's. Always regenerate all docs. 2014-06-30 Bogdan-Andrei Iancu * [b611ee6] : Fix bogus trailing dot char in SQL syntax. 2014-06-25 Bogdan-Andrei Iancu * [35f9d98] : Add missing UPDATE method in rules. 2014-06-23 Bogdan-Andrei Iancu * [c760b69] : Fix moving the AVP list from UAS to UAC in B2B. Closes issue #230 Many thanks to Ovidiu Sas for report and debugging. 2014-06-23 Vlad Paiu * [b36da5e] : Fixed empty tree bug 2014-06-20 Răzvan Crainea * [7cbe8a7] : fixed auth README typo 2014-06-20 Bogdan Andrei IANCU * [32c6c0d] : Merge pull request #254 from andrei-datcu/master Yet another typo in siptrace's readme 2014-06-19 Andrei Datcu * [dffb3c5] : Yet another typo in siptrace's readme 2014-06-19 Răzvan Crainea * [01bd4aa] : Merge pull request #253 from andrei-datcu/master Split fromip and toip columns 2014-06-19 Andrei Datcu * [58e6b4c] : Fixed formulation in siptrace's readme 2014-06-19 Andrei Datcu * [534884d] : Fixed typo in siptrace's readme 2014-06-19 Andrei Datcu * [b746032] : Split fromip and toip columns 2014-06-19 Bogdan-Andrei Iancu * [a550b90] : Fix typo in the doc examples 2014-06-18 Răzvan Crainea * [56a01fa] : Merge pull request #252 from ionutrazvanionita/master Add exchange support for event_rabbitmq 2014-06-18 Ionut Ionita * [e7886d5] : Update documentation for event_rabbitmq. 2014-06-18 Ionut Ionita * [cd090f7] : Merge branch 'rabbitmq-exchange' 2014-06-18 Ionut Ionita * [73678aa] : Add exchange support for rabbitmq 2014-06-18 Răzvan Crainea * [53231eb] : update drouting documentation 2014-06-18 Razvan Crainea * [7541642] : remove extra char in state's printing 2014-06-18 Razvan Crainea * [3866e35] : provide more MI details about the gws state 2014-06-18 Bogdan-Andrei Iancu * [45afa00] : Replace "flags" with "state" in the ds_list output 2014-06-18 Bogdan-Andrei Iancu * [3d9bb5a] : Replace FLAGS with STATE columns in dispatcher 2014-06-18 Razvan Crainea * [f43bde4] : rabbitmq provides failure reason starting from v0.4.0 2014-06-18 Bogdan-Andrei Iancu * [8e70636] : Readme re-generated 2014-06-18 Bogdan-Andrei Iancu * [3e71b9b] : Fix docs - replace "flags_col" with "state_col". 2014-06-17 Razvan Crainea * [9a37842] : restructure MI output to align to mi_json structure 2014-06-17 Razvan Crainea * [dba4810] : dialog: fix $DLG_timeout printing 2014-06-17 Bogdan-Andrei Iancu * [6434924] : Merge branch 'lemenkov-rtpproxy-ng' 2014-06-17 Bogdan-Andrei Iancu * [796ae0d] : Add proper licensing header to all files. 2014-06-17 Bogdan-Andrei Iancu * [36f4f22] : Full migration from RTPPROXY to RTPENGINE naming. 2014-06-17 Bogdan-Andrei Iancu * [6c643df] : Fixed dangling spec structure in pv_parse_spec(). 2014-06-17 Bogdan-Andrei Iancu * [d72a13f] : Merge branch 'rtpproxy-ng' of https://github.com/lemenkov/opensips into lemenkov-rtpproxy-ng 2014-06-17 Bogdan Andrei IANCU * [1dc27c2] : Merge pull request #248 from wdoekes/wjd-warn-if-no-docbook makefile: Move checks around for documentation dependencies. 2014-06-13 Walter Doekes * [7c61bbb] : makefile: Move checks around for documentation dependencies. 2014-06-11 Bogdan-Andrei Iancu * [d08e5d0] : Removed obsolete file. 2014-06-10 Vlad Paiu * [1dcd88e] : Proper checking of callid length Reported by Walter Doekes 2014-06-06 Bogdan-Andrei Iancu * [7864fd2] : Fixed handling of REJECT return code. (cherry picked from commit 8e42553e44be1b054d2f6e9b84b3632e83e4a0bd) 2014-06-06 Bogdan-Andrei Iancu * [046b8a4] : Fixed dbschema doc to point to right modules doc 2014-06-06 Bogdan-Andrei Iancu * [376e96d] : Just code beautification 2014-06-05 Razvan Crainea * [2063664] : event_rabbitmq: proper error reporting when msg sending fails 2014-06-05 Liviu Chircu * [b54afe3] : core statistics: revert to safe allocations Commit 42c3d383 is incomplete since some statistics are allocated in multi-process environments (e.g. udp/tcp load statistics) This patch fixes this issue, while maintaining the logic behind 42c3d383 2014-06-05 Liviu Chircu * [53e48e1] : core: Fix uninitialized number of interface listeners Closes issue #246, reported by cityant 2014-06-04 Bogdan-Andrei Iancu * [20d1fe6] : Fixed autobridging in combination with TopoHiding. Get information about the next hop from the Transaction layer (when Topo Hiding is used), as we have no second VIA present in the SIP replies. Based on an original fix from Nick Altmann, related to push request #238. 2014-06-03 Razvan Crainea * [2e14a40] : statistics: fixed MI get_statistics command to cope with mi_json 2014-05-29 Bogdan-Andrei Iancu * [dd788ff] : Fix ds_list MI command output. The values added to the MI tree must be either persistent, either duplicated into the tree. Closes issue #243, reported by Ovidiu Sas. 2014-05-29 Bogdan-Andrei Iancu * [dd10969] : Fix nameaddr.params if last param has no value. Closes again #228 . 2014-05-29 Bogdan-Andrei Iancu * [07448cb] : Fixed missing \n in log messages. 2014-05-29 Razvan Crainea * [213e777] : rtpproxy: restructure rtpproxy_mi show command Due to the initial structure, some useful information was stripped by the mi_json module. Added the "Set" as root node, followed by a child for each node 2014-05-28 Razvan Crainea * [20c1753] : lb: mark resources as array 2014-05-23 Ovidiu Sas * [cca642b] : uac_registrant: documentation updates 2014-05-23 Ovidiu Sas * [c616b08] : uac_registrant: print an error if registrar imposed expires to small 2014-05-23 Ovidiu Sas * [0181bec] : uac_registrant: add some sanity checks during db record(s) loading 2014-05-23 Ovidiu Sas * [2998f06] : uac_registrant: add some sanity checks during module init 2014-05-22 Razvan Crainea * [24ace9f] : Removed QM_JOIN_FREE defines Permanently enable the QM allocator feature to join adjacent free fragments. 2014-05-22 Razvan Crainea * [b9336ea] : Revert "Makefile: by default, join free fragments" This reverts commit 8f8922ca4449a4428cade1a3e774841fd21689d4. 2014-05-22 Razvan Crainea * [8f8922c] : Makefile: by default, join free fragments 2014-05-22 Liviu Chircu * [24517fd] : drouting: document the "persistent_state" parameter 2014-05-21 Razvan Crainea * [7b5ce39] : flatstore: escape delimiter 2014-05-21 Liviu Chircu * [3ac3b04] : core: improve CPU usage of the TCP_MAIN process * iterate through and close connections at most once per second 2014-05-21 Bogdan-Andrei Iancu * [2e4b2d5] : Added support for external body in MSILO. Able to deal with MESSAGEs with no body but with conten-type refering to an external body. 2014-05-21 Bogdan-Andrei Iancu * [d5ff4c9] : Fixed setting the pinging flags at start. Related to issue #233 2014-05-21 Ovidiu Sas * [2923d41] : dialplan: dp_translate(): accept "id" param as STR PVAR - convert it to INT "id" STR PVAR (if possible) 2014-05-21 Ovidiu Sas * [f517529] : dialplan: return "404 No translation" for failed MI dp_translate command 2014-05-20 Razvan Crainea * [310dafa] : dispatcher: fix possible bogus gateways In case the domain name can not be resolved, the destination should be droped and the number of destinations within the set should not be increased. 2014-05-20 Razvan Crainea * [6dc7261] : dispatcher: add priority column This is useful for "first entry" algorithm, where you can now order the entries regardless the database order 2014-05-19 Liviu Chircu * [79249f8] : change #if to #ifdef in commit 008593a3 2014-05-19 Liviu Chircu * [cd201b6] : QM_MALLOC: proper fragment debugging patterns for x86_64 2014-05-19 Liviu Chircu * [008593a] : QM_MALLOC: add a new MI memory scanning function * "shm_check" now performs a full scan and stops OpenSIPS if any inconsistency is found * only available with DBG_QM_MALLOC 2014-05-19 Bogdan Andrei IANCU * [3452fbf] : Merge pull request #232 from wdoekes/wjd-misc_typos Fix a few typo's and double spaces in LM_* messages. 2014-05-19 Walter Doekes * [52400c6] : Fix a few spacing issues and a few more typo's. 2014-05-19 Walter Doekes * [9424d34] : s/writting/writing/ 2014-05-19 Walter Doekes * [cc375eb] : s/sever=/server=/ 2014-05-19 Walter Doekes * [5fbda5a] : s/interger/integer/ 2014-05-19 Bogdan-Andrei Iancu * [f898389] : Fixed output redirect for "which" Credits go to @jalung . Closes #231 . 2014-05-19 Razvan Crainea * [eef59c1] : dialog: prevent double free in case of errors 2014-05-16 Vlad Paiu * [48fbecc] : Full rework of the module Leave the connection management handling to the cachedb interface Allow multiple connections exposed to script 2014-05-15 Vlad Paiu * [b58dc5d] : Update the length of the prefix and seed for callid topo hiding after cfg parsing 2014-05-15 Vlad Paiu * [2d953e2] : Do not do unnecessary parsing of the SIP msg on the out side, in case it doesn't belong to a callid topo hiding dialog Silence the parsing of the SIP messages pre & post 2014-05-14 Bogdan-Andrei Iancu * [e9b1757] : Reduce log level for script ops. Better err logging 2014-05-14 Bogdan-Andrei Iancu * [a4eb40a] : Clone in shm requests with all headers parsed. For the UAC transactions, when adding the fake msg in the UAS side, be sure all the needed headers are parsed and ready for cloning into SHM. Reported by Nick Altmann. Also many thanks for the support with the troubleshooting. (cherry picked from commit 5669370f6492ec0c6a01bb31db791c6f7dfc7885) 2014-05-14 Razvan Crainea * [b252b47] : call_center: cc_handle_call() accept strings 2014-05-14 Bogdan-Andrei Iancu * [bdfee9d] : Fix calculating len of params in nameaddr trans. If the value of the last parameter is a quoted string, we need to include in the len calculation the closing quote too (quotes are not included in the actual value). Closing #228. (cherry picked from commit cf1ae2a9158699844ef15797a5b234b010a4d1c8) 2014-05-14 Liviu Chircu * [99b049b] : tls: allow free(NULL) with DBG_QM_MALLOC enabled 2014-05-09 Liviu Chircu * [0338917] : cachedb core: properly free raw query results * freeing more than 1 result leaked pkg mem Fixes #226 2014-05-09 Liviu Chircu * [0be4225] : tcp_no_new_conn_bflag: fix incorrect behaviour when using integer flags * also fix some redundant pointer ref/dereferencing 2014-05-08 Liviu Chircu * [ffb0cb6] : core: fix mem statistics when DBG_QM_MALLOC is on 2014-05-08 Razvan Crainea * [ff839b8] : acc: register dialog loaded callbacks after flags init This solves the bug when CDRs were not written in DB after restart Reported by Mayama Takeshi, who also provided testing environment 2014-05-07 Razvan Crainea * [459dffb] : mi_json: complete rework of the module consider the modules MI_IS_ARRAY hints to build a simpler JSON document fixes cases where duplicate keys generate invalid documents (example: ul_show_contacts) 2014-05-07 Razvan Crainea * [7b83d07] : fix previous commit to organize dlg_list_ctx as array too 2014-05-07 Vlad Paiu * [afee8fe] : When loading new dialogs at runtime ( either via dlg_db_sync or via the bin interface ), also run the load callback ( eg. used by the acc module to write proper CDRs ) 2014-05-07 Bogdan-Andrei Iancu * [34576f5] : Fix the structure of MI tree (output). Mark the nodes that contain arrays of subnodes (versus list of differente nodes). This is a must in order to properly structure the MI output via the json backend. 2014-05-07 Razvan Crainea * [eb233f8] : event_rabbitmq: replace exchange with routing_key Closes #220 2014-05-07 Razvan Crainea * [74666b9] : utils: ignore db_berkeley versioning 2014-05-07 Bogdan-Andrei Iancu * [5c27f46] : Fixed compile warnings 2014-05-07 Bogdan-Andrei Iancu * [861c4c4] : Support for json-c ; Fixed compile warnings (cherry picked from commit e481ef3895c5cc679ae94676e433a3b522c8b95f) 2014-05-07 Razvan Crainea * [fc3ca07] : b2b: restore callbacks mask after reload 2014-05-07 Razvan Crainea * [e086595] : call_center: initialize ret variable 2014-05-07 Razvan Crainea * [4ddf1b3] : b2b_logic: do not call the DESTROY callback at shutdown 2014-05-07 Razvan Crainea * [a5f6e10] : call_center: fix default scenario readme 2014-05-07 Razvan Crainea * [2f6eb09] : call_center: add cc_calls table 2014-05-07 Razvan Crainea * [4b366c5] : call_center: add last_call_end column 2014-05-07 Razvan Crainea * [997ccd3] : call_center: add column info when loading calls from db 2014-05-07 Razvan Crainea * [939a240] : call_center: properly register B2B callbacks 2014-05-07 Bogdan-Andrei Iancu * [c5031b0] : Fix DB_BIGINT support and unused vars. (cherry picked from commit 611d47f5ac3ed36bcf3cfa233e25586b29616e88) 2014-05-07 Bogdan-Andrei Iancu * [f7f2cb4] : Fix reusage of proxy_l structures. As proxy_l structures contain information about the DNS-based failover (iteration in he struct, which SRV or NAPTR records were used or not), such structure cannot be used more then once for sending a message out. Fixes: - do not use the same proxy_l for multiple functions in script (remove the add_proxy() and find_proxy() ) - avoid using the same proxy_l structure for all the calls of same function (when proxy_l is a function parameter) Fixes #224 Many thanks for Chris Maciejewski ( @l7s ) for support on troublehsooting this. 2014-05-06 Ovidiu Sas * [92131a4] : scripts: fix gdb detection for opensipsctl 2014-05-06 Liviu Chircu * [204d08b] : db_text: properly initialize memory when caching tables 2014-05-06 Bogdan-Andrei Iancu * [e1641a4] : Fixed examples in docs (uac versus uac_auth) 2014-05-06 Bogdan-Andrei Iancu * [77d2aa8] : Fixed bogus test on memory allocation. (cherry picked from commit d9fe58e721a0e4c53841e91ba766df7bbce2cae5) 2014-05-05 Liviu Chircu * [d63ee19] : db_unixodbc: deallocate the results only after they are processed * closes bug #622 on the SF tracker 2014-05-05 Vlad Paiu * [67023e9] : When fetching a counter, do not accidentally create it in case it does not exist 2014-05-05 Bogdan-Andrei Iancu * [6306252] : Postgres schema regenerated 2014-05-05 Bogdan Andrei IANCU * [671a5bb] : Merge pull request #221 from nikbyte/master Fix some PgSQL schema issues 2014-05-05 Nick Altmann * [40e6f9a] : PostgreSQL DB schema: set for all serials maxvalue and cycle because sometimes serials may overflow 2014-05-05 Nick Altmann * [6ff5cf4] : PostgreSQL DB schema: remove bytea size because pgsql has no fixed size for this type of field 2014-05-05 Vlad Paiu * [47cd18c] : When fetching a counter, do not accidentally create it in case it does not exist 2014-05-05 Vlad Paiu * [f1fec17] : Fixed the connection handling - some modules would want to run cachedb type ops in the mod init Fixed the DB schema & increased version - the keyname must be a primary key for the counter ops to properly work 2014-05-02 Bogdan-Andrei Iancu * [178b7ec] : ID "column" can be INT or STRING type. If using a noSQL backend (via db_cachedb module), the id may be returned as string (by mongoDB). Reported by Ovidiu Sas Fixes #173. 2014-05-02 Bogdan-Andrei Iancu * [d871bc9] : Fixed using internal ID for DB updated operations. Use the DB ID when doing updates instead of the internal ID. 2014-05-01 Liviu Chircu * [dee5b3f] : script statement thresholds: ignore certain statements Motivation: * could lead to behavior such as: "ROUTE, IF, ROUTE, IF and IF took too long..." * ignored statements: ROUTE, IF, WHILE, FOR_EACH 2014-05-01 Liviu Chircu * [a99688e] : core: fix compiler warning and a rare mem leak * setting the global advertised port multiple times leaked pkg mem 2014-04-30 Liviu Chircu * [ad92fa6] : core: address several advertised address related issues * properly duplicate buffers into shared memory when required * keep the advertised address of the first branch as a default for future branches * also allow set_advertised_port() to receive any kind of parameter (int, string, int pvar, str pvar...) Credits for reporting and helping with troubleshooting to GitHub user contact2malay 2014-04-29 Liviu Chircu * [70d2823] : stun: fix possible memory corruption * when processing any STUN packet with unknown attributes (Reported by Nick Altmann) 2014-04-28 Bogdan Andrei IANCU * [6524366] : Merge pull request #202 from fabriziopicconi/patch-1 thrift 0.9 support added 2014-04-27 fabriziopicconi * [c81b928] : Update Makefile 2014-04-23 Liviu Chircu * [df88864] : drouting: properly set pvar types when setting attribute values * fixes commit d24b10e1f (Reported by Alexander Mustafin) 2014-04-22 Bogdan Andrei IANCU * [05209bb] : Merge pull request #130 from dsandras/ds-pua-dbupdate-fix Fixes bug where the pua db elements were deleted too early. Conflicts: modules/pua/pua.c (cherry picked from commit 313f41ad46921d543980fa9fc71fb0715d385085) 2014-04-22 Bogdan-Andrei Iancu * [4ccebfe] : Fix passing the auth AVPs from server to client. Fixes #134, testing still required. 2014-04-22 Bogdan-Andrei Iancu * [5972f2d] : Fixed creating tables for b2b and call_center modules 2014-04-20 Nick Altmann * [dcec6be] : Merge pull request #210 from fabriziopicconi/patch-6 RPM spec: fix opensips-db_oracle library installation 2014-04-20 fabriziopicconi * [b931f8c] : Fix opensips-db_oracle library installation libclntsh.so.11.1() and libocci.so.11.1() not exported by oracle-instantclient 2014-04-20 Nick Altmann * [0e1f27a] : RPM spec: added dependencies for mysql and postgresql libs 2014-04-18 Razvan Crainea * [4919457] : rtpproxy: fix another documentation typo rtpproxy_engage() function is not deprecated 2014-04-18 Razvan Crainea * [a9f358e] : rtpproxy: fix documentation typo rtpproxy_unforce() function is not deprecated 2014-04-17 Liviu Chircu * [4f7df94] : TLS README: correct spelling and grammar 2014-04-17 Liviu Chircu * [3a0bca8] : regenerate the TLS CA and default certificate * the CA passphrase did not match the one in the README 2014-04-16 Nick Altmann * [2d07ad4] : RPM spec: corrected changelog section format 2014-04-16 fabriziopicconi * [fe99fb6] : RPM spec: fixed x64_86 compilation problems, added some dependencies 2014-04-16 Razvan Crainea * [48050ee] : acc: make sure we we don't write the same record twice this scenario appears when using multi bye leg support and there are no legs 2014-04-16 Liviu Chircu * [3a8c6e0] : anchor_lump(): drop the redundant "len" parameter 2014-04-16 Liviu Chircu * [3adf6a9] : data_lump.h: explicitly warn about some broken logic Currently, append_new_lump() and insert_new_lump() are not used at all. Moreover, it seems they would not work anyway. 2014-04-16 Liviu Chircu * [6f83e15] : lumps processing: a couple of performance optimizations Since we can only have LUMP_DEL or LUMP_NOP along the main lump chain, reordering the switch statements will improve code performance. This patch also enhances code readability and improves error reporting. 2014-04-16 Liviu Chircu * [9f7ce76] : error.h: add a bug reporting function Motivation: * it seems it can be reused quite a lot Examples: * report_programming_bug("invalid pointer: %p", p); * report_programming_bug("we should not process BYEs here!"); 2014-04-15 Liviu Chircu * [f9d9654] : lump processing: correct the handling of DEL lumps with identical offsets * for this corner case, only add the _delta_ lengths instead 2014-04-15 Razvan Crainea * [eb06db1] : generate .gitrevision file if it does not exist 2014-04-15 Razvan Crainea * [8ad936f] : Makefile: add git revision in the tarballs 2014-04-15 Razvan Crainea * [1f68d9a] : remove id from version output, since it is no longer used 2014-04-12 fabriziopicconi * [3dc70f9] : thrift 0.9 thrift 0.9 support 2014-04-11 Liviu Chircu * [5c790aa] : msilo dbschema: avoid setting a default value for the body field * this causes errors/warnings on backends such as MySQL/MariaDB 2014-04-10 Razvan Crainea * [4fd00f1] : rtpproxy: fix rtpproxy_engage() pvar expansion Reported by Ovidiu Sas Closes #195 2014-04-09 Ovidiu Sas * [a6fd82d] : parser: increase the number of accepted URI unknown params from 5 -> 10 2014-04-09 Liviu Chircu * [2f47930] : exec doc: update the OpenSIPS routes for each function 2014-04-08 Bogdan-Andrei Iancu * [e253486] : Spell checking :) 2014-04-08 Bogdan-Andrei Iancu * [0ba0bf0] : Fix bug in fetching all values of a RADIUS AVP. Using AVPs from script, you can now retrieve all the values (not only yhe first value of the RADIUS AVP). In order to maintain backward compatibility, the fetch_all_values module parameter was added - by default is off. Reported and tested by John Quick. 2014-04-08 Bogdan-Andrei Iancu * [8f0a150] : Complete documentation added for the Call Center module 2014-04-08 Razvan Crainea * [cee4794] : fix engage fixup function when called without any parameters Reported by Ovidiu Sas Closes #192 2014-04-08 Vlad Paiu * [0f551f7] : Add topology_hiding() flag to also hide the callid for all requests/replies within a call 2014-04-06 Bogdan-Andrei Iancu * [222aea3] : Fix missing script function to control the agent login 2014-04-04 Liviu Chircu * [4148c3f] : hp malloc: properly release the hash lock on redundant shm_reallocs * e.g. shm_realloc(shm_malloc(16), 16); 2014-04-04 Liviu Chircu * [e56f327] : hp malloc: fix pkg max_real_used computation in hp_info() * update_shm_stats() should not be called at all 2014-04-03 Liviu Chircu * [19832c6] : hp malloc: do not write the pattern file when "mem_warming" = 0 * also improve the logging at shutdown 2014-04-03 Razvan Crainea * [61388ea] : opensipsctl: change trapping logging method the operator '&>>' does not exist for all shells, used '2>&1 >>' instead 2014-04-03 Liviu Chircu * [f5da89d] : mi_xmlrpc: fix crash when flushing complex MI trees as strings * crash was replicated with "ul_dump" command at 51+ contacts - "reply_option" must be disabled This patch solves a couple of other issues: * properly mark completed nodes when "reply_option" = 0 * a rare memory leak when flushing empty "mi_node"s 2014-04-03 Razvan Crainea * [24bd3a8] : fixed acc to raise the proper event when using acc_evi_request() Credits go to Brett Nemeroff for reporting and testing 2014-04-02 Vlad Paiu * [edef0fd] : Added support for RFC 5031 urn:service type URIs 2014-04-01 Liviu Chircu * [6606d15] : drouting doc: properly specify the source IP check of is_from_gw() 2014-04-01 Liviu Chircu * [268955b] : hp malloc: differentiate the pkg and shm statistics code When HP_MALLOC is defined: * shm statistics are based on 32/64-bit atomic counters - the former logic is still available with HP_MALLOC_FAST_STATS - however, stat aggregation and the shm threshold checks should be done by a single process * pkg statistics are implemented similarly to the other allocators 2014-04-01 Liviu Chircu * [42c3d38] : core statistics: export a initialization checking function * this allows statistics-dependent code to test initialization * change all "shm_malloc" calls to "shm_malloc_unsafe" * ultimately, memory allocators are now able to make use of core stats 2014-04-01 Liviu Chircu * [b68cfba] : hp malloc statistics: fix incorrect stats when configuring split buckets 2014-03-30 Richard Fuchs * [cc6e11b] : rtpengine: update docs 2014-03-30 Richard Fuchs * [9e3b73b] : rtpengine: modernize interface, remove legacy interface 2014-03-30 Richard Fuchs * [a11b409] : rtpengine: rename from rtpproxy-ng 2014-03-29 Răzvan Crainea * [b72f49f] : tcp: prevent tcp connections from overflowing the partitions vector 2014-03-28 Bogdan-Andrei Iancu * [3fad31c] : (part of TCP partitioning commit 0497150) 2014-03-28 Bogdan-Andrei Iancu * [0497150] : Partitioning support for TCP data structures In order to scale up with the number of connections (and operations per TCP conn), we need more hash tables and more locks. 2014-03-28 Richard Fuchs * [007d105] : rtpproxy-ng: increase the receive buffer size to 64k 2014-03-28 Peter Lemenkov * [c361a9d] : Fix missing int_str magic 2014-03-28 Peter Lemenkov * [70358c0] : Remove unavailable pv_cache_get API 2014-03-28 Juha Heinanen * [65d857e] : modules/rtpproxy-ng: added setid_avp module param which can be used (instead of set_rtp_proxy_set function) to select used rtpproxy set 2014-03-28 Bogdan-Andrei Iancu * [d37ae66] : Fix recalculation of sending socket after local route Take into consideration the "force_send_socket" setting in local route. 2014-03-27 Liviu Chircu * [edd8721] : call_center: fix some db schema errors * reduce the cc_agents skills column size * fix some primary key issues in cc_flows and cc_agents * fix a couple of bad column names in cc_cdrs 2014-03-27 Liviu Chircu * [9f71064] : hp malloc: reorder some initializing operations * hp_mem_warming() fails if anything is allocated before (it cannot access the big fragment anymore) 2014-03-27 Liviu Chircu * [9ad2947] : hp malloc: fix shm statistics * processes now update fragment statistics for each bucket * the MI workers iterate and aggregate all memory information * the built-in maximum sampling rate is 200ms - repeating a fetch in < 200ms will return the same results * this patch also corrects a rare deadlock in hp_realloc - hp_realloc "growth" may deadlock with hp_malloc "shrink" - the best solution is to drop the "growth" realloc operation - this also merges well with the allocator fragmentation requirements 2014-03-27 Liviu Chircu * [dbf1b4b] : dispatcher init: initialize the old_data pointer * otherwise, the code will dereference a random pointer 2014-03-26 Bogdan Andrei IANCU * [ff937c8] : Merge pull request #177 from wdoekes/wjd-fix_dialogaggr_bounds presence_dialoginfo: Fix bounds checking by using a helper function. 2014-03-26 Bogdan-Andrei Iancu * [ab22467] : Fixed detection of the module functions used in script - we need to look also into the logical expressions (like IF and WHILE conditions) Credits for reportind and helping with the troubleshooting go to Justin Zondagh 2014-03-26 Ovidiu Sas * [980dfc8] : pi_http: fix HTTP escaping 2014-03-26 Ovidiu Sas * [a1f454b] : pi_http: fix html output 2014-03-26 Ovidiu Sas * [cbf2f11] : pi_http: samples regenerated 2014-03-26 Ovidiu Sas * [d0ced79] : pi_http: update pi_framework_mod.xsl to generate new pi_http samples - add link_cmd to the primary key for DB_UPDATE commands 2014-03-25 Bogdan-Andrei Iancu * [344cd96] : core: list_tcp_conns: compute properly the tmeout attr 2014-03-25 Liviu Chircu * [7d302c1] : hp malloc: reduce the built-in maximum split factor * dividing the list into too many smaller ones may actually hurt performance * this also reduces the minimum pkg and shm consumption by 3.4MB when enabling HP_MALLOC 2014-03-25 Liviu Chircu * [faaca74] : hp malloc: fix the hash size macros * the old ones actually led to bad memory accesses within hp_malloc() 2014-03-25 Ovidiu Sas * [ddaf004] : presence: subs_phtable_list - print expires attr in human readable format 2014-03-25 Ovidiu Sas * [6ac1dc8] : core: list_tcp_conns: print Timeout attr in human readable format 2014-03-24 Ovidiu Sas * [4e703a5] : httpd: fix compiler warning 2014-03-24 Ovidiu Sas * [8925239] : mi: declare/move MI_DATE_BUF_LEN into the mi headers 2014-03-24 Nick Altmann * [50bb192] : Update CentOS and RHEL/Fedora specs: fixed b2b submodule, added additional dependencies 2014-03-24 Liviu Chircu * [c9657d4] : sipmsgops: Fix trailing whitespaces when doing "codec_delete_re" * deleting the last payload attribute led to trailing whitespaces * some UAs would return "488 Not Acceptable Here" in this case 2014-03-24 Nick Altmann * [be0d7d9] : Update centos spec file: fixed b2b submodule and removed some odd files from main module 2014-03-23 Nick Altmann * [41d677c] : Merge pull request #182 from fabriziopicconi/patch-12 Update centos spec file: new modules included 2014-03-22 fabriziopicconi * [e69cc9f] : New modules included Some new rpm optional modules are added: b2b_sca,call_center,mi_json,script_helper 2014-03-22 Liviu Chircu * [575c0db] : httpd: fix a couple of size_t printing warnings 2014-03-22 Liviu Chircu * [4461bea] : OpenSIPS version: detect and show the HP_MALLOC flag in the output 2014-03-22 Liviu Chircu * [dbf21a8] : Fix memory locking for F_MALLOC and DBG_QM_MALLOC * commit 56b325be0a5 introduced some unsafe operations 2014-03-22 Nick Altmann * [33f1166] : Update rpm specs for 1.11 2014-03-21 Liviu Chircu * [2535935] : tm: fix fr_inv_timeout bug from commit d244686dc5f * also improve code readability with a couple of macros 2014-03-21 Liviu Chircu * [83c97e8] : hp malloc: expose memory warming parameters in the script 2014-03-21 Liviu Chircu * [6246df1] : hp malloc: increase built-in PKG mem size to match the larger hash * otherwise, "opensips -V" would fail 2014-03-21 Liviu Chircu * [d504e9f] : hp malloc: rename functions, update headers, add some comments 2014-03-21 Bogdan-Andrei Iancu * [aefe6c1] : Fixed DH and EC compiling on openssl < 1.0.1 - credits go to Nick Altmann for reporting and testing the fix 2014-03-20 Liviu Chircu * [73999d4] : f_malloc: undo fragment count change from commit 56b325be0a 2014-03-20 Vlad Paiu * [d800b09] : Changed trunk version to 1.12 dev 2014-03-20 Razvan Crainea * [7346457] : update changelog for 1.11 2014-03-20 Liviu Chircu * [1c7f225] : Makefile.conf.template: disable HP_MALLOC from the default setup 2014-03-20 Liviu Chircu * [56b325b] : core: High Performance Memory Allocator included * ideal for systems with high volumes of calls-per-second * fine-grained locking * tunable two-level hashing of free memory fragments * memory allocation pattern recording * fragmentation-on-startup * enable "HP_MALLOC" within "make menuconfig" 2014-03-20 Liviu Chircu * [5fbc82f] : atomic.h: add 64-bit atomic operations 2014-03-20 Razvan Crainea * [66354d1] : update specs for 1.11 2014-03-20 Vlad Paiu * [fcc1ab5] : Changed 1.11 status to beta 2014-03-20 Răzvan Crainea * [1a0310f] : dialog: remove timeout_avp from docs 2014-03-20 Razvan Crainea * [c6b1a6a] : packaging: remove old debian-lenny 2014-03-20 Razvan Crainea * [d110328] : update credits for 1.11 2014-03-20 Bogdan-Andrei Iancu * [e2c7ece] : MYSQL DB migration script updated from 1.10 to 1.11 migration 2014-03-20 Ovidiu Sas * [bffa103] : tm: fix README 2014-03-20 Ovidiu Sas * [6d41b53] : tm: update doc for "own_timer_proc" parameter - it defines the number of timer procs - completes commit f001f098a0cf3996655e1ca47675b15d2f69c984 2014-03-20 Răzvan Crainea * [ff3f11a] : rtpproxy: update documentation 2014-03-20 Razvan Crainea * [3c36a16] : rtpproxy: rename script functions * engage_rtp_proxy() is deprecated and replaced by rtpproxy_engage() * unforce_rtp_proxy() is deprecated and replaced by rtpproxy_unforce() * start_recording() is deprecated and replaced by rtpproxy_start_recording() 2014-03-20 Razvan Crainea * [00c42e3] : call_center: fix compile warning for unsigned printing 2014-03-20 Ovidiu Sas * [c2b3726] : drouting: use constans for indexing values while loading dr_rules table 2014-03-20 Razvan Crainea * [7b3ead2] : makefile: prevent Makefile.conf from being ovewritten 2014-03-20 Ovidiu Sas * [bdda717] : Merge branch 'master' of github.com:OpenSIPS/opensips 2014-03-20 Ovidiu Sas * [f552335] : mi_xmlrpc_ng: make module opensips-cp compatible 2014-03-20 Razvan Crainea * [6d76fe3] : compile: add Makefile.conf dependency 2014-03-20 Ovidiu Sas * [ca046ae] : drouting: use constans for indexing values while loading dr_carriers table 2014-03-20 Vlad Paiu * [a6f42db] : Fixed compile warning Module compiles even with STATISTICS support disabled 2014-03-20 Vlad Paiu * [8c83b13] : fixed sched_yield() warning 2014-03-20 Ovidiu Sas * [ecbc003] : drouting: use constans for indexing values while loading dr_gateways table 2014-03-20 Bogdan-Andrei Iancu * [791ab01] : fixed compile warning 2014-03-20 Vlad Paiu * [f14766a] : Fixed free which lead to bogus memory access: 2014-03-20 Vlad Paiu * [804c9f7] : Fixed compile warning 2014-03-20 Bogdan-Andrei Iancu * [5492dbf] : Code cleanup - removed variables which are not actually used for anything 2014-03-20 Bogdan-Andrei Iancu * [8ad0901] : Fixed return code in case of error 2014-03-20 Bogdan-Andrei Iancu * [a4cdbcb] : Added db schema for the Call Center module; DB stuff re-generated 2014-03-20 Ovidiu Sas * [4f5b87a] : pua_usrloc: fix error: SCB_RUN_ALL undeclared (first use in this function)