This is actually pretty historical, but it might work with newer Siemens GSM modules too.
Installation structure:
/opt/m20d /opt/m20d/bin stick m20d and handler.pl here /opt/m20d/plugins stick the input handler plugins here /opt/m20d/spool this is the spool directory for outgoing sms'es