Commit Graph

5360 Commits

Author SHA1 Message Date
oana 92a4e809c3 Do not stop resolving a variable until all variable fields have been resolved.
Resolving a variable now returns a container and the rest of fields that are to be applied onto the container. There is one exception to this and that is when a variable was resolved to a string and the last field to be applied is a native string/number field or function.



git-svn-id: http://voip.null.ro/svn/yate@5643 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-10 14:19:05 +00:00
oana 50693ae1cf Fixed compile warnings which appear when compiling with xdebug.
git-svn-id: http://voip.null.ro/svn/yate@5642 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-09 15:26:27 +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 7282f18730 Provide a mapping for SIP 488 code so it propagates correctly.
git-svn-id: http://voip.null.ro/svn/yate@5640 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-03 16:21:23 +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
marian 7714eb89e0 Fixed bug: allow empty address (hold) when handling re-invite with rtp forward.
git-svn-id: http://voip.null.ro/svn/yate@5638 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-30 15:01:45 +00:00
marian 647898bf96 Added extra method parameter to allow empty address when creating passtrough sdp, updating sdp and fill rtp params.
git-svn-id: http://voip.null.ro/svn/yate@5637 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-30 15:00:12 +00:00
paulc 2fa3d308ae Allow loading up to 256KB of script.
git-svn-id: http://voip.null.ro/svn/yate@5636 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-30 14:58:25 +00:00
paulc edf693636c Removed a leftover debug message.
git-svn-id: http://voip.null.ro/svn/yate@5635 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-30 12:55:40 +00:00
paulc 81c120bcb7 Fixed some of the cases related to script change detection.
git-svn-id: http://voip.null.ro/svn/yate@5634 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-30 12:53:24 +00:00
paulc cad5b5eb13 Properly dump 64 bit JS values for debugging and tracing.
Made possible to dump the linked code for debugging purpose.
Exposed accessors for more properties.


git-svn-id: http://voip.null.ro/svn/yate@5633 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-30 10:58:23 +00:00
paulc e3592f8081 Expose the sqlEscape() method to Javascript.
git-svn-id: http://voip.null.ro/svn/yate@5632 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-28 13:39:31 +00:00
paulc 0b869b4437 Check the timestamps of all files included in Javascript.
On initialization reload scripts if any included file has changed.
Reload routing script only if it has changed.


git-svn-id: http://voip.null.ro/svn/yate@5631 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-28 13:19:42 +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
paulc bbb4fccc91 Added separate config sections for SIP MESSAGE and OPTIONS.
Made the routed MESSAGE advertising and processing disabled by default.
Removed separate in-dialog authetication for MESSAGE, follow same rule as BYE.


git-svn-id: http://voip.null.ro/svn/yate@5629 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-23 11:52:11 +00:00
marian 0c666f5f97 Fixed bug: properly convert pointers.
git-svn-id: http://voip.null.ro/svn/yate@5628 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-22 08:52:09 +00:00
paulc b23d7782cc Emit alerts for SIP and H.323 flood / local congestions.
Try to detect early the OpenH323 cleaner overload for outbound calls.


git-svn-id: http://voip.null.ro/svn/yate@5627 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-19 13:53:54 +00:00
paulc 1887cf6a0e Make the H.323 channel abort immediately on assertion failure.
The undesired default behavior is to interactively ask what to do.


git-svn-id: http://voip.null.ro/svn/yate@5626 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-19 13:16:29 +00:00
paulc a16ea4be17 Constified XmlElement::getText()
git-svn-id: http://voip.null.ro/svn/yate@5625 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-14 13:33:43 +00:00
paulc 35345b0104 Fixed SNMP Counter64 implementation.
git-svn-id: http://voip.null.ro/svn/yate@5624 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-14 08:39:08 +00:00
paulc 153be3b967 Return string by reference instead of value from ASN.1 library.
Improves performance of SNMP queries.


git-svn-id: http://voip.null.ro/svn/yate@5623 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-14 08:38:40 +00:00
marian 868f2c5cf3 Moved msg.execute route type config parameter to separate section. Made it configurable for call.execute also. Drop global mutex lock when done using global data.
git-svn-id: http://voip.null.ro/svn/yate@5622 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-13 11:19:23 +00:00
marian 73e27b0e58 Add a configurable route_type parameter if missing when late routing a msg.execute message.
git-svn-id: http://voip.null.ro/svn/yate@5621 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-13 10:10:33 +00:00
marian 959901913f Fixed compile error.
git-svn-id: http://voip.null.ro/svn/yate@5620 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-13 08:32:24 +00:00
marian 5dda0433d1 Always handle MESSAGE method. Route incoming MESSAGE received outside INVITE dialog using call.route and send it using msg.execute. Forward MESSAGE received inside INVITE dialogs to channel peer using chan.text.
git-svn-id: http://voip.null.ro/svn/yate@5619 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-13 08:31:33 +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
marian bd3d5fc32e Fixed VC project options conflicts.
git-svn-id: http://voip.null.ro/svn/yate@5616 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-08 07:41:41 +00:00
paulc 52fc035ed7 Don't display telnet window size changes in non-debug compile.
git-svn-id: http://voip.null.ro/svn/yate@5615 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-07 11:53:15 +00:00
paulc c572fbbce3 Fixed warnings - mostly conversions - exposed by Visual C++ compiler.
git-svn-id: http://voip.null.ro/svn/yate@5614 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-07 11:24:10 +00:00
paulc 751937b0ec More fixes related to 32 and 64 bit types usage in JS.
git-svn-id: http://voip.null.ro/svn/yate@5613 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-07 10:18:23 +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 e23ad9bb51 Fixed comment destroyed by script.
git-svn-id: http://voip.null.ro/svn/yate@5610 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-06 13:49:03 +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 414a5d9414 Stop chan.rtp dispatch for audio or video media with empty formats list.
git-svn-id: http://voip.null.ro/svn/yate@5608 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-06 08:37:10 +00:00
marian 51406e17e2 Notify SDPSession descendents before dispatching chan.rtp. Improved debug.
git-svn-id: http://voip.null.ro/svn/yate@5607 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-06 08:35:00 +00:00
paulc ccae9ca1cf Added settings to allow matching inbound calls from broken registrars.
git-svn-id: http://voip.null.ro/svn/yate@5606 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-05 20:45:29 +00:00
paulc f777b559d2 Added Javascript methods for enabling and controlling debug levels.
git-svn-id: http://voip.null.ro/svn/yate@5605 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-05 09:56:52 +00:00
marian 972a23de13 Reset connect retry counter when received data not when connect succeeds. Fixes forever connect retry when connection is closed after accepted without receiving any data. Improved debug.
git-svn-id: http://voip.null.ro/svn/yate@5604 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-02 14:28:44 +00:00
marian 73bb976de9 Initialize all CallMonitor data members.
git-svn-id: http://voip.null.ro/svn/yate@5603 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-02 13:48:45 +00:00
oana 89974c646d Emit a user.authfail message when authentification for a SNMP request fails.
git-svn-id: http://voip.null.ro/svn/yate@5602 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-02 13:24:22 +00:00
marian 10f0d6bffc Check ssl availability. Don't bind a tls listener if the context is not valid. Don't try to connect a tls transport if ssl is not available.
git-svn-id: http://voip.null.ro/svn/yate@5601 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-02 11:56:53 +00:00
marian 8e97f597ee Fixed bug: start transport worker thread after init to make sure data is initialized. Fixes incoming tcp transport race condition.
git-svn-id: http://voip.null.ro/svn/yate@5600 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-02 11:11:38 +00:00
marian c9257c678e Propagate non-retryable send errors to transaction. Terminate outgoing transactions in Trying state if first send attempt failed. Reset failed message party otherwise.
git-svn-id: http://voip.null.ro/svn/yate@5599 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-02 10:01:39 +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 d23fcafcee Added possibility to sepcify the hexa separator in regexroute.
Accelerated function name comparations in regexroute.


git-svn-id: http://voip.null.ro/svn/yate@5597 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-01 15:23:59 +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
marian 73a20bf4d4 Warn if failed to send RTP/RTCP data.
git-svn-id: http://voip.null.ro/svn/yate@5595 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-01 13:44:59 +00:00
paulc b5ba94fded Use message watches in bruteforcers ban script to improve behavior under load.
Improved some code comments in the script.


git-svn-id: http://voip.null.ro/svn/yate@5594 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-01 09:11:43 +00:00