Re: include numbers problem
Angga Lisdiyanto <[email protected]>
| Newsgroups | gmane.linux.drivers.gammu |
|---|---|
| Message-ID | <[email protected]> |
That is imposible. But there are one solution, just use a trigger "AFTER INSERT" at inbox table. The logical is, IF the sender number is not in your contact then do nothing. ELSE do what you want. There are many MySQL trigger scripts example of Gammu in Internet. -----Pesan Asli----- Dari: "Marek" <[email protected]> Terkirim: 04/03/2016 22:58 Kepada: "Gammu and Wammu related discussions" <[email protected]> Subjek: Re: include numbers problem Hi, problem is...1.37.0 system receive sms, telephone number ist not in include number and sms stay on SIM card in modem. Even if in manua is " (incoming sms from all other numbers will be deleted) i want receive only sms from number in include numbers, other i want delete...it is possible? ______________________________________________________________ > Od: "Michal Čihař" <[email protected]> > Komu: Gammu and Wammu related discussions <[email protected]> > Dátum: 04.03.2016 13:00 > Predmet: Re: include numbers problem > >Dne 28.2.2016 v 15:58 Marek napsal(a): >> 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... > >What's exactly problem with 1.37.0 here? The infinite loop issue you see >with 1.33.0 was fixed in 1.36.0. > > >-- > Michal Čihař | http://cihar.com | http://blog.cihar.com > > > >---------- > >------------------------------------------------------------------------------ >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 ------------------------------------------------------------------------------ _______________________________________________ Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users