Active Topics

 


Reply
Thread Tools
Aranel's Avatar
Posts: 301 | Thanked: 227 times | Joined on Nov 2009 @ Turkey
#1
Hi,

I'm learning Python and Qt these days, 3 days ago a friend of mine complained about someone disturbing her, and she blocked him using Blackballer. (Nokia 5800XM app) But I didn't like that way, because.. It is not fun! I would prefer auto-accept all calls from a blacklist and play mp3 to them (rickrolling time!) That way I can do some "damage" to caller and make him suffer

So, I can get the number via dbus and accept it based on a blacklist (and close the connection after an interval optionally), and I think it would be very easy to implement a logging feature. I can do a simple GUI for it too.

Problem is, I don't know how to play mp3 to caller, and cancel the microphone at the same time, and It's killing the whole funny project for me :|

Any suggestions about this? Maybe a pulseaudio one-liner? or source of a similar app?
__________________
Maemo/MeeGo/Tizen Turkey - http://meegoturkiye.org & http://tizenturkiye.com
N900: Turkish Localization | MT Theme | VodaSMS
N9: MeeSaver
Maintaining: Audelicious | xmp
 

The Following 3 Users Say Thank You to Aranel For This Useful Post:
Posts: 75 | Thanked: 43 times | Joined on Aug 2007 @ UK
#2
What a nice idea

I really hope this is possible
 

The Following User Says Thank You to yorkey For This Useful Post:
Posts: 212 | Thanked: 189 times | Joined on Oct 2010
#3
unfortunately i can't help. nice idea.
 
Posts: 147 | Thanked: 150 times | Joined on Aug 2010 @ Finland
#4
Trying to playback audio during a phone call will result in the "audio is in use"-error message.

See this thread: http://talk.maemo.org/showthread.php?t=43852
 
bigears5000's Avatar
Posts: 468 | Thanked: 775 times | Joined on May 2010 @ Hereford, England
#5
Perhaps if it's not possible this way, you could somehow send the blacklisted (PYcallblocker maybe?) number to voicemail (your mp3 recording) thus costing them. I don't know if it can be done that way though. Just an idea.

Last edited by bigears5000; 2011-01-17 at 18:25.
 
Aranel's Avatar
Posts: 301 | Thanked: 227 times | Joined on Nov 2009 @ Turkey
#6
Originally Posted by Aonsaithya View Post
Trying to playback audio during a phone call will result in the "audio is in use"-error message.

See this thread: http://talk.maemo.org/showthread.php?t=43852
What if application creates a NULL sink and redirects mp3 to that sink? Would It still complain about Audio?

I'm thinking of something like this, already done that on my Ubuntu installation using pavucontrol, so It should be possible on Maemo using pactl and pacmd (if only I/Someone know how to use them):

Music Player Output --> NULL Output
Phone app Input <-- Monitor of Null Output
Phone app output --> Another NULL Output
__________________
Maemo/MeeGo/Tizen Turkey - http://meegoturkiye.org & http://tizenturkiye.com
N900: Turkish Localization | MT Theme | VodaSMS
N9: MeeSaver
Maintaining: Audelicious | xmp

Last edited by Aranel; 2011-01-17 at 18:48.
 
Posts: 235 | Thanked: 339 times | Joined on Nov 2010
#7
I'm not an expert on this at all, but from what I understand policy regarding sound is ultimately enforced through a PulseAudio plugin (go through its folders). You could try moving it to disable it but I don't know if that would break sound. (The plugin's source along with the source of OHM and Nokia's plugins that make up the policy enforcers are on the MeeGo Git repository somewhere)
 
Aranel's Avatar
Posts: 301 | Thanked: 227 times | Joined on Nov 2009 @ Turkey
#8
Bump.

I figured out how to do this on my Ubuntu PC, used pavucontrol to play music from Amarok to Skype, It also cancelled the real mic and muted the caller. Here's how it works:

First: Create a NULL sink.

Audio Output (from Amarok) --> to NULL Output
Skype Input <-- NULL Output
Skype Output --> NULL
Well, there are two problems to do it on Maemo:
a) Maemo doesn't have Pavucontrol.
b) Even If I package it to Maemo, It's a GUI app, so I can't make an app out of it, so making this app is not possible with pavucontrol.

We still need "someone with PA knowledge" to help me use CLI apps (pacmd and pactl, already installed on the N900) to make the same changes on background. Here's some details about it:

http://stackoverflow.com/questions/4...ing-pulseaudio

Any volunteers?
__________________
Maemo/MeeGo/Tizen Turkey - http://meegoturkiye.org & http://tizenturkiye.com
N900: Turkish Localization | MT Theme | VodaSMS
N9: MeeSaver
Maintaining: Audelicious | xmp
 
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#9
That program would be dangerous over here; over here collect calls are automated, if you stay on the line after the collect call anouncement and a grace period of a few seconds, from the point of view of the telephony companies it means you've accepted the collect call and the charging begins.
 
Reply

Tags
pulseaudio


 
Forum Jump


All times are GMT. The time now is 14:20.