I use node.js to make phone call.
Everything work great, except when I try to send a WAV file.
This is the code I used to send WAV file, but I get only noise.
Any idea ??
this.write( 'AT+FCLASS=8\r', (function( _answer ) {
this.write( 'AT+VSM=129,8000\r', (function( _answer ) {
this.write( 'AT+FLO=2\r', (function( _answer ) {
console.log( 'Set Flo Control : ' + _answer );
this.write( 'AT+VSD=128,0\r', (function( _answer ) {
console.log( 'Disable detect silent : ' + _answer );
this.write( 'AT+VTX\r', (function( _answer ) {
console.log( 'Set voice : ' + _answer );
var fs = require( 'fs' );
fs.readFile( _file, 'base64', (function( _callback, _error,
_data ) {
if( _error ) {
console.log( 'Error on read file : ' + _error );
} else {
this.write( _data.substr( 44 ) );
}
}).bind( this, _callback ) );
}).bind( this ) );
}).bind( this ) );
}).bind( this ) );
}).bind( this ) );
}).bind( this ) );
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/d74f35c9-609b-441d-bf9b-bacaff5e868c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.