<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>well explained...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>thanks Mike !</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=msc@freeswitch.org href="mailto:msc@freeswitch.org">Michael
Collins</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeswitch-users@lists.freeswitch.org
href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, May 25, 2010 2:23 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users] get a
freeswitch var from PHP</DIV>
<DIV><BR></DIV><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
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<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>
<P>
<HR>
<P></P>_______________________________________________<BR>FreeSWITCH-users
mailing
list<BR>FreeSWITCH-users@lists.freeswitch.org<BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>http://www.freeswitch.org<BR></BLOCKQUOTE></BODY></HTML>