[AsteriskBrasil] Chan_Dongle Variables

Gian Nicodemus giannicodemus em gmail.com
Sexta Agosto 7 12:32:53 BRT 2015


Pode ser que na extensão h ela já nao esteja mais definida! Não?!

--
Gian Nicodemus
Analista de sistemas
giannicodemus at gmail.com

2015-08-06 19:01 GMT-03:00 Artur Meissner <arturmnt at gmail.com>:

> Fala Pessoal blz?
>
> Estou estudando a implementação do chan_dongle e Não estou conseguindo
> obter as informações das variáveis do dongle.
>
> Meu cenário é o seguinte:
> Linux: CentOS 6.6
> Asterisk: 11.18
> Driver Chan_Dongle: Huawei 3G Dongle Channel Driver, Version 1.1, Revision
> 16
>
> extensions.conf
>
> [from-teste]
>
> exten => _X.,1,Noop( Inicio da Chamada )
>
> same => n,Noop(NUM_A ${EXTEN} )
>
> same => n,Noop(${NAME_OF_PROVIDER})
>
> same => n,Noop(${IMEI_OF_DEVICE})
>
> same => n,Dial(Dongle/r1/${EXTEN})
>
> same => n,Noop( ${DIALSTATUS})
>
> same => n,Noop( ${HANGUPCAUSE})
>
> same => n,Hangup()
>
>
> exten => h,1,Set(CDR(userfield)=REL.ISDN=${HANGUPCAUSE})
>
> same => n,Set(CDR(NAME_OF_DEVICE)=${DONGLENAME})
>
> same => n,Set(CDR(NAME_OF_PROVIDE)=${DONGLEPROVIDER})
>
> same => n,Set(CDR(IMEI_OF_DEVICE)=${DONGLEIMEI})
>
> same => n,Set(CDR(IMSI_OF_SIMCARD)=${DONGLEIMSI})
>
> same => n,Set(CDR(CNUM_NUMBER)=${DONGLENUMBER})
>
>
> dongle.conf
>
> [general]
>
> interval=15                     ; Number of seconds between trying to
> connect to devices
>
>
> [defaults]
>
> context=nada                    ; context for incoming calls
>
> group=0                         ; calling group
>
> rxgain=0                        ; increase the incoming volume; may be
> negative
>
> txgain=0                        ; increase the outgoint volume; may be
> negative
>
> autodeletesms=yes               ; auto delete incoming sms
>
> resetdongle=yes                 ; reset dongle during initialization with
> ATZ command
>
> u2diag=-1                       ; set ^U2DIAG parameter on device (0 =
> disable everything except modem function) ; -1 not use ^U2DIAG command
>
> usecallingpres=yes              ; use the caller ID presentation or not
>
> callingpres=allowed_passed_screen ; set caller ID presentation
> by default use default network settings
>
> disablesms=no                   ; disable of SMS reading from device when
> received
>
> language=en                     ; set channel default language
>
> smsaspdu=yes                    ; if 'yes' send SMS in PDU mode, feature
> implementation incomplete and we strongly recommend say 'yes'
>
> mindtmfgap=45                   ; minimal interval from end of previews
> DTMF from begining of next in ms
>
> mindtmfduration=80              ; minimal DTMF tone duration in ms
>
> mindtmfinterval=200             ; minimal interval between ends of DTMF
> of same digits in ms
>
> callwaiting=auto                ; if 'yes' allow incoming calls waiting;
> by default use network settings
>
> disable=no                      ; OBSOLETED by initstate: if 'yes' no
> load this device and just ignore this section
>
> initstate=start                 ; specified initial state of device, must
> be one of 'stop' 'start' 'remote'
>
> exten=+1234567890               ; exten for start incoming calls, only in
> case of Subscriber Number not available!, also set to CALLERID(ndid)
>
> dtmf=relax                      ; control of incoming DTMF detection,
> possible values:
>
>
> ; discovered device
>
> [dc_8562_3823](defaults)
>
> ;audio=/dev/ttyUSB1
>
> ;data=/dev/ttyUSB2
>
> imei=xxxxxxxxxxxxxx(imei suprimido para o topico)
>
> imsi=xxxxxxxxxxxxxx(imsi suprimido para o topico)
>
> Resultado na cli
>
> [2015-08-03 21:30:28]   == Spawn extension (from-teste, 971101304, 6)
> exited non-zero on 'Console/dsp'
>
> [2015-08-03 21:30:28]     -- Executing [h at from-teste:1] Set("Console/dsp",
> "CDR(userfield)=REL.ISDN=16") in new stack
>
> [2015-08-03 21:30:28]     -- Executing [h at from-teste:2] Set("Console/dsp",
> "CDR(NAME_OF_DEVICE)=") in new stack
>
> [2015-08-03 21:30:28]     -- Executing [h at from-teste:3] Set("Console/dsp",
> "CDR(NAME_OF_PROVIDE)=") in new stack
>
> [2015-08-03 21:30:28]     -- Executing [h at from-teste:4] Set("Console/dsp",
> "CDR(IMEI_OF_DEVICE)=") in new stack
>
> [2015-08-03 21:30:28]     -- Executing [h at from-teste:5] Set("Console/dsp",
> "CDR(IMSI_OF_SIMCARD)=") in new stack
>
> [2015-08-03 21:30:28]     -- Executing [h at from-teste:6] Set("Console/dsp",
> "CDR(CNUM_NUMBER)=") in new stack
>
>
> Está tudo funcionando corretamente e consigo enviar chamadas sem problema,
> mas quando tento utilizar as informações das variáveis elas aparecem com
> campo em branco ou NULL.
>
> Li apenas as informações oficiais no wiki:
> http://wiki.e1550.mobi/doku.php?id=usage
>
>
> Valeu Galera,
> Abs
> Artur M.
>
> _______________________________________________
> KHOMP: Primeira edição do WORKOFFEE CAMPO GRANDE acontecerá
> dia 19/09 no Grand Park Hotel. Conheça todo portfólio KHOMP
> e o recém lançado NGP. Faça já sua INSCRIÇÃO GRATUITA em
> www.workoffee.com.br. Sorteio de brindes no encerramento.
> _______________________________________________
> DIGIVOICE: Fabricante pioneiro em Banco de Canais e Placas E1, GSM, FXO e
> FXS para Asterisk e Elastix. Temos Cursos de Telefonia IP e Asterisk.
> Construa soluções de PABX IP com produtos DigiVoice - visite
> www.digivoice.com.br
> _______________________________________________
> Para remover seu email desta lista, basta enviar um email em branco para
> asteriskbrasil-unsubscribe at listas.asteriskbrasil.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20150807/8a562fb8/attachment.html>


Mais detalhes sobre a lista de discussão AsteriskBrasil