hi,
I wan to develop sms gateway of my own in c#, can anyone provide me source code......

or
the ways show to develop client/server application

Dani AI

Generated

A short, practical roadmap for the thread (original question from ; offers from and ; pointer from ): two viable technical tracks exist and the fastest way to get a working gateway is to prototype one, then harden it for production. The notes below give a clear C# architecture and immediate next steps you can apply today.

Two common approaches and tradeoffs: (1) Modem-based (USB/Serial GSM modem): talk to the modem with AT commands (for SMS the standard text-mode commands such as AT+CMGS) and use .NET’s SerialPort for communication — quick to prototype but limited in throughput and hardware reliability. (2) Network-based (SMPP to an SMSC/aggregator, or provider HTTP REST APIs): far more scalable and production-ready but requires an account/contract and proper session handling. Use the modem route to validate logic; switch to SMPP/HTTP when you need scale. (tech-invite.com)

Suggested C# class-level design (keep logic transport-agnostic, swap transports behind a common interface):

public class GatewayHost    { Start(); Stop(); /* accept client requests */ }
public class MessageQueue    { Enqueue(Message); Dequeue(); /* durable storage */ }
public abstract class Transport { SendAsync(Message); event DeliveryReceipt; }
public class ModemTransport : Transport { /* uses SerialPort */ }
public class SmppTransport  : Transport { /* uses SMPP client lib */ }

Core requirements: durable queue, worker pool with rate limiting, message-splitting (GSM 03.38 / UCS2), retries and delivery-receipt handling, thorough logging and monitoring. For SMPP, use a mature .NET library rather than hand-rolling the protocol (examples: Inetlab.SMPP and similar). (docs.inetlab.com)

Quick troubleshooting tips and next steps: verify AT commands interactively with a serial terminal (test AT, AT+CMGF=1, AT+CMGS="number" then CTRL-Z), ensure correct CR/LF and disposing of SerialPort objects, persist outgoing messages to a DB before sending so retries survive restarts, and start with one USB modem prototype before moving to SMPP/aggregator for volume. The SIM900-style examples show the AT workflow you’ll use while prototyping. (14core.com)

Summary: prototype with a modem + SerialPort to prove message flow and persistence; then replace the transport with an SMPP client or provider API for production. The class skeleton above maps directly to a testable C# project.

Recommended Answers

All 6 Replies

hi,
I wan to develop sms gateway of my own in c#, can anyone provide me source code......

or
the ways show to develop client/server application

--

We got SMS gateway solution developed in C #

let me know your contact details to proceed further.

please drop me email -

my Email:

Hi,
i wan to display records in response to selected items from dropdownlist into gridview in c# using the sql database,can any one provide me code.....///??

hi,
i wan to develop sms Gateway using GSMCom, i send sms to mobile but how i add classes of client/server in the application. Plz provide an example......................... its very urgent.

hi,
I want to develop sms gateway of my own in c# for my project, can anyone provide me source code......
please emil me on

Hi gfsasa, maybe you can get some useful info from this page (ozekisms.com/index.php?owpn=159) It is about how to send SMS messages through a gateway. Maybe this example can help you.

Good work,

Robbie

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.