SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Sun May 05, 2024 17:24
SMSTools3 Community » Help and support Bottom

[answered] how to configure a movil number to receive sms in the incoming folder and not in the mobile phone?

  This topic is locked

Page:  1

Author Post
Member
Registered:
Nov 2009
Location: Santiago, Chile
Operating system name and version: Linux
Version of smsd: 3.1.5
Smsd installed from: sources / package repository / from elsewhere... : througt make and make install
Name and model of a modem / phone: any
Interface: ¿?

Hi, i need to receive the sms into the incomming folder, for a phone number in particular, This is posibble with smstools3?

Thanks

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Sorry, I unfortunately did not understand your question :(.

dm242 wrote
how to configure a movil number to receive sms in the incoming folder and not in the mobile phone?

The phone will first receive SMS and it's in the memory of a phone until smsd reads it out. After smsd reads a message, it's deleted from the phones memory. Did you mean that phone should not receive messages if smsd is not running and reading them? The system will not work this way. There should always be a storage, SIM or memory of a phone, as a buffer for incoming messages.

dm242 wrote
i need to receive the sms into the incomming folder, for a phone number in particular.

There is a global setting filename_preview available. It can be used to include part of a message as a part of a filename. It has no option to include GSM number as a part of filename, but you can modify the filename by yourself with an eventhandler. The smsd will not touch or use the message file after eventhandler is called, so you can use the eventhandler script to modify filename, for example to include GSM number. For example:

In the global part (start of a file) of smsd.conf, add a definition:
eventhandler = /usr/local/bin/smsd_eventhandler

Create this file with a following content:

#!/bin/bash

if [ "$1" = "RECEIVED" ]; then
  FROM=`formail -zx From: < $2`
  mv $2 "$2_$FROM"
fi

exit 0
 
'bash' Syntax Highlight powered by GeSHi


Make the file executable for smsd and restart the daemon.

Is this even close for what you had in your mind? ;)

Member
Registered:
Nov 2009
Location: Santiago, Chile
Topic owner
Ok, thanks

sorry for my english, but my native languaje is spanish jajajaja, thanks

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.