we are going to configure our restcomm instance to handle sms messages.
But we would like to test this functionality with sip chat messages during development
is it possible to send message from sip phone to the specific to the registered sip number?
do we have another way "to send" sms to sip number w/o real sms sending?
maybe some resp api can help us with this.
Thanks,
You can use Linphone or other SIP client to send/receive SMS from/to RestComm.
To send SMS from RestComm:
design SMS application in RVD and assign sms enabled DID to it
in your SMS application, in "To" section, enter the SIP address to which you want to send SMS (e.g.: sip:user#sip.linphone.org)
register in your SIP client
in your sip client enter the number bound to your SMS application (SMS applications must use SMS enabled DIDs in order to send/receive SMS)
call the number associated with your application
user#sip.linphone.org should have received SMS
Here you are useful post from the RestComm docs page on how to send SMS to SIP phone http://docs.telestax.com/restcomm-send-sms-to-a-sip-phone/
If you want to send SMS from SIP client to RestComm application you can do the following:
register in your SIP client
enter the SIP number registered in Restcomm and associated with SMS application
right-click on the app number and choose to send text message
enter your message and click on the Send button
To check if the SMS has been received from Restcomm in Admin UI go to Logs -> Messages
Here is how log for received message from SIP client (Linphone in this case) looks like:
Here you are an example of sending SMS using the API:
curl -X POST http://ACae6e420f425248d6a26948c17a9e2acf:MyPassword#192.168.1.3:8080/restcomm/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf/SMS/Messages -d "To=7777" -d "From=6666" -d "Body=This is a SMS Restcomm test"
<RestcommResponse>
<SMSMessage>
<Sid>SMde6b385aaba548b889a678a8357cea7f</Sid>
<DateCreated>Thu, 6 Aug 2015 07:55:25 -0600</DateCreated>
<DateUpdated>Thu, 6 Aug 2015 07:55:25 -0600</DateUpdated>
<DateSent/>
<AccountSid>ACae6e420f425248d6a26948c17a9e2acf</AccountSid>
<From>6666</From>
<To>7777</To>
<Body>This is a SMS Restcomm test</Body>
<Status>sending</Status>
<Direction>outbound-api</Direction>
<Price>0</Price>
<PriceUnit>USD</PriceUnit>
<ApiVersion>2012-04-24</ApiVersion>
<Uri>/restcomm/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf/SMS/Messages/SMde6b385aaba548b889a678a8357cea7f</Uri>
</SMSMessage>
</RestcommResponse>[user#localhost configuration]$
The "To" must be a number registered with Restcomm listening to an SMS application
Related
how can I get with the twilio whatsap api that clients can send messages to the user who registers on my website.
For example, if the user registered with the number 12345, the clients can send messages to the number 12345 of the cell phone.
Then if another user registers with the number 456789, their clients can send messages to the cell phone number 456789 and so on.
At the moment I am thinking of using twilio, but if you can recommend another api that works with nodejs I would appreciate it
i am working with nodejs
thanks
I have seen many of the posts relating to sending email under linux but they do not address my particular need.
I want to implement code (C/C++) in my linux application that will send me back some kind of notification (in a stealthy way) under a certain program condition. All it needs to send me is less than 50 bytes of status data. The only thing I am guarenteed is that the box will be on a local network which will have access to the Internet via the usual gateway.
One possibility would be to send me a text to my wireless carrier like this:
mynumber#verizon_gateway.com. But that assumes that I have a mail client available on the linux box which is not a guarantee. If I programmed this at the socket layer directly using SMTP I would have to manage a TCP connection which is not what I prefer to do.
Any suggestions of what would be a possible way to send me a notification from my linux app?
Thanks,
-Andres
For email you could use something like SendGrid, specifically their WebAPI - this will allow you to send email with only a HTTP request.
For SMS you could use something like Nexmo, which will allow you to send an SMS with a HTTP request.
Note that you'll have to include your API credentials in the compiled code - a potental security issue (for your credentials).
Disclaimer: I do a bit of developer evangelism for Nexmo.
I'm developing an application in javaME and I'm trying to receive incoming sms but there is a way to catch them that is working only with ports and there must be two applications but I want to send sms in a phone without using javame application to other phone that hasn't javame application.
I want to receive incoming sms without using port. How can I do this, is it possible?
In Java ME, You can't read SMS from inbox. There is a way to read SMS from Inbox, but it is for symbian phone like S60 series ( Nokia E72,E5 ) etc only.
In S60 series phone using API Bridge jar file, you can achieve your requirement. Please check out http://www.developer.nokia.com/Resources/Tools_and_downloads/Other/APIBridge/ page for more details.
I need to send a pattern like "username,password,0,1,1,1,0,1,0" using sms from j2me app to a gsm modem that is not in my control. It is used to reserve foods.
If anyone send a sms to provided number of the gsm modem using any mobile phone normally (like how you send sms to anyone), it will reply an answer.
My problem is sms sent from my j2me app is received by any java phone, but the gsm modem doesn't get it (as I didn't receive the reply and the food is not reserved). Same as gsm modem android phones don't receive my sms.
I used the typical j2me libraries to send sms. I tried TextMessage, no luck. Then I tried BinaryMessage, it didn't received by gsm modem but android received it!
Another thing is that I couldn't find any complete source, documentation or examples about sms pdu. Is the binary payLoad all the full sms format sent using BinaryMessage?
At the end I would now is it possible to send normal text sms using BinaryMessage? Any examples?
Thanks in advance.
Regards, Ali.
You should try to send sms by AT commands, compose message and send it sending by commands: (AT+CMGS, AT+CMSS)
Here is tutorial for it
At the bottom you have full list of topics about AT commands and SMS sending.
For using AT commands tutorial for AT commands in java me
That's basically my question, I have written the code for sending/receiving SMS but it's basically a "server/client" so I can't get the SMS that are sent directly to the phone number instead of through the j2me program. Is it even possible?
It is quite possible to write an app that receives an incoming SMS, extracts the message and sends it to server through a HTTP call. You can then make that server send that SMS to another phone.
Using the Wireless Messaging API (JSR 120) you can receive SMS to a JavaME application. However, you must register to receive SMS on a particular port, and you cannot read SMS from the phone's standard inbox.
Register:
import javax.wireless.messaging.MessageConnection;
MessageConnection connection =
(MessageConnection) javax.microedition.io.Connector.open("sms://:1234");
There are 2 different methods of receiving SMS:
event-driven using javax.wireless.messaging.MessageListener
using blocking method javax.wireless.messaging.MessageConnection.receive()