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

Michal Čihař <[email protected]> Wed, 16 Nov 2016 15:11:57 +0100
Newsgroups gmane.linux.drivers.gammu
Message-ID <[email protected]>
Hello Michał 

Michał Woźniak píše v Út 18. 10. 2016 v 12:28 +0200:
> 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/

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

_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEh+Zzr4P2w6DDRMjD9KoinU1YwkUFAlgsaS0ACgkQ9KoinU1Y
wkV/kg/9HIXvCfgyKqkaTS6attZVf+EP18IgEYcPN4e0LxMhlih9u7CK4RRjkWfD
FvB0uXxEuUzGM+VfW4suouOX+jn6ErRtJVIzJZ+sVq1o2B4lXSJAYJXDrGj8OCAX
m371nzowS+AHBebtVhLI9a7ujW4Igd8JrU9GmK9uGqSSWHqBwY1TA7ankHPFfIfb
Wg5UDI+3BgcB1dWlKNn4kvk1VQtuxHqPYJFzRyZ78W7/i0tCuSDTFZhHiv5gNi23
8Q08bADa7EqRrfrE7qTvZL0vrgzbodW/LHWZ4Wt3vd7SCd1dby+ZY1CF+2dCCgFy
/y/Pby1Ec/0AW1hwzccxI56hxYg4vIN7eocnbS247k39z54cdlh0uXbhiQfYU2B6
oDwnJjdpcBju07wUIJgVTC73ojhG6ZGL893lFaZMk2+KphzQ4nTY562iNfFeE3YP
FXlO3jdI0eIGffqckuTF/SWRKoptkTZ49tZNAFQBV9lN+TrQRYaFtLvMO4/XWEOX
Rsai6tnBY1Kg6+InBeKvLVf74/eVl+HR67F0RWgtJuUMInv3cNDC4SPJAwQ4VfeS
Zhlsvv4pi6cFOLQ0pbGR5Ieei7y+ANN1zatP7ggdjH0s3KiBHYa/v/h/CD9GlYLP
xNa21YWn7FXI4vZzqyui9d8NxD/ryD2RRi3Tg1d5H0ZjDtRHIZc=
=9gpy
-----END PGP SIGNATURE-----