FÓRUM DigiVoice

Fórum de Suporte Digivoice

Você não está logado.

#1 08/09/2016 14:28:30

renatchinha
New member
Cadastrado: 31/12/1969
Posts: 2

Problema na variavel DGV_SMS_TEXT

Boa tarde,

Estou tentando receber SMS, mas o texto recebido é ilegível.
1) Cenário:
S.O. : Debian 3.16.7-ckt11-1+deb8u3
Asterisk 1.4.28
     CLI> dgv show version
        Channel Driver Version: 1.1.6
        VoicerLib Version.....: 4.2.5.4 (4254)
        Firmware Versions.....:
           |_ DigiVoice Card 1: 4ah
Placa GSM: VB0404GSM

2) Extensions:
; SMS Recebido
exten => dgv_sms,1,NoOp(SMS RECEBIDO DE: ${DGV_SMS_FROM} em ${DGV_SMS_DATE} as ${DGV_SMS_TIME})
exten => dgv_sms,n,System(echo "${DGV_SMS_DATE}(${DGV_SMS_TIME}): '${DGV_SMS_TEXT}'" >> /tmp/"${DGV_SMS_FROM:3}")
exten => dgv_sms,n,Hangup

3) Quando recebo SMS (texto do SMS foi "Oi"), através do CLI aparece a seguinte informação:
    -- SMS received on port 3
    -- Going to extension dgv_sms|1
    -- (Dgv/3): SMS Received, use DGV_SMS_FROM, DGV_SMS_SIMCARDID, DGV_SMS_DATE, DGV_SMS_TIME and DGV_SMS_TEXT variables to read it!
    -- Executing [dgv_sms@to-gsm:1] NoOp("DGV/3-SMS-1", "SMS RECEBIDO DE: +5511997979797 em 16/09/08 as 11:48:55: CM@I: "MT",1@") in new stack
    -- Executing [dgv_sms@to-gsm:2] System("DGV/3-SMS-1", "echo "16/09/08(11:48:55): CM@I: "MT",1@" >> /tmp/"11997979797"") in new stack
    -- Executing [dgv_sms@to-gsm:3] Hangup("DGV/3-SMS-1", "") in new stack
  == Spawn extension (to-gsm, dgv_sms, 3) exited non-zero on 'DGV/3-SMS-1'

4) O conteúdo do arquivo /tmp/11997979797 :
16/09/08(11:48:55): CM@I: MT,1@


O que posso fazer pra que a mensagem do SMS seja exibida e gravada corretamente?

Obrigada.
Renata Dias

Offline

 

#2 06/11/2017 16:18:54

garotovx
New member
Cadastrado: 31/12/1969
Posts: 3

Re: Problema na variavel DGV_SMS_TEXT

mesmo erro aqui utilizando centos 7
pedaço do log

<18:48:54>-set_gsm_timeout - handle 13264 com tempo 45000
<18:48:54>-Character received C_UART2:


<18:48:54>-GSM_AT_RECEIVING: LF received: 'Mtc: Confirmado' - nBuff 0
<18:48:54>-set_gsm_timeout - handle -1 com tempo 0
<18:48:54>- * GSM_SMS2: Analyse: Mtc: Confirmado - !nBuff 0

<18:48:54>- * GSM_SMS2 partial: +CMGR: "REC UNREAD","600021",,"17/11/06,18:48:51-08"

<18:48:54>-Character received C_UART2:


<18:48:54>-GSM_AT_IDLE: LF received: '' - nBuff 1
<18:48:54>-set_gsm_timeout - handle -1 com tempo 0
<18:48:54>- * GSM_SMS2: Analyse:  - !nBuff 1

<18:48:54>- * GSM_SMS2 partial: +CMGR: "REC UNREAD","600021",,"17/11/06,18:48:51-08"
CM@I: "MT",1@

<18:48:54>-Character received C_UART2: O K
<18:48:54>-set_gsm_timeout - handle 13265 com tempo 45000
<18:48:54>-Character received C_UART2:


<18:48:54>-GSM_AT_RECEIVING: LF received: 'OK' - nBuff 0
<18:48:54>-set_gsm_timeout - handle -1 com tempo 0
<18:48:54>- * GSM_SMS2: Analyse: OK - !nBuff 0

Última alteração por garotovx (06/11/2017 18:51:37)

Offline

 

#3 11/03/2018 19:00:12

tsicalas
New member
Cadastrado: 31/12/1969
Posts: 2

Re: Problema na variavel DGV_SMS_TEXT

Galera,

Estou com o mesmo problema aqui vocês conseguiram resolver ?

  == Spawn extension (from-pstn, h, 1) exited non-zero on 'DGV/1-SMS-1'
    -- Executing [dgv_sms@from-pstn:1] NoOp("DGV/4-SMS-1", "SMS Recebido de : 0805000 - 18/03/11(18:43:17): +@M@@: 1,45,1,45,1,45@
") in new stack
    -- Executing [dgv_sms@from-pstn:2] System("DGV/4-SMS-1", "echo "18/03/11(18:43:17) - 0805000: +@M@@: 1,45,1,45,1,45@
" >> /tmp/"0805000".sms") in new stack
    -- Executing [dgv_sms@from-pstn:3] Hangup("DGV/4-SMS-1", "") in new stack
  == Spawn extension (from-pstn, dgv_sms, 3) exited non-zero on 'DGV/4-SMS-1'

Offline

 

Rodapé do fórum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson