[Freeswitch-users] avmd from mod managed
Jeff Lenk
jeff at jefflenk.com
Sun Mar 6 20:07:06 MSK 2011
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.
More information about the FreeSWITCH-users
mailing list