Discussion:
call divert / injecting AT command to gammu SMS daemon
Michał Woźniak
2016-10-18 10:28:48 UTC
Permalink
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
gilberto dos santos alves
2016-10-18 16:25:42 UTC
Permalink
[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
Post by Michał Woźniak
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
Michał Woźniak
2016-10-19 10:33:33 UTC
Permalink
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:



****@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:***@gmail.com]
*Sent:* Tuesday, October 18, 2016 6:26 PM
*To:* Gammu and Wammu related discussions <gammu-***@lists.sourceforge.net
*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 <***@upware.pl>:

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
gilberto dos santos alves
2016-10-19 12:20:28 UTC
Permalink
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
Post by Michał Woźniak
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
I also want to set diverts.
would it be possible without stopping sms daemon?
michal
*Sent:* Tuesday, October 18, 2016 6:26 PM
sourceforge.net>
*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
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
Michał Woźniak
2016-10-19 12:54:31 UTC
Permalink
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:***@gmail.com]
*Sent:* Wednesday, October 19, 2016 2:20 PM
*To:* Gammu and Wammu related discussions <gammu-***@lists.sourceforge.net
*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 <***@upware.pl>:

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:



****@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:***@gmail.com]
*Sent:* Tuesday, October 18, 2016 6:26 PM
*To:* Gammu and Wammu related discussions <gammu-***@lists.sourceforge.net
*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 <***@upware.pl>:

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
gilberto dos santos alves
2016-10-19 13:23:59 UTC
Permalink
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
Post by Michał Woźniak
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
*Sent:* Wednesday, October 19, 2016 2:20 PM
sourceforge.net>
*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
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
I also want to set diverts.
would it be possible without stopping sms daemon?
michal
*Sent:* Tuesday, October 18, 2016 6:26 PM
sourceforge.net>
*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
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
Michał Woźniak
2016-10-19 13:42:36 UTC
Permalink
Modem Telit 3G Module



***@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:***@gmail.com]
*Sent:* Wednesday, October 19, 2016 3:24 PM
*To:* Gammu and Wammu related discussions <gammu-***@lists.sourceforge.net
*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 <***@upware.pl>:

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:***@gmail.com]
*Sent:* Wednesday, October 19, 2016 2:20 PM


*To:* Gammu and Wammu related discussions <gammu-***@lists.sourceforge.net
*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 <***@upware.pl>:

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:



****@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:***@gmail.com]
*Sent:* Tuesday, October 18, 2016 6:26 PM
*To:* Gammu and Wammu related discussions <gammu-***@lists.sourceforge.net
*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 <***@upware.pl>:

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
gilberto dos santos alves
2016-10-19 14:36:46 UTC
Permalink
ya. i will verfy. tks.
Post by Michał Woźniak
Modem Telit 3G Module
[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]
*Sent:* Wednesday, October 19, 2016 3:24 PM
sourceforge.net>
*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
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
*Sent:* Wednesday, October 19, 2016 2:20 PM
sourceforge.net>
*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
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
I also want to set diverts.
would it be possible without stopping sms daemon?
michal
*Sent:* Tuesday, October 18, 2016 6:26 PM
sourceforge.net>
*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
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
Michal Čihař
2016-11-16 14:11:57 UTC
Permalink
Hello Michał
Post by Michał Woźniak
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.
You can suspend the daemon, but there is no way to inject AT commands
to it.

Suspending is shown as an example in our docs:

https://wammu.eu/docs/manual/smsd/smsd.html?highlight=sigusr1#invoking-
gammu-and-suspending-smsd
--
Michal Čihař | https://cihar.com/ | https://weblate.org/
Loading...