市长热线演示版

voiceplay.aspx.cs 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7. namespace HySoft.BaseCallCenter.Web.telmanage
  8. {
  9. public partial class voiceplay : System.Web.UI.Page
  10. {
  11. protected void Page_Load(object sender, EventArgs e)
  12. {
  13. }
  14. public string GetSrc()
  15. {
  16. string res = "";
  17. try
  18. {
  19. BLL.T_Sys_SystemConfig bll_T_Sys_SystemConfig = new BLL.T_Sys_SystemConfig();
  20. string CTIserverIP = bll_T_Sys_SystemConfig.GetParamValueByParamCode("PlayPath");//CTIIP
  21. string path= Request.QueryString["path"];
  22. if (path.IndexOf(":") < 0)
  23. {
  24. res = CTIserverIP + path;
  25. }
  26. else
  27. {
  28. res = path.Replace("D:", CTIserverIP);
  29. }
  30. res = HttpUtility.HtmlEncode(res);
  31. }
  32. catch
  33. {
  34. }
  35. return res;
  36. }
  37. }
  38. }