using System;
using AGI;
namespace AsteriskGeeks
{
public class Program
{
static void Main ( string [ ] args )
{
//
// Create an Object for MonoTone class which does all the
// communication between Asterisk and C#
//
MonoTone mono = new MonoTone ();
//
// KeyPad object is used to hold input from keypad of phone
//
Keypad key = new Keypad ();
//
// StreamFile method is used to stream a sound file and return bool
// true for successful play and false for failed stream
//
//
// Note: welcome is the name of gsm file in sound folder
// If you want to use your own .gsm file. you can make a folder
// in sounds folder and put your file there; then the syntax will
// be like /YOUR FOLDER NAME/FILE NAME WITHOUT EXTENSION
//
bool result = mono . StreamFile ("welcome" , "" , out key );
}
}
}