Пример #1
0
 /// <summary>
 /// Determines whether [has call XML] [the specified call id].
 /// </summary>
 /// <param name="callId">The call id.</param>
 /// <param name="instance">The instance.</param>
 /// <returns>
 ///     <c>true</c> if [has call XML] [the specified call id]; otherwise, <c>false</c>.
 /// </returns>
 static public bool HasCallXml(string callId, string instance)
 {
     try
     {
         var record = new CallXmlRecord {
             CallId = callId, Instance = instance
         };
         return(record.Execute());
     }
     catch (Exception ex)
     {
         GeneralUtility.LogError(ex.Message, "CallXmlRecord.GetCallXml");
         return(false);
     }
 }
Пример #2
0
 /// <summary>
 /// Gets the call XML.
 /// </summary>
 /// <param name="callId">The call id.</param>
 /// <param name="instance">The instance.</param>
 /// <returns></returns>
 static public string GetCallXml(string callId, string instance)
 {
     try
     {
         var record = new CallXmlRecord {
             CallId = callId, Instance = instance
         };
         if (record.Execute())
         {
             return(record.CallXml);
         }
     }
     catch (Exception ex)
     {
         GeneralUtility.LogError(ex.Message, "CallXmlRecord.GetCallXml");
     }
     return("");
 }