Commit Graph

5500 Commits

Author SHA1 Message Date
marian ab173307a5 Removed not exisintg debug enabler variable from debug message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5471 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-18 10:32:17 +00:00
paulc cbdaee13e9 Fixed a conversion on 32 bit platforms.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5470 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-17 15:55:24 +00:00
paulc 1cd5d7fccd Fixed the constructors and get... methods of Javascript Date object.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5469 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-17 15:42:40 +00:00
paulc 382229baaf Added method for retrieving the current timezone offset from UTC.
Added possibility to return day of week from Time::toDateTime()


git-svn-id: http://yate.null.ro/svn/yate/trunk@5468 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-17 15:38:44 +00:00
paulc b992373d2d Added support for inserting separators in log timestamps.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5467 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-17 15:26:03 +00:00
paulc 5ce62d0ec9 Apply only strictly positive driver default timeouts.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5466 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-15 12:46:48 +00:00
paulc 6f028c32cb Added method to set the debug name of Javascript instances.
Implemented reentrant operation mode for JS Message.dispatch()


git-svn-id: http://yate.null.ro/svn/yate/trunk@5465 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 15:18:50 +00:00
oana ad310cfdea Added class ParsePoint for keeping a context while parsing code.
Changed the Javascript parser to use this object.
This patch fixes issues with incorrect parsing of imbricated if... else/if {} else {} or any of the combinations including a if else construct.



git-svn-id: http://yate.null.ro/svn/yate/trunk@5464 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 15:07:19 +00:00
marian 5a3356066b Fixed bug: use driver mutex to reset session user data pointer.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5463 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 15:00:31 +00:00
marian d726e461db Added method used to compact (remove empty objects) an ObjList.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5462 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 14:43:58 +00:00
marian 5476d7c66b Added HashList method used to find an object by pointer and hash.
A list iterator built from HashList stores object hashes and use them when needed.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5461 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 14:42:29 +00:00
paulc 9caa5f851c Strip trailing spaces from unquoted URI description.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5460 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 14:19:09 +00:00
paulc f7a4d84afb Pick the SVN revision from the "svn info" if possible.
Get the SVN revision from the correct path when building out of source directory.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5459 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 14:17:59 +00:00
paulc d5a5d0f8f3 Fixed several race conditions in message post-dispatch hooks and extmodule watchers.
Engine status now reports the number of post-dispatch hooks installed.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5458 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 14:17:31 +00:00
andrei dffa68a0c1 Added support for timeouts and interval in JavaScript.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5457 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 14:00:39 +00:00
andrei fe4f9e7a18 Added MessageQueue support in JavaScript.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5456 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:56:00 +00:00
andrei ef6d1f89ae Added MessageHook and MessageQueue classes.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5455 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:54:55 +00:00
paulc c704ff9ace Removed leftover call parameter.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5454 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:35:51 +00:00
paulc 11b90dae77 Added support (default enabled) to run generic SIP messages in their own thread.
Fixed the raw text body encoding.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5453 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:34:50 +00:00
paulc 326a3d43d4 Added some more SIP errors from recent standards.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5452 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:33:49 +00:00
paulc bd5f61a24d Added Javascript pseudo-method toString() for base conversion.
Fixed stack alignment in JS parseInt()


git-svn-id: http://yate.null.ro/svn/yate/trunk@5451 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:32:48 +00:00
oana 74e91f9598 Bug fix for printing on output generated code. Also display label indexes when dumping the code.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5450 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:29:19 +00:00
paulc 3b49b78ecb Added a shared static list of Atom strings and an YATOM macro.
This speeds up signifficantly the Yate RTTI on compilers that HAVE_BLOCK_RETURN.
Made the String comparison operator inline to shave off a few cycles.
Fast handle the comparison in identity case.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5449 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:19:14 +00:00
paulc a9ce3a4256 Added subcommand to allow sniffing the engine.timer message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5448 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:58:54 +00:00
paulc 53e27dafbd No longer compile out message performance checking, it can be fully disabled at runtime.
Fixed the display of message performance warning and made it similar to sniffer.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5447 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:58:04 +00:00
paulc 1c83cdffbc Added a jump entries table to speed up Javascript function calls.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5446 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:56:45 +00:00
paulc 53b28b870a Added static method to set or retrieve the tracker name in JS handlers.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5445 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:55:51 +00:00
paulc 2f19c830c2 Store ExpOperations in JsObjects so the value type is preserved.
Automatically convert database results to numbers if possible.
Added faster method ExpOperation::typeOf()


git-svn-id: http://yate.null.ro/svn/yate/trunk@5444 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:54:30 +00:00
paulc d6476113c5 Allow specifying a filter for Javascript message handlers.
Mask message handlers early enough to avoid trace file races at shutdown.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5443 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:53:10 +00:00
paulc e08e529ecf Allow specifying the encoding for binary MIME bodies in SIP.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5442 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:51:38 +00:00
marian f59e58fd99 Overwrite existing file if requested.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5441 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:50:15 +00:00
paulc cabeade94e Made the SIP "expires" parameter available in user.auth message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5440 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:48:52 +00:00
paulc b3c4c0c694 Added support for tracing Javascript execution in KCacheGrind format.
Fixed line counting for a possible keyword or identifier at end of line.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5439 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:46:21 +00:00
paulc ea2a3db828 Skip over target label of jump in unlinked JS code.
This makes the instructions behave the same as in linked code.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5438 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:43:27 +00:00
paulc 3854ec61c2 Allow manually evaluating JS expressions in a specific context.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5437 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:41:47 +00:00
oana 70be0d0fdd Optimized String::msgEscape() and String::msgUnescape() functions.
Added String::append(const char* value, int len) function to the API.
Inlined String::operator+=(const char* value) to use the new String::append() API function.



git-svn-id: http://yate.null.ro/svn/yate/trunk@5436 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:39:04 +00:00
oana aa37371c12 Reset valgrind statistics after the first initialization of the modules.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5435 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:19:04 +00:00
oana 3d75d22828 Added functions unprefixedTag(), getTag(), removeAttribute() and clearChildren() to the Javascript XML API.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5434 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:08:13 +00:00
marian f916e52556 Create file path if requested.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5433 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 11:05:24 +00:00
marian 4249bd40d0 Don't remove file path when starting a file transfer path.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5432 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 10:16:45 +00:00
marian 3cddebbc9e Allow a different file name to be sent to remote party when directing a call from file transfer module.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5431 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-11 13:34:18 +00:00
paulc 423eaa30e5 Fixed a few copy/paste errors that inserted a terminal space.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5430 acf43c95-373e-0410-b603-e72c3f656dc1
2013-03-28 17:03:58 +00:00
paulc e61e44d334 Added remaining errors for MAPv3 UMTS V9.4.0
Constified a few error related parameter tables.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5429 acf43c95-373e-0410-b603-e72c3f656dc1
2013-03-28 17:00:45 +00:00
marian 45304e7301 Added method used to change an XMLElement's unprefixed tag.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5428 acf43c95-373e-0410-b603-e72c3f656dc1
2013-03-27 15:31:34 +00:00
oana aec8ccf79d Add new MIB and configuratin for support of SNMP upTime and runId requests.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5427 acf43c95-373e-0410-b603-e72c3f656dc1
2013-03-22 09:29:10 +00:00
oana 184af21299 Added support for obtaining YATE's uptime and run ID through SNMP requests.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5426 acf43c95-373e-0410-b603-e72c3f656dc1
2013-03-21 16:36:09 +00:00
oana ed310dafa3 Properly check for attributes according to component type when encoding a component.
Warn when mandatory parameters are missing.



git-svn-id: http://yate.null.ro/svn/yate/trunk@5425 acf43c95-373e-0410-b603-e72c3f656dc1
2013-03-21 12:42:01 +00:00
oana f3a7c8f061 Warn about failing to encode hexified string.
Do not encode the element into the ASN.1 payload if the encoding of the hexified string fails.



git-svn-id: http://yate.null.ro/svn/yate/trunk@5424 acf43c95-373e-0410-b603-e72c3f656dc1
2013-03-21 12:36:15 +00:00
paulc 210494aa15 Keep the external receiver referenced while processing a watched message.
This avoids a race condition leading to segfault.
Idle instead of yielding while waiting for a socket to absorb data.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5423 acf43c95-373e-0410-b603-e72c3f656dc1
2013-03-20 14:54:42 +00:00
paulc d7207f680e Compute and report the Call Attempts Per Second in the callgen module.
Do not apply minlife if higher than maxlife parameter.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5422 acf43c95-373e-0410-b603-e72c3f656dc1
2013-03-19 13:56:04 +00:00