Snipplrhttp://snipplr.com/tags/receive
Recent snippets posted on Snipplr.comen-usMon, 03 Aug 2015 08:45:19 GMT(VB.NET) VB.NET SQL Example: How to send SMS in VB.NET using SQL database - LoganTurnhttp://snipplr.com/view/93629/vbnet-sql-example-how-to-send-sms-in-vbnet-using-sql-database/
I thought I share this code snippet because I find this way of SMS sending an easy solution. I believe that even beginners can implement this VB.NET SQL SMS application, but I think some extent of perfection in the SMS technology is required for better understanding. Okay, let’s jump right in the middle of the project that allows you to send and receive SMS through database tables by using your own VB.NET application.
Project information:
• Language: VB.NET
• Level: Intermediate
• IDE: Microsoft Visual Studio
• Database server: MS SQL, MS SQL Express, MySQL, Access, Oracle, etc. I used MySQL (http://www.mysql.com/).
• Special prerequisites: .NET Framework (http://www.microsoft.com/hu-hu/download/details.aspx?id=17851), SMS Gateway (in order to let your PC to send/receive SMS transmissions to/from a telecommunications network). I used Ozeki NG (www.ozekisms.com).
Project description:
First of all, you need to create the necessary database tables: one for the outgoing messages, and another one for the incoming messages. The snippet shows my MySQL commands, but it can be changed of course depending on the database server you use. In order to be able to use your database you need to connect it to your SMS gateway, then you can insert an SMS into the table of the outgoing messages by using an SQL INSERT command. To execute this command, you need to connect to the database by using the myConnection.Open() method. Thereafter insert the message into the database ( mySqlCommand.ExecuteNonQuery() ), then close the database connection ( myConnection.Close() ). That's all there is to it! It wasn't that black magic, was it? ]]>Mon, 16 Mar 2015 17:18:43 GMThttp://snipplr.com/view/93629/vbnet-sql-example-how-to-send-sms-in-vbnet-using-sql-database/(C#) How to make SIP video calls in C# - sacha-manjihttp://snipplr.com/view/88431/how-to-make-sip-video-calls-in-c/
While searching on the Internet on how to make SIP video calls using C#, I recognised that there aren’t any brief and straightforward tutorial in this topic. I found multi-page articles (sorry, but some of them are full of bullsh*t) and neverending forum threads, but none of them provided me complete solution. Therefore, I undertook to create a short and concise guide on how to make video calls in C# using the VoIP technology.
Look at the prerequisites:
- PBX: To be able to make and receive video calls you, a phone system (e.g. Asterisk) is essentially needed. You need to add a new SIP account in your PBX for this application.
- Visual Studio: This solution is based on a console softphone, so a new Visual C# Console Application is just enough.
- VoIPSDK.dll: I used prewritten VoIP components to implement the SIP video calling feature. The necessary .dll file can be found on this website: http://www.voip-sip-sdk.com/. It should be added to your references.
- Test phone: To test your application you can use any VoIP phone stat supports video calling (e.g. Bria softphone).
Now take a look at the code. As you can see below, just a few lines of C# code are enough to connect the application to a PBX and to initiate a video call. Firstly, you need to perform the SIP registration tasks. You need to create a softphone and a phone line object, then you need to specify the SIP account to be used for the phone line. These configurations are needed to be able to register to your PBX. After calling the RegisterPhoneLine method the regsitration procedure starts, and the application will indicates its status due to the mySoftphone_PhoneLineStateChanged method. The PhoneCallVideoSender and PhoneCallVideoReceiver objects are responsible for video handling. To handle the USB webcamera, the WebCamera object can be used. The CallType class is used to identify whether the call is a video or an audio call.
To make a test call, provide valid SIP account details for this console application to be able to register to your PBX, then specify a telephone number to be dialled (it can be an other SIP account that has been previously registered to the PBX). After running the application, it dials the provided phone number automatically meanwhile sending the image of the webcamera. ]]>Mon, 26 Jan 2015 21:50:53 GMThttp://snipplr.com/view/88431/how-to-make-sip-video-calls-in-c/(C++) C++ SMS source code on how to send SMS text messages using HTTP - Gupta86http://snipplr.com/view/87330/c-sms-source-code-on-how-to-send-sms-text-messages-using-http/
Hey Guys,
This is a short and straightforward article (or let’s say „tip” or „mini-review”) that presents how to send SMS messages from your own C++ (Cpp / C plus plus) application through HTTP. You will see, it is gonna be really easy. I will focus on the necessary code, but I would like to draw your attention to all the hardware and software requirements that are essentially needed for SMS messaging.
Briefly about SMS technology for better understanding
If you are proficient in SMS technology, just skip this paragraph and move on to the next one. So well, if you want to send SMS messages from your C++ application, first you need to connect your software and an SMS gateway to each other. Why? Because your application let you compose the SMS messages (including the text, the recipient’s phone number, etc.), but if you want to send out the SMS, you need to connect to the SMSC (Short Message Service Center that stores, forwards, converts and delivers SMS messages). An SMS gateway is able to connect to the SMSC of the Mobile Service Provider via SMPP IP SMS connection or a GSM modem, so actually the SMS gateway can send out your message. To establish connection between the SMS gateway and the C++ application, I used HTTP requests and responses. For sending SMS messages through HTTP, your SMS gateway should have a built-in webserver (e.g. Ozeki NG – www.ozekisms.com). The built-in webserver allows you to send SMS messages from your C++ application by calling an URL (HTTP Get) or using the HTTP Post method.
So that, all you need to have for sending SMS from your C++ application using HTTP is Microsoft Visual Studio for C++ development, an SMS gateway and my code snippet!
Okay and finally a few lines about testing. To test your software by sending out SMS message(s) actually, you need to install a GSM modem connection or an IP SMS connection. Buti f you have not contracted with any mobile service provider (e.g. AT&T or T-Mobile), you can test the SMS sending by simulating it (e.g. Ozeki NG provides „HTTP Server Connection” that can be used for this purpose). For more details related to the configuration of the SMS gateway, please contact the vendor of your SMS gateway.
Happy coding! :) ]]>Sat, 17 Jan 2015 00:55:41 GMThttp://snipplr.com/view/87330/c-sms-source-code-on-how-to-send-sms-text-messages-using-http/(PHP) PHP SSH API class - ryantxrhttp://snipplr.com/view/67668/php-ssh-api-class/
This SSH API is used to execute remote commands, send and receive files. ]]>Wed, 10 Oct 2012 00:31:19 GMThttp://snipplr.com/view/67668/php-ssh-api-class/(PHP) Is the mail I sent, read or unread by the receiver. - skywalkerhttp://snipplr.com/view/6058/is-the-mail-i-sent-read-or-unread-by-the-receiver/
Is the mail I sent, read or unread by the receiver. ]]>Wed, 30 Apr 2008 04:46:46 GMThttp://snipplr.com/view/6058/is-the-mail-i-sent-read-or-unread-by-the-receiver/