<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Vc tá usando Manager, segue comando getvar;<br>
<br>
Action: Getvar<br>
Synopsis: Gets a Channel Variable<br>
Privilege: call,reporting,all<br>
Description: Get the value of a global or local channel variable.<br>
Variables: (Names marked with * are required)<br>
Channel: Channel to read variable from<br>
*Variable: Variable name<br>
<br>
Procura o comando getvar na API, vc terá q informar o CHANNEL
desejado, a variavel q vc ker UNIQUEID e só.<br>
<br>
Flws<br>
<br>
<br>
<div class="moz-cite-prefix">Em 18-03-2014 11:15, Softplan - Júlio
escreveu:<br>
</div>
<blockquote
cite="mid:005201cf42b4$73362af0$59a280d0$@softplan.com.br"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloDeEmail17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Bom dia, Amigos!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Estamos em um projeto muito importante na
empresa onde trabalhamos!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Estamos querendo pegar o uniqueid da
ligação em java, vocês sabem?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Pegamos um exemplo do tutorial.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Neste Método<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas;color:black">
</span><span
style="font-size:10.0pt;font-family:Consolas;color:#646464"
lang="EN-US">@Override</span><span
style="font-size:10.0pt;font-family:Consolas" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas;color:black"
lang="EN-US"> </span><b><span
style="font-size:10.0pt;font-family:Consolas;color:#7F0055"
lang="EN-US">public</span></b><span
style="font-size:10.0pt;font-family:Consolas;color:black"
lang="EN-US"> </span><b><span
style="font-size:10.0pt;font-family:Consolas;color:#7F0055"
lang="EN-US">void</span></b><span
style="font-size:10.0pt;font-family:Consolas;color:black"
lang="EN-US"> onManagerEvent(ManagerEvent event) {</span><span
style="font-size:10.0pt;font-family:Consolas" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas;color:black"
lang="EN-US"> </span><span
style="font-size:10.0pt;font-family:Consolas;color:#3F7F5F"
lang="EN-US">// </span><b><span
style="font-size:10.0pt;font-family:Consolas;color:#7F9FBF"
lang="EN-US">TODO</span></b><span
style="font-size:10.0pt;font-family:Consolas;color:#3F7F5F"
lang="EN-US"> Auto-generated method stub</span><span
style="font-size:10.0pt;font-family:Consolas" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas;color:black"
lang="EN-US"> </span><span
style="font-size:10.0pt;font-family:Consolas" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:10.0pt;font-family:Consolas;color:black"
lang="EN-US"> System.</span><i><span
style="font-size:10.0pt;font-family:Consolas;color:#0000C0"
lang="EN-US">out</span></i><span
style="font-size:10.0pt;font-family:Consolas;color:black"
lang="EN-US">.println(event);</span><span
style="font-size:10.0pt;font-family:Consolas" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:Consolas;color:black"
lang="EN-US"> </span><span
style="font-size:10.0pt;font-family:Consolas;color:black">}<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:Consolas;color:black"><o:p> </o:p></span></p>
<p class="MsoNormal">Ele gerar na console várias informações e
com ela o uniqueid da ligação.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:Consolas;color:black"
lang="EN-US">org.asteriskjava.manager.event.NewExtenEvent[dateReceived='Tue
Mar 18 11:11:24 BRT
2014',privilege='dialplan,all',application='Goto',sequencenumber=null,extension='s',timestamp=null,uniqueid='1395151871.66746',priority='11',context='unic',appdata='13',server=null,channel='Khomp/B1C4-0.0',systemHashcode=229172540]<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:Consolas;color:black"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:Consolas;color:black"
lang="EN-US">Como posso pegar esse uniqueid<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:Consolas;color:black"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:Consolas;color:black"
lang="EN-US">Obrigado</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
KHOMP: completa linha de placas externas FXO, FXS, GSM e E1
Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7
Intercomunicadores para acesso remoto via rede IP e telefones IP
Conheça todo o portfólio em <a class="moz-txt-link-abbreviated" href="http://www.Khomp.com">www.Khomp.com</a>
_______________________________________________
ALIGERA – Fabricante e desenvolvedor nacional de Soluções para telefonia IP .
Gateway Sip, Conversores e Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
Banco de Canais Analógicos – Appliance Asterisk
Acesse <a class="moz-txt-link-abbreviated" href="http://www.aligera.com.br">www.aligera.com.br</a>
_______________________________________________
Para remover seu email desta lista, basta enviar um email em branco para <a class="moz-txt-link-abbreviated" href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a></pre>
</blockquote>
<br>
</body>
</html>