Commit Graph

6121 Commits

Author SHA1 Message Date
paulc 5fadec52f2 Added setting to execute account operations on reload.
git-svn-id: http://voip.null.ro/svn/yate@6414 acf43c95-373e-0410-b603-e72c3f656dc1
2020-07-13 14:27:52 +00:00
marian 51b6b1d2f2 Fixed documentation.
git-svn-id: http://voip.null.ro/svn/yate@6413 acf43c95-373e-0410-b603-e72c3f656dc1
2020-07-10 08:20:08 +00:00
marian 80a92b00a2 Copy sip headers for 200 OK sent or received on re-invite.
git-svn-id: http://voip.null.ro/svn/yate@6412 acf43c95-373e-0410-b603-e72c3f656dc1
2020-07-01 12:15:26 +00:00
paulc 22ebf95683 Added support for configuring a larger number of worker threads.
git-svn-id: http://voip.null.ro/svn/yate@6411 acf43c95-373e-0410-b603-e72c3f656dc1
2020-06-26 10:29:53 +00:00
marian 21b9d6a32c Added separate (global) mutex used to protect access to Channel::m_status. Removed unsafe public method used to obtain it. Added methods used to safely obtain a copy of it.
git-svn-id: http://voip.null.ro/svn/yate@6410 acf43c95-373e-0410-b603-e72c3f656dc1
2020-05-29 14:03:35 +00:00
marian 8d6195341d Postpone 'fmtp' and 'gpmd' lines processing until codec name is set. Fixes receiving non standard payload number with fmtp/gpmd line set before corresponding 'rtpmap' line.
git-svn-id: http://voip.null.ro/svn/yate@6409 acf43c95-373e-0410-b603-e72c3f656dc1
2020-05-20 11:19:12 +00:00
marian ee43383e2a Lowered default level for untracked channels debug message.
git-svn-id: http://voip.null.ro/svn/yate@6408 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-24 11:10:50 +00:00
oana 9eb4c14056 Propagate trace_id to user.auth.
git-svn-id: http://voip.null.ro/svn/yate@6407 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-23 11:21:35 +00:00
oana 25422700b2 Add support in SIP, SDP, RTP and CDR build for tracing a call.
git-svn-id: http://voip.null.ro/svn/yate@6406 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-22 14:18:49 +00:00
oana a90f93814c Add support for tracing matching of regexroute rules for a message.
git-svn-id: http://voip.null.ro/svn/yate@6405 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-22 12:45:33 +00:00
oana 7ef83087a6 Add tracing and propagation of trace ID in CallEndpoint and Channel.
git-svn-id: http://voip.null.ro/svn/yate@6404 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-22 12:36:46 +00:00
oana 8209f5614c Add Javascript implementation for trace debug methods.
Add a setTraceId() method in Engine that sets the trace ID in current runner. This then activates internally displaying the trace ID for any Engine.debug/output.alarm call from a script.



git-svn-id: http://voip.null.ro/svn/yate@6403 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-22 12:05:53 +00:00
oana 326e4941d7 Add a trace ID to objects.
Add debugging methods variants that print the trace ID.



git-svn-id: http://voip.null.ro/svn/yate@6402 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-22 12:00:37 +00:00
oana 47908cf938 Add option to stop execution of an outgoing call.
Propagate that parameter in dumb channel, tone generator and wave file.
In SIP, simulate going through the whole SIP stack before stopping execution of the call.



git-svn-id: http://voip.null.ro/svn/yate@6401 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-22 10:59:48 +00:00
paulc 1db8917b18 Added a limit of how many messages can be queued to an external script.
git-svn-id: http://voip.null.ro/svn/yate@6400 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-15 15:39:14 +00:00
paulc f099430479 Added support for checking if a module is loaded.
Added support for configuration conditionals on module loaded.


git-svn-id: http://voip.null.ro/svn/yate@6399 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-15 13:50:14 +00:00
marian 7da6684a2a Make JsURI URI value available: properly call JsObject constructor.
git-svn-id: http://voip.null.ro/svn/yate@6398 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-14 05:58:16 +00:00
oana 700b3b1036 Add Engine methods for retrieving current line of source code being executed, current source file name and the concatenation of both.
Add Message.trace() method for tracking of message handling in JS code.



git-svn-id: http://voip.null.ro/svn/yate@6397 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-01 11:47:55 +00:00
paulc 1fd6d25f05 Added support for retrieving the timezone at any time, not just now.
Fixed the Javascript Date getTimezoneOffset() result.


git-svn-id: http://voip.null.ro/svn/yate@6396 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-01 07:38:14 +00:00
paulc 2eae0b863f Protect and check the MGCP GW address if changing it.
git-svn-id: http://voip.null.ro/svn/yate@6395 acf43c95-373e-0410-b603-e72c3f656dc1
2020-03-31 16:30:56 +00:00
oana a440eab1f5 Add command for generating merged configuration files from rmanager.
git-svn-id: http://voip.null.ro/svn/yate@6394 acf43c95-373e-0410-b603-e72c3f656dc1
2020-03-25 14:34:04 +00:00
marian b7e67edec9 Added capability to disable SDP forward from routing.
git-svn-id: http://voip.null.ro/svn/yate@6393 acf43c95-373e-0410-b603-e72c3f656dc1
2020-03-09 07:15:06 +00:00
paulc d518874ba5 Bumped version to 6.2.1 devel.
git-svn-id: http://voip.null.ro/svn/yate@6392 acf43c95-373e-0410-b603-e72c3f656dc1
2020-03-03 16:47:04 +00:00
paulc fe26be66eb Bumped version to 6.2.0 release.
git-svn-id: http://voip.null.ro/svn/yate@6390 acf43c95-373e-0410-b603-e72c3f656dc1
2020-03-03 15:43:35 +00:00
paulc 4e993705cf Fixed xdebug build of the javascript module.
git-svn-id: http://voip.null.ro/svn/yate@6389 acf43c95-373e-0410-b603-e72c3f656dc1
2020-03-03 14:52:36 +00:00
paulc 1ada2db923 Automatically add a Contact to UPDATE messages too.
git-svn-id: http://voip.null.ro/svn/yate@6388 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-28 15:31:42 +00:00
marian 98bdfee9f5 Handle 'silent' error/reason in reject, disconnect, drop. Silence channel's transaction: process it but send nothing to remote party.
git-svn-id: http://voip.null.ro/svn/yate@6387 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-27 12:11:28 +00:00
paulc af48f5f028 Added an easy way to block a RTP forwarding reINVITE call.update message.
Handle the message (to stop it) but set retValue to "-" or "error".


git-svn-id: http://voip.null.ro/svn/yate@6386 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-26 15:13:39 +00:00
marian 485782c9fa Added configurable option to put all headers received in initial SIP requests in yate message.
git-svn-id: http://voip.null.ro/svn/yate@6385 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-26 13:08:04 +00:00
marian c194371fbd Made URI object and methods available in javascript.
git-svn-id: http://voip.null.ro/svn/yate@6384 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-21 14:41:19 +00:00
marian 633513a2bc Handle RegExp when given in string split delimiter.
git-svn-id: http://voip.null.ro/svn/yate@6383 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-21 14:15:15 +00:00
marian 2775f7bec8 Added String split method using a regular expression to match the delimiter.
git-svn-id: http://voip.null.ro/svn/yate@6382 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-21 14:13:44 +00:00
marian e1857cca07 Improved alarm message put on reading possible truncated packet for udp listener.
git-svn-id: http://voip.null.ro/svn/yate@6381 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-17 06:35:48 +00:00
marian 38015c2c1a Fixed bug: search the whole mappings list when building SDP: current format may be present with different payload.
git-svn-id: http://voip.null.ro/svn/yate@6380 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-14 15:02:18 +00:00
marian 8da8be13ea Extend socket read buffer by 1 to allow reading configured size (maxpkt). Put an alarm when UDP is reading configured maxpkt number of bytes.
git-svn-id: http://voip.null.ro/svn/yate@6379 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-14 10:44:44 +00:00
oana 1d04f8a45f Check commands pointer is valid before using it.
git-svn-id: http://voip.null.ro/svn/yate@6378 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-03 15:04:55 +00:00
paulc 5f1c43af00 Added support for adding extra runtime parameters from main config file or Engine command.
For thread safety reason runtime parameters cannot be deleted or modified.


git-svn-id: http://voip.null.ro/svn/yate@6377 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-01 17:38:17 +00:00
marian dbdc6b6c2e Added separate mutex to protect the scripts list and operations. Avoids locking the module if script parse is taking a long time.
git-svn-id: http://voip.null.ro/svn/yate@6376 acf43c95-373e-0410-b603-e72c3f656dc1
2019-12-19 12:21:42 +00:00
marian 88d48a9b0b Silenced antialising compiler warning related to pointer conversion.
git-svn-id: http://voip.null.ro/svn/yate@6375 acf43c95-373e-0410-b603-e72c3f656dc1
2019-12-11 06:47:59 +00:00
marian 85759c91d4 Fixed parameter name in documentation.
git-svn-id: http://voip.null.ro/svn/yate@6374 acf43c95-373e-0410-b603-e72c3f656dc1
2019-12-11 06:44:18 +00:00
oana 84b8b542e8 Add support for passing arguments to setTimeout/setInterval Engine methods.
git-svn-id: http://voip.null.ro/svn/yate@6373 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-26 11:17:24 +00:00
paulc 9e1e43cd84 Added the Array-like "arguments" variable to called functions.
git-svn-id: http://voip.null.ro/svn/yate@6372 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-25 15:16:46 +00:00
paulc 8ac988d434 Allow overriding from (pre)routing the ENUM domains used.
Added option to continue routing even if ENUM has returned a matching answer.


git-svn-id: http://voip.null.ro/svn/yate@6371 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-18 16:00:19 +00:00
paulc 318c02c51a Added to build and fixed the Wireshark sniffer and the G.722 codec.
git-svn-id: http://voip.null.ro/svn/yate@6370 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-13 13:00:08 +00:00
marian 614e4caf04 Always update dialog uri from Contact header when handling 2xx answer to INVITE. Added option (default: disable) to also change party if autochangeparty is enabled.
git-svn-id: http://voip.null.ro/svn/yate@6369 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-13 11:18:31 +00:00
oana 93677a25be Add global node ID information to the engine.
git-svn-id: http://voip.null.ro/svn/yate@6368 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-13 10:44:03 +00:00
marian ae034713de Avoid dereferencing NULL pointer if failed to build SCCP CREF MSU.
git-svn-id: http://voip.null.ro/svn/yate@6367 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-12 12:14:33 +00:00
oana c168c341a5 Add setters/getters for JSObject fields from various data types.
git-svn-id: http://voip.null.ro/svn/yate@6366 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-11 14:33:26 +00:00
marian b433f08586 Handle string description in JsDate constructor. Add string representation when stringifying a JsDate. Added toJSON() method to JsDate.
git-svn-id: http://voip.null.ro/svn/yate@6365 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-08 11:24:35 +00:00
marian e7c575815e Added Time methods used to encode to and parse from string containing internet/javascript date and time.
git-svn-id: http://voip.null.ro/svn/yate@6364 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-08 11:07:12 +00:00