Re: include numbers problem

"Marek" <[email protected]>
Newsgroups gmane.linux.drivers.gammu
Message-ID <[email protected]>
ok, 

my logformat is textalldate. I set debuglevel to 255 and this is log when system receive message. Number is not in include numbers. Log is to my mind ok

Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: SMS listing received
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsing +CMGL: 0,0,,23 with +CMGL: @i, @0
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsed int 0
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: ATGEN folder 1 & location 0 -> SMS folder 0 & location 0
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsing +CMGL: 0,0,,23 with +CMGL: @i, @i, @0
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsed int 0
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsed int 0
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Read 1 SMS locations
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Cache status: Found: 0, count: 1
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Getting message from cache
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 0791249150003049040C9124917018058200006120826144934004F4F29C0E
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Number Length=7
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Number type 91 (1 0 0 1|0 0 0 1)
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: International number
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Len 6
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: SMS center number : "+421905000394"
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: SMS type: Deliver
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Number Length=12
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Number type 91 (1 0 0 1|0 0 0 1)
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: International number
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Len 6
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Remote number : "+421907815028"
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: SMS PID: 0x00
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: SMS DCS: 0x00
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: SMS class: -1
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Decoding date & time: Sun 28 Feb 2016 04:44:39 PM  +0100
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 7 bit SMS, length 4
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: test
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Leaving GSM_GetNextSMS
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: Message excluded because of sender: +421907815028
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Entering GSM_GetNextSMS
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Number = 1, Location = 0, Folder = 0
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Cache status: Found: 1, count: 1
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Getting SIM SMS status
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: SENDING frame type 0x00/length 0x12/18
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 41A|54T|2B+|43C|50P|4DM|53S|3D=|22"|53S|4DM|22"|2C,|22"|53S|4DM AT+CPMS="SM","SM
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 22"|0D                                                          ".              
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 1 "AT+CPMS="SM","SM""
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 2 "+CPMS: 1,30,1,30,1,30"
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 3 "OK"
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Checking line: OK
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: AT reply state: 1
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: RECEIVED frame type 0x00/length 0x31/49
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 41A|54T|2B+|43C|50P|4DM|53S|3D=|22"|53S|4DM|22"|2C,|22"|53S|4DM AT+CPMS="SM","SM
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 22"|0D |0D |0A |2B+|43C|50P|4DM|53S|3A:|20 |311|2C,|333|300|2C, "...+CPMS: 1,30,
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 311|2C,|333|300|2C,|311|2C,|333|300|0D |0A |0D |0A |4FO|4BK|0D  1,30,1,30....OK.
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 0A                                                              .               
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: SMS status received
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsing +CPMS: 1,30,1,30,1,30 with +CPMS: @i, @i, @0
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsed int 1
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsed int 30
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Used : 1
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Size : 30
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Getting phone SMS status
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: SENDING frame type 0x00/length 0x12/18
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 41A|54T|2B+|43C|50P|4DM|53S|3D=|22"|4DM|45E|22"|2C,|22"|4DM|45E AT+CPMS="ME","ME
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 22"|0D                                                          ".              
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 1 "AT+CPMS="ME","ME""
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 2 "+CPMS: 0,20,0,20,1,30"
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 3 "OK"
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Checking line: OK
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: AT reply state: 1
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: RECEIVED frame type 0x00/length 0x31/49
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 41A|54T|2B+|43C|50P|4DM|53S|3D=|22"|4DM|45E|22"|2C,|22"|4DM|45E AT+CPMS="ME","ME
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 22"|0D |0D |0A |2B+|43C|50P|4DM|53S|3A:|20 |300|2C,|322|300|2C, "...+CPMS: 0,20,
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 300|2C,|322|300|2C,|311|2C,|333|300|0D |0A |0D |0A |4FO|4BK|0D  0,20,1,30....OK.
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 0A                                                              .               
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: SMS status received
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsing +CPMS: 0,20,0,20,1,30 with +CPMS: @i, @i, @0
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsed int 0
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsed int 20
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Used : 0
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Size : 20
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Getting SMS locations
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: SENDING frame type 0x00/length 0x0A/10
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 41A|54T|2B+|43C|4DM|47G|4CL|3D=|344|0D                          AT+CMGL=4.      
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 1 "AT+CMGL=4"
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 2 "OK"
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Checking line: OK
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: AT reply state: 1
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: RECEIVED frame type 0x00/length 0x10/16
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 41A|54T|2B+|43C|4DM|47G|4CL|3D=|344|0D |0D |0A |4FO|4BK|0D |0A  AT+CMGL=4...OK..
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: SMS listing received
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Read 0 SMS locations
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: GSM_GetNextSMS failed with error EMPTY[22]: Entry is empty.
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Leaving GSM_GetNextSMS
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: Read 0 messages
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Entering GSM_GetBatteryCharge
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Getting battery charge
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: SENDING frame type 0x00/length 0x07/7
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 41A|54T|2B+|43C|42B|43C|0D                                      AT+CBC.         
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 1 "AT+CBC"
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 2 "+CBC: 0,0"
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 3 "OK"
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Checking line: OK
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: AT reply state: 1
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: RECEIVED frame type 0x00/length 0x1A/26
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 41A|54T|2B+|43C|42B|43C|0D |0D |0A |2B+|43C|42B|43C|3A:|20 |300 AT+CBC...+CBC: 0
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 2C,|300|0D |0A |0D |0A |4FO|4BK|0D |0A                          ,0....OK..      
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Battery level received
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsing +CBC: 0,0 with +CBC: @i, @i
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsed int 0
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsed int 0
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Leaving GSM_GetBatteryCharge
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Entering GSM_GetSignalQuality
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Getting signal quality info
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: SENDING frame type 0x00/length 0x07/7
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 41A|54T|2B+|43C|53S|51Q|0D                                      AT+CSQ.         
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 1 "AT+CSQ"
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 2 "+CSQ: 23,99"
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 3 "OK"
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Checking line: OK
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: AT reply state: 1
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: RECEIVED frame type 0x00/length 0x1C/28
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 41A|54T|2B+|43C|53S|51Q|0D |0D |0A |2B+|43C|53S|51Q|3A:|20 |322 AT+CSQ...+CSQ: 2
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: 333|2C,|399|399|0D |0A |0D |0A |4FO|4BK|0D |0A                  3,99....OK..    
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Signal quality info received
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsing +CSQ: 23,99 with +CSQ: @i, @i
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsed int 23
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Parsed int 99
Sun 2016/02/28 16:44:52 gammu-smsd[1123]: gammu: Leaving GSM_GetSignalQuality
Sun 2016/02/28 16:45:06 gammu-smsd[1123]: gammu: Entering GSM_GetSecurityStatus
Sun 2016/02/28 16:45:06 gammu-smsd[1123]: gammu: Getting security code status
Sun 2016/02/28 16:45:06 gammu-smsd[1123]: gammu: SENDING frame type 0x00/length 0x09/9
Sun 2016/02/28 16:45:06 gammu-smsd[1123]: gammu: 41A|54T|2B+|43C|50P|49I|4EN|3F?|0D                              AT+CPIN?.       


______________________________________________________________
> Od: gilberto dos santos alves <[email protected]>
> Komu: Gammu and Wammu related discussions <[email protected]>
> Dátum: 28.02.2016 16:35
> Predmet: Re: include numbers problem
>
>hi. please work with [1] LogFormat parameter to handle what kind of
>messages you want, and [2] debuglevel 0 thru 255.
>
>[1] http://wammu.eu/docs/manual/config/index.html#gammurc
>[2] https://wammu.eu/docs/manual/smsd/config.html
>
>2016-02-28 11:58 GMT-03:00 Marek <[email protected]>:
>
>> Hi, i have gammu-smsd 1.33.0 on rasbian jessie, system is update to
>> current. All is ok, but... My config
>>
>> # Configuration file for Gammu SMS Daemon
>>
>> [gammu]
>> device = /dev/ttyUSB0
>> connection = at
>> logformat = textalldate
>>
>> #[include_numbers]
>> #number1 = +421907xxxxxx
>>
>> [smsd]
>> service = files
>> RunOnReceive = /var/spool/gammu/script/script.sh
>> pin = 0000
>> logfile = /var/log/gammu.log
>> debuglevel = 0
>>
>> inboxpath = /var/spool/gammu/inbox/
>> outboxpath = /var/spool/gammu/outbox/
>> sentsmspath = /var/spool/gammu/sent/
>> errorsmspath = /var/spool/gammu/error/
>>
>> in source file is sample config file
>>
>> # When uncomment this section and insert numbers here, smsd will process
>> # incoming sms only from numbers written here (incoming sms from all other
>> # numbers will be deleted)
>> #[include_numbers]
>> #number1 = 1234
>>
>> when i set include number and receive sms from number in include numbers,
>> so system receive sms and all is ok. But i receive sms from another number
>> and gammu-smsd write in log this line "Read 0 messages" and every 2 seconds
>> repeat it. SMS is on SIM card, gammu-smsd dont receive this mesage. But
>> dont delete it. Even if in manua is " (incoming sms from all other numbers
>> will be deleted)" When i comment include numbers, restart gammu-smsd, then
>> system receive this SMS from SIM. I upgrade system to debian-testing and i
>> have gammu 1.37.0 and problem remained. Only in log is only one line. "Read
>> 0 messages" What is problem. I want receive sms only from one number, other
>> sms from other number i want deleting
>>
>> gammu-smsd 1.33.0
>>
>> Sun 2016/02/28 13:58:37 gammu-smsd[2121]: Read 0 messages
>> Sun 2016/02/28 13:58:39 gammu-smsd[2121]: Read 0 messages
>> Sun 2016/02/28 13:58:41 gammu-smsd[2121]: Read 0 messages
>> Sun 2016/02/28 13:58:43 gammu-smsd[2121]: Read 0 messages
>> Sun 2016/02/28 13:58:45 gammu-smsd[2121]: Read 0 messages
>> Sun 2016/02/28 13:58:47 gammu-smsd[2121]: Read 0 messages
>> Sun 2016/02/28 13:58:49 gammu-smsd[2121]: Read 0 messages
>> Sun 2016/02/28 13:58:51 gammu-smsd[2121]: Read 0 messages
>> Sun 2016/02/28 13:58:53 gammu-smsd[2121]: Read 0 messages
>>
>> gammu-smsd 1.37.0
>>
>> Sun 2016/02/28 14:48:00 gammu-smsd[624]: Starting run on receive:
>> /var/spool/gammu/script/script.sh IN20160228_144753_00_+421907xxxxxx_00.txt
>> Sun 2016/02/28 14:48:00 gammu-smsd[586]: Process finished successfully
>> Sun 2016/02/28 14:48:45 gammu-smsd[586]: Read 0 messages
>> Sun 2016/02/28 14:50:31 gammu-smsd[586]: Terminating communication...
>>
>> Thanks
>>
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>> _______________________________________________
>> Gammu-users mailing list -
>> https://lists.sourceforge.net/lists/listinfo/gammu-users
>>
>
>
>
>-- 
>gilberto dos santos alves
>+55(11)9-8646-5049
>sao paulo - sp - brasil
>
>
>----------
>
>------------------------------------------------------------------------------
>Site24x7 APM Insight: Get Deep Visibility into Application Performance
>APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>Monitor end-to-end web transactions and take corrective actions now
>Troubleshoot faster and improve end-user experience. Signup Now!
>http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>
>----------
>
>_______________________________________________
>Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users
>

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.