Interface Mirror

Proper Solutions to Software Development Problems

  Home  |   Contact  |   Syndication    |   Login
  18 Posts | 8 Stories | 16 Comments | 1 Trackbacks

News



Article Categories

Archives

Post Categories

Link

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

 

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted on Wednesday, March 07, 2007 4:36 PM