How to test EAIF | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ Archive through May 02, 2013 ⬆ |
◄ ► |
Author | Message | |||
Kim Yli-Panula New member Username: Arenainteractive Post Number: 1 Registered: 07-2011 |
Hi I've installed Now SMS/MMS gateway Trial version. How can I send MMS-messages to my MMSServer Java-program(defined to receive mms-messages via EAIF protocol), which listens on port 8189 to receive mms-messages. Both the gateway and the java-program are on my computer(so I need use localhost and I don't want to use an external MMSC). How do I configure Now SMS/MMS gateway for that. Once I have configured Now SMS/MMS gateway, Could I use the Javacode(http://www.nowsms.com/download/sendmms.java.txt) for sending mms-messages? Regards Kim | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 3359 Registered: 08-2008 |
Hi Kim, NowSMS separates the configuration of the sending and receiving sides of an MMS connection. To post messages to your application, this is defined under an "MMSC Routing" definition. This is where you would define the URL and other parameters for connecting to your EAIF application. Use the "Route messages to this account for this recipient phone number(s)" setting to specify certain destination numbers that should be routed to your application, or make it the "Default Route" on the "MMSC Routing" page. More description of that configuration can be found here: http://www.nowsms.com/doc/mmsc-messaging-server/connecting-to-an-operator-mmsc/s ending-mms-messages/eaif However, for your application, you should change the connection type to be "To VASP (Deliver Format)". To send messages from your application using EAIF, you need to create an "MMSC VASP" definition in NowSMS, as described here: http://www.nowsms.com/doc/submitting-mms-messages/eaif If your first objective is to deliver MMS messages to your application, define the "MMSC Routing" definition first. Then use the NowSMS web interface to send a test MMS message to your application. You can use the Java sendmms example after that, but you need to define a user account under "SMS Users" first. (The Java example submits to NowSMS using its proprietary URL interface, which works through these accounts.) -- Des NowSMS Support | |||
Kim Yli-Panula New member Username: Arenainteractive Post Number: 2 Registered: 07-2011 |
Thanks for the advice. I've been testing since you gave the reply and it works fine. The sending works with the NowSMS web interface and with the sendmms.java(Java example). With sendmms.java, regardless I haven't defined a user account under "SMS Users". At least I don't see any users in that list. However, the actual issue that now appears, is when I send an mms message with sendmms.java, nordic characters like ä and ö aren't delivered to the database which my MMSServer.java is using. These characters show as ? in the database(Mysql). This problem doesn't occur with the NowSMS webinterface. The development program where I'am using the sendmms.java is Eclipse Helios. So is the problem in the Eclipse, in the code of the sendmms.java or in the Now SMS/MMS Gateway. In code where I create an mmssend object I use .addparameter(MMSText, "Content text") to add the content text into a message. Regards Kim | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 3399 Registered: 08-2008 |
Hi Kim, By default, NowSMS assumes that any submitted text will be encoded using UTF-8 character encoding. (This allows all international languages to be supported.) Since the characters are working ok from the web interface, I'm guessing that your application is working in a local character set, such as iso-8859-1 (Western Europe). You can either convert your text to UTF-8, or add a parameter to tell NowSMS what character set you are using. This should work for iso-8859-1: mms.addparameter ("charset", "iso-8859-1"); -- Des NowSMS Support |