Sending an SMS through SQL Server 2008 - sql-server

Is there any way to send an SMS through SQL Server 2008?

One possible option is to use an SMS gateway like the Clickatell API.
The Clickatell API offers a choice of connection options, including an SMTP method which you can use by sending a plain-text email from SQL Server to sms#messaging.clickatell.com, with the following body:
user: your_api_username
password: your_api_password
api_id: your_api_id
to: sms_number
text: sms_body
To send e-mails from SQL Server 2008, you might want to check out the following article:
Configure Database Mail – Send Email From SQL Database.
Another option is to write a CLR stored procedure that communicates with the SMS gateway through any protocol supported by the gateway.

Each phone carrier have email addresses that will forward to the sms/text of their subscribers and you just have send an email to these addresses and recipient will receive the messages thru sms.
example. 8009994141#phonecarrier.com
This is a link to a page to most of the carriers email to text format. Please note that this might contain not the latest information.
The best way is to call the technical support for your carrier get the information and test the feature by emailing and see if you get an sms message/

Yes, although not natively. You will have to use an SMS gateway service and do some programming around it. These come in several formats, occasionally free, but normally with some form of per message charge.
Standard gateways will accept message requests via email, a web post, or a full web service. Depending on the gateway service it may offer one, some, or all of these options.
Back in the "olden days" when I mobile SMS started to take off, in the UK at least, it was also possible to use a dial up modem to dial a network specific number and enter the SMS message. If this is still available in the area that you are looking for then the advantage of this is no account setup as it's charged to your phone bill.

I found an article which uses c# application with a SQL Server Backend to send SMS emails. Not exactly what your after but may give you another option.
SMS messages from SQL

How about an option that lets you do this in one line of code.
twiSQL - allows you to send text messages and make phone calls from SQL server
austinHenderson.com - author site

No, that is not a feature of SQL Server.

A simple way would be to write a CLR procedure that sends the sms via http to a SMS gateway of your choice

Just to add to nornal's answer since the link he spoke about seemes to have expired:
Alltel PhoneNumber#message.alltel.com
AT&T PhoneNumber#txt.att.net
Sprint PhoneNumber#messaging.sprintpcs.com
T-Mobile PhoneNumber#tmomail.net
US Cellular PhoneNumber#email.uscc.net
Verizon PhoneNumber#vtext.com
Virgin Mobile PhoneNumber#vmobl.com
So Ex: 3334441234#txt.att.net.
You use the above according to the provider.

Related

WebRTC and authentication implementations

Ok so recently I have been in need of creating a application with WebRTC for video voice etc.
So after looking into some libraries I found SimpleWebRTC to be pretty handly looking:
https://github.com/andyet/SimpleWebRTC
So what I am interested in is how do I implement a STUN/TURN server? (Would be great if someone could explain the differences in plain English!) And also is there a authentication mechanism. At the moment my app contacts my database and logins in user etc, but the stun and turn server would be private and not in any way involved in the authentication procedure.
So basically:
What is the best way to implement STUN/TURN
Is there any authentication mechanism?
Note, this is for a hybrid app so I will be using JavaScript/AngularJS for this. The main reason why I chose SimpleWebRTC.
Thank you!
I suggest you use an existing STUN or TURN server like coturn.
STUN servers are very lightweight and often left without authentication. A STUN server basically tells a client what its IP address appears to be, which is necessary to make peer connections across NAT (network address translation) boundaries.
TURN servers are very resource intensive because they relay media; all of the media for a call can go through the TURN server, so it's important to secure TURN. You use TURN servers in situations where UDP may be blocked, or for particular kinds of NATs that cause problems.
The authentication for coturn's TURN server can take one of two forms:
Simple (username, password) pair
TURN REST API. This uses a secret between the TURN server and another entity. The entity issues tokens with expiration times, and the TURN server verifies the token has not expired and was issued with knowledge of the shared secret. This is passed by the TURN client as a username, password pair in a format described in the documentation.

OZEKI NG GATEWAY not receiving SMS messages

I'm working on a project in which I'm trying to get Ozeki to send and receive SMS messages from my Nokia 3110 classic.I have also configured the inbound route,outbound route,GSM modem service provider and standard user correctly.Sending messages is working fine but not receiving them. Please give me some solutions to this.
Does your service provider definitely support inbound SMS from all other operators? SMS routing is notoriously tricky with many operators and gateway providers supporting only a selection of other providers.
Nokia phones work best with SMSEnabler not with ozekiNG.please start using SMSEnabler instead which uses http api to send and receive SMS like ozeki.I was having the same problem you can't help it.

is it possible to send a not requested info or command to clients in silverlight?

in a Silverlight application, we used to send requests from client to server and receive its response.
is it possible to send an information from server to client which is not waiting for? for example server ask client to update a text in a special text box and so on. "an info or known command which may come to client any time and is not a response to the client's request"?
You can use Duplex Services for this.

sms gateway so I can send a text to a server and get back a response?

I am wanting to setup a service that allows people to send a text to my server and have the server return results of their questions.
Let's say they send a text to my server saying "movies"
and it returns the results
"Boondock Saints"
"Avatar"
"Star Trek - Spock got lost again"
what is this called?
how much would something like this cost?
would you be able to point me to a company that already offers this service?
When you google "inbound sms gateway" or "virtual sms" a large number of companies offering such SMS numbers will show up, all of them quite expensive, about 100 EUR/month.
For example a few random ones:
http://www.mysmsaddress.com/
http://www.mobifi.com/
https://www.2-waysms.com/
http://www.lleida.net/en/
See also Can anyone recommend any good UK based SMS gateways for sending and receiving SMS using C#?

sms aggregator implementation/application

What could be the use or application of SMS aggregators such as SMSLib or Kannel.
Can I use them to send SMS's from my web server.
In case they can send SMS's will those be sent on a GSM channel or GPRS channel.
What would be the cost implications per sms on part of the customer and on part of my implementation process?
You can use those libraries/SDK's but you will still need to get a short code to send and receive SMS text messages to and from a mobile device.
OpenMarket offers this type of service as well as a number of software SDK's to implement your request. Also OpenMarket offers Premium SMS as well as MMS.
It's a lot easier then Kannel ;)
BTW if you just looking to send SMS via a web page and know what carrier the user is you might want to try the SMS gateway approach. It's using a special email address to send SMS to a mobile device, but I don't think they can reply to this type of message.

Resources