Sure,
Modify this sample out of demo.csx from the source tree. maybe enough here
to get you started.
using System;
using FreeSWITCH;
using FreeSWITCH.Native;
public class AppDemo : IAppPlugin {
ManagedSession Session;
public void Run(AppContext context) {
Session = context.Session;
Session.Answer();
Session.DtmfReceivedFunction = (d, t) => {
Log.WriteLine(LogLevel.Notice, "Received {0} for {1}.", d, t);
return "";
};
Session.EventReceivedFunction = (ev, s) => {
return "";
};
// add your stuff here
Log.WriteLine(LogLevel.Notice, "AppDemo is finishing its run and
will now hang up.");
Session.Hangup("USER_BUSY");
}
}
--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/avmd-from-mod-managed-tp6092621p6094692.html
Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org