Boa tarde.<br />
<br />
Veja se alguem consegue me ajudar.&nbsp;<br />
Quero discar um n&uacute;mero porem ap&oacute;s gostaria que ele alterasse no contexto antes de enviar ao AGI.<br />
<br />
Exemplo:<br />
Quero discar no telefone <strong>32121234 </strong>e quando chegar no asterisk ele adicione o <strong>011</strong> na frente deste.. Ficando 01132121234.<br />
At&eacute; ae tudo bem se n&atilde;o fosse para o AGI e sim estivesse um dial, assim eu faria um <strong>Dial(sim/blablabl/032${EXTEN})</strong><br />
<br />
Veja onde quero adicionar:<br />
<br />
exten =&gt; <strong>32121234</strong>,1,Answer<br />
&nbsp; &nbsp; &nbsp; &nbsp; same =&gt; n,Wait(2)<br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;same =&gt; n,AGI(a2billing.php)<br />
&nbsp; &nbsp; &nbsp; &nbsp; same =&gt; n,Wait(2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; same =&gt; n,Hangup()<br />
<br />
Tentei mas sem sucesso.<br />
exten =&gt; 32121234,1,Answer<br />
&nbsp; &nbsp; &nbsp; &nbsp; <strong>same =&gt; n,Set(EXTEN=011${EXTEN}</strong><br />
&nbsp; &nbsp; &nbsp; &nbsp; same =&gt; n,Wait(2)<br />
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;same =&gt; n,AGI(a2billing.php)<br />
&nbsp; &nbsp; &nbsp; &nbsp; same =&gt; n,Wait(2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; same =&gt; n,Hangup()<br />
<br />
<br />
Eu n&atilde;o posso alterar o AGI, tenho que alterar o n&uacute;mero que vai para ele.<br />
<br />
Obrigado de ante m&atilde;o a todos.<br />
Felippe.