Olá pessoal!<br><br>Eu evolui um pouco no problema do Trunk IAX.<br>Agora quando eu ligo diretamento do console do server A para o server B, a ligaçào completa. Mas do softphone IAX não completa.<br>Vejam os erros abaixo:<br>
<br><br><span style="font-weight: bold;">Ligando do console (Funcionou a ligação):</span><br>asterisk-bsb*CLI> console dial 1159@trunk-bsb-cwb-iax<br>[Jan 15 18:32:32] WARNING[2483]: chan_oss.c:682 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory
<br> -- Executing [1159@trunk-bsb-cwb-iax:1] Dial("OSS/dsp", "IAX2/filial:bsbser@192.168.0.200/1159|60|Ttr") in new stack<br> -- Called filial:bsbser@192.168.0.200/1159<br> -- Call accepted by
<a href="http://192.168.0.200">192.168.0.200</a> (format gsm)<br> -- Format for call is gsm<br> -- IAX2/matriz-6 is ringing<br> -- Hungup 'IAX2/matriz-6'<br> -- No one is available to answer at this time (1:0/0/0)
<br> -- Executing [1159@trunk-bsb-cwb-iax:2] Hangup("OSS/dsp", "") in new stack<br> == Spawn extension (trunk-bsb-cwb-iax, 1159, 2) exited non-zero on 'OSS/dsp'<br> << Hangup on console >>
<br><br><span style="font-weight: bold;">Ligando do softphone (Não funcionou):</span><br> -- Accepting AUTHENTICATED call from <a href="http://192.168.0.17">192.168.0.17</a>:<br> > requested format = gsm,<br> > requested prefs = (),
<br> > actual format = gsm,<br> > host prefs = (gsm|ulaw|alaw),<br> > priority = mine<br> -- Executing [1159@regra-total:1] Dial("IAX2/2001-3", "IAX2/1159|20|tT") in new stack
<br>[Jan 15 18:32:15] WARNING[2707]: chan_iax2.c:2615 create_addr: No such host: 1159<br>[Jan 15 18:32:15] WARNING[2707]: app_dial.c:1090 dial_exec_full: Unable to create channel of type 'IAX2' (cause 3 - No route to destination)
<br> == Everyone is busy/congested at this time (1:0/0/1)<br> -- Executing [1159@regra-total:2] Hangup("IAX2/2001-3", "") in new stack<br> == Spawn extension (regra-total, 1159, 2) exited non-zero on 'IAX2/2001-3'
<br> -- Hungup 'IAX2/2001-3'<br><br>**De qualquer um dos servidores ocorre este erro.<br><br>Configurações:<br><br><span style="font-weight: bold;">Servidor A: <a href="http://192.168.0.200">192.168.0.200</a></span>
<br style="font-weight: bold;"><br style="font-weight: bold;"><span style="font-weight: bold;">iax.conf</span><br>register => matriz:cwbser@192.168.0.198:4569 ; Registra o servidor de curitiba no de Brasilia.
<br><br>[filial] ;Conta para o servidor da filial se conectar e registrar.<br>type = peer<br>context = regra-total<br>auth = md5<br>username = filial<br>secret = bsbser<br>host = dynamic<br>
trunk = yes<br><br>[filial] ;Conta para o servidor ligar para o softphone.<br>type = friend<br>context = regra-total<br>auth = md5<br>secret = bsbser<br>trunk = yes<br><br><span style="font-weight: bold;">
extensions.conf<br></span>[general]<br>static = no <br>writeprotect = yes <br>autofallthrough = yes
<br>clearglobalvars = no <br>priorityjumping = no<br><br>[trunk-cwb-bsb-iax]<br>exten => _2XXX,1,Dial(IAX2/matriz:cwbser@192.168.0.198/${EXTEN},60,Ttr)<br>exten => _2XXX,n,Hangup()
<br><br><br><span style="font-weight: bold;">Servidor B: <a href="http://192.168.0.198">192.168.0.198</a><br></span><span style="font-weight: bold;">iax.conf<br><br></span>register => filial:bsbser@192.168.0.200
:4569 <br><br>[matriz] ;conta para o servidor da matriz se conectar.<br>type = peer<br>context = regra-total <br>auth = md5<br>username = matriz<br>secret = cwbser<br>host = dynamic
<br>trunk = yes<br><br>[matriz] ;conta para o servidor ligar para o softphone<br>type = friend<br>context = regra-total <br>auth = md5<br>secret = cwbser<br>trunk = yes
<br><br><br><span style="font-weight: bold;">extensions.conf</span><br>[general]<br>
static = no <br>
writeprotect = yes <br>
autofallthrough = yes <br>
clearglobalvars = no <br>
priorityjumping = no<br>
<br><br>[trunk-bsb-cwb-iax]<br>exten => _1XXX,1,Dial(IAX2/filial:bsbser@192.168.0.200/${EXTEN},60,Ttr)<br>exten => _1XXX,n,Hangup()<span style="font-weight: bold;"><span style="font-weight: bold;"><br><br><br>Alguém tem alguma idéia do que pode estar acontecendo? Liga do console mas naum do softphone. Mas o softphone para outras ligações funciona normalmente. Só entre trunk que naum funciona.
<br><br>Abraços.<br>Rodolfo.<br></span></span>