public void NewNotifyEvent(NewNotifyArg e) { try { log.Debug("--------------- Notify parameters -----------------"); log.Debug("nor:" + e.param.nor); log.Debug("tct:" + e.param.tct); log.Debug("nau:" + e.param.nau); log.Debug("mnt:" + e.param.mnt); if (dg.op == 1) { log.Debug("pro:" + e.param.pro); } log.Debug("mne:" + e.param.mne); log.Debug("fec:" + e.param.fec); log.Debug("hor:" + e.param.hor); if (dg.op == 1) { log.Debug("trx:" + e.param.trx); } trans = new Transaction(); trans.mne = new MensajeNegocio(); trans.nor = e.param.nor; trans.nau = e.param.nau; trans.tct = e.param.tct; trans.mnt = e.param.mnt; trans.fec = e.param.fec; trans.hor = e.param.hor; trans.trx = e.param.trx; trans.pro = dg.pro != "0" ? e.param.pro : "NA"; trans.mne.msg = e.param.mne; trans.mne.ERR_CODE = 0; trans.mne.ERR_DESC = "SUCCESS"; if (tr.alive) { tr.stop(); } } catch (Exception ex) { trans = new Transaction(); trans.mne = new MensajeNegocio(); trans.mne.ERR_CODE = -1; trans.mne.ERR_DESC = "An exception has occurred: " + ex.Message; trans.mne.msg = "ERROR"; trans.nor = dg.nor; trans.mnt = dg.mnt; trans.fec = DateTime.Now.ToString("yyyyMMdd"); trans.hor = DateTime.Now.ToString("HH:mm:ss"); log.Debug("An exception has occurred: " + ex.Message); } }
private void onIVREndTimeFinished() { if (tx != null) { if (tx.alive) { tx.stop(); } } if (b.tr != null) { if (b.tr.alive) { b.tr.stop(); b.tr = null; } Thread.Sleep(1700); clearCall(); } dg.state = "READY"; b.setState(dg.state); log.Info("Se termina conteo despues del colgado de IVR."); }