asterisk

Placement of the asterisk in Objective-C

I have just begun learning Objective-C, coming from a VB .Net and C# .Net background. I understand pointer usage, but in Objective-C examples I see the asterisk placed in several different places, and search as I might, I have not been able to find an answer as to why this is. Every search I try turns up all kinds of explanations about...

How to write code for AGI (Asterisk Gateway Interface) in C

Please tell me related websites for that code. ...

asterisk adding new module to open source

how to add new module to asterisk with sql code. ...

Matching a 7 digit number in the dialplan

Hello, im my dialplan, i want to know when a 7 digit number was dialed by the user. But, the dialplan already contains an extension _X. , which would override the seven digit number check. So,can someone please tell me the right extension to use to match a seven digit number dialed by the user considering the dial plan already contains ...

Using Asterisk to Click2Dial Via Command Line

I'd like to make an in house click2dial application the problem is I'm not sure how to get Asterisk via the command line to dial myself and then dial an extension like google voice does now or how grand central did. I know about the Dial() command in Asterisk and the T option for transfer. Anyone have any insight on this? thanks. ...

Dialplan question

Hello, In my dialplan , i have an extension for _XXXXXXX (for 7 digit numbers) and an extension for _X. . Now, if i i dial a 7 digit number , the _X. extension is getting executed instead of _XXXXXXX. I would like the _XXXXXXX part to get executed in case a 7 digit number is dialed. Any way to fix this ? Thank You. ...

How can I play multiple files in an AGI script?

I am able to stream multiple files together using: $AGI->exec('Background',"file1&file2&file3&file4") However, this doesn't return the key pressed by the user when the files are being played. So, I used $AGI->stream_file, which returns the key pressed, but only plays a single file. I need to be able to play multiple files together, t...

How do I include one AGI file in another AGI file?

Hello, Is it possible to include an AGI file in another one and call functions from it which execute as part of the AGI file it is being called from? If yes, how to include one AGI in another? Thank You. ...

Telephone user identification process

I have no idea where to start so apologies for what might be a vague question. I would like a telephone verification system like elance.com where a user gets a telephone call, and has to either input the numbers displayed on his computer screen, or he has to type in the numbers spoken to him on the phone. I need this as I want my appli...

Fastest way to match telephony prefixes using asterisk PHP script

Hello all, and thanks in advance for the help. Background - I am writing a PHP script that needs to figure out the destination the caller is trying to reach. Telephony prefixes are strings that identify a destination. For each call, the program must find the longest prefix that matches the string. For example the number 30561234567 wou...

Asterisk & IVR & provider

Hi everybody, I'm trying to setup an IVR or to be more specific an automated attendant using Asterisk. I don't want anything fancy besides the simple automated menu system, and instead of dialing an extension (for now) just ring the same phone line (POTS) if pressed 1 or play a recording if pressed 2. The server running Asterisk will be...

How can I get the call duration of any call in a web application using asterisk?

I have done a Web site using php and which asterisk is used as a Voip system.Now the problem is I want to get the call duration of each call after 'HANG UP'.I googled alot and got an asterisk variable named ${ANSWEREDTIME},but don't know how I can get the value from it and how I can initiate it. Please Help and consider me as new bee to ...

Getting active channels of a user in asterisk-java

Is there a way to get all currently active channels of an IAX useraccount with asterisk-java? Thanks Dominik ...

Read/Write to linux Pipe using Java

My query is on what is the best way to read / write to a linux Pipe in Java? I already am using the java.io.RandomAccessFile like RandomAccessFile file = new RandomAccessFile("/dev/zap/16", "rw"); and then passing it to worker thread which reads it after every 2ms as byte[] buffer = new byte[16]; file.read(buffer); It does r...

Conversion of a character to asterisk

Hi, i had been to an interview for the post of webdeveloper/HTML developer . There he asked me a question, the ques was.... there is a textbox and a button when i enter any character into the textbox it must be converted into a asterisk sign(i.e "*")once the characters are entered now on clicking the button all the signs must be conve...

Asterisk Manager API - Extension -> ZAP Channel

Is there a way to retrieve the ZAP channel from an extension number through the Manager API? For example, this is what I see when I run "zap show channels": Chan Extension Context Language MOH Interpret ... 33 3594 from-zaptel en default ... But Manager API only returns the following (without ...

ruby: what does the asterisk in "p *1..10" mean

the line p *1..10 does exactly the same thing as (1..10).each { |x| puts x } which gives you the following output: $ ruby -e "p *1..10" 1 2 3 4 5 6 7 8 9 10 it's a great shortcut when working with textmate for example, but what does the asterisk do? how does that work? couldn't find anything on the net... ...

What is Interface name in QueuePause

Anyone can tell me what is interface name for QueuePause action (Asterisk Manager Interface). http://astbook.asteriskdocs.org/en/2nd%5FEdition/asterisk-book-html-chunk/asterisk-APP-F-30.html I try "SIP/2222" (connected extesion) but it alway throws "Interface Not found". I don't khow how to get right interface, does one please tell me h...

Is there any possible way to make hook flash to any extension throoght software?

I like to make conference call following this step. 2222 make call to 3333 (phone) 3333 receive phone call (phone) simulate push flash button to 2222 thought AMI/? (software) originate call to 4444 throught AMI (software) 4444 receive phone call (phone) simulate push flash button to 2222 thought AMI/? again (software) 222 333 4444 spea...

Replace characters in Asterisk Dialplan.

I want to change a couple off characters * # for A and P to have the monitor filename with characters more friendly. The only solution I could find was to do it my self within the dialplan but it generates a lot of verbosity output and is not as efficient(fast) as I would like to. I'll post it here just in case someone wants to use it. B...