[AsteriskBrasil] RES: Distribuição proporcional das chamadas realizadas

Gustavo Cordeiro gustavo em advent.com.br
Sexta Fevereiro 27 16:48:43 BRT 2009


Olá,

  Complementando o que a Vanessa colocou, nas placas que utilizam o
Zaptel/DAHDI a estratégia de ocupação é definida da mesma forma
(G/g/R/r).

  - Dialing a Group:

  In the Zap Channel Module's configuration file (zapata.conf), you
can define groups of Zap channels that get treated as a single channel
as far as the Dial command is concerned. You specify which of four
methods the Zap channel module is to use to select a non-busy channel
from the channel group by prefixing the group number with one of the
letters g, G, r, or R:

  g: select the lowest-numbered non-busy Zap channel (aka. ascending
sequential hunt group).
  G: select the highest-numbered non-busy Zap channel (aka. descending
sequential hunt group).
  r: use a round-robin search, starting at the next highest channel
than last time (aka. ascending rotary hunt group).
  R: use a round-robin search, starting at the next lowest channel
than last time (aka. descending rotary hunt group).

  The round-robin searches make the Zap channel module start looking
for an available channel from a different channel number each time.
For each channel group, the Zap channel module keeps track of the last
round-robin start point, and this time starts checking availability
from either the next (lowercase r)) or the previous uppercase R
channel in the group. Which channel it actually finds available (if
any) does not affect the starting point for the next round-robin
search. Calls to the Dial command using ordinary (g or G) group
selections do not affect future round-robin starting points either.

  For example, if you have defined channel group 2 as containing Zap
channels 1, 2, 5 and 8, and the last round-robin search for this group
(group 2) began searching from channel 5, this is the order of
searching that the Zap channel module will use for the four possible
selection methods:

  Dial(Zap/g2...): Looks in order 1, 2, 5, 8
  Dial(Zap/G2...): Looks in order 8, 5, 2, 1
  Dial(Zap/r2...): Looks in order 8, 1, 2, 5
  Dial(Zap/R2...): Looks in order 2, 1, 8, 5

  Fonte: http://www.voip-info.org/wiki/view/Asterisk+ZAP+channels

  Uma observaçao importante é que isso é somente uma estratégia de
ordem de ocupação de canais (não leva em conta tempo e nem custo das
chamadas). Se você quiser balancear gastos terá que utilizar um
tarifador com facilidade de roteamento.


Sds,
Gustavo Cordeiro
Advent Tecnologia Ltda.
Telefone: 48 3024-9350
Celular: 48 8809-0764

www.advent.com.br


2009/2/27 vanessasather <vanessasather em bol.com.br>:
> Depende da sua placa..
> Na digivoice uso assim:
> exten => _parametro,1,dial(DGV/r1/${EXTEN},90,rt)
>
> onde o r1 (minusculo) significa que ele faz uma chamada usando a linha 1 ..
> depois a linha 2.. e assim por seguinte..
>
>
> -----Mensagem original-----
> De: asteriskbrasil-bounces em listas.asteriskbrasil.org
> [mailto:asteriskbrasil-bounces em listas.asteriskbrasil.org] Em nome de
> Fabrício Lamonica
> Enviada em: segunda-feira, 16 de fevereiro de 2009 11:50
> Para: Lista Asterisk
> Assunto: [AsteriskBrasil] Distribuição proporcional das chamadas realizadas
>
> Bom dia, pessoal
> Tenho alguns poucos servidores Asterisk + FreePBX instalados e
> funcionando perfeitamente, mas nesses dias fiquei com uma dúvida:
> Existe como eu fazer uma configuração para quando alguém realizar uma
> chamada o asterisk usar aleatoriamente alguma linha e não somente aquela
> como rota de saída se estiver liberada? No caso de ter 3 linhas, existe
> uma sequência de utilização das linhas para fazer a chamada e ele só
> busca a segunda ou terceira linha quando a primeira está ocupada.
> Gostaria que mesmo que a primeira estivesse ociosa, ele fizesse ligações
> usando as outras, para no final do mês o valor das contas das 3 linhas
> serem parecidas.
>
> Obrigado
>
> Fabrício Lamonica
>
>
>
> _______________________________________________
> Openmoko Freerunner, primeiro telefone open source, disponível no Brasil
> rodando o Android da Google.
> http://www.neodroid.com
>
> Compre uma camiseta da AsteriskBrasil.org!
> http://www.voipmania.com.br
>
> Acesse o canal IRC de discussão sobre Asterisk em Português Brasileiro na
> rede Freenode.net: #asterisk-br
> _______________________________________________
> Lista de discussões AsteriskBrasil.org
> AsteriskBrasil em listas.asteriskbrasil.org
> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>
>
> _______________________________________________
> Openmoko Freerunner, primeiro telefone open source, disponível no Brasil rodando o Android da Google.
> http://www.neodroid.com
>
> Compre uma camiseta da AsteriskBrasil.org!
> http://www.voipmania.com.br
>
> Acesse o canal IRC de discussão sobre Asterisk em Português Brasileiro na rede Freenode.net: #asterisk-br
> _______________________________________________
> Lista de discussões AsteriskBrasil.org
> AsteriskBrasil em listas.asteriskbrasil.org
> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>


Mais detalhes sobre a lista de discussão AsteriskBrasil