Olá a todos...<br>tenho o seguinte plano de discagem:<br><br>[macro-inicio]<br>exten =&gt; s, 1, Wait,1<br>exten =&gt; s, n, Answer()<br>exten =&gt; s, n, Noop()<br>exten =&gt; s, n, Set(LANGUAGE()=pt_BR)<br>exten =&gt; s, n, Set(OS=/etc/asterisk/OS)<br>exten =&gt; s, n, System(psql -U postgres -h xxx.yyy.zzz.www -d YZY -c "SELECT * FROM tabela" &gt; ${OS}/${ARG1}/os<br>_${ARG1})<br>exten =&gt; s, n, System(cat ${OS}/${ARG1}/os_${ARG1} | grep "|" | cut -d"|" -f6 | grep -v sta_cod | tail -n -1 &gt; ${OS}/${ARG1}/tec_${ARG1})<br>exten =&gt; s, n, Set(TEC=$(cat ${OS}/${ARG1}/tec_${ARG1})<br><br>exten =&gt; s, n, Background(inicio)<br>exten =&gt; 8, 1, Set(LANGUAGE()=pt_BR)<br>exten =&gt; 8, 2, Macro(disctec,${TEC})<br>exten =&gt; 9, 1, Set(LANGUAGE()=pt_BR)<br>exten =&gt; 9, 2, Macro(Grava_msg_tecnico,${TEC})<br>exten =&gt; 7, 1, Set(LANGUAGE()=pt_BR)<br>exten =&gt; 7, 2, Goto(s,7)<br>exten =&gt; i, 1, Playback(invalid)<br>exten =&gt; i, 2, Wait,1<br>exten =&gt; i, 3,
 Goto(s,7)<br>exten =&gt; t, 1, Wait,1<br>exten =&gt; t, 2, Queue(telefonista|tT|||150)<br>exten =&gt; s, 8, hangup()<br><br>[macro-disctec]<br>exten =&gt; s, 1, Answer()<br>exten =&gt; s, 2, Gotoif($[${TEC} = 71]?100)<br><br>exten =&gt; s, 100, Dial(SIP/8030,150,tT)<br><br>exten =&gt; s, HangUp()<br><br>Esse plano de discagem está intergrado a um plano anterior, em que o originador da chamada disca um numero determinado e após uma consulta em um banco de dados PostgreSQL, ele retornar uma variavel especifica.<br>Ok...<br>Acontece que após o chamador ouve a gravação 'inicio' ( Background(inicio)), ele é orientado a discar 8.<br>Porém quando ele digita 8, para ser jogado na Macro-inicio, a chamada simplesmente cai!<br>Será que eu estou deixando alguma coisa de fora!<br>Por gentileza, se puderem me ajudar agradeço..<br>Obrigado<br><BR><BR><p>&#32;


      <hr size=1>Abra sua conta no <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.mail.yahoo.com/">Yahoo! Mail</a>, o único sem limite de espaço para armazenamento!