private string xml_search(FreeSWITCH.SwitchXmlSearchBinding.XmlBindingArgs args) {
if (args.KeyName != "name" || args.Section != "configuration" || args.TagName != "configuration")
return null;
switch (args.KeyValue) {
case "sofia.conf":
return generate_xml_config(args.KeyValue, "Sofia Endpoint", sofia.gen_config);
case "event_socket.conf":
return generate_xml_config(args.KeyValue, "Socket Client", event_socket.gen_config);
case "conference.conf":
return generate_xml_config(args.KeyValue, "Audio Conference", conference.gen_config);
}
return null;
}
private static IDisposable search_bind;