Re: [AsteriskBrasil] Limitação de 1 minuto de conversa.

Noel R. Morais noelrocha em gmail.com
Domingo Abril 30 21:50:18 BRT 2006


#  S(n): Hangup the call n seconds AFTER called party picks up.

Se voce quer algo simples, use o S(n) como parametro do seu Dial e
depois de n segundos vai desligar a ligacao.

# L(x[:y][:z]): Limit the call to 'x' ms, warning when 'y' ms are
left, repeated every 'z' ms) Only 'x' is required, 'y' and 'z' are
optional. The following special variables are optional for limit
calls: (pasted from app_dial.c)

    * LIMIT_PLAYAUDIO_CALLER - yes|no (default yes) - Play sounds to the caller.
    * LIMIT_PLAYAUDIO_CALLEE - yes|no - Play sounds to the callee.
    * LIMIT_TIMEOUT_FILE - File to play when time is up.
    * LIMIT_CONNECT_FILE - File to play when call begins.
    * LIMIT_WARNING_FILE - File to play as warning if 'y' is defined.
If LIMIT_WARNING_FILE is not defined, then the default behaviour is to
announce ("You have [XX minutes] YY seconds").

Se voce quer alguma coisa mais elaborada, usa o L como parametro do
seu dial, com ele voce pode tocar um arquivo avisando o tempo
restante, um arquivo quando o tempo acabou e etc.

--
_________
Noel R. Morais


Mais detalhes sobre a lista de discussão AsteriskBrasil