Commit Graph

955 Commits

Author SHA1 Message Date
paulc b02afc13c0 Fixed build on systems where timezone is not an integer type variable.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5944 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-26 09:53:31 +00:00
marian 702cf6fd7a Make an explicit conversion to satisfy the Windows compiler.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5943 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-26 09:42:47 +00:00
marian 6d1a1111a6 Debug output can now be hooked using a custom function. Added Debugger method used to relay preformatted strings. Added Engine method used to build a command line from current settings. Added Engine methods used to init and cleanup libyate based applications.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5942 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-26 09:32:36 +00:00
marian 56d84e6a37 Added accessor for Lockable safety flag.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5941 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-19 13:53:38 +00:00
marian 988d1af0e4 Semaphore initial count can now be set in constructor.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5939 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-18 11:36:25 +00:00
paulc 0953ee36d5 Added NIST FIPS 186-2 change notice 1 Pseudo Random Function with 160 bits SHA-1.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5936 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-05 17:58:39 +00:00
paulc 7f38064c6d Added getInt64Value to NamedList and Configuration classes.
Added getIntValue and getBoolValue to Javascript ConfigFile and ConfigSection.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5930 acf43c95-373e-0410-b603-e72c3f656dc1
2014-12-22 11:56:16 +00:00
paulc 7f834fd8b8 Added engine and Javascript methods for packing and unpacking IP addresses.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5929 acf43c95-373e-0410-b603-e72c3f656dc1
2014-12-18 15:11:42 +00:00
paulc 95419fbe8b Fix tel: URI parsing, try harder to pick SIP REGISTER related information.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5922 acf43c95-373e-0410-b603-e72c3f656dc1
2014-11-06 10:12:26 +00:00
oana a9fa6b1bd0 Add function to the String API for locating the last instance of a substring in a string.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5916 acf43c95-373e-0410-b603-e72c3f656dc1
2014-10-16 12:34:11 +00:00
paulc cef24d27f8 Make sure an ip.v4.addr.ess:port does not get enclosed in square brackets.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5914 acf43c95-373e-0410-b603-e72c3f656dc1
2014-09-18 13:29:42 +00:00
paulc 9d5ead567d Made -DZ the default log timestamping, added -Dn to disable timestamps.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5912 acf43c95-373e-0410-b603-e72c3f656dc1
2014-09-16 12:37:34 +00:00
marian fed9a937c9 Removed unused function.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5899 acf43c95-373e-0410-b603-e72c3f656dc1
2014-08-05 10:44:33 +00:00
marian 8e9fcd275b Removed unused functions. Silenced unused variable warning.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5897 acf43c95-373e-0410-b603-e72c3f656dc1
2014-08-05 07:58:03 +00:00
paulc 7efd3b0747 Store TTL in retrieved DNS records.
Add ttl, order and preference to JS returned NAPTR and SRV records.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5889 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-31 13:32:54 +00:00
paulc 08fe54e27a Added YIGNORE macro to silence compiler warnings about unused values.
Cleaned up a number of compiler warnings.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5888 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-31 12:13:52 +00:00
paulc 5c8eb9a26c Allow forcibly closing existing audio device to allow opening a new one.
Fixes audio failure when answering calls on Linux.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5879 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-25 13:19:19 +00:00
marian 9f64efa7ad Added A6 (AAAA) resolver availability check. Windows: fixed AAAA DNS query data retrieval and DNS query function call for TXT type.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5877 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-22 14:55:03 +00:00
paulc ad8e1fa56c Added Resolver support for A, AAAA and TXT records.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5874 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-22 11:03:38 +00:00
paulc 05a21a1d34 Moved XML classes to the main library.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5864 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-04 15:18:11 +00:00
paulc 5578f5ce60 Added hashing support for MimeSdpBody.
Speed up MimeSdpBody::addLine() and made it return the added line.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5860 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-02 07:34:19 +00:00
paulc ce97d09aa4 Made static String::hash() capable of incremental hashing.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5859 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-02 07:30:37 +00:00
oana 55017210ff Bug fix: keep the ObjList autodelete flag when doing ObjList::sort().
git-svn-id: http://yate.null.ro/svn/yate/trunk@5834 acf43c95-373e-0410-b603-e72c3f656dc1
2014-05-19 14:34:42 +00:00
marian 4e88baead9 Disable yiaxchan.yate module load in yate-qt4.conf file. Dispatch an engine.command message to load it when making a call using iax or enabling an iax account.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5832 acf43c95-373e-0410-b603-e72c3f656dc1
2014-05-15 07:35:33 +00:00
paulc 079333da8b Force a (last) peer ID cache flush when a Channel is disconnected.
This fixes stale "peerid" and "lastpeerid" parameters when a channel is reconnected to another channel that happens to be allocated at the same address in memory.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5816 acf43c95-373e-0410-b603-e72c3f656dc1
2014-04-04 09:14:04 +00:00
paulc 7892b8f590 Made Base64 decoding check for non-zero bits after the last octet, those indicate truncation.
Reduced the Base64 error logging level to INFO, it returns the error to caller anyway.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5814 acf43c95-373e-0410-b603-e72c3f656dc1
2014-04-02 09:56:09 +00:00
paulc 2207398b6c Fixed base64 line breaking at a length.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5806 acf43c95-373e-0410-b603-e72c3f656dc1
2014-03-26 10:05:03 +00:00
paulc 63bd81f41e Force a counter switch when initializing a plugin so its threads inherit the proper counter.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5786 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-24 13:40:55 +00:00
paulc ed9f8d7707 Added separate object counter for worker threads.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5784 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-24 12:46:39 +00:00
paulc 11a07cc613 Added object counter for main engine thread.
Fixed counter allocation reentrancy problem.


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


git-svn-id: http://yate.null.ro/svn/yate/trunk@5778 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-13 10:54:00 +00:00
marian 7ca4a946aa Fixed bug: don't clear jabber account/proto when validating calls.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5763 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-10 08:51:22 +00:00
paulc 37a72e4bc1 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://yate.null.ro/svn/yate/trunk@5755 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-05 11:42:17 +00:00
paulc 76fdb5ce75 Added support for counting allocated objects for memory leaks troubleshooting.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5752 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-04 16:36:23 +00:00
marian 03b31b7281 Fixed bug: properly retrieve selected contact when handling call action from address book.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5751 acf43c95-373e-0410-b603-e72c3f656dc1
2014-01-31 13:07:37 +00:00
paulc 7e400d3697 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://yate.null.ro/svn/yate/trunk@5704 acf43c95-373e-0410-b603-e72c3f656dc1
2014-01-07 16:08:37 +00:00
paulc fabd958b61 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://yate.null.ro/svn/yate/trunk@5703 acf43c95-373e-0410-b603-e72c3f656dc1
2014-01-07 16:08:09 +00:00
paulc 87bdcc5798 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://yate.null.ro/svn/yate/trunk@5702 acf43c95-373e-0410-b603-e72c3f656dc1
2014-01-07 16:07:34 +00:00
oana 14b1d0bb07 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://yate.null.ro/svn/yate/trunk@5689 acf43c95-373e-0410-b603-e72c3f656dc1
2013-11-18 11:08:30 +00:00
oana 46e3c529f9 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://yate.null.ro/svn/yate/trunk@5683 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-29 12:04:03 +00:00
marian 64a9290dc9 Ignore selected account and protocol when called target contains '/'. Ignore selected account if called target contains '@' or ':'.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5669 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-18 15:14:33 +00:00
marian fd0c7a9d2b 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://yate.null.ro/svn/yate/trunk@5666 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-11 12:46:20 +00:00
marian 344786285c Add call to history even if caller party number is empty.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5661 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-08 09:21:57 +00:00
paulc e266092edd Properly set DSCP on IPv6 sockets.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5660 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-06 18:27:48 +00:00
paulc 7711fef5b7 Added support in Socket and RTP module for setting IP QoS by DSCP keywords.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5659 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-03 16:18:41 +00:00
marian 07b04627c5 Added extra parameter to NamedList::copySubParams() used when wanting to replace existing parameters instead of adding a new one.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5658 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-03 12:42:20 +00:00
marian ac29008a7b Added methods used to fill a binary IP address buffer from stringified address.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5657 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-01 13:15:30 +00:00
marian e27a590ebb Added IPv6 support to SocketAddr and Socket classes.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5656 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-30 13:15:59 +00:00
paulc 5c62b9e049 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://yate.null.ro/svn/yate/trunk@5651 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-13 12:43:20 +00:00
paulc aeb005c54e Handle the "control" command in engine like rmanager does.
This allows other modules to easily perform control operations.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5641 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-06 11:07:39 +00:00