<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
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-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</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]-->
</head>

<body lang=PT-BR link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Gostaria da receita também porque testei e não funcionou muito bem..
tentei com Nextel mas não fui feliz com o rádio, ligações funcionaram mas meio
instável.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
asteriskbrasil-bounces@listas.asteriskbrasil.org
[mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org] <b>Em nome de </b>Jefferson
E. Pessoa<br>
<b>Enviada em:</b> quinta-feira, 3 de março de 2011 12:44<br>
<b>Para:</b> asteriskbrasil@listas.asteriskbrasil.org<br>
<b>Assunto:</b> [AsteriskBrasil] Elastix 2.0 usando celular via Bluetooth<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Prezados,<br>
<br>
&nbsp; como acredito que conhecimento deve ser compartilhado e atendendo a
pedido, segue abaixo uma receita de bolo para usar telefone celular comuns, via
interface bluetooth, no Elastix.<br>
<br>
&nbsp; é uma solução barata para quem tem poucos chips, um ou dois, não testei
com mais de dois.<br>
<br>
&nbsp; lembrando que é preciso uma interface Bluetooth USB no servidor.<br>
<br>
&nbsp; teoricamente deveria ter como enviar e receber SMS, mas isto eu ainda
não consegui fazer rodar.<br>
<br>
&nbsp; espero te ajudado.<br>
<br>
-- <br>
<b><span style='color:black'>Jefferson E. Pessoa</span></b><span
style='color:black'><br>
67-8407-5252<br>
67-4062-7252<br>
11-3522-4252</span><br>
<br>
********************************************************************<br>
%%% instale o Elastix padrão<br>
<br>
%%% baixe e instale o pacote chan_mobile <br>
<br>
wget -c <a
href="http://repo.elastix.org/elastix/2/extras/i386/RPMS/asterisk-addons-chan_mobile-1.6.2.1-0.i386.rpm">http://repo.elastix.org/elastix/2/extras/i386/RPMS/asterisk-addons-chan_mobile-1.6.2.1-0.i386.rpm</a><br>
rpm -ivh asterisk-addons-chan_mobile-1.6.2.1-0.i386.rpm<br>
<br>
%%% instale os pacotes para bluetooth<br>
<br>
yum -y install bluez-utils bluez-libs bluez-libs-devel bluez-hcidump automake
autoconf subversion gcc gcc-c++ joe<br>
<br>
%%% edite o arquivo de configuração do bluetooth<br>
<br>
cp /etc/bluetooth/hcid.conf /etc/bluetooth/salvo-hcid.conf<br>
cat /dev/null &gt; /etc/bluetooth/hcid.conf<br>
joe /etc/bluetooth/hcid.conf<br>
<br>
%%% mudar o conteudo do arquivo hcid.conf pelo abaixo<br>
<br>
options {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; autoinit yes;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; security auto;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pairing multi;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; passkey &quot;1234&quot;;<br>
}<br>
device {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name &quot;pbxip&quot;;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class 0x000100;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iscan enable; pscan enable;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lm accept;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lp rswitch,hold,sniff,park;<br>
}<br>
<br>
<br>
%%% coloque o bluetooth para inicializar automaticamente e reinicie ele.<br>
<br>
chkconfig bluetooth on<br>
service bluetooth restart<br>
<br>
%%% veja o status se está tudo ok<br>
<br>
service bluetooth status<br>
<br>
%%% veja se sua interface bluetooth está rodando e qual seu MAC Adress<br>
<br>
hcitool dev<br>
<br>
%%% crie o arquivo mobile.conf e coloque o id da sua interface<br>
<br>
joe /etc/asterisk/mobile.conf<br>
<br>
[adapter]<br>
id=blue<br>
address=00:51:74:07:D3:68<br>
<br>
%%% parear aparelho, ligue seu celular e procure pelo Elastix, e quando
solicitado<br>
%%% digite a senha 1234 que colocamos no arquivo hcid.conf <br>
<br>
dbus-send --system --type=method_call --print-reply --dest=org.bluez
/org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable<br>
<br>
<br>
%%% reinicie o Elastix<br>
<br>
reboot<br>
<br>
%%% procure por seu aparelho<br>
<br>
hcitool scan<br>
<br>
%%% deve aparece algo parecido com o abaixo:<br>
<br>
Scanning ...<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
00:21:FE:71:EF:5C&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; N95<br>
<br>
ou<br>
<br>
Scanning ...<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
00:3C:19:FD:F5:D5&nbsp;&nbsp;&nbsp;&nbsp; motorolaV3<br>
<br>
%%% verifique sua interface<br>
<br>
hciconfig <br>
<br>
%%% execute o asterisk e dentro dele procure por seu celular<br>
<br>
asterisk -r<br>
<br>
*CLI&gt; mobile search<br>
<br>
%%% deve aparece algo parecido com o abaixo, no meu caso eu estava com três
aparecelhos ligados:<br>
<br>
pbxip*CLI&gt; mobile search<br>
Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Usable Type&nbsp;&nbsp;&nbsp; Port<br>
00:44:FE:66:EF:5F
N95&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Yes&nbsp;&nbsp;&nbsp; Phone&nbsp;&nbsp; 1<br>
00:62:A9:85:7E:8F
LGTIM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Yes&nbsp;&nbsp;&nbsp; Phone&nbsp;&nbsp; 2<br>
00:3C:19:FD:F5:D5
motorolaV3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Yes&nbsp;&nbsp;&nbsp; Phone&nbsp;&nbsp; 7<br>
<br>
<br>
%%% edite o mobile.conf e coloque seu celular<br>
<br>
joe /etc/asterisk/mobile.conf<br>
&nbsp;&nbsp;&nbsp; <br>
[N95]<br>
address=00:44:FE:66:EF:5F<br>
port=2<br>
context=from-mobile<br>
adapter=blue<br>
<br>
%%% descaregue o chan_mobile do Asterisk<br>
<br>
module unload chan_mobile.so <br>
<br>
%%% deve aparece algo parecido com o abaixo:<br>
<br>
Unloaded chan_mobile.so<br>
&nbsp; == Unregistered channel type 'Mobile'<br>
&nbsp; == Unregistered application 'MobileStatus'<br>
&nbsp; == Unregistered application 'MobileSendSMS'<br>
<br>
%%% e o recarregue novamente<br>
<br>
module load chan_mobile.so<br>
<br>
%%% deve aparece algo parecido com o abaixo:<br>
<br>
Loaded chan_mobile.so<br>
&nbsp; == Parsing '/etc/asterisk/mobile.conf':&nbsp;&nbsp; == Found<br>
&nbsp; == Registered channel type 'Mobile' (Bluetooth Mobile Device Channel
Driver)<br>
&nbsp; == Registered application 'MobileStatus'<br>
&nbsp; == Registered application 'MobileSendSMS'<br>
&nbsp;Loaded chan_mobile.so =&gt; (Bluetooth Mobile Device Channel Driver)<br>
&nbsp;&nbsp;&nbsp; -- Bluetooth Device N95 has connected, initializing...<br>
&nbsp;&nbsp;&nbsp; -- Bluetooth Device N95 initialized and ready.<br>
&nbsp;&nbsp;&nbsp; -- Bluetooth Device N95 has disconnected.<br>
<br>
%%% veja o status dos aparelhos configurados<br>
<br>
mobile show devices<br>
<br>
%%% colocar no arquivo /etc/asterisk/extensions_custom.conf o que quer fazer<br>
%%% com a chamada entrante, no meu caso mandei chamar o Ramal 200<br>
<br>
[from-mobile]<br>
exten =&gt; s,1,Answer<br>
exten =&gt; s,n,Wait(3)<br>
exten =&gt; s,n,Goto(from-did-direct,200,1)<br>
exten =&gt; s,n,Hangup<br>
<br>
<br>
<o:p></o:p></p>

</div>

</body>

</html>