Commit Graph

928 Commits

Author SHA1 Message Date
paulc fddc96792d Force a counter switch when initializing a plugin so its threads inherit the proper counter.
git-svn-id: http://voip.null.ro/svn/yate@5786 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-24 13:40:55 +00:00
paulc 5706618b46 Added separate object counter for worker threads.
git-svn-id: http://voip.null.ro/svn/yate@5784 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-24 12:46:39 +00:00
paulc 7e7339dea6 Added object counter for main engine thread.
Fixed counter allocation reentrancy problem.


git-svn-id: http://voip.null.ro/svn/yate@5780 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-19 11:40:50 +00:00
paulc 7b65e9296e Properly append new row in Array::addRow(), check if entries exist.
Fixes bug #110


git-svn-id: http://voip.null.ro/svn/yate@5778 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-13 10:54:00 +00:00
marian 914df248d5 Fixed bug: don't clear jabber account/proto when validating calls.
git-svn-id: http://voip.null.ro/svn/yate@5763 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-10 08:51:22 +00:00
paulc d56cecb40e Added copyright notices to sources and scripts missing them.
Updated copyright notices for 2014.
Fixed end of lines in many files.


git-svn-id: http://voip.null.ro/svn/yate@5755 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-05 11:42:17 +00:00
paulc 424feb6aad Added support for counting allocated objects for memory leaks troubleshooting.
git-svn-id: http://voip.null.ro/svn/yate@5752 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-04 16:36:23 +00:00
marian 879760c170 Fixed bug: properly retrieve selected contact when handling call action from address book.
git-svn-id: http://voip.null.ro/svn/yate@5751 acf43c95-373e-0410-b603-e72c3f656dc1
2014-01-31 13:07:37 +00:00
paulc 623c4701df Retry taking the lock on CallEndpoint mutex keeping the Engine congested.
This should allow recovering from performance problems as new calls are blocked.


git-svn-id: http://voip.null.ro/svn/yate@5704 acf43c95-373e-0410-b603-e72c3f656dc1
2014-01-07 16:08:37 +00:00
paulc 2c78e79121 Added and Engine congestion counter and call accept status override.
Send alarms when entering or exiting congestion state.
The Driver now refuses to route calls while engine is congested or rejecting calls.


git-svn-id: http://voip.null.ro/svn/yate@5703 acf43c95-373e-0410-b603-e72c3f656dc1
2014-01-07 16:08:09 +00:00
paulc f7ad9ee3d0 Reduced contention on CallEndpoint::commonMutex() when getting current or last peer ID.
Added a variable and separate mutex for the last peer ID, also used as cache for current one.


git-svn-id: http://voip.null.ro/svn/yate@5702 acf43c95-373e-0410-b603-e72c3f656dc1
2014-01-07 16:07:34 +00:00
oana 38b3ae1969 Added option to remove an object from a HashList using its hash.
Added function to remove an object from a HashList by its String value.



git-svn-id: http://voip.null.ro/svn/yate@5689 acf43c95-373e-0410-b603-e72c3f656dc1
2013-11-18 11:08:30 +00:00
oana 2c9b0b6bfc Added ObjList::setUnique() to uniquely set an object in the list. If the object is not already present in the list, it appends it to the list.
Inlined NamedList::setParam(NamedString*) which now uses ObjList::setUnique().
Only iterate once over parameter list when trying to set a parameter in a NamedList with name and value.



git-svn-id: http://voip.null.ro/svn/yate@5683 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-29 12:04:03 +00:00
marian 51736b46b7 Ignore selected account and protocol when called target contains '/'. Ignore selected account if called target contains '@' or ':'.
git-svn-id: http://voip.null.ro/svn/yate@5669 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-18 15:14:33 +00:00
marian 18ae05c63c Added post dial delay timeout in outgoing channel started from 'maxpdd' routing parameter. It stops when status is called with 'ringing', 'progressing' or 'answered'.
git-svn-id: http://voip.null.ro/svn/yate@5666 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-11 12:46:20 +00:00
marian 4fc6666d9a Add call to history even if caller party number is empty.
git-svn-id: http://voip.null.ro/svn/yate@5661 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-08 09:21:57 +00:00
paulc 2056cf9469 Properly set DSCP on IPv6 sockets.
git-svn-id: http://voip.null.ro/svn/yate@5660 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-06 18:27:48 +00:00
paulc 0bd11fd838 Added support in Socket and RTP module for setting IP QoS by DSCP keywords.
git-svn-id: http://voip.null.ro/svn/yate@5659 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-03 16:18:41 +00:00
marian f7ce4a9803 Added extra parameter to NamedList::copySubParams() used when wanting to replace existing parameters instead of adding a new one.
git-svn-id: http://voip.null.ro/svn/yate@5658 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-03 12:42:20 +00:00
marian 135f3c1a6c Added methods used to fill a binary IP address buffer from stringified address.
git-svn-id: http://voip.null.ro/svn/yate@5657 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-01 13:15:30 +00:00
marian bb49512cd1 Added IPv6 support to SocketAddr and Socket classes.
git-svn-id: http://voip.null.ro/svn/yate@5656 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-30 13:15:59 +00:00
paulc 18b6c0041d Added a base class for all digest calculation classes.
Added SHA256 calculation class.
Added HMAC calculation methods.
Added test module for cryptographic functions validation.


git-svn-id: http://voip.null.ro/svn/yate@5651 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-13 12:43:20 +00:00
paulc c9d215e1dd Handle the "control" command in engine like rmanager does.
This allows other modules to easily perform control operations.


git-svn-id: http://voip.null.ro/svn/yate@5641 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-06 11:07:39 +00:00
paulc da947b7370 Make the SVN revision accessible to engine, rmanager, SNMP.
git-svn-id: http://voip.null.ro/svn/yate@5639 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-03 16:10:18 +00:00
paulc ffa216965e SQL escape single quote by doubling it instead of preceding with backslash.
git-svn-id: http://voip.null.ro/svn/yate@5630 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-27 19:31:18 +00:00
marian 2ab24ed2e2 Changed im.execute relay id. Removed im.route message relay. Route chat using call.route message.
git-svn-id: http://voip.null.ro/svn/yate@5618 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-13 07:54:00 +00:00
paulc 888654b983 No longer require =true on a line that requests to load a module.
git-svn-id: http://voip.null.ro/svn/yate@5617 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-09 12:42:58 +00:00
paulc e498bdc20f Fixed 64 bit types usage in Javascript, was broken on 32 bit machines.
git-svn-id: http://voip.null.ro/svn/yate@5612 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-07 09:49:52 +00:00
paulc 86ef36ca7f Separated 32 and 64 bit constructors and assignments for String.
git-svn-id: http://voip.null.ro/svn/yate@5611 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-06 15:42:44 +00:00
paulc 18e10bfd69 Changed license terms in each source file to reference an external file.
git-svn-id: http://voip.null.ro/svn/yate@5609 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-06 13:38:10 +00:00
marian 4a0533fa36 Fixed conversion from boolean false to pointer.
git-svn-id: http://voip.null.ro/svn/yate@5598 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-02 07:10:00 +00:00
paulc a19f534767 Added unHexify version that automatically detects separator presence.
git-svn-id: http://voip.null.ro/svn/yate@5596 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-01 14:52:52 +00:00
paulc 22dcf9f53e Use Alarm() in places that could prevent normal operation.
This allows sending SNMP traps when parts of the service become non-operational.


git-svn-id: http://voip.null.ro/svn/yate@5569 acf43c95-373e-0410-b603-e72c3f656dc1
2013-07-08 12:21:26 +00:00
paulc b62e8880ff Make sure captured events have some form of timestamp.
git-svn-id: http://voip.null.ro/svn/yate@5567 acf43c95-373e-0410-b603-e72c3f656dc1
2013-07-08 10:55:21 +00:00
paulc ac26f45ce9 Fixed comparation in new worker thread alarm level.
git-svn-id: http://voip.null.ro/svn/yate@5565 acf43c95-373e-0410-b603-e72c3f656dc1
2013-07-05 13:47:11 +00:00
paulc b3e87ed1a6 Send Alarm from several places instead of just Debug.
git-svn-id: http://voip.null.ro/svn/yate@5563 acf43c95-373e-0410-b603-e72c3f656dc1
2013-07-05 12:49:44 +00:00
paulc 9d214b663f Added a generic Alarm() function that can be hooked by a module.
git-svn-id: http://voip.null.ro/svn/yate@5559 acf43c95-373e-0410-b603-e72c3f656dc1
2013-07-05 12:40:59 +00:00
marian 927f49e23f Added incoming call notification window.
git-svn-id: http://voip.null.ro/svn/yate@5556 acf43c95-373e-0410-b603-e72c3f656dc1
2013-06-25 15:04:42 +00:00
paulc 5a35758057 Removed a spurious warning at shutdown.
git-svn-id: http://voip.null.ro/svn/yate@5547 acf43c95-373e-0410-b603-e72c3f656dc1
2013-06-14 15:29:50 +00:00
paulc c7edcc237e Return -1 to the Mutex or Semaphore count if they are not counted (started without -Dd).
Don't include them in Engine status if not counted.


git-svn-id: http://voip.null.ro/svn/yate@5545 acf43c95-373e-0410-b603-e72c3f656dc1
2013-06-14 13:08:30 +00:00
paulc 4e7c865011 Invert the action of -Dd command line option, favor performance by default.
git-svn-id: http://voip.null.ro/svn/yate@5541 acf43c95-373e-0410-b603-e72c3f656dc1
2013-06-13 09:27:03 +00:00
paulc 27501cbced Allow MIME lines to build only the content part of the line without header.
git-svn-id: http://voip.null.ro/svn/yate@5531 acf43c95-373e-0410-b603-e72c3f656dc1
2013-06-07 15:15:31 +00:00
paulc 5c91367b63 Added class to handle Unicode characters and their UTF-8 conversions.
Made String handling of UTF-8 and Unicode easier.


git-svn-id: http://voip.null.ro/svn/yate@5507 acf43c95-373e-0410-b603-e72c3f656dc1
2013-05-20 15:00:26 +00:00
paulc 00f61dac6e Copy all call.drop parameters into the channel disconnected list.
git-svn-id: http://voip.null.ro/svn/yate@5505 acf43c95-373e-0410-b603-e72c3f656dc1
2013-05-14 09:28:14 +00:00
paulc a4ac0559c7 Prevent controlReturn() from overwriting a previous return parameter.
Simplified rmanager control return value interpretation.


git-svn-id: http://voip.null.ro/svn/yate@5504 acf43c95-373e-0410-b603-e72c3f656dc1
2013-05-10 14:50:36 +00:00
marian d0840bf68b Fixed async connect error check.
git-svn-id: http://voip.null.ro/svn/yate@5493 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-26 07:51:46 +00:00
marian bde8329cb6 Added methos used to connect a socket asynchronously.
git-svn-id: http://voip.null.ro/svn/yate@5489 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-25 14:19:31 +00:00
marian 9bb2af150e Added file sharing support.
git-svn-id: http://voip.null.ro/svn/yate@5483 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-23 11:34:13 +00:00
marian 5ac893fd58 Added file path related utility methods.
git-svn-id: http://voip.null.ro/svn/yate@5480 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-23 10:37:22 +00:00
marian d9d7ad9eb8 Added utility methods and classes to support drag@drop and showing busy indicator on widget.
git-svn-id: http://voip.null.ro/svn/yate@5479 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-23 10:03:18 +00:00