<br><br><div class="gmail_quote">On Tue, May 25, 2010 at 10:42 AM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word;">fs_cli -x<div><br></div></div></blockquote><div><br>So if you know the uuid of the call this do this:<br><br><span style="font-family: courier new,monospace;">fs_cli -x "uuid_getvar <uuid> <varname>"</span><br>
</div></div><br>Here's an example. From fs_cli I did this:<br><span style="font-family: courier new,monospace;">originate {my_test_var=abc123xyz}loopback/9999 9999</span><br><br><span style="font-family: arial,helvetica,sans-serif;">That creates two channels, one of which has 'my_test_var' set to 'abc123xyz'.</span><br style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,helvetica,sans-serif;">show channels gives me the uuid: dc773eec-4dfe-4e8d-841d-ccfb4848658a </span><br style="font-family: arial,helvetica,sans-serif;"><br>At the Linux command line:<br><br>
<span style="font-family: courier new,monospace;">root@freeswitch1 [Tue May 25 11:21 AM] /usr/local/freeswitch</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"><25>:fs_cli -x "uuid_getvar dc773eec-4dfe-4e8d-841d-ccfb4848658a my_test_var"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">abc123xyz</span><br style="font-family: courier new,monospace;"><br>From ESL you have the $con object where you can do a uuid_getvar as well:<br>$var_contents = $con->api('uuid_getvar', "$uuid $var_name"); # Perl example<br>
<br>Have fun.<br>-MC<br><br><br>