Not getting incoming SMS

2,627 views
Skip to first unread message

Egor

unread,
Sep 20, 2011, 4:12:46 AM9/20/11
to dongle
After some accident (I cant explain what happened), two e1550 under
chan_dongle cant get incoming SMS. Outgoing is working OK, USSD is
working OK.

When sending SMS to numbers in chan_dongle (diferent operators) SMS is
not delivered and report in mobile says "waiting".

When I take off sim card from E1550 and put it into phone all SMS are
coming.
It feels like mobile operator thinks that SIM is offline when it is in
E1550 under dongle.

Please, what can you advice?

I am using Dongle Version 1.1, Revision 2 under Asterisk 1.8.5.0 Linux
2.6.36


Please provide any additional information below.

----------------------------------------------------------
192*CLI> dongle show device state datacard0
-------------- Status -------------
Device : datacard0
State : Active 1
Audio : /dev/ttyUSB1
Data : /dev/ttyUSB2
Voice : Yes
SMS : Yes
Manufacturer : huawei
Model : E1550
Firmware : 11.608.14.15.311
IMEI : ********
IMSI : ********
GSM Registration Status : Registered, home network
RSSI : 28, -108 dBm
Mode : GSM/GPRS
Submode : EDGE
Provider Name : KYIVSTAR
Location area code : BB95
Cell ID : 203B
Subscriber Number : +****
SMS Service Center : +380672021111
Use UCS-2 encoding : Yes
USSD use 7 bit encoding : Yes
USSD use UCS-2 decoding : No
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 : 1
Active : 1
Held : 0
Dialing : 0
Alerting : 0
Incoming : 0
Waiting : 0
Releasing : 0
Initializing : 0

----------------------------------------------------------
----------------------------------------------------------
192*CLI> dongle show device state datacard1
-------------- Status -------------
Device : datacard1
State : Free
Audio : /dev/ttyUSB4
Data : /dev/ttyUSB5
Voice : Yes
SMS : Yes
Manufacturer : huawei
Model : E1550
Firmware : 11.608.14.15.311
IMEI : *******
IMSI : *******
GSM Registration Status : Registered, home network
RSSI : 23, -111 dBm
Mode : GSM/GPRS
Submode : EDGE
Provider Name : MTS UKR
Location area code : 8110
Cell ID : CFB4
Subscriber Number : +*******
SMS Service Center : +38050000501
Use UCS-2 encoding : Yes
USSD use 7 bit encoding : Yes
USSD use UCS-2 decoding : No
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

----------------------------------------------------------

Paco Gil

unread,
Sep 20, 2011, 5:00:28 AM9/20/11
to chan_...@googlegroups.com
did it work before the accident?

Ady Deac

unread,
Sep 20, 2011, 5:07:48 AM9/20/11
to chan_...@googlegroups.com
Most likely you have full inbox on the dongle. :) Try to clear the inbox
using the AT commands on the dongle.

Please use some debugging (asterisk -vvvr) and report back any
errors/warning you might see?

Regards,
Adrian

Egor

unread,
Sep 20, 2011, 6:12:51 AM9/20/11
to dongle
cleaned all messages on SIM cards.
situation is the same. SMS not coming, report on sending side is
"waiting"

Asterisk shows nothing.

Egor

unread,
Sep 20, 2011, 6:13:32 AM9/20/11
to dongle
yes, I tested configuration and it worked OK.
After some time we mentioned that we dont have any incoming messages.

Ady Deac

unread,
Sep 20, 2011, 6:36:48 AM9/20/11
to chan_...@googlegroups.com
Egor,

Please check that the SMS sending center number is OK. Double check it?

Also, what "accident" are you talking about? Could you please provide
more details on this issue?

Try to use the dongles on some other computer (eg. on Windows). Try to
use other dongles with asterisk?

Please provide more debugging information as I've specified earlier.

Regards,
Adrian

Egor

unread,
Sep 20, 2011, 6:52:09 AM9/20/11
to dongle
SMS center is correct,
when using modem software on WIN PC sms is coming OK

Cant give any information about accidentm as I dont know what
happened. It just stopped to get messages at some moment.

I dont even now where to look, as asterisk console show nothing when
incoming message comes, as nothing is happening.

where can I look for additional info?

Paco Gil

unread,
Sep 20, 2011, 7:09:28 AM9/20/11
to chan_...@googlegroups.com


2011/9/20 Egor <in...@site-studio.com.ua>

SMS center is correct,
when using modem software on WIN PC sms is coming OK

Cant give any information about accidentm as I dont know what
happened. It just stopped to get messages at some moment.

I dont even now where to look, as asterisk console show nothing when
incoming message comes, as nothing is happening.

where can I look for additional info?

If you say modem is ok... then activate debug in console and you should see sms coming in....

Egor

unread,
Sep 20, 2011, 7:49:18 AM9/20/11
to dongle
SMMEMFULL:"ME"
As I understand, memory is full? but what memory?
I put SIMs into phone and erased all SMS from SIM.

Internal modem memory? how can I clear it?

On 20 сен, 14:09, Paco Gil <pag...@gmail.com> wrote:
> 2011/9/20 Egor <i...@site-studio.com.ua>

Adrian Deac

unread,
Sep 20, 2011, 8:13:54 AM9/20/11
to dongle
See? Told ya! ;)

Looks like ME is the phone internal phonebook? At least from the
gammu's man page...

But:
http://www.makhutov.org/websvn/comp.php?repname=chan_datacard&compare%5B%5D=/@33&compare%5B%5D=/@34

reads:
* \brief Handle ^SMMEMFULL messages. This event notifies us, that the
sms storage is full.

And, a bit more of Googling turned out this:
http://code.google.com/p/asterisk-chan-dongle/issues/detail?id=31

Egor, please consider Google as your best friend? And learn how to use
it?

Adrian

Egor

unread,
Sep 20, 2011, 9:58:42 AM9/20/11
to dongle
You are right. Be sure I used google to solve the problem, but not
successfull.
With your help I found new ways to debug my ASterisk configuration.
Thank you very much!

But how to empty that f****n memory?
Cant find proper AT command

On 20 сен, 15:13, Adrian Deac <adyd...@gmail.com> wrote:
> See? Told ya! ;)
>
> Looks like ME is the phone internal phonebook? At least from the
> gammu's man page...
>
> But:http://www.makhutov.org/websvn/comp.php?repname=chan_datacard&compare...

Paco Gil

unread,
Sep 20, 2011, 10:06:22 AM9/20/11
to chan_...@googlegroups.com

Egor

unread,
Sep 20, 2011, 10:12:23 AM9/20/11
to dongle
Thank you very much for your help!
and additional thanks for you development!!!

Paco Gil

unread,
Sep 20, 2011, 10:28:31 AM9/20/11
to chan_...@googlegroups.com

bg

unread,
Sep 21, 2011, 1:37:46 AM9/21/11
to dongle
http://code.google.com/p/asterisk-chan-dongle/issues/detail?id=31&can=1

solved

please upgrade your chan_dongle to latest version

bg

unread,
Sep 21, 2011, 1:40:51 AM9/21/11
to dongle
But some reasons for SMMEMFULL still exists:

time when dongle poweron and registered but not handled by
chan_dongle.
If SMS received at this time SMS just stored to ME or SM memory and
not deleted.

Nikolai P.

unread,
Apr 14, 2014, 11:50:46 AM4/14/14
to chan_...@googlegroups.com
All of a sudden I started to experience same problem. All 3 dongles stopped recieving incoming messages, while sending works fine. Memory is clear, moreover I can see that messages appear in device memory, but dongle extension isn't fired anymore. Any clues on this one? How to debug the problem?

dongle.conf:
[defaults]
; now you can set here any not required device settings as template
;   sure you can overwrite in any [device] section this default values

context=dongle-incoming
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
                                ;  chan_dongle has currently a bug with SMS reception. When a SMS gets in during a
                                ;  call chan_dongle might crash. Enable this option to disable sms reception.
                                ;  default = no

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
                                ; if 'no' waiting calls just ignored
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'
                                ;   'remove' same as 'disable=yes'

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:
                                ;   off    - off DTMF tones detection, voice data passed to asterisk unaltered
                                ;              use this value for gateways or if not use DTMF for AVR or inside dialplan
                                ;   inband - do DTMF tones detection
                                ;   relax  - like inband but with relaxdtmf option
                                ;  default is 'relax' by compatibility reason

; dongle required settings

[dongle4]
audio=/dev/ttyUSB20 ; 3-3
data=/dev/ttyUSB19 ; 3-3


extensions.conf:
[dongle-incoming]
exten => sms,1,Noop(Incoming SMS from ${CALLERID(num)} ${BASE64_DECODE(${SMS_BASE64})})
exten => sms,n,Set(phone=${SHELL(echo ${CALLERID(num)} | sed -e 's/\+//g')})
exten => sms,n,Set(file=/var/log/asterisk/${phone})
exten => sms,n,NoOp(-----------${phone}--------)
exten => sms,n,System(echo "${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)}" >> ${file})
exten => sms,n,System(echo "${DONGLEIMEI}" >> ${file})
exten => sms,n,System(echo "${DONGLEIMSI}" >> ${file})
exten => sms,n,System(echo "${CALLERID(num)}" >> ${file})
exten => sms,n,System(echo "${BASE64_DECODE(${SMS_BASE64})}" >> ${file})
exten => sms,n,Hangup()

host21*CLI> dongle cmd dongle4 AT+CMGL=4
[dongle4] 'AT+CMGL=4' Command queued for execute
 [dongle4] Got Response for user's command:'+CMGL: 0,1,,23'
[Apr 14 23:49:34] NOTICE[8416]: at_response.c:1718 at_response: [dongle4] Got Response for user's command:'+CMGL: 0,1,,23'

Nikolai P.

unread,
Apr 14, 2014, 7:03:11 PM4/14/14
to chan_...@googlegroups.com
Forgot to add system info:

[root@host21 ~]# uname -a
Linux host21.centos 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25 19:59:55 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@host21 ~]# cat /etc/system-release
CentOS release 6.5 (Final)

[root@host21 ~]# asterisk -rvvvvvv
Asterisk 11.8.1, Copyright (C) 1999 - 2013 Digium, Inc. and others.

host21*CLI> dongle show version
chan_dongle: Huawei 3G Dongle Channel Driver, Version 1.1, Revision 34

host21*CLI> dongle show device state dongle4
-------------- Status -------------
  Device                  : dongle4
  State                   : Free
  Audio                   : /dev/ttyUSB20
  Data                    : /dev/ttyUSB19
  Voice                   : Yes
  SMS                     : Yes
  Manufacturer            :
  Model                   : huawei
  Firmware                : E359
  IMEI                    :
  IMSI                    : 863664011949442
  GSM Registration Status : Registered, home network
  RSSI                    : 17, -79 dBm
  Mode                    : No Service
  Submode                 : No service
  Provider Name           : Globe Telecom-PH
  Location area code      : "81B0"
  Cell ID                 : "C159"
  Subscriber Number       : Unknown
  SMS Service Center      : 002B003600330039003
  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

host21*CLI> dongle show device statistics dongle4
-------------- Statistics -------------
  Device                      : dongle4
  Queue tasks                 : 2650
  Queue commands              : 2671
  Responses                   : 2686
  Bytes of read responses     : 17044
  Bytes of written commands   : 8203
  Bytes of read audio         : 0
  Bytes of written audio      : 0
  Readed frames               : 0
  Readed short frames         : 0
  Wrote frames                : 0
  Wrote short frames          : 0
  Wrote silence frames        : 0
  Write buffer overflow bytes : 0
  Write buffer overflow count : 0
  Incoming calls              : 0
  Waiting calls               : 0
  Handled input calls         : 0
  Fails to PBX run            : 0
  Attempts to outgoing calls  : 0
  Answered outgoing calls     : 0
  Answered incoming calls     : 0
  Seconds of outgoing calls   : 0
  Seconds of incoming calls   : 0
  ACD for incoming calls      : -1
  ACD for outgoing calls      : -1
  ASR for incoming calls      : -1
  ASR for outgoing calls      : -1

Reply all
Reply to author
Forward
0 new messages