Mobiion Forum  
May 22, 2012, 08:30:51 am *
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: PERL Expressions Not Filtering Number  (Read 2275 times)
LuckyX
Newbie
*
Offline Offline

Posts: 4


View Profile
« on: June 25, 2008, 12:20:48 am »

MagiCall 2.0

I have rules set up for filtering incoming text messages while I'm unavailable, but it causes problems when autoresponding to system messages (from the carrier, or text alerts from Yahoo) because they keep sending back their own autoresponse and it gets caught in an unending loop. I tried to use a PERL Expression in the SMS Filter box, but it doesn't seem to work.

Code:
Rule Type: SMS
Filter Type: All
SMS Filter: -<\d{1,6}>

I have also tried...

Code:
SMS Filter: -<\d{5}>

...since the system messages usually come from a 5 digit number, but that still didn't work. It only works if I actually put the minus (-) sign and the actual number itself, though, system messages do not always come from the same number. Also, sometimes the number is a 6 digit number, so that's why I wanted to use -<\d{1,6}> to block anything between 1 and 6 digits.

Otherwise, the filtering has worked fine, just doesn't seem to want to filter based on PERL Expressions.
Logged
admin
Administrator
Hero Member
*****
Offline Offline

Posts: 1188


View Profile
« Reply #1 on: June 25, 2008, 03:32:56 am »

Hi,

Regular expressions only filter SMS contents. They are not able to filter senders' number.
Your rule will work only when there is a phone number in the SMS content.
Logged
LuckyX
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #2 on: June 25, 2008, 03:49:08 pm »

Okay, was just confused because of this part in the documentation:

Quote
For example, if you want to filter SMS with phone numbers consisting of 8 digits in its content, you may use this expression: +<\d{8}>

I just assumed that that would actually block the number much like it would by putting the (-) and the number itself since that way will actually block the number.

Is there any way of exmpting numbers based on the length of the string? If not, do you think this might ever be possible? Would really be useful so that it doesn't autorespond to system messages and cause al kinds of chaos without having to try and input every single system number since there's so many different ones.

Thanx.
Logged
admin
Administrator
Hero Member
*****
Offline Offline

Posts: 1188


View Profile
« Reply #3 on: June 25, 2008, 04:31:59 pm »

To block phone numbers of specified length, use "Specific Number" option, and type '?' in the Phone# field.

For example:
Filter type: Specific number
Phone#: ?????

To filter more:
Phone#: ?; ??; ???; ????; ?????; ??????
Logged
LuckyX
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #4 on: June 25, 2008, 07:55:13 pm »

Well, that's kind of the opposite of what I wanted to do, but I think it helped me figure it out.

I want to filter all numbers -EXCEPT- the system numbers. The way you described would filter -ONLY- the system numbers. Though, just curious, if I set up another rule -ABOVE- this rule with...

Filter Type: Specific Number

...and enter a number of...

Phone Number: ?; ??; ???; ????; ?????; ??????

...and set

Action1: System Default
Action2: Do Nothing

...will that cause the program to let those pass and not let them pass on to further rules. in essence keeping them from reaching my original rule with the autoresponse in it? If not, which Action would I use to let the program let the messages through without any processing?
« Last Edit: June 25, 2008, 08:36:57 pm by LuckyX » Logged
admin
Administrator
Hero Member
*****
Offline Offline

Posts: 1188


View Profile
« Reply #5 on: June 25, 2008, 09:20:06 pm »

Yes. Action1 "System Default" is your choice.
Logged
LuckyX
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #6 on: June 26, 2008, 09:06:04 am »

Yup, tried it last night and it seems to work great. Sent a message to my phone through instant messenger and it didn't autorespond to it which is exactly what I wanted it to do!    Grin

Thanx for the help and thanx especially for the awesome software. Now if only my landline could do the things this software could do.  Grin
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!