<div dir="ltr"><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">Obrigada pela a ajuda encontrada aqui no fórum.</p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">Vlw Eduardo Araujo e Evandro arruda</p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><br></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><br></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
A solução foi encontrada após algumas adaptações.</p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">Lembrando que elas estão totalmente funcionais no meu cenário e mais:</p><p style="font-family:arial,sans-serif;font-size:13px">
1-<span style="font-size:7pt;font-family:'Times New Roman'"> 1- </span>Meu numero é portabilizado de outra operadora.</p><p style="font-family:arial,sans-serif;font-size:13px">2-<span style="font-size:7pt;font-family:'Times New Roman'"> 2 -</span>Contexto de entrada e saída ( foi vital no meu caso)</p>
<p style="font-family:arial,sans-serif;font-size:13px">3-<span style="font-size:7pt;font-family:'Times New Roman'"> 3 -</span>Configuração no Dahdi-in dos números virtuais da operadora para sincronizar com seu correspondente no meu range de número reias portabilizado.</p>
<p style="font-family:arial,sans-serif;font-size:13px">4-<span style="font-size:7pt;font-family:'Times New Roman'"> 4 -</span>Clock voltada para a operadora, pois no caso da Mundivox ela precisa do clock para entregar a operadora que está sendo chamada. Exemplo eu ligo para um número da operadora OI, então a Mundivox pega essa ligação e entrega para OI que completa a ligação.</p>
<p style="font-family:arial,sans-serif;font-size:13px"><br></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">Abaixo as configurações</p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
<br></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><b><span style="font-size:14pt;line-height:21.466665267944336px">chan_dahdi.conf</span></b></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
<span lang="EN-US" style="font-size:10pt;line-height:15.333332061767578px">[channels]</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US" style="font-size:10pt;line-height:15.333332061767578px">language=br</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:10pt;line-height:15.333332061767578px">context=default (Contexto padrão para chamadas recebidas)</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
<span lang="EN-US" style="font-size:10pt;line-height:15.333332061767578px">mfcr2_variant=br</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US" style="font-size:10pt;line-height:15.333332061767578px">mfcr2_max_ani=20</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US" style="font-size:10pt;line-height:15.333332061767578px">mfcr2_max_dnis=10</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
<span lang="EN-US" style="font-size:10pt;line-height:15.333332061767578px">mfcr2_category=national_subscriber</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US" style="font-size:10pt;line-height:15.333332061767578px">mfcr2_logdir=span_ALL</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US" style="font-size:10pt;line-height:15.333332061767578px">mfcr2_call_files=yes</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
<span lang="EN-US" style="font-size:10pt;line-height:15.333332061767578px">mfcr2_metering_pulse_timeout=1000 ( a operadora mundivox precisa disso, pois após receber a ligação ela ainda repassa)</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
<span lang="EN-US" style="font-size:10pt;line-height:15.333332061767578px">;mfcr2_double_answer=yes ( opcional)</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US" style="font-size:10pt;line-height:15.333332061767578px">group=1</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:10pt;line-height:15.333332061767578px">context=dahdi-in (Usa o contexto [interno] em extensions.conf, como no ponto 3 citado acima)</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US" style="font-size:10pt;line-height:15.333332061767578px">signalling=mfcr2</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
<span lang="EN-US" style="font-size:10pt;line-height:15.333332061767578px">channel => 1-15</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:10pt;line-height:15.333332061767578px">context=default (As chamadas de entrada vai para [entrada] no extensions.conf)</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:10pt;line-height:15.333332061767578px">group=63 (Obtém, conjuntos ou limpa o grupo de canais, o limite é 63 então ele foi deixado para redundância)</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:10pt;line-height:15.333332061767578px"> </span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:10pt;line-height:15.333332061767578px">#include dahdi-channels.conf</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US"> </span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><b><span lang="EN-US" style="font-size:14pt;line-height:21.466665267944336px">system.conf</span></b></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">span = 1,1*,0,cas,hdb3 ( *clock voltado apara operadora, se fosse 0 estaria voltada para o meu servidor)</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
<span lang="EN-US">cas = 1-15:1101</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">echocanceller = mg2,1-31</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
loadzone = br</p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">defaultzone = br</p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"> </p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
Foi preciso informar o range de DDR´s que possui nessa operadora, isso vai fazer com que todas as ligações para esse range caiam no tronco principal.</p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
<br></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">[dahdi-in]</p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">;Mundivox (range de numeros virtuais da Mundivox)</p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">exten => _18[2-7]X,1,Answer()</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">exten => _18[2-7]X,n,Queue(incoming_local,rn,,,1)</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">exten => _18[2-7]X,n,Goto(Menu-Start,s,1)</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">exten => _18[2-7]X,n,Hangup()</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US"> </span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">exten => _29[4-7]X,1,Answer()</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">exten => _29[4-7]X,n,Queu(incoming_local,rn,,,1)</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
<span lang="EN-US">exten => _29[4-7]X,n,Goto(Menu-Start,s,1)</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">exten => _29[4-7]X,n,Hangup()</p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
<br></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">Já para que um DDR´especícifico caia em um ramal especifico então é necessário identificar.</p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
Isso é simples basta entrar no <cli e analisar os logs, faça uma ligação para um determinado DDR. No meu caso eu passei a ver esse erro:</p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"> </p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">new MFC/R2 call detected on chan 1.</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">MFC/R2 call offered on chan 1. ANI = 21980823777, DNIS = 1825, Category = National Subscriber</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">[Jun 5 12:24:19] NOTICE[9466]: chan_dahdi.c:4007 dahdi_r2_on_call_offered: MFC/R2 call on <span style="background:yellow">channel 1 requested non-existent extension '1825' in context 'default'. Rejecting call.</span></span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">MFC/R2 call disconnected on channel 1</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">MFC/R2 call end on channel 1</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US"> </span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US"> </span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">
Então eu precisei criar essa correção para que então a ligação entrasse no seu ramal especifico, dentro de dahdi-in também.</p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">exten => _1825,1,Answer()</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px"><span lang="EN-US">exten => _1825,n,Macro(dialexten,4105,20)</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:13px">exten => _1825,n,Hangup()</p>
</div>