DND - "Não perturbe" não funciona

Issue #24 resolved
Diego Cabral created an issue

Como o intuito de bloquear o ramal para não receber chamada pressiono *22, ouço áudio "não perturbe ativado", no entanto o ramal continua recebendo ligação. O que fazer para resolver? O problema persiste desde a versão 3.04

Comments (2)

  1. Jean Eduardo

    Estou com o mesmo problema

    Minhas regras de negócio 1. Define Centro de custo 2. Reescreve a requisicao cortando os 4 primeiros digitos 3. Disca para o ramal por 9 segundos 4. envia para uma fila 5. Disca para outro ramal

    Log

    #!
    
    *******ATIVANDO DND*******
    
       -- Executing [*22@default:1] NoOp("SIP/4002-0002a079", "Ativacao de DND") in new stack
        -- Executing [*22@default:2] Set("SIP/4002-0002a079", "CHANNEL(language)=pt_BR") in new stack
        -- Executing [*22@default:3] AGI("SIP/4002-0002a079", "snep/dnd.php,enable") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/snep/dnd.php
    <SIP/4002-0002a079>AGI Tx >> agi_request: snep/dnd.php
    <SIP/4002-0002a079>AGI Tx >> agi_channel: SIP/4002-0002a079
    <SIP/4002-0002a079>AGI Tx >> agi_language: pt_BR
    <SIP/4002-0002a079>AGI Tx >> agi_type: SIP
    <SIP/4002-0002a079>AGI Tx >> agi_uniqueid: 1490204023.172802
    <SIP/4002-0002a079>AGI Tx >> agi_version: 13.12.2
    <SIP/4002-0002a079>AGI Tx >> agi_callerid: 4002
    <SIP/4002-0002a079>AGI Tx >> agi_calleridname: Jean Eduardo da Silva Santos
    <SIP/4002-0002a079>AGI Tx >> agi_callingpres: 0
    <SIP/4002-0002a079>AGI Tx >> agi_callingani2: 0
    <SIP/4002-0002a079>AGI Tx >> agi_callington: 0
    <SIP/4002-0002a079>AGI Tx >> agi_callingtns: 0
    <SIP/4002-0002a079>AGI Tx >> agi_dnid: *22
    <SIP/4002-0002a079>AGI Tx >> agi_rdnis: unknown
    <SIP/4002-0002a079>AGI Tx >> agi_context: default
    <SIP/4002-0002a079>AGI Tx >> agi_extension: *22
    <SIP/4002-0002a079>AGI Tx >> agi_priority: 3
    <SIP/4002-0002a079>AGI Tx >> agi_enhanced: 0.0
    <SIP/4002-0002a079>AGI Tx >> agi_accountcode: 
    <SIP/4002-0002a079>AGI Tx >> agi_threadid: 140175079773952
    <SIP/4002-0002a079>AGI Tx >> agi_arg_1: enable
    <SIP/4002-0002a079>AGI Tx >> 
    <SIP/4002-0002a079>AGI Rx << VERBOSE "4002 -> *22 INFO (6):Identified source: 4002 (Snep_Exten)" 1
     snep/dnd.php,enable: 4002 -> *22 INFO (6):Identified source: 4002 (Snep_Exten)
    <SIP/4002-0002a079>AGI Tx >> 200 result=1
        -- <SIP/4002-0002a079>AGI Script snep/dnd.php completed, returning 0
        -- Executing [*22@default:4] Playback("SIP/4002-0002a079", "do-not-disturb") in new stack
        -- <SIP/4002-0002a079> Playing 'do-not-disturb.slin' (language 'pt_BR')
    [Mar 22 14:33:43] NOTICE[1397]: chan_sip.c:28261 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 3885
        -- Executing [*22@default:5] Playback("SIP/4002-0002a079", "activated") in new stack
        -- <SIP/4002-0002a079> Playing 'activated.slin' (language 'pt_BR')
    [Mar 22 14:33:44] NOTICE[1397]: chan_sip.c:28261 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 3885
    [Mar 22 14:33:45] NOTICE[1397]: chan_sip.c:28261 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2014
        -- Executing [*22@default:6] Hangup("SIP/4002-0002a079", "") in new stack
      == Spawn extension (default, *22, 6) exited non-zero on 'SIP/4002-0002a079'
        -- Executing [h@default:1] Hangup("SIP/4002-0002a079", "") in new stack
      == Spawn extension (default, h, 1) exited non-zero on 'SIP/4002-0002a079'
      == Using SIP RTP TOS bits 184
    
    **********LIGAÇÃO PARA RAMAL COM DND HABILITADO*****************
        -- Executing [4002@default:1] NoOp("SIP/4001-0002a08c", "LIGACAO DE 4001 PARA 4002 NO CANAL SIP/4001-0002a08c") in new stack
        -- Executing [4002@default:2] Set("SIP/4001-0002a08c", "CHANNEL(language)=pt_BR") in new stack
        -- Executing [4002@default:3] Set("SIP/4001-0002a08c", "DSTORIGINAL=4002") in new stack
        -- Executing [4002@default:4] UserEvent("SIP/4001-0002a08c", "SnepDial, Caller:4001,Dest:4002") in new stack
        -- Executing [4002@default:5] GotoIf("SIP/4001-0002a08c", "1?snep") in new stack
        -- Goto (default,4002,9)
        -- Executing [4002@default:9] AGI("SIP/4001-0002a08c", "snep/snep.php") in new stack
        -- Launched AGI Script /var/lib/asterisk/agi-bin/snep/snep.php
    <SIP/4001-0002a08c>AGI Tx >> agi_request: snep/snep.php
    <SIP/4001-0002a08c>AGI Tx >> agi_channel: SIP/4001-0002a08c
    <SIP/4001-0002a08c>AGI Tx >> agi_language: pt_BR
    <SIP/4001-0002a08c>AGI Tx >> agi_type: SIP
    <SIP/4001-0002a08c>AGI Tx >> agi_uniqueid: 1490204120.172821
    <SIP/4001-0002a08c>AGI Tx >> agi_version: 13.12.2
    <SIP/4001-0002a08c>AGI Tx >> agi_callerid: 4001
    <SIP/4001-0002a08c>AGI Tx >> agi_calleridname: Ramal 4001
    <SIP/4001-0002a08c>AGI Tx >> agi_callingpres: 0
    <SIP/4001-0002a08c>AGI Tx >> agi_callingani2: 0
    <SIP/4001-0002a08c>AGI Tx >> agi_callington: 0
    <SIP/4001-0002a08c>AGI Tx >> agi_callingtns: 0
    <SIP/4001-0002a08c>AGI Tx >> agi_dnid: 4002
    <SIP/4001-0002a08c>AGI Tx >> agi_rdnis: unknown
    <SIP/4001-0002a08c>AGI Tx >> agi_context: default
    <SIP/4001-0002a08c>AGI Tx >> agi_extension: 4002
    <SIP/4001-0002a08c>AGI Tx >> agi_priority: 9
    <SIP/4001-0002a08c>AGI Tx >> agi_enhanced: 0.0
    <SIP/4001-0002a08c>AGI Tx >> agi_accountcode: 
    <SIP/4001-0002a08c>AGI Tx >> agi_threadid: 140175092979456
    <SIP/4001-0002a08c>AGI Tx >> 
    <SIP/4001-0002a08c>AGI Rx << VERBOSE "4001 -> 4002 INFO (6):Identified source: 4001 (Snep_Exten)" 1
     snep/snep.php: 4001 -> 4002 INFO (6):Identified source: 4001 (Snep_Exten)
    <SIP/4001-0002a08c>AGI Tx >> 200 result=1
    <SIP/4001-0002a08c>AGI Rx << VERBOSE "4001 -> 4002 INFO (6):Connection attempt from 4001 (SIP/4001-0002a08c) to 4002" 1
     snep/snep.php: 4001 -> 4002 INFO (6):Connection attempt from 4001 (SIP/4001-0002a08c) to 4002
    <SIP/4001-0002a08c>AGI Tx >> 200 result=1
    <SIP/4001-0002a08c>AGI Rx << GET VARIABLE CDR(userfield)
    <SIP/4001-0002a08c>AGI Tx >> 200 result=1 ()
    <SIP/4001-0002a08c>AGI Rx << SET VARIABLE CDR(userfield) "1490204120_20170322_1435_4001_4002"
    <SIP/4001-0002a08c>AGI Tx >> 200 result=1
    <SIP/4001-0002a08c>AGI Rx << VERBOSE "4001 -> 4002 INFO (6):Running the rule 269:Internas - Ramal para Ramal" 1
     snep/snep.php: 4001 -> 4002 INFO (6):Running the rule 269:Internas - Ramal para Ramal
    <SIP/4001-0002a08c>AGI Tx >> 200 result=1
    <SIP/4001-0002a08c>AGI Rx << VERBOSE "4001 -> 4002 INFO (6):Recording with 'mixmonitor'" 1
     snep/snep.php: 4001 -> 4002 INFO (6):Recording with 'mixmonitor'
    <SIP/4001-0002a08c>AGI Tx >> 200 result=1
    <SIP/4001-0002a08c>AGI Rx << EXEC mixmonitor "/var/www/html/snep/arquivos/2017-03-22//1490204120_20170322_1435_4001_4002.wav49,b"
        -- AGI Script Executing Application: (mixmonitor) Options: (/var/www/html/snep/arquivos/2017-03-22//1490204120_20170322_1435_4001_4002.wav49,b)
    <SIP/4001-0002a08c>AGI Tx >> 200 result=0
    <SIP/4001-0002a08c>AGI Rx << VERBOSE "4001 -> 4002 INFO (6):Definindo centro de custos para 9." 1
     snep/snep.php: 4001 -> 4002 INFO (6):Definindo centro de custos para 9.
    <SIP/4001-0002a08c>AGI Tx >> 200 result=1
      == Begin MixMonitor Recording SIP/4001-0002a08c
    <SIP/4001-0002a08c>AGI Rx << SET VARIABLE CHANNEL(accountcode) "9"
    <SIP/4001-0002a08c>AGI Tx >> 200 result=1
    <SIP/4001-0002a08c>AGI Rx << SET VARIABLE __PICKUPMARK "2"
    <SIP/4001-0002a08c>AGI Tx >> 200 result=1
    <SIP/4001-0002a08c>AGI Rx << VERBOSE "4001 -> 4002 INFO (6):Discando para ramal 4002 no canal SIP/4002." 1
     snep/snep.php: 4001 -> 4002 INFO (6):Discando para ramal 4002 no canal SIP/4002.
    <SIP/4001-0002a08c>AGI Tx >> 200 result=1
    <SIP/4001-0002a08c>AGI Rx << GET VARIABLE CALLERID(name)
    <SIP/4001-0002a08c>AGI Tx >> 200 result=1 (Ramal 4001)
    <SIP/4001-0002a08c>AGI Rx << GET VARIABLE CALLERID(num)
    <SIP/4001-0002a08c>AGI Tx >> 200 result=1 (4001)
    <SIP/4001-0002a08c>AGI Rx << EXEC Dial "SIP/4002,60,twk"
        -- AGI Script Executing Application: (Dial) Options: (SIP/4002,60,twk)
      == Using SIP RTP TOS bits 184
      == Using SIP RTP CoS mark 5
        -- Called SIP/4002
        -- SIP/4002-0002a08d is ringing
    [Mar 22 14:35:22] NOTICE[1397]: chan_sip.c:28261 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 3880
    [Mar 22 14:35:22] NOTICE[1397]: chan_sip.c:28261 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 2003
    <SIP/2032-0002a08a>AGI Tx >> 200 result=-1
    <SIP/2032-0002a08a>AGI Rx << GET VARIABLE DIALSTATUS
    <SIP/2032-0002a08a>AGI Tx >> 200 result=1 (CANCEL)
    
  2. Douglas Conrad
    • begin translation of README to english
    • change concept of "Cost Center" to "Tag". From now, the field "Costs Center" will be "Tags".
    • defining default language to English
    • Fixed DND function when call a Extension with DND enabled. fix bug #24

    → <<cset b206e20bdfb8>>

  3. Log in to comment