Interface Mirror

Proper Solutions to Software Development Problems

  Home  |   Contact  |   Syndication    |   Login
  17 Posts | 8 Stories | 10 Comments | 1 Trackbacks

News



Article Categories

Archives

Post Categories

Link

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 );

           }
     }
}

posted on Monday, March 05, 2007 8:05 PM