Following are small code snippets useful in different situations:
//
// Write Call File
//
MonoTone mono = new MonoTone();
//
// "/usr/src/mono/permission.sh is path to executable script
//
System . Diagnostics . Process proc = System . Diagnostics . Process . Start ( "/usr/src/mono/permission.sh" );
WriteLog ( "Process id : " + proc . Id + " " + "/usr/src/mono/permission" + p + ".sh" );
mono . HangUp ( );
//
// Executing Asterisk native commands
//
// In following lines of code, response can be any number that you would like to dial
// in your "from-internal" context.
//
MonoTone mono = new MonoTone();
String parameter = "";
mono . Execute ( "dial local/" + response + "@from-internal" , "" , out parameter );