<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://docs.yate.ro/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=Javascript_Shared</id>
		<title>Javascript Shared - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=Javascript_Shared"/>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Javascript_Shared&amp;action=history"/>
		<updated>2026-04-28T01:14:38Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.1</generator>

	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Javascript_Shared&amp;diff=8378&amp;oldid=prev</id>
		<title>Marian: /* Methods */</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Javascript_Shared&amp;diff=8378&amp;oldid=prev"/>
				<updated>2024-09-03T10:08:41Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Methods&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 10:08, 3 September 2024&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 121:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 121:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''params''' properties:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''params''' properties:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''js_props''': Boolean. Return property values as Javascript native types. Default: true&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''js_props''': Boolean. Return property values as Javascript native types. Default: true&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''autonum''': Boolean. Try to convert variables to numeric/boolean. Default: false.&amp;lt;br/&amp;gt;Set it when needing to return &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;numbers&lt;/del&gt;.&amp;lt;br/&amp;gt;Ignored if not returning Javascript native types&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''autonum''': Boolean. Try to convert variables to numeric&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. Default: false.&amp;lt;br&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt;Set it when needing to return numbers.&amp;lt;br/&amp;gt;Ignored if not returning Javascript native types&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* '''autobool''': Boolean. Try to convert variables to &lt;/ins&gt;boolean. Default: false.&amp;lt;br/&amp;gt;Set it when needing to return &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;boolean values&lt;/ins&gt;.&amp;lt;br/&amp;gt;Ignored if not returning Javascript native types&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''prefix''': String. Optional prefix for variables. Retrieve only variables whose name starts with given prefix&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''prefix''': String. Optional prefix for variables. Retrieve only variables whose name starts with given prefix&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''skip_prefix''': Boolean. Skip prefix when returned. Default: true&amp;lt;br/&amp;gt;Ignored if prefix is empty&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''skip_prefix''': Boolean. Skip prefix when returned. Default: true&amp;lt;br/&amp;gt;Ignored if prefix is empty&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Marian</name></author>	</entry>

	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Javascript_Shared&amp;diff=8377&amp;oldid=prev</id>
		<title>Marian: /* Methods */</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Javascript_Shared&amp;diff=8377&amp;oldid=prev"/>
				<updated>2024-09-03T10:05:41Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Methods&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 10:05, 3 September 2024&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''name''' Required variable name&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''name''' Required variable name&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''str''' Required variable value&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''str''' Required variable value&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''create(name[,str])'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''create(name[,str])'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 43:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''name''' Required variable name&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''name''' Required variable name&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''str''' Optional variable value. Create with empty string if this parameter is not given&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''str''' Optional variable value. Create with empty string if this parameter is not given&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''inc(name[,wrap])'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''inc(name[,wrap])'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Marian</name></author>	</entry>

	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Javascript_Shared&amp;diff=8376&amp;oldid=prev</id>
		<title>Marian: /* Methods */</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Javascript_Shared&amp;diff=8376&amp;oldid=prev"/>
				<updated>2024-09-03T10:05:18Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Methods&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 10:05, 3 September 2024&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 29:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''set(name,str)'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''set(name,str)'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Retrieve &lt;/del&gt;a variable &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;as string&lt;/del&gt;&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Set &lt;/ins&gt;a variable&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Parameters:&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Parameters:&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''str''' Required variable value&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''str''' Required variable value&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* '''create(name[,str])'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Create a variable if does not exist.&amp;lt;br/&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Do nothing if valriable is present in list.&amp;lt;br/&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Parameters:&amp;lt;br/&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;'''name''' Required variable name&amp;lt;br/&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;'''str''' Optional variable value. Create with empty string if this parameter is not given&amp;lt;br/&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''inc(name[,wrap])'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* '''inc(name[,wrap])'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Marian</name></author>	</entry>

	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Javascript_Shared&amp;diff=8295&amp;oldid=prev</id>
		<title>Marian: Created page with &quot;== General == Shared variables object.&lt;br/&gt; Shared variable lists are available in all scripts.&lt;br/&gt; They are thread safe.&lt;br/&gt; '''NOTE''': Values are stored as plain strings ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Javascript_Shared&amp;diff=8295&amp;oldid=prev"/>
				<updated>2021-09-29T07:11:11Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== General == Shared variables object.&amp;lt;br/&amp;gt; Shared variable lists are available in all scripts.&amp;lt;br/&amp;gt; They are thread safe.&amp;lt;br/&amp;gt; &amp;#039;&amp;#039;&amp;#039;NOTE&amp;#039;&amp;#039;&amp;#039;: Values are stored as plain strings ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== General ==&lt;br /&gt;
Shared variables object.&amp;lt;br/&amp;gt;&lt;br /&gt;
Shared variable lists are available in all scripts.&amp;lt;br/&amp;gt;&lt;br /&gt;
They are thread safe.&amp;lt;br/&amp;gt;&lt;br /&gt;
'''NOTE''': Values are stored as plain strings &lt;br /&gt;
&lt;br /&gt;
== Create ==&lt;br /&gt;
&lt;br /&gt;
Retrieve Yate global&lt;br /&gt;
&lt;br /&gt;
 var g = Engine.shared;&amp;lt;br/&amp;gt;&lt;br /&gt;
 var g = new Engine.SharedVars(&amp;quot;&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
Create separate shared variables list&lt;br /&gt;
 &lt;br /&gt;
 var g = new Engine.Shared(&amp;quot;mylist&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
* '''get(name)'''&lt;br /&gt;
Retrieve a variable as string&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameters:&amp;lt;br/&amp;gt;&lt;br /&gt;
'''name''' Required variable name&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Return:&amp;lt;br/&amp;gt;&lt;br /&gt;
Value of the variable&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''set(name,str)'''&lt;br /&gt;
Retrieve a variable as string&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameters:&amp;lt;br/&amp;gt;&lt;br /&gt;
'''name''' Required variable name&amp;lt;br/&amp;gt;&lt;br /&gt;
'''str''' Required variable value&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''inc(name[,wrap])'''&lt;br /&gt;
Atomically increment a variable as unsigned integer&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameters:&amp;lt;br/&amp;gt;&lt;br /&gt;
'''name''' Required variable name&amp;lt;br/&amp;gt;&lt;br /&gt;
'''wrap''' Optional value to wrap around at, zero, negative or non numeric disables&lt;br /&gt;
&lt;br /&gt;
Return:&amp;lt;br/&amp;gt;&lt;br /&gt;
Value of the variable before increment, zero if it was not defined or not numeric&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''dec(name[,wrap])'''&lt;br /&gt;
Atomically decrement a variable as unsigned integer&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameters:&amp;lt;br/&amp;gt;&lt;br /&gt;
'''name''' Required variable name&amp;lt;br/&amp;gt;&lt;br /&gt;
'''wrap''' Optional value to wrap around at, zero, negative or non numeric disables&lt;br /&gt;
&lt;br /&gt;
Return:&amp;lt;br/&amp;gt;&lt;br /&gt;
Value of the variable after decrement, zero if it was not defined or not numeric&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''add(name,value,[,wrap])'''&lt;br /&gt;
Atomically add an unsigned integer value to a variable&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameters:&amp;lt;br/&amp;gt;&lt;br /&gt;
'''name''' Required variable name&amp;lt;br/&amp;gt;&lt;br /&gt;
'''value''' Required value to add&amp;lt;br/&amp;gt;&lt;br /&gt;
'''wrap''' Optional value to wrap around at, zero, negative or non numeric disables&lt;br /&gt;
&lt;br /&gt;
Return:&amp;lt;br/&amp;gt;&lt;br /&gt;
Value of the variable before addition, zero if it was not defined or not numeric&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''sub(name,value,[,wrap])'''&lt;br /&gt;
Atomically substract an unsigned integer value from a variable&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameters:&amp;lt;br/&amp;gt;&lt;br /&gt;
'''name''' Required variable name&amp;lt;br/&amp;gt;&lt;br /&gt;
'''value''' Required value to substract&amp;lt;br/&amp;gt;&lt;br /&gt;
'''wrap''' Optional value to wrap around at, zero, negative or non numeric disables&lt;br /&gt;
&lt;br /&gt;
Return:&amp;lt;br/&amp;gt;&lt;br /&gt;
Value of the variable after substraction, zero if it was not defined or not numeric&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''clear(name)'''&lt;br /&gt;
Clear (remove) a variable&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameters:&amp;lt;br/&amp;gt;&lt;br /&gt;
'''name''' Required variable name&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''clearAll()'''&lt;br /&gt;
Clear (remove) all variables in list&amp;lt;br/&amp;gt;&lt;br /&gt;
Does nothing if the list is the global variables list&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''exists(name)'''&lt;br /&gt;
Check if a variable exists&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameters:&amp;lt;br/&amp;gt;&lt;br /&gt;
'''name''' Required variable name&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Return:&amp;lt;br/&amp;gt;&lt;br /&gt;
Boolean true if variable exists, false otherwise&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''getVars([params])'''&lt;br /&gt;
Retrieve list variables&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameters:&amp;lt;br/&amp;gt;&lt;br /&gt;
'''params''' Optional object with desired behaviour&lt;br /&gt;
&lt;br /&gt;
'''params''' properties:&lt;br /&gt;
* '''js_props''': Boolean. Return property values as Javascript native types. Default: true&lt;br /&gt;
* '''autonum''': Boolean. Try to convert variables to numeric/boolean. Default: false.&amp;lt;br/&amp;gt;Set it when needing to return numbers.&amp;lt;br/&amp;gt;Ignored if not returning Javascript native types&lt;br /&gt;
* '''prefix''': String. Optional prefix for variables. Retrieve only variables whose name starts with given prefix&lt;br /&gt;
* '''skip_prefix''': Boolean. Skip prefix when returned. Default: true&amp;lt;br/&amp;gt;Ignored if prefix is empty&lt;br /&gt;
&lt;br /&gt;
Return:&amp;lt;br/&amp;gt;&lt;br /&gt;
Object with list variables as properties&lt;/div&gt;</summary>
		<author><name>Marian</name></author>	</entry>

	</feed>