Automated SMS replies | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through June 02, 2011 ⬆ |
◄ ► |
Author | Message | |||
Paul Yates New member Username: Tractorman Post Number: 1 Registered: 12-2009 |
I am trying to develop a Java Application, that sends an automated SMS message back to the originator of the message that is received at port 0 directly into the inbox of a Nokia Series 40 phone. Is there any way I can read the phone number of the sender of the original message from port 0 or grab it anywhere else as J2ME does not allow access to port 0 messages? I only need the phone number of the originator of the SMS - nothing else. Is there any way at all of doing this with J2ME or NowSMS? Thanks | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1537 Registered: 08-2008 |
To the best of my knowledge, no. Java apps do not have access to the standard SMS inbox. | |||
Paul Yates New member Username: Tractorman Post Number: 2 Registered: 12-2009 |
Could NowSMS be configured to receive the text and forward it back to the same mobile but on a specific port that my app can listen on, port 5000 for example? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1545 Registered: 08-2008 |
Hi Paul, Yes this is possible (as long as your receiving modem is not a Nokia phone as they do not support receiving SMS and routing over the modem interface). Your 2-way command could process the message and resubmit it to NowSMS with a destination port. For simple processing like this many people use a kludge where the 2- way command is actually an HTTP URL that points back to NowSMS itself...something like...http://127.0.0.1:8800/?user=username&password=password&phonenumber=xxxxx&text=@@FULLSMS@@&destport=xxxx However, you lose the sender address in this scenario, so you may want to encode the original sender in the text. -- Des |