MM7 Connection Issues

MM7 Connection Issues SearchSearch
Author Message
Moses Opata
New member
Username: Pecmosg

Post Number: 1
Registered: 06-2019
Posted on Monday, June 24, 2019 - 03:09 pm:   

Hello Team,

I am using NowSMS in my application which is in Java technology, Currently using NowSMS Gateway Edition, now I want to send to NowSMS MMSC using mm7, here I am getting some problem.

For NowSMS Gateway Edition I am referring to the code from
https://www.nowsms.com/doc/submitting-sms-messages/send-sms-text-message-with-ja va
and
https://www.nowsms.com/doc/submitting-mms-messages/send-mms-message-with-java

for SMS and MMS respectively.

my configuration details were like -

#NowSMS configuration details
ServerAddress=http://localhost:8800
NowSmsUsername=
NowSmsPassword=


now for Sending to NowSMS MMSC (mm7) what should I used for server address as I try with http://localhost:8081/mm7 but it was giving me some error.(created a VASP account)

can you please help me whether I need to change the code or only the server address for it.
please note: java code and NowSMS are running on the same machine.
Also using NowSMS direct delivery.
Thanks in advance.
Moses Opata
New member
Username: Pecmosg

Post Number: 2
Registered: 06-2019
Posted on Tuesday, June 25, 2019 - 10:50 am:   

Please can i get help on this?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 6017
Registered: 08-2008
Posted on Tuesday, June 25, 2019 - 07:14 pm:   

I'm sorry, but I don't have enough info. You only say you are having "some problem" and seeing "some error". Details of the error you are seeing is an essential starting point for diagnosis.

MM7 formatting is complex, and without seeing the raw data you are submitting, I can't know if it is a syntax error, authentication error, configuration error, etc.

My advice would be to get a Wireshark trace that shows the data submitted, and the response. I don't think you can get a capture of a localhost connection, so it may be necessary to move your code to another machine to get a capture.

--
Des
NowSMS Support
Moses Opata
New member
Username: Pecmosg

Post Number: 3
Registered: 06-2019
Posted on Tuesday, June 25, 2019 - 10:53 pm:   

thanks for you response, i will do the wireshark and revert back, but main while here is the error we are getting :
Server returned HTTP response code: 401 for URL: http://localhost:8081/mm7?user=&password=
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 6020
Registered: 08-2008
Posted on Tuesday, June 25, 2019 - 11:36 pm:   

Thanks, that is helpful.

That is an authentication error...

Try http://localhost:8081/mm7/xxxxx=yyyyy

xxxxx is VASP account
yyyyy is password

Or use HTTP Basic authentication (Authorization: header).

--
Des
NowSMS Support
Moses Opata
New member
Username: Pecmosg

Post Number: 4
Registered: 06-2019
Posted on Friday, June 28, 2019 - 12:07 pm:   

Hello Des,

I am getting an error again, now my server is http://localhost:8081/mm7/username=password.
In code there are two lines,

String res=connection.getResponseMessage();
System.out.println("Response Code ->"+res);

I am getting "Response Code ->Internal Server Error"

while my username and password both are correct.

I am referring the code from this URL.
https://www.nowsms.com/doc/submitting-sms-messages/send-sms-text-message-with-ja va
https://www.nowsms.com/download/sendmms.java.txt

For NowSMS Gateway Edition when I was setting my url, username and password then it was working correctly. That time I am using "http://localhost:8800/" URL.
.
Thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 6021
Registered: 08-2008
Posted on Friday, June 28, 2019 - 09:30 pm:   

I have to tell you again, that I really need to see the raw data you are submitting. MM7 data formatting is extremely complex ... and many syntax errors will receive a response of "Internal Server Error", as the the server does not understand the request.

I do have one question though.

Are you actually using MM7?

I notice that you keep referring to links to our Java code for sending MMS. That code is not using MM7. It needs to be directed to the web interface port.

--
Des
NowSMS Support
Moses Opata
New member
Username: Pecmosg

Post Number: 5
Registered: 06-2019
Posted on Friday, June 28, 2019 - 11:04 pm:   

Hi Des,
our java code currently submits to the web interface port, but due to the fact that modems and Android phones reduce the speed of messages we can send per day, we send in millions per day.

since we could perform direct delivery we decide to use mm7 so as to remove the need for modems.

now we create a new MMSC route for direct delivery and routed all message for a certain range to perform direct delivery.

the issue is the messages deliver with an unknown address. if we can fix this we will not need to configure mm7screen

How do we solve this?
Moses Opata
New member
Username: Pecmosg

Post Number: 6
Registered: 06-2019
Posted on Saturday, June 29, 2019 - 12:11 pm:   

Also Des please can you share java code on how to send MMS using nowsms, What is the code to submit using mm7, can you send any sample?
Moses Opata
New member
Username: Pecmosg

Post Number: 7
Registered: 06-2019
Posted on Tuesday, July 02, 2019 - 10:13 pm:   

Hi Des,

Any Suggestions?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 6025
Registered: 08-2008
Posted on Tuesday, July 02, 2019 - 10:36 pm:   

Hi,

MM7 is irrelevant to the final method of delivery.

MM7 can be used as either input to, or output from the MMSC.

We have no libraries for generating it as input to the MMSC. And, more importantly, there is no benefit that it would offer. So, let's put MM7 to the side.

The "unknown address" sender is simple to address. When you send with a modem, the number associated with the SIM card always becomes the sender.

When using direct delivery by the MMSC, you must set this value.

When using the URL interface, this can be done with the MMSFrom parameter.

For example, with the Java library:

mms.addparameter ("MMSFrom", "+9999999999");

This can also be set as an email address.

--
Des
NowSMS Support
Moses Opata
New member
Username: Pecmosg

Post Number: 8
Registered: 06-2019
Posted on Tuesday, July 02, 2019 - 11:52 pm:   

Thanks for your help

Add Your Message Here, or click here to start a new topic.
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image
Options: Automatically activate URLs in message
Action: