How to check authenticate on SmppServer

.NET library for SMPP protocol
Locked
jixung
Posts: 2
Joined: Tue Aug 09, 2011 2:49 am

How to check authenticate on SmppServer

Post by jixung » Tue Aug 09, 2011 2:52 am

How to check authenticate on SmppServer
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: How to check authenticate on SmppServer

Post by alt » Tue Aug 09, 2011 7:19 am

You need to use event

Code: Select all

            void server_evClientBind(object sender, SmppServerClient client, Bind data)
            {
                if (data.SystemId == "test" && data.Password == "test")
                {
                    data.Response.Status = CommandStatus.ESME_ROK;
                }
                else
                {
                    data.Response.Status = CommandStatus.ESME_RBINDFAIL;
                }
            }
Locked