/// <summary>
        /// This processes the alert_notification PDU
        /// </summary>
        /// <param name="pdu">Protocol Data Unit being processed</param>
        public override void Process(alert_notification pdu)
        {
            SmppEventArgs ea = new SmppEventArgs(session_, pdu, null);

            if (!session_.FireEvent(EventType.AlertNotification, ea))
            {
                ea.ResponsePDU.Status = StatusCodes.ESME_RSUBMITFAIL;
            }
            session_.SendPdu(ea.ResponsePDU);
        }
Exemple #2
0
 /// <summary>
 /// This processes the alert_notification PDU
 /// </summary>
 /// <param name="pdu">Protocol Data Unit being processed</param>
 public virtual void Process(alert_notification pdu)
 {
     throw new InvalidSmppStateException("Session is not in the proper state for an alert_notification operation.");
 }
Exemple #3
0
 /// <summary>
 /// This method sends an alert_notification packet synchronously over to the peer.
 /// </summary>
 /// <param name="pdu">alert_notification packet</param>
 /// <returns>True/False</returns>
 public bool AlertNotification(alert_notification pdu)
 {
     return(IsBound && SendPdu(pdu));
 }