RE: call divert / injecting AT command to gammu SMS daemon

Michał Woźniak <[email protected]> Wed, 19 Oct 2016 15:42:36 +0200
Newsgroups gmane.linux.drivers.gammu
Message-ID <[email protected]>
Modem Telit 3G Module



root@sms:~# gammu --help info

[Gammu version 1.37.4]



Gammu commands, topic: Phone information



identify

getdisplaystatus

getlocation

monitor [times]

battery

getsecuritystatus



Pozdrawiam,

Michał Woźniak
System Engineer

UpWare Sp. z o.o.
Biuro w Rzeszowie
ul. Langiewicza 29, 35-021 Rzeszów
tel. +48 664 433 235
[image: Logo]



*From:* gilberto dos santos alves [mailto:[email protected]]
*Sent:* Wednesday, October 19, 2016 3:24 PM
*To:* Gammu and Wammu related discussions <[email protected]
>
*Subject:* Re: call divert / injecting AT command to gammu SMS daemon



this is why we need what is your version gammu and things like that to
understand and if possible help.

regards.


--
gilberto dos santos alves
+55(11)9-8646-5049
sao paulo - sp - brasil





2016-10-19 10:54 GMT-02:00 Michał Woźniak <[email protected]>:

I thought, that gammu-smsd-inject command allows only to send SMS.

I don’t need to send sms. I want to configure call redirects during
smsdaemon operation.

Are you really sure that I can do that?

gammu-smsd-inject requires MESSAGETYPE and RECIPENT. Those parameters are
not applicable for my purpose.



michal



*From:* gilberto dos santos alves [mailto:[email protected]]
*Sent:* Wednesday, October 19, 2016 2:20 PM


*To:* Gammu and Wammu related discussions <[email protected]
>
*Subject:* Re: call divert / injecting AT command to gammu SMS daemon



hi. yes i do. please why you could not use

gammu-smsd-inject [OPTION]... MESSAGETYPE RECIPIENT [MESSAGE_PARAMETER]...

please could you illustrated?

thanks.




--
gilberto dos santos alves
+55(11)9-8646-5049
sao paulo - sp - brasil




2016-10-19 8:33 GMT-02:00 Michał Woźniak <[email protected]>:

Hi,



You didn’t understood me correctly. I already knew, that injecting SMSes is
normal operation, but I want to perform the following operation when daemon
is running:



*root@sms:~# gammu -c /etc/gammu-smsdrc1 divert get all all*



I also want to set diverts.

would it be possible without stopping sms daemon?



michal



*From:* gilberto dos santos alves [mailto:[email protected]]
*Sent:* Tuesday, October 18, 2016 6:26 PM
*To:* Gammu and Wammu related discussions <[email protected]
>
*Subject:* Re: call divert / injecting AT command to gammu SMS daemon



[18101] https://wammu.eu/docs/manual/smsd/inject.html

hi. please post plataform and what version you use. yes you could stop,
process and restart gammu-smsd.

but

inject is standard operation using smsd like this link [18101] shows.

please post log fragment of your inject-commands.

what i think that is your issue is try to test divert commands to better
understand if is gammu or your device.

make some tests and let we know.

regards.


--
gilberto dos santos alves
+55(11)9-8646-5049
sao paulo - sp - brasil



2016-10-18 8:28 GMT-02:00 Michał Woźniak <[email protected]>:

Hello,

I need to do call diverts(redirects) on SIM card which is used by gammu sms
daemon all the time. The divert operation can be done few times per day.
Gammu sms daemon is occupying communication with GSM modem 24h/day. I
cannot send any AT command to port, while daemon is running. Gammu tool(not
daemon) have ready to use commands to divert calls, and they work
perfectly, while daemon is stopped. Of course, when daemon is running
command correctly claims, that port is busy.

Is there any way to gently inject AT commands to gammu-smsd, and read the
response?

My idea is to: 1. Stop daemon. 2. Perform call divert, read the result 3.
Start daemon but this idea don't look like smart or elegant solution.

If injecting commands to sms daemon is not possible, is there any gentle
way to stop the daemon not by killing process? I don't want to interrupt
daemon work, while it is sending SMS.





Best Regards,

Michal




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gammu-users mailing list -
https://lists.sourceforge.net/lists/listinfo/gammu-users




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gammu-users mailing list -
https://lists.sourceforge.net/lists/listinfo/gammu-users




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gammu-users mailing list -
https://lists.sourceforge.net/lists/listinfo/gammu-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users
image001.jpg (image/jpeg, 6.6 KB) - not displayed