Commit Graph

3005 Commits

Author SHA1 Message Date
paulc de29658a7a Fixed handling of a full read buffer containing one or more processable lines.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6344 acf43c95-373e-0410-b603-e72c3f656dc1
2019-02-06 13:36:08 +00:00
paulc c010ee9cf7 Added ^F and ^B to move one page forward / backward.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6343 acf43c95-373e-0410-b603-e72c3f656dc1
2019-01-28 10:50:42 +00:00
marian 279f2ae6fe Fixed TokenDict arrays not ending with token and value set to 0.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6342 acf43c95-373e-0410-b603-e72c3f656dc1
2019-01-18 09:46:21 +00:00
marian 72f8657188 Added Channel parameters list to be set in all Channel messages. Update it from routing and chan.control.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6339 acf43c95-373e-0410-b603-e72c3f656dc1
2019-01-14 09:54:04 +00:00
paulc 671478a79a Retrieve P-Asserted-Identity parameters even if privacy is disabled.
Added support for extra URI parameters in P-A-I as "asserted_params".


git-svn-id: http://yate.null.ro/svn/yate/trunk@6337 acf43c95-373e-0410-b603-e72c3f656dc1
2018-12-30 12:05:13 +00:00
paulc 1624922ffc Added File methods to read and write file content from Javascript.
Fixed a memory leak in some cases of File.mkdir().


git-svn-id: http://yate.null.ro/svn/yate/trunk@6336 acf43c95-373e-0410-b603-e72c3f656dc1
2018-12-11 16:57:32 +00:00
paulc 3bbef56bcc Populate P-Asserted-Identity when the "privacy" parameter is set explicitly to false.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6335 acf43c95-373e-0410-b603-e72c3f656dc1
2018-12-04 11:30:03 +00:00
sabina a8b16c13f6 Updated files to Rev. 6330.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6334 acf43c95-373e-0410-b603-e72c3f656dc1
2018-12-04 10:06:04 +00:00
sabina b99ed53a8b Update name from wiresniff to yatewiresniff.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6333 acf43c95-373e-0410-b603-e72c3f656dc1
2018-11-28 10:13:05 +00:00
sabina 220ab39310 Added files for wiresniff module. Identical to Rev. 2213
git-svn-id: http://yate.null.ro/svn/yate/trunk@6331 acf43c95-373e-0410-b603-e72c3f656dc1
2018-11-27 12:57:17 +00:00
paulc c5b6e8ae77 Added support for allowing extra commands in restricted user mode.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6329 acf43c95-373e-0410-b603-e72c3f656dc1
2018-11-20 13:07:33 +00:00
marian fbd39c5c20 Make sure debugger output is enabled if debug is enabled when connection starts. Fixes suppressed output: yate is started daemonified with no log file.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6327 acf43c95-373e-0410-b603-e72c3f656dc1
2018-11-13 14:00:19 +00:00
marian 06eabcb03f Removed account lock during query: this was preventing running multiple queries at a time.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6326 acf43c95-373e-0410-b603-e72c3f656dc1
2018-10-25 11:21:09 +00:00
marian 5e965dd90f Use a timed lock (if answer timeout is set) when serializing message send to script. Don't send the message to script if failed to lock for configured timeout.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6325 acf43c95-373e-0410-b603-e72c3f656dc1
2018-10-01 11:31:59 +00:00
marian 8cc62785aa Outgoing call: initialize dialog's sequence generator and set it in first generated request to avoid CSeq mismatch if challenged.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6324 acf43c95-373e-0410-b603-e72c3f656dc1
2018-09-17 15:04:38 +00:00
marian 9413305495 Added SIPS URI support.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6321 acf43c95-373e-0410-b603-e72c3f656dc1
2018-07-06 09:37:17 +00:00
paulc 2130ea0404 Added support for following forked transactions' 1xx provisional messages.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6318 acf43c95-373e-0410-b603-e72c3f656dc1
2018-07-03 12:19:25 +00:00
oana ff8d653feb Moved methods to the JS library that stringify objects to JSON format.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6317 acf43c95-373e-0410-b603-e72c3f656dc1
2018-06-15 13:39:48 +00:00
paulc c37095e695 Detect and deal with some OpenSSL 1.1.0 deprecations.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6316 acf43c95-373e-0410-b603-e72c3f656dc1
2018-06-11 11:33:06 +00:00
marian 26be68ef18 Fixed bug: properly destroy (deref) udp listener when removed from config file.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6312 acf43c95-373e-0410-b603-e72c3f656dc1
2018-04-23 09:31:16 +00:00
marian 243909bd44 Added saveFile() and loadFile() to javascript XML.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6311 acf43c95-373e-0410-b603-e72c3f656dc1
2018-04-12 12:44:38 +00:00
marian fd04da7b91 Fixed bug: avoid infinite loop when stringifying an array with holes (index is missing). Put null for missing indexes.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6308 acf43c95-373e-0410-b603-e72c3f656dc1
2018-04-11 12:00:37 +00:00
marian 086a25e1f6 Added replaceParams() function to JSON.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6307 acf43c95-373e-0410-b603-e72c3f656dc1
2018-04-10 12:16:20 +00:00
marian 4a3740daf9 XML element replaceParams() is now available in javascript.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6306 acf43c95-373e-0410-b603-e72c3f656dc1
2018-04-10 11:08:25 +00:00
paulc 49de800994 Fixed unescaping of handler filter parameters.
This allows filter name or value to contain characters like : or %.
Patch provided by Vasily i. Redkin.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6303 acf43c95-373e-0410-b603-e72c3f656dc1
2018-03-21 13:31:09 +00:00
marian 698b55da64 Fixed vendor value build from individual octets: avoid generating wrong values when octets are promoted to int.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6302 acf43c95-373e-0410-b603-e72c3f656dc1
2018-03-13 13:07:51 +00:00
marian 8b17aa8edb Engine::init() is now available in javascript.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6300 acf43c95-373e-0410-b603-e72c3f656dc1
2018-03-12 14:10:45 +00:00
paulc 1dc8d69a8e Added a helper class SocketRef and use it instead of all ad-hoc similar classes.
Fixed a memory leak in Jabber SSL listeners.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6299 acf43c95-373e-0410-b603-e72c3f656dc1
2018-02-20 11:58:02 +00:00
oana 65bc140298 Add method to clear parameter(s) to JS Message API.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6298 acf43c95-373e-0410-b603-e72c3f656dc1
2018-02-12 14:42:45 +00:00
oana e6a765dc35 Allow using JS Message object for Engine.replaceParams() implementation.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6297 acf43c95-373e-0410-b603-e72c3f656dc1
2018-02-12 12:07:25 +00:00
paulc a77fbc77bb Fixed SCTP validity checks for association vs primary peer.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6294 acf43c95-373e-0410-b603-e72c3f656dc1
2018-01-25 14:29:16 +00:00
paulc 03482ea3a5 Correctly handle a non-block rule on the same line as the closing brace of a block.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6293 acf43c95-373e-0410-b603-e72c3f656dc1
2018-01-12 17:07:40 +00:00
paulc accb50a103 Fixed misleading indentation.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6292 acf43c95-373e-0410-b603-e72c3f656dc1
2018-01-10 12:18:58 +00:00
paulc 809f127c54 Fixed OpenSSL build on newer versions lacking AES_ctr128_encrypt.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6290 acf43c95-373e-0410-b603-e72c3f656dc1
2018-01-09 12:28:41 +00:00
paulc a2501fae5f Fixed new match after end of previous block with no spaces in between.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6289 acf43c95-373e-0410-b603-e72c3f656dc1
2018-01-05 12:20:26 +00:00
paulc 74d08d409a Added support for late SDP in ACK for reINVITE transactions.
Allow SDP forwarding when the media address is 0.0.0.0 or :: (muted).


git-svn-id: http://yate.null.ro/svn/yate/trunk@6287 acf43c95-373e-0410-b603-e72c3f656dc1
2017-12-18 15:48:17 +00:00
paulc 500e2633b5 Add a Retry-After header to the 503 generated in case of Engine congestion.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6286 acf43c95-373e-0410-b603-e72c3f656dc1
2017-12-14 14:02:51 +00:00
paulc f41bc9e38b Honor sdp_forward setting after receiving 18x/2xx with SDP for an INVITE without SDP.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6285 acf43c95-373e-0410-b603-e72c3f656dc1
2017-12-14 13:45:10 +00:00
oana be0ce880da Add DNS.dscp() method to validate given DSCP values from Javascript.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6281 acf43c95-373e-0410-b603-e72c3f656dc1
2017-11-17 15:57:31 +00:00
paulc a730efa009 Added support for sending call with SDP in ACK instead of INVITE in proxy and RTP forward modes.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6280 acf43c95-373e-0410-b603-e72c3f656dc1
2017-11-16 18:11:05 +00:00
paulc 03a41bb9ee Allow encoding all variation of A-F address digits in ISUP, SCCP, MAP/CAMEL.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6277 acf43c95-373e-0410-b603-e72c3f656dc1
2017-11-01 16:59:05 +00:00
paulc fc2ea0387b Added parsing of diversion counter.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6276 acf43c95-373e-0410-b603-e72c3f656dc1
2017-11-01 16:38:38 +00:00
paulc 78c93b5462 Added support for recursively dispatching a handled message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6275 acf43c95-373e-0410-b603-e72c3f656dc1
2017-11-01 16:37:48 +00:00
marian 8605cffeb6 Fixed bug: update udp party local address when transport binds for valid lines (transport was not valid when line was created).
git-svn-id: http://yate.null.ro/svn/yate/trunk@6272 acf43c95-373e-0410-b603-e72c3f656dc1
2017-10-06 09:11:32 +00:00
paulc d9cf33f16c Added mapping for reason "moved".
git-svn-id: http://yate.null.ro/svn/yate/trunk@6271 acf43c95-373e-0410-b603-e72c3f656dc1
2017-10-05 16:06:28 +00:00
paulc 671aca54ec Use same filtering rule for accounts status and TAB completion as for login/logout.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6270 acf43c95-373e-0410-b603-e72c3f656dc1
2017-10-02 12:02:38 +00:00
oana ffd790e56b Add count() method to Javascript implementation of HashList.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6269 acf43c95-373e-0410-b603-e72c3f656dc1
2017-09-29 14:52:33 +00:00
marian 19b8dc9fe4 Fixed bug: avoid dumping ExpFunction when JSON stringifying an object.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6267 acf43c95-373e-0410-b603-e72c3f656dc1
2017-09-19 13:56:24 +00:00
paulc 7497ff0d05 Don't attempt to DNS resolve empty, null or undefined names.
Added helper functions to check if an operator is missing or empty.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6266 acf43c95-373e-0410-b603-e72c3f656dc1
2017-09-18 13:03:30 +00:00
paulc d60c0d2b34 Added support for basic processing of China and Japan ISUP versions in SIP-T.
National specific messages are not decoded, just ITU compatibility.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6265 acf43c95-373e-0410-b603-e72c3f656dc1
2017-09-18 12:18:46 +00:00
oana 6f58478394 Added support for a native implementation of a Javascript HashList.
When generating iterator for JsObjects avoid checking that were not setting duplicates in the iterator. JsObject does not allow setting duplicates.



git-svn-id: http://yate.null.ro/svn/yate/trunk@6264 acf43c95-373e-0410-b603-e72c3f656dc1
2017-09-18 12:14:44 +00:00
paulc e2060c65fe Workaround for a race to watch a message result while its ExtModReceiver is being destroyed.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6263 acf43c95-373e-0410-b603-e72c3f656dc1
2017-09-13 14:55:58 +00:00
paulc 27de15bc48 Fixed compile time bugs and warnings exposed by Visual Studio.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6256 acf43c95-373e-0410-b603-e72c3f656dc1
2017-09-07 15:29:32 +00:00
paulc fb2d0ba3ae Allow rmanager output to be turned off even if debug is on but preserve ^O cycling logic.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6254 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-11 15:37:12 +00:00
paulc 3ec99ceac1 Removed useless undefined method.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6253 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-10 08:28:22 +00:00
andrei d557427582 BugFix. Clear JsContext parameters before destructor is reached.
Clear ScriptRun stack and async tasks, before destroying the script context.
Fixed JsSemaphore prototype.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6252 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-02 13:48:40 +00:00
marian 0025edce41 Reset endpoint pointer when terminated to avoid using it.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6251 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-02 07:51:02 +00:00
paulc c4c9e994f0 Renamed DebugGoOn to DebugCrit so it better matches its purpose.
Swapped order of DebugCall and DebugNote so DebugCall is less visible.
Changed default debug level to DebugNote.
Modified a few inadequate uses of DebugCrit.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6250 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-01 13:08:23 +00:00
paulc 7d4da59ace Added handling of SCTP states PF and UNCONFIRMED if supported by the library.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6249 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-01 12:36:57 +00:00
andrei 255bd0161a Added support for Semaphore in JS.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6248 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-01 06:20:58 +00:00
marian 754e0561fa Added configurable param (disabled by default) used to enable LMS chip autocal on device power on.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6247 acf43c95-373e-0410-b603-e72c3f656dc1
2017-07-31 13:59:46 +00:00
marian 31e5fa31e6 Chain tcap user enabler in plugin.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6246 acf43c95-373e-0410-b603-e72c3f656dc1
2017-07-06 07:53:25 +00:00
marian 2f247efea3 Disable frequency offset calibration on fatal error.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6245 acf43c95-373e-0410-b603-e72c3f656dc1
2017-07-03 11:03:26 +00:00
marian 3480211959 Added capability to configure buffered samples based on required sampling rate.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6244 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-28 14:01:26 +00:00
marian 554869663b Fixed error reporting. Fixed some returned codes. Added config params documentation.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6243 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-27 11:40:01 +00:00
marian c8c680e8bc Add device speed parameter to notification messages.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6241 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-23 08:44:27 +00:00
marian 3f4284b829 Fixed bug: copy radio params to radio.create message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6240 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-23 08:43:26 +00:00
marian d14f741ce3 Added configurable params for max supported samplig rate on super/high interface. Return HW not available code when no device is found.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6239 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-22 14:02:38 +00:00
marian 74af6b10ac Added recv thread priority config. Improved stats report.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6237 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-22 13:19:36 +00:00
marian eed4b72288 Documented calibration debug parameters. Improved debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6236 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-21 13:38:26 +00:00
marian 2b8c37f988 Fixed bug: fill last chunk also when repeating a built vector (pattern) in destination.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6235 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-20 12:44:07 +00:00
marian af6df24a06 Fixed bug: properly handle calculated result's index when calibrating using a single rx loop.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6234 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-20 11:24:53 +00:00
marian 5a9d41e180 Yield before sending data.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6233 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-20 11:22:50 +00:00
marian 118e2f8e32 Fixed bug: properly select PA (transmit) if enabled during loopback.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6232 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-20 09:15:48 +00:00
marian 13abda5438 Fixed bug: use the same config when running second baseband calibration. Improved debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6231 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-20 07:45:44 +00:00
marian 79afeb1178 Automatic remote party change can now be configured per channel from routing. A remote party (transport) can now be configured for an incoming call from pre-routing. Ignore VIA can now be configured per listener.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6230 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-14 09:14:20 +00:00
paulc 515d38fdbc Added possibility to stop and restart specific external instances.
Added line completion for external command arguments.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6228 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-07 12:04:18 +00:00
paulc 700acb8d1a Fixed limitations and bugs exposed by addition of prompt option.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6227 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-05 15:35:39 +00:00
paulc 9e5c186299 Added support for setting "debug level N+" or "debug level N-"
git-svn-id: http://yate.null.ro/svn/yate/trunk@6226 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-05 12:33:38 +00:00
paulc 436f772758 Added support for configuring an interactive mode prompt.
Added configuration setting for initial value of remote echo.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6225 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-05 11:37:44 +00:00
paulc 29d5a82541 Added support for supressing connection logging per listener.
Added support for customizing or disabling goodbye text.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6224 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-05 09:03:34 +00:00
marian 33921b778b Added capability to set amr 'fmtp' parameters in SDP session: set them in each offer when rtp forward is not enabled.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6223 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-24 14:36:56 +00:00
marian ae263df105 Don't handle CMR 15 (no mode change) as new CMR.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6220 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-22 14:03:49 +00:00
oana 9e8a1602c1 Added Message.copyParams() method to Javascript support.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6219 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-22 12:37:22 +00:00
paulc 0ae34db874 Fixed a deadlock when rmanager was trying to report an error about its own connection.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6218 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-17 10:01:47 +00:00
marian 9f164a78e6 The number of buffers to use with libusb is now configurable. Use MMX if available to scale and saturate sent samples.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6216 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-09 12:41:41 +00:00
oana 828911a1d7 Do not attempt to build an JS XML object from another object when the expected parameter should be a string.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6215 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-08 09:04:33 +00:00
oana 23b9e4a09c Build JS Message objects with properly set prototypes.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6214 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-08 09:03:05 +00:00
andrei 42d5ab7c01 Fixed deadlock while destroying JsEngineWorker.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6212 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-03 08:39:48 +00:00
andrei f44fef8bfc Added option to get the age of a message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6211 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-27 12:30:45 +00:00
paulc d836aca12b Added JS Engine method to retrieve exiting state from a script.
Moved engine.halt handler that unloads global JS scripts to priority 120.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6210 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-27 10:31:07 +00:00
oana f180ed599d Extend JS Message constructor to copy parameters from a given object.
Fix function that was copying properties to message to not copy objects, null or undefined.



git-svn-id: http://yate.null.ro/svn/yate/trunk@6209 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-26 15:53:15 +00:00
andrei 511a5d36ca Fixed deadlock at JS script instance destruction.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6208 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-26 10:40:04 +00:00
paulc 54e9ebf2e5 Added support for using JS method msgTime(newTime) to alter creation time of a message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6207 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-21 14:06:16 +00:00
marian b96fb5f6d8 Simplified help handling.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6206 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-21 09:59:15 +00:00
marian 850915a27a Added sip command used to drop a tcp/tls transport.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6205 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-19 12:48:55 +00:00
marian 4a5f653677 Stop frequency offset calibration when frequency offset is set by command after TX RF is enabled.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6200 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-03 12:54:34 +00:00
marian 9fb6af146e Put a debug message when starting specific calibration type.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6198 acf43c95-373e-0410-b603-e72c3f656dc1
2017-03-30 14:39:09 +00:00
marian 86899f4b31 Fixed calibration: use the same sampling rate and filter bw when calibrating. Renamed device check to loopback check. Improved debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6197 acf43c95-373e-0410-b603-e72c3f656dc1
2017-03-29 14:28:54 +00:00
marian 5ba976cbe1 Set broadcast for module.update sent to notify device events.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6196 acf43c95-373e-0410-b603-e72c3f656dc1
2017-03-29 08:24:52 +00:00
marian c7debdb6b0 Check register interval before authentication: avoid useless auth for interval too brief.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6195 acf43c95-373e-0410-b603-e72c3f656dc1
2017-03-29 08:18:06 +00:00
marian cddb6bc2e8 Moved radiotest module to modules/radio.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6193 acf43c95-373e-0410-b603-e72c3f656dc1
2017-03-22 09:11:01 +00:00
paulc ec09d51bfd Added setting for new CDR file permissions, defaults to 0640.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6192 acf43c95-373e-0410-b603-e72c3f656dc1
2017-03-15 11:09:41 +00:00
paulc a899f5516e Pick default remote host:port from rURI so that connection_id gets applied.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6191 acf43c95-373e-0410-b603-e72c3f656dc1
2017-02-27 16:14:26 +00:00
paulc bcdf0ab849 Use separate mutexes to protect the owner CallEndpoint pointer since using DataEndpoint::commonMutex() from the data threads can lead to deadlocks.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6188 acf43c95-373e-0410-b603-e72c3f656dc1
2017-02-22 11:19:08 +00:00
oana 53f5d5b1bf Unescape status values that might escaped characters (like ';', ',' or '|').
git-svn-id: http://yate.null.ro/svn/yate/trunk@6185 acf43c95-373e-0410-b603-e72c3f656dc1
2017-02-17 09:52:39 +00:00
paulc cdba9c103b Added method for URI escaping an entire list of characters.
Escape status detail characters that may disturb status parsing.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6184 acf43c95-373e-0410-b603-e72c3f656dc1
2017-02-16 11:24:25 +00:00
marian 8496611412 Added extra check for valid tunning frequency. Improved debug. Documented missing config param.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6183 acf43c95-373e-0410-b603-e72c3f656dc1
2017-02-13 12:20:54 +00:00
marian 2e99965357 Added capability to open a device specified by serial number. Fixed debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6182 acf43c95-373e-0410-b603-e72c3f656dc1
2017-02-10 15:22:51 +00:00
paulc 9fc75b7437 Added support for RFC3325 P-Asserted-Identity and Privacy: id.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6181 acf43c95-373e-0410-b603-e72c3f656dc1
2017-02-02 12:51:47 +00:00
paulc c67312d159 Added extra checks for race conditions where CallEndpoint::setEndpoint() may fail.
Added convenience static RefObject::alive() method to check a RefObject pointer.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6177 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-27 11:25:29 +00:00
paulc e43033d137 Added option to return a data sniffer safe and referenced.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6175 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-26 15:32:39 +00:00
paulc 0ce48000ee Keep the JS global object locked while cleaning up its attributes.
This fixes a race condition crash in scripts destruction.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6174 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-24 18:53:16 +00:00
paulc 887e0cd860 Fixed a JS deadlock caused by uninstalling a message handler from itself (even indirectly).
This required exposing some internal methods of MessageHandler.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6173 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-23 19:53:55 +00:00
marian 66a3221ba0 Added support to notify device power on/off. Notify calibration termination also (put calibration parameters on success). Load calibration related parameters if returned in power on notification message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6172 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-20 15:56:58 +00:00
marian f660820775 Added support to configure a test from handled message. Added support for test to emit a notification message when terminated.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6171 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-20 15:43:27 +00:00
paulc c088d3ef2e Added methods getParam and setParam to Javascript Message object.
These allow manipulating parameters whose name clashes with a method.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6170 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-20 15:16:19 +00:00
paulc cfccac463c Added Engine methods for retrieving uptime from Javascript.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6169 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-20 13:28:58 +00:00
marian 7eacae6f17 Fixed bug: removed semicolon after 'if' test. Fixed some debug format specifiers.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6168 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-20 11:45:16 +00:00
marian 0bccdd4c92 Moved static data member init outside class declaration.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6167 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-20 11:39:52 +00:00
marian 4f7e82db4e Fixed data member type.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6166 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-20 11:24:45 +00:00
paulc 01ab5f4b5d Added $(message,retval) function, retval and noop targets.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6165 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-17 15:47:54 +00:00
marian 3a18112a7f Frequency offset calibration by Razvan Varlan.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6164 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-12 14:56:58 +00:00
paulc e5a8a16f1d Added setting to automatically enter congested mode over a queue size threshold.
Added access to Engine's call accept state from Javascript and regexroute.
Optimized MessageDispatcher::messageCount() using the enqueue / dequeue counters.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6163 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-09 15:04:04 +00:00
oana 21e76fd932 Export message queues statistic data via SNMP.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6160 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-03 14:51:13 +00:00
paulc 570a1cbe23 Added support for the Home and End keys in paged commands.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6155 acf43c95-373e-0410-b603-e72c3f656dc1
2016-12-05 21:46:02 +00:00
marian 63ca635f93 Use float instead of integer for frequency offset value.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6154 acf43c95-373e-0410-b603-e72c3f656dc1
2016-12-05 08:26:43 +00:00
paulc bed671aa32 Set the initial CMR to the desired AMR mode.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6153 acf43c95-373e-0410-b603-e72c3f656dc1
2016-11-25 19:00:56 +00:00
paulc 09ff4188b9 Added support for setting AMR and other codecs' parameters in SDP.
Build and package separately the AMR-NB and GSM-EFR codecs.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6151 acf43c95-373e-0410-b603-e72c3f656dc1
2016-11-25 15:45:34 +00:00
paulc 0b184401a3 Added handling of CDR operation "status" in the register module.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6150 acf43c95-373e-0410-b603-e72c3f656dc1
2016-11-15 16:44:44 +00:00
paulc 479cba85a4 Interpret call.cdr operation=update as an interim accounting.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6149 acf43c95-373e-0410-b603-e72c3f656dc1
2016-11-09 14:17:21 +00:00
marian bbcc577aa4 Fixed bug: avoid deadlock (ddebug build only).
git-svn-id: http://yate.null.ro/svn/yate/trunk@6148 acf43c95-373e-0410-b603-e72c3f656dc1
2016-11-09 14:07:19 +00:00
paulc 870d7b38b9 Fixed a rather harmless shutdown time memory leak.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6147 acf43c95-373e-0410-b603-e72c3f656dc1
2016-11-07 18:20:07 +00:00
paulc 88fc10abc6 Fixed a memory leak returning data from the SQLite module.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6146 acf43c95-373e-0410-b603-e72c3f656dc1
2016-11-07 17:54:44 +00:00
paulc dde447c2f5 Fixed ExtModReceiver leak when destroyed from cleanup()
git-svn-id: http://yate.null.ro/svn/yate/trunk@6145 acf43c95-373e-0410-b603-e72c3f656dc1
2016-11-07 14:50:07 +00:00
paulc 7951b1fe40 Added debug output target and function to return log style timestamp.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6142 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-27 18:11:51 +00:00
marian c392c31c47 Added option (enabled by default) to simulate tx gain correction in software.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6141 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-27 11:39:56 +00:00
marian edadd2774d Stop delaying messages if engine is exiting.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6140 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-27 11:16:45 +00:00
marian adf3f05900 Fake fpga gain set for TX only. Properly report set value. Improved debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6138 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-20 09:48:09 +00:00
marian 353f7e696d Rollback accidentally commited files in previous commit.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6137 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-15 10:45:40 +00:00
marian 4590f53dc7 Documented tcp idle/keeplive intervals.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6136 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-15 10:35:31 +00:00
marian 20f5ca261b Added separate configurable parameter to outgoing tcp keepalive. Added optional first keepalive interval (for faster first keepalive).
git-svn-id: http://yate.null.ro/svn/yate/trunk@6135 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-15 10:14:14 +00:00
marian 6ca595b59f Force line to emit user.notify when tcp transport is used.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6134 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-14 10:03:36 +00:00
marian 02a214b3d0 Match incoming line by transport when tcp is used.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6132 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-14 07:53:34 +00:00
marian 971ea0f692 Removed activity simulator from the internal send thread: it is eating the processor on higher sampling rates.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6131 acf43c95-373e-0410-b603-e72c3f656dc1
2016-08-19 14:17:55 +00:00
marian 7cd78c58ec Fixed bug in radio test: idle while waiting for interface initialize to complete.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6130 acf43c95-373e-0410-b603-e72c3f656dc1
2016-08-19 13:36:16 +00:00
paulc c3f9659ec9 Fixed compilation of test1 plugin.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6129 acf43c95-373e-0410-b603-e72c3f656dc1
2016-08-18 14:22:28 +00:00
paulc 813bd8fd18 Allow the "earlymedia" parameter to override a missing source and create provisional RTP.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6128 acf43c95-373e-0410-b603-e72c3f656dc1
2016-08-12 12:38:07 +00:00
marian 549739060e Removed checking of rx vga gain (compare requested value with actual value) when changing it in radio interface: the value set in the board is rounded to a multiple of 3.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6126 acf43c95-373e-0410-b603-e72c3f656dc1
2016-07-08 07:58:23 +00:00
marian 96d4c7af10 Calibration fix and amplifier linearization feature (work in progress) by David Burgess.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6125 acf43c95-373e-0410-b603-e72c3f656dc1
2016-07-05 11:22:44 +00:00