Exemplo n.º 1
0
 internal virtual void OnCallDisconnected(Call call, DisconnectCauseType causetype, string causestring)
 {
     try
     {
         Debug.WriteWarn("Call {0} {1}{2}", call.Id, causetype,
                         string.IsNullOrEmpty(causestring) ? "" : " - " + causestring);
         var handler = CallDisconnected;
         if (handler != null)
         {
             handler(_codec, new CallDisconnectEventArgs(call, causetype, causestring));
         }
     }
     catch (Exception e)
     {
         CloudLog.Exception(e);
     }
 }
Exemplo n.º 2
0
 internal CallDisconnectEventArgs(Call disconnectedCall, DisconnectCauseType causeType, string causeString)
 {
     DisconnectedCall = disconnectedCall;
     CauseType        = causeType;
     CauseString      = causeString;
 }