sms delivery report

306 views
Skip to first unread message

Fernando Villarroel

unread,
Apr 25, 2015, 6:41:08 PM4/25/15
to chan_...@googlegroups.com
Hi All.

I am new of chan dongle.

I am playing from my laptop :

Ubuntu 14.04
Asterisk 1.8.32
Huawei E1756x

Python*CLI> dongle show devices
ID           Group State      RSSI Mode Submode Provider Name  Model      Firmware          IMEI             IMSI             Number        
dongle0      0     Free       21   0    0       entel          E1756C     11.126.10.09.18   352143046522662  730014035135911  Unknown -------------- Status -------------

 dongle show device state dongle0

  Device                  : dongle0
  State                   : Free
  Audio                   : /dev/ttyUSB1
  Data                    : /dev/ttyUSB2
  Voice                   : Yes
  SMS                     : Yes
  Manufacturer            : huawei
  Model                   : E1756C
  Firmware                : 11.126.10.09.18
  IMEI                    : 352143046522662
  IMSI                    : 730014035135911
  GSM Registration Status : Registered, home network
  RSSI                    : 21, -71 dBm
  Mode                    : No Service
  Submode                 : No service
  Provider Name           : entel
  Location area code      : 7851
  Cell ID                 : 8CD7
  Subscriber Number       : Unknown
  SMS Service Center      : +5698890005
  Use UCS-2 encoding      : Yes
  USSD use 7 bit encoding : No
  USSD use UCS-2 decoding : Yes
  Tasks in queue          : 0
  Commands in queue       : 0
  Call Waiting            : Disabled
  Current device state    : start
  Desired device state    : start
  When change state       : now
  Calls/Channels          : 0
    Active                : 0
    Held                  : 0
    Dialing               : 0
    Alerting              : 0
    Incoming              : 0
    Waiting               : 0
    Releasing             : 0
    Initializing          : 0


I am using the dialplan for send sms

[test]
exten => 99,1,DongleStatus(dongle0,DONGLE0_STATUS)
exten => 99,2,DongleSendSMS(dongle0,94491803,"Enviado desde dialplan dongle, prueba",1440,yes)
exten => 99,3,hangup

[from-dongle]
exten => sms,1,Noop(Incoming SMS from ${CALLERID(num)} ${BASE64_DECODE(${SMS_BASE64})})
exten => sms,n,System(echo '${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME} - ${CALLERID(num)}: ${BASE64_DECODE(${SMS_BASE64})}' >> /var/log/asterisk/sms.txt)
exten => sms,n,Hangup()


I can send sms from the test dialplan

how i can get the delivered report for each sms sent???

Regards

Pol Isidor

unread,
Mar 22, 2019, 8:47:04 PM3/22/19
to dongle
Good question..
I think that it isn't posible.

Emiliano Vazquez

unread,
Mar 27, 2019, 3:52:17 PM3/27/19
to chan_...@googlegroups.com
I'm using gammu[1] for this and it have delivery report maybe you can see the code and add this feature.
You can use [2]   and the command AT+CSMP=  or read [3] 


Best regards

Emiliano.



--
You received this message because you are subscribed to the Google Groups "dongle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chan_dongle...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages