Hi,

SFLphone is not intended to stream sound file through RTP. But if you don't 
mind modify the code yourself to achieve your requirements you can easily read 
a file from disk and replace voice data during the encoding process.

In file sflphone/sflphone-common/src/audio/audiortp/AudioRtpSession.h
In method AudioRtpSession::processDataEncode

Just need to fill _micData buffer with linear 16 bit audio data. Make sure to 
fill the buffer after 

 audioLayer->getMainBuffer()->getData(micData, bytesAvail, 100, 
_ca->getCallId()) / sizeof (SFLDataFormat);  

in order to overwrite voice content.

Let me know if you have any other problems.

Regards,

Alexandre

> ----- Original Message -----
> From: "Per-Olof Jensen" <[email protected]>
> To: [email protected]
> Sent: Monday, October 25, 2010 7:59:36 PM GMT -05:00 US/Canada Eastern
> Subject: [SFLphone] Sending SIP messages out of call, sending sound files
> 
> 
> Hello, I'm developing an application that will be stress testing our call 
> processors and SFLphone really looks like > it has the answers. 
>
> I currently have my Perl client registering with our SIP server, making 
> calls, and doing some logic with the 
> SIP/Call status messages through the DBUS (which is something I really like). 
> The example I'm working off of the 
> python example( sflphonectrlsimple.py ). 
> 
> I've waded through the code a bit trying to look for a way to have the 
> SFLphone send sound files to the target 
> receiver and being able to send SIP messages to our server in order to log 
> in. I'm a bit stumped. If anyone could 
> point me in the right direction, I'd be more than happy to read into whatever 
> needs to be read! 

-- 
Per Jensen 
Bolder Thinking - Software Developer 

_______________________________________________
SFLphone mailing list
[email protected]
http://lists.savoirfairelinux.net/mailman/listinfo/sflphone
_______________________________________________
SFLphone mailing list
[email protected]
http://lists.savoirfairelinux.net/mailman/listinfo/sflphone

Reply via email to