Mobiion Forum  
February 04, 2012, 12:44:03 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1   Go Down
  Print  
Author Topic: How to recognize a phone number in SMS content and reply an SMS to that number?  (Read 8671 times)
admin
Administrator
Hero Member
*****
Offline Offline

Posts: 1185


View Profile
« on: September 27, 2008, 03:24:43 pm »

MagiCall 2.1 introduced a new contextual parameter: {keyword}, which can be used to receive the first matched keyword in SMS content.
How to use it? Please take a look at the following example:

Rule type: SMS
Filter type: All
SMS filter: <\d{8,}>
Action2: Send SMS
To: {keyword}
Message: Blah, blah, blah

In the rule above, we use the regular expression "\d{8,}" to find strings consisting of 8 or more digits, and then send an SMS to the first found string.
That says, for example, when you receive an SMS with this content: "Please send an SMS to me at 987654321", the rule above will send an SMS to 987654321.

Further more, you may also use regular expressions to find email addresses in SMS content, and send an email to them.
Logged
Pages: 1   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006, Simple Machines LLC Valid XHTML 1.0! Valid CSS!