示例#1
0
        public void BindMetaApp(DialableNumber digits, MetaAppLegTypes leg, MetaAppFlags[] flags, string application, string pars)
        {
            string sflags = "";

            if (flags != null)
            {
                foreach (MetaAppFlags flg in flags)
                {
                    sflags += (char)flg;
                }
            }
            ExecuteApplication("bind_meta_app", digits.ToString() + " " + leg.ToString() + " " + sflags + " " + application + (pars == null ? "" : "::" + pars), false);
        }
示例#2
0
 public void UnBindMetaApp(DialableNumber digits, bool eventLock)
 {
     ExecuteApplication("unbind_meta_app", digits.ToString(), eventLock);
 }
示例#3
0
 public void BindDigitAction(string realm, DialableNumber digits, string command, string arguements, BindDigitTargetLegs?targetLeg, BindDigitsEventLegs?eventLeg)
 {
     ExecuteApplication("bind_digit_action", "realm," + digits.ToString() + "," + command + "," + (arguements == null ? "" : arguements) + "," + (targetLeg.HasValue ? targetLeg.Value.ToString() : "aleg") + "," + (eventLeg.HasValue ? eventLeg.Value.ToString() : "self"), false);
 }
 public void UnBindMetaApp(DialableNumber digits, bool eventLock)
 {
     ExecuteApplication("unbind_meta_app", digits.ToString(), eventLock);
 }
 public void BindMetaApp(DialableNumber digits, MetaAppLegTypes leg, MetaAppFlags[] flags, string application, string pars)
 {
     string sflags = "";
     if (flags != null)
     {
         foreach (MetaAppFlags flg in flags)
             sflags += (char)flg;
     }
     ExecuteApplication("bind_meta_app", digits.ToString() + " " + leg.ToString() + " " + sflags + " " + application + (pars == null ? "" : "::" + pars), false);
 }
 public void BindDigitAction(string realm, DialableNumber digits, string command, string arguements, BindDigitTargetLegs? targetLeg, BindDigitsEventLegs? eventLeg)
 {
     ExecuteApplication("bind_digit_action", "realm," + digits.ToString() + "," + command + "," + (arguements == null ? "" : arguements) + "," + (targetLeg.HasValue ? targetLeg.Value.ToString() : "aleg") + "," + (eventLeg.HasValue ? eventLeg.Value.ToString() : "self"), false);
 }