[SHR-U] Perma-block a Number

Michael 'Mickey' Lauer mickey at vanille-media.de
Sun Jun 14 21:10:18 CEST 2009

On Sunday 14 June 2009 20:32:10 The Digital Pioneer wrote:
> Hey, I'm on SHR-Unstable and every now and then I get a call from
> 8664693328 and it's always a call bugging me about either my car warranty
> expiring or getting cheap health insurance. Now, I just bet there's a way
> to edit a YAML file or something to automatically block calls from that
> number before the phone starts ringing. Can anyone suggest a way? I don't
> mind dirty hacks, so long as it works. I'm tired of accidentally picking up
> these calls and getting charged for it.

I could do it in ogsmd, but I right now I still believe blacklisting should 
rather be implemented in the dialer application. As a quickhack for your 
problem, you could do something like:

--- a/framework/subsystems/ogsmd/modems/abstract/calling.py
+++ b/framework/subsystems/ogsmd/modems/abstract/calling.py
@@ -88,6 +88,8 @@ class CallHandler( object ):
     def ring( self ):
         for callId, info in self._calls.items():
+            if info.get( "peer", "" ).endswith( "8664693328" ):
+                continue

More information about the community mailing list