<div dir="ltr"><div>Hi,</div><div><br></div><div><br></div><div>I am struggling with the task of setting a channel variable through an event socket. It seems no matter what I do, FS will not overwrite the existing variable.</div>
<div><br></div><div>What I have tried so far:</div><div><span style="color:rgb(0,0,0);font-family:courier,'courier new',monospace;font-size:14px;line-height:19.600000381469727px;white-space:pre-wrap"><br></span></div>
<div><span style="color:rgb(0,0,0);line-height:19.600000381469727px;white-space:pre-wrap"><b><font face="arial black, sans-serif">API</font></b></span></div><div><span style="color:rgb(0,0,0);line-height:19.600000381469727px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif"><b>Send:</b></font></span></div>
<div><font color="#000000" face="courier new, monospace"><span style="line-height:19.600000381469727px;white-space:pre-wrap">api uuid_setvar ZWVlZDUwMTUyNjdjNWU4ZTBmZWY4NTQ1ZDA2NmJiYWI privacy_hide_number=true</span></font><span style="color:rgb(0,0,0);line-height:19.600000381469727px;white-space:pre-wrap"><font face="courier new, monospace"><cr><cr></font></span><br>
</div><div><span style="color:rgb(0,0,0);line-height:19.600000381469727px;white-space:pre-wrap"><font face="courier new, monospace"><br></font></span></div><div><span style="color:rgb(0,0,0);line-height:19.600000381469727px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif"><b>Reply:</b></font></span></div>
<div><font face="courier new, monospace"><font color="#000000"><span style="line-height:19.600000381469727px;white-space:pre-wrap">Content-Type: api/response
Content-Length: 4
+OK</span></font><br></font></div><div><font face="courier new, monospace"><font color="#000000"><span style="line-height:19.600000381469727px;white-space:pre-wrap"><br></span></font></font></div><div><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);line-height:19.600000381469727px">
<font face="arial, helvetica, sans-serif">As You see, FS replies with</font><font face="courier new, monospace"> +OK</font><font face="arial, helvetica, sans-serif">. But the variable is unchanged.</font></pre><pre style="font-family:courier,'courier new',monospace;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);line-height:19.600000381469727px">
<br></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);line-height:19.600000381469727px"><font face="arial black, sans-serif">SET, part one</font></pre><pre style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);line-height:19.600000381469727px">
<font face="arial, helvetica, sans-serif"><b>Send:</b></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000"><span style="line-height:19.600000381469727px;white-space:pre-wrap"><font face="courier new, monospace">sendmsg YjJjNzJlOTQ0YWE1N2I2MGVlYTAwMzI2NWFjMmY4ZjM
execute-app-name: set
execute-app-arg: Caller-Privacy-Hide-Number=true
call-command: execute</font><b style="font-family:arial,helvetica,sans-serif"><br></b></span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000"><span style="line-height:19.600000381469727px;white-space:pre-wrap"><font face="courier new, monospace"><br>
</font></span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="line-height:19.600000381469727px;white-space:pre-wrap"><b>Part of received headers (JSON output):</b></span></font></pre>
<pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier new, monospace"><span style="line-height:19.600000381469727px;white-space:pre-wrap">...</span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px">
<font color="#000000" face="courier new, monospace"><span style="line-height:19.600000381469727px;white-space:pre-wrap">{ name: 'Caller-Privacy-Hide-Number', value: 'false' },<br></span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px">
<font color="#000000" face="courier new, monospace"><span style="line-height:19.600000381469727px;white-space:pre-wrap">...</span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier new, monospace"><span style="line-height:19.600000381469727px;white-space:pre-wrap">{ name: 'variable_Caller-Privacy-Hide-Number', value: 'true' }<br>
</span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier new, monospace"><span style="line-height:19.600000381469727px;white-space:pre-wrap">...</span></font></pre>
<pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000"><span style="line-height:19.600000381469727px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">Variable is not overwritten. Instead a new "</font><font face="courier new, monospace">variable_</font><font face="arial, helvetica, sans-serif">" is created.</font></span></font></pre>
<pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><pre style="color:rgb(0,0,0);line-height:19.600000381469727px;white-space:pre-wrap;font-size:14px;font-family:courier,'courier new',monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px">
<br></pre><pre style="color:rgb(0,0,0);line-height:19.600000381469727px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font face="arial black, sans-serif">SET, part two</font></pre><pre style="color:rgb(0,0,0);line-height:19.600000381469727px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px">
<font face="arial, helvetica, sans-serif"><b>Send:</b></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000"><span style="line-height:19.600000381469727px;white-space:pre-wrap"><font face="courier new, monospace">sendmsg NmJmZWU5YzMwYTlkMTk2MDg0ZmIzZmQwMTFiMTFkMmM
execute-app-name: set
execute-app-arg: privacy_hide_number=true
call-command: execute</font><br></span></font></pre><pre style="color:rgb(0,0,0);line-height:19.600000381469727px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><br></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px">
<pre style="color:rgb(34,34,34);line-height:normal;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="line-height:19.600000381469727px;white-space:pre-wrap"><b>Part of received headers (JSON output):</b></span></font></pre>
<pre style="color:rgb(34,34,34);line-height:normal;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier new, monospace"><span style="line-height:19.600000381469727px;white-space:pre-wrap">...</span></font></pre>
<pre style="color:rgb(34,34,34);line-height:normal;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier new, monospace"><span style="line-height:19.600000381469727px;white-space:pre-wrap">{ name: 'Caller-Privacy-Hide-Number', value: 'false' },<br>
</span></font></pre><pre style="color:rgb(34,34,34);line-height:normal;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier new, monospace"><span style="line-height:19.600000381469727px;white-space:pre-wrap">...</span></font></pre>
<pre style="color:rgb(34,34,34);line-height:normal;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier new, monospace"><span style="line-height:19.600000381469727px;white-space:pre-wrap">{ name: 'variable_privacy_hide_number', value: 'true' }<br>
</span></font></pre><pre style="color:rgb(34,34,34);line-height:normal;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="courier new, monospace"><span style="line-height:19.600000381469727px;white-space:pre-wrap">...</span></font></pre>
<pre style="color:rgb(34,34,34);line-height:normal;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000"><span style="line-height:19.600000381469727px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">Again, variable is not overwritten. Instead a new "</font><font face="courier new, monospace">variable_</font><font face="arial, helvetica, sans-serif">" is created.</font></span></font></pre>
<pre style="color:rgb(34,34,34);line-height:normal;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000"><span style="line-height:19.600000381469727px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif"><br>
</font></span></font></pre><pre style="color:rgb(34,34,34);line-height:normal;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000"><span style="line-height:19.600000381469727px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">Can it really be true this is not possible?</font></span></font></pre>
<pre style="color:rgb(34,34,34);line-height:normal;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000"><span style="line-height:19.600000381469727px;white-space:pre-wrap"><font face="arial, helvetica, sans-serif"><br>
</font></span></font></pre><pre style="word-wrap:break-word;margin-top:0px;margin-bottom:0px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="line-height:19.600000381469727px;white-space:pre-wrap">FreeSWITCH Version 1.2.16+git~20131218T195141Z~6968ef88fa~64bit (git 6968ef8 2013-12-18 19:51:41Z 64bit).</span></font></pre>
</pre><pre style="color:rgb(0,0,0);line-height:19.600000381469727px;white-space:pre-wrap;font-size:14px;font-family:courier,'courier new',monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="color:rgb(0,0,0);line-height:19.600000381469727px;white-space:pre-wrap;font-size:14px;font-family:courier,'courier new',monospace;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><br></pre></pre>
</div><div><div dir="ltr"><div><div><div><div><font color="#000000">Best regards,<br><br></font></div><b><font color="#000000">Kenn Leth Hansen<br></font></b></div><font color="#000000"><i><div><font color="#000000"><i>M.Sc. Engineering, Telecommunications</i></font></div>
SIP Service Developer</i><br></font></div></div><br></div></div>
</div>