I am using asterisk with phpagi - I want create a variable $pressedsomething = TRUE; if the called party pressed something while they are talking. I've been looking around and do not know where to start. Please keep in mind, I want the DTMF from the callee side not from my end...
Any kind of help I can have with this is greatly appreciated!
You can't do that from AGI. But you can do that using features.conf
http://www.voip-info.org/wiki/view/Asterisk+config+features.conf
Related
im developing dialplan using asterisk and PAGI (PHP asterisk gateway interface)
but i cant find a way to create node which can have dynamic number of annoucements depends on result from database.
I found a way to do this by adding annoucements in loop in method called executeAfterRun
but when Im trying to interrupt node by pressing anything it interrupts only current annoucement and going to playing next one.
I want this whole node to be interruptable not just current annoucement.
can anyone help me with this problem ?
thanks in advance for any help
best regards
You have create in your php code string like
announce1&announce2&announce3
using loop. After that you can use that string for Playback command, it will work like one large file.
First thing is that I am new at Asterisk, and I want to know about calling. I am making Java-Asterisk application. So, I just need direction that how will I be able to know that which caller is calling which one?
You can use asterisk AMI event interface and parse event. That is hard way
Simple way - orginize dialplan so it inform you when someone call someone(by put record in db or any other method).
I have been searching around but I can't seem to find the answer. I want to see if what I want to do is possible:
I want to playback music on hold to my caller when my phpagi script is executed. Is there anyway I can grab any DTMF that is being pressed during the musiconhold? I want the music to play continuously....
Any kind of insight I can get on this is greatly appreciated.
You can use $AGI->stream_file($filename, $digits) (voip-info)
or something like:
while ($digit ne "0") {
$digit = $AGI->get_data("path/to/your/file", 1, 1);
do your staff
...
}
I used it in Perl, but probably same thing for phpagi.
Hope it helps :)
I think it's too late to answer but this may help someone. Background music will keep on playing until you stop it.
// start background music
$agi->set_music(true);
//code....do your stuff
// stop background music
$agi->set_music(false);
First, is there any good documentation for the btstack API's. I am trying to learn how to fully use btstack , send and receive data, look for devices within range and initiate connection.I am implementing this for MSP-430F5438A + CC2564 Bluetooth module.
http://code.google.com/p/btstack/wiki/MSP430GettingStarted
This website has some examples, but I am still confused, I need someone to break it down for me.Is there a template that I can start of. Anything would be helpful. If there is a step by step reference on how to connect to a device and exchange packets, it would be really great. Thanks is advance
In the regular "GettingStarted" page is a little explanation on what goes on in the packet handler, which is the main part of where you basically put all of your new code.
I have looked around to find something that could help me receive notification in my app when the device is receiving a phone call.
I found this: QTelephonyCallInfo
But the that one doesn't seem to exist any more.
Can anyone help me out here?
Thanks in advance!
I am using QDesktopServices for calling a number:
QDesktopServices::openUrl(QUrl("tel:*number*"));
However, it does not dial automatically. The user must confirm the phone call first.
Can't be done in using Qt classes yet.You will have to use native classes to achieve this.
For symbian you might be interested in CTelephony Class