ericlee
ericlee

Reputation: 2753

SMS via gms modem asp.net

I'm using a gsm modem itengo 3800. I'm currently doing a project that interface with a website to send/receive bulk sms, schedule sms and etc.

The problem is, i don't really know which should it be coded in. Should it be coded as a asp.net web application? or should it coded as a windows programs that interface with the web application for send/receiving sms?

Also receiving/sending multiple sms is important, so i requires queue or anything for buffer? Would be glad if sample programme is provided.

Upvotes: 2

Views: 908

Answers (1)

ConsultUtah
ConsultUtah

Reputation: 6829

Because sending messages via gsm modem can be slow, what I'd do is have the ASP.NET app post the messages to a message queue, then have a windows service read the queue and send the messages. This allows the website to avoid any degradation issues when sending out lots of messages.

Here is a decent article that discusses using MSMQ: http://www.15seconds.com/issue/031202.htm

The ASP.NET app would:

MessageQueue queue = new MessageQueue(QUEUE_PATH);
Message msg = new Message("5555551212|message");
queue.Send(msg);

And the service would listen:

MessageQueue queue = new MessageQueue(QUEUE_PATH);
Message msg = queue.Receive();  

Upvotes: 2

Related Questions