[AsteriskBrasil] Bloqueio de transferência

Luciano lufron_linuxx em yahoo.com.br
Terça Junho 19 10:11:16 BRT 2007


Pessoal, preciso bloquear a transferência do seguinte
tipo de ligação.

Usuário A, de um ramal interno da empresa, liga para
um Telefone Fixo.
Telefone Fixo atende.
Usuário A transfere a ligação para um Telefone
Celular.

No final das contas a gente acaba pagando duas
chamadas que frequentemente não estão relacionadas à
empresa.

Mas preciso bloquear esse tipo de transferência pros
usuários padrão e liberar para a Diretoria.

O que tem no log do Asterisk é o seguinte:

Jun 18 16:19:52 DEBUG[10729] chan_sip.c: Unsupervised
transfer to (Refer-To): 0XXXXXXXX
Jun 18 16:19:52 DEBUG[10729] chan_sip.c: Transferred
by  (Referred-by: ) 9XXX
Jun 18 16:19:52 DEBUG[10729] chan_sip.c: Transfer
Contact Info <sip:9XXX em 1XX.XXX.XXX.XXX>
(REFER_CONTACT)
Jun 18 16:19:52 DEBUG[10729] chan_sip.c: 202 Accepted
(blind)
Jun 18 16:19:52 DEBUG[10729] chan_sip.c: Got SIP blind
transfer, applying to 'Zap/4-1'
Jun 18 16:19:52 DEBUG[10729] channel.c: Scheduling
timer at 0 sample intervals
Jun 18 16:19:52 DEBUG[10729] channel.c: Planning to
masquerade channel Zap/4-1 into the structure of
AsyncGoto/Zap/4-1
Jun 18 16:19:52 DEBUG[10729] channel.c: Done planning
to masquerade channel Zap/4-1 into the structure of
AsyncGoto/Zap/4-1
Jun 18 16:19:52 DEBUG[10729] channel.c: Got clone lock
for masquerade on 'Zap/4-1' at 0x81cdc44
Jun 18 16:19:52 DEBUG[10729] channel.c: Putting
channel Zap/4-1 in 64/64 formats
Jun 18 16:19:52 DEBUG[10729] chan_zap.c: New owner for
channel 4 is Zap/4-1
Jun 18 16:19:52 DEBUG[10729] chan_zap.c: Updated
conferencing on 4, with 0 conference users
Jun 18 16:19:52 DEBUG[10729] chan_zap.c: Updated
conferencing on 4, with 0 conference users
Jun 18 16:19:52 DEBUG[10729] channel.c: Released clone
lock on 'AsyncGoto/Zap/4-1<ZOMBIE>'
Jun 18 16:19:52 DEBUG[10729] channel.c: Done
Masquerading Zap/4-1 (6)
Jun 18 16:19:52 DEBUG[19931] channel.c: Didn't get a
frame from channel: AsyncGoto/Zap/4-1<ZOMBIE>
Jun 18 16:19:52 DEBUG[19931] channel.c: Bridge stops
bridging channels SIP/9XXX-b71300a0 and
AsyncGoto/Zap/4-1<ZOMBIE>
Jun 18 16:19:52 DEBUG[19931] app_dial.c: Exiting with
DIALSTATUS=ANSWER.
Jun 18 16:19:52 VERBOSE[19931] logger.c:   == Spawn
extension (XX, 0XXXXXXXX, 1) exited non-zero on
'SIP/9XXX-b71300a0'
Jun 18 16:19:52 VERBOSE[19939] logger.c:     --
Executing Dial("Zap/4-1", "ZAP/g1/XXXXXXXX|60|wW") in
new stack
Jun 18 16:19:52 VERBOSE[19939] logger.c:     --
Requested transfer capability: 0x00 - SPEECH
Jun 18 16:19:52 DEBUG[19931] chan_sip.c:
update_call_counter(9113) - decrement call limit
counter
Jun 18 16:19:52 DEBUG[10717] channel.c: Avoiding
initial deadlock for 'Zap/5-1'
Jun 18 16:19:52 VERBOSE[19939] logger.c:     -- Called
g1/XXXXXXXX
Jun 18 16:19:56 DEBUG[10725] chan_zap.c: Enabled echo
cancellation on channel 5
Jun 18 16:19:56 VERBOSE[19939] logger.c:     --
Zap/5-1 is ringing
Jun 18 16:19:56 DEBUG[19939] chan_zap.c: Requested
indication 3 on channel Zap/4-1
Jun 18 16:19:58 DEBUG[10725] chan_zap.c: Echo
cancellation already on
Jun 18 16:20:00 DEBUG[10725] chan_zap.c: Echo
cancellation already on
Jun 18 16:20:00 VERBOSE[19939] logger.c:     --
Zap/5-1 answered Zap/4-1
Jun 18 16:20:00 DEBUG[19939] chan_zap.c: Requested
indication -1 on channel Zap/4-1
Jun 18 16:20:00 VERBOSE[19939] logger.c:     --
Attempting native bridge of Zap/4-1 and Zap/5-1
Jun 18 16:21:42 VERBOSE[10725] logger.c:     --
Channel 0/5, span 1 got hangup request
Jun 18 16:21:42 DEBUG[19939] channel.c: Didn't get a
frame from channel: Zap/5-1
Jun 18 16:21:42 DEBUG[19939] channel.c: Bridge stops
bridging channels Zap/4-1 and Zap/5-1
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: Set option
AUDIO MODE, value: ON(1) on Zap/5-1
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: Hangup:
channel: 5 index = 0, normal = 22, callwait = -1,
thirdcall = -1
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: Not yet
hungup...  Calling hangup once with icause, and
clearing call
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: disabled echo
cancellation on channel 5
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: Set option
TDD MODE, value: OFF(0) on Zap/5-1
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: Updated
conferencing on 5, with 0 conference users
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: Set option
AUDIO MODE, value: OFF(0) on Zap/5-1
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: disabled echo
cancellation on channel 5
Jun 18 16:21:42 VERBOSE[19939] logger.c:     -- Hungup
'Zap/5-1'
Jun 18 16:21:42 DEBUG[19939] app_dial.c: Exiting with
DIALSTATUS=ANSWER.
Jun 18 16:21:42 VERBOSE[19939] logger.c:   == Spawn
extension (XX, 0XXXXXXXX, 1) exited non-zero on
'Zap/4-1'
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: Set option
AUDIO MODE, value: ON(1) on Zap/4-1
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: Hangup:
channel: 4 index = 0, normal = 21, callwait = -1,
thirdcall = -1
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: Not yet
hungup...  Calling hangup once with icause, and
clearing call
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: disabled echo
cancellation on channel 4
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: Set option
TDD MODE, value: OFF(0) on Zap/4-1
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: Updated
conferencing on 4, with 0 conference users
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: Set option
AUDIO MODE, value: OFF(0) on Zap/4-1
Jun 18 16:21:42 DEBUG[19939] chan_zap.c: disabled echo
cancellation on channel 4
Jun 18 16:21:42 VERBOSE[19939] logger.c:     -- Hungup
'Zap/4-1'

O que parece é que o * está fazendo uma "Transferência
Cega". Mas como bloquear isso eu não sei.

Qualquer ajuda será bem-vinda.

Abraço


       
____________________________________________________________________________________
Novo Yahoo! Cadê? - Experimente uma nova busca.
http://yahoo.com.br/oqueeuganhocomisso 


Mais detalhes sobre a lista de discussão AsteriskBrasil