search for: getchannels

Displaying 15 results from an estimated 15 matches for "getchannels".

Did you mean: get_channels
2011 Feb 24
1
missing argument on AGI
Hi All, I'm using the asterisk 1.4.39.2 with phpagi 2.20 I have setup a dial plan: [callback-outbound] exten => _00.,1,Macro(callout|${EXTEN}) [macro-callout] exten => s,1,AGI(getchannel.php|${ARG1}) exten => s,2,Dial(Local/${OUTBOUND}@from-internal/nj||tr) exten => s,3,Hangup() but for some reason i am not receiving the argument: Executing [s at macro-callout:2]
2010 Jun 05
5
Controlling calls
...-the script dial the peer 4-if the call is answered, let the call up for 1min 5-then the script hangs up the channel. I tried either in php or in java but no success. In java i did this: ////////////// exec("Dial", "IAX2/400"); boolean t=true; while(t){ if(getChannel().getChannelStatus()==6)t=false; } wait(60000); hangup(); ////////// in my extension.conf: exten =>777,1,AGI(agi://localhost/sc.agi) the script is running but it does not hangup. Second solution,i tried this : exten => 777,1,Dial(IAX2/400,G(myscript)) exten =>777,n(myscript),AGI(agi://localhost/sc.a...
2007 Apr 20
1
faster image display?
Does someone here know of a way to display images in R that isn't slow? Here are the things I've tried so far: library(rimage) i<-read.jpeg('foo.jpg') plot(i) # very slow library(pixmap) i <- read.pnm('foo.pnm') plot(i) # also slow chans <- getChannels(i) image(chans[,,1]) # this is slow too I also tried using library(cairoDevice) but it only makes everything look beautiful without making the images fast. [[alternative HTML version deleted]]
2008 Aug 01
1
creating image using RGB values
...e to create an image using three matrices which contain the values of Red, Green, and Blue of each pixel, i.e. one matrix which has values of red, one which has values of green, and one which has values of blue. The values are between 0 and 1 instead of 0-255. I have obtained the matrices using the getChannels of pixmap library. I wonder if anyone knows how to create the image using RGB matrices. Thanks for your help. Thanks, Rostam [[alternative HTML version deleted]]
2010 May 06
1
Encoding a wave file with a bad header
...during compression in Java: AudioFormat wavFormat = ais.getFormat(); AudioFormat speexFormat = new AudioFormat(SpeexEncoding.SPEEX_Q5, wavFormat.getSampleRate(), -1, // sample size in bits wavFormat.getChannels(), -1, // frame size -1, // frame rate false); // little endian AudioInputStream spx = AudioSystem.getAudioInputStream(speexFormat, ais); AudioSystem.write(spx, SpeexFileFormatType.SPEEX, getOutputStream()); I...
2008 Jan 07
0
JSpeex - Unsupported conversion
...AudioFormat srcFormat = audioInputStream.getFormat(); AudioFormat targetFormat = new AudioFormat(SpeexEncoding.SPEEX_Q3, srcFormat.getSampleRate(), -1, // sample size in bits srcFormat.getChannels(), -1, // frame size -1, // frame rate srcFormat.isBigEndian()); AudioInputStream audioInputStream2 = AudioSystem.getAudioInputStream(targetFormat, audioInputStream); } }
2008 Jan 08
0
JSpeex - Unsupported conversion
...Format = audioInputStream.getFormat(); > > AudioFormat targetFormat = > new AudioFormat(SpeexEncoding.SPEEX_Q3 , > srcFormat.getSampleRate(), > -1, // sample size in bits > srcFormat.getChannels(), > -1, // frame size > -1, // frame rate > srcFormat.isBigEndian()); > AudioInputStream audioInputStream2 = > AudioSystem.getAudioInputStream(targetFormat, > audioInputStream); &gt...
2008 Dec 17
0
help with jspeex
...nputStream(srcFile); AudioFormat srcFormat = audioInputStream.getFormat(); AudioFormat targetFormat = new AudioFormat(SpeexEncoding.SPEEX_VBR8 , srcFormat.getSampleRate(), -1, // sample size in bits srcFormat.getChannels(), -1, // frame size -1, // frame rate srcFormat.isBigEndian()); AudioInputStream audioInputStream2 = AudioSystem.getAudioInputStream(targetFormat,audioInputStream); this works great but how can i use Vad and Dtx any i...
2010 Mar 20
0
Decode file written from JSpeex using C/C++ API?
...s = AudioSystem.getAudioInputStream(new File("16Bitprompt.wav")); AudioFormat wavFormat = ais.getFormat(); AudioFormat speexFormat = new AudioFormat(SpeexEncoding.SPEEX_Q5, wavFormat.getSampleRate(), -1, // sample size in bits wavFormat.getChannels(), -1, // frame size -1, // frame rate false); // little endian ais = AudioSystem.getAudioInputStream(speexFormat, ais); AudioSystem.write(ais, SpeexFileFormatType.SPEEX, new File("speex_output.spx")); I'm assuming this writes to an ogg...
2007 Feb 13
1
How can I use "Asterisk Manager API" to hold and retrive an active call?
These are common functions. Why "Asterisk Manager" doesn't provide commands to hold and retrive an active channel? If it must be implemented by AGI, could anyone give a direction or steps? Thanks in advance, James -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Feb 16
0
How can I use 'Asterisk Manager API' to hold and retrive an active call?
...g to do that. >Maybe you are just using the wrong library on top of the Manager API ;) >Asterisk-Java as an example lets you retrieve active channels, iterate >over them, hangup, redirect, ... whatever. >Example to hangup all active channels: >for (AsteriskChannel channel : server.getChannels()) >{ >channel.hangup(); >} >http://asterisk-java.org >I am sure other libraries provide similar abstraction. >=Stefan >-- >reuter network consulting >Neusser Str. 110 >50760 Koeln >Germany >Telefon: +49 221 1305699-0 >Telefax: +49 221 1305699-90 >E-Ma...
2005 Aug 04
3
how to read individual values from a pixmap object
Hi All, I have a greyscale image that I am reading in through RGDAL and placing in a pixmap object. As an example use the logo.jpg file that comes with the RGDAL package: #Read the file logo <- system.file("pictures/logo.jpg", package="rgdal")[1] x <- new("GDALReadOnlyDataset", logo) #Create the pixmap object xGrey <- getPixmapGDAL(x) Now I would
2013 Apr 18
5
ODBC dialplan looping problem
All, Thank you in advance for any help. I have a customer in need of a conferencing system. A requirement is for users to each have their own PIN for the same bridge. So, I put the list of users, PINs bridges into a MYSQL DB and used an ODBC connector to parse the table. Asterisk is connected and reads the rows as expected. The problem is that if a user enters a PIN that is NOT in the table,
2008 Feb 05
31
ZFS Performance Issue
This may not be a ZFS issue, so please bear with me! I have 4 internal drives that I have striped/mirrored with ZFS and have an application server which is reading/writing to hundreds of thousands of files on it, thousands of files @ a time. If 1 client uses the app server, the transaction (reading/writing to ~80 files) takes about 200 ms. If I have about 80 clients attempting it @ once, it can
2004 Sep 17
8
English vs American voice files
My wife's got an appropriate Southern England (Wimbledon) accent and I'm sure she would try her hand. Does anyone have a comprehensive list of the words that need to be said? Matt, do you have them if your wife's done a set for French users? Mark, if you have the kit maybe you could chop up the file? I write a utility to chop up and compress the wave file based on some of the C