Send MMS Problem

Send MMS Problem Search Search

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through April 08, 2009 » Send MMS Problem « Previous || Next »
Author Message
Abas Mohamed
New member
Username: Bigdongol

Post Number: 1
Registered: 02-2009
Posted on Thursday, February 05, 2009 - 06:27 am:   

Hi product Specialists,

i have some problem i'm going into to be crazy because i didn't found any solution for it..

i use MMSCOMP command to creat a mms and put it manual into VASPQ Folder to be sent..

i don't know what is the problem, as i made the next steps

1) make test.hdr as
X-Mms-Message-type: m-retrieve-conf
X-Mms-Transaction-id: C635163B
X-MMS-version: 1.0
From: 89212/TYPE=PLMN
To: 966502032102/TYPE=PLMN
Subject: mms test
Content-type: application/smil

2) made a smil file test.smil
<smil>
<head>
<layout>
<root-layout width="160" height="140"/>
<region id="Image" width="160" height="120" left="0" top="0"/>
<region id="Text" width="100%" height="100%" left="0%" top="0%"/>
</layout>
</head>
<body>
<par dur="1000ms">
<img src="1.jpg" region="Image" />
<text src="1.txt" region="Text" />
</par>
</body>
</smil>

and run the command line

mmscomp test.hdr test.smil 1.jpg 1.txt

and when i get test.mms and put it in VASPQ folder, it disappear but never sent

Could u help me?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 433
Registered: 08-2008
Posted on Thursday, February 05, 2009 - 04:47 pm:   

Hi,

The quick answer would be that you can't just put the message into the VASPQ directory to send it.

The message needs to be "submitted".

Unfortunately, there is no file-based interface.

The following talks about ways that you can submit an MMS message to NowSMS:

http://www.nowsms.com/documentation/ProductDocumentation/mms_notifications_and_c ontent/Submitting_MMS_Messages.htm

There's also a PHP example here:

http://blog.nowsms.com/2008/11/nowsms-php-example-send-mms-message.html

And a new Java example here:

http://www.nowsms.com/download/sendmms.java.txt

--
Des
NowSMS Support
Abas Mohamed
New member
Username: Bigdongol

Post Number: 2
Registered: 02-2009
Posted on Thursday, February 05, 2009 - 07:37 pm:   

Thanks For reply me and give me the start key

now i want to know if i'll submit a file on partation c for example, what is the statement for MMSFile= ?????
Sajid Ahmed
New member
Username: Sajid

Post Number: 26
Registered: 10-2008
Posted on Thursday, February 05, 2009 - 10:41 pm:   

Hi Des,

So far so good!
I was capturing tcp trafic using wire shark.
I tested post of mms using above program (sendmms.java)with public ip of my own machine(as one of the port is public) and with production serveri.e remote machine both were getting posted but still in wireshark i am able to see checksum incorrect.
I tried to do with my own local if(this port is not public so i went with local ip) here in this case its posted as "Get" request.please help me what's its doing..
CHECKSUM INCORRECT] Len=
Please find attached mysystem.pcap and remotemachine.pcap with this mail.

please ensure what i posted is correct?

Thanks
application/octet-stream
remotemachine.pcap (922.7 k)
application/octet-stream
mysystem.pcap (1519.6 k)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 437
Registered: 08-2008
Posted on Friday, February 06, 2009 - 12:36 am:   


quote:

now i want to know if i'll submit a file on partation c for example, what is the statement for MMSFile= ?????




Put in the full path of the file, just remember to put "\\" in place of "\", as the backslash character must be escaped this way in Java code.

This example is submitting f:\temp\test.jpg:

mms.addparameter ("MMSFile", new File("f:\\temp\\test.jpg"));


--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 438
Registered: 08-2008
Posted on Friday, February 06, 2009 - 12:46 am:   


quote:

CHECKSUM INCORRECT




It is common to see this in Wireshark ... it is not necessarily a problem ... as I've seen it in almost every packet trace (MMS related and not)I've ever looked at with Wireshark or Ethereal.

I've always assumed that it had something to do with NAT (network address translation) routers and firewalls that are redirecting IP requests on almost everyone's networks.

I would recommend using smaller images ... many operator MMSCs will choke on messages larger than around 250KB to 300KB.

--
Des
NowSMS Support
Abas Mohamed
New member
Username: Bigdongol

Post Number: 3
Registered: 02-2009
Posted on Friday, February 06, 2009 - 06:32 am:   

Thanks Des for reply to me
the problem is still exist

this is the link submitted

http://127.0.0.1:8800/?PhoneNumber=99999&MMSFrom=55555&MMSSubject=test&MMSFile=D:\1.jpg

always gave me internal error, i don't know why :-(
Abas Mohamed
New member
Username: Bigdongol

Post Number: 4
Registered: 02-2009
Posted on Friday, February 06, 2009 - 06:33 am:   

sorry the link was

http://127.0.0.1:8800/?PhoneNumber=999999&MMSFrom=55555&MMSSubject=test& MMSFile=D:\1.jpg

with no space
Abas Mohamed
New member
Username: Bigdongol

Post Number: 5
Registered: 02-2009
Posted on Friday, February 06, 2009 - 06:34 am:   

:-(

sorry again

http://127.0.0.1:8800/?PhoneNumber=999999&MMSFrom=55555&MMSSubject=test&MMSFile = D : \ \ 1 .jpg

with no space
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 441
Registered: 08-2008
Posted on Friday, February 06, 2009 - 04:52 pm:   

Hi Abas,

If you use the HTTP GET style parameters, then the "MMSFILE" reference can only reference a file by an HTTP link.

Example:

http://127.0.0.1:8800/?PhoneNumber=999999&MMSFrom=55555&MMSSubject=test&MMSFile= http://www.nowsms.com/media/logo.png

You CANNOT reference a local file in this manner. (I realise this is inconvenient, but we have to have this restriction for overall security reasons.)

That is why the script examples above actually perform an HTTP POST of the file content instead of just referencing the file by name.

--
Des
NowSMS Support
Abas Mohamed
New member
Username: Bigdongol

Post Number: 6
Registered: 02-2009
Posted on Saturday, February 07, 2009 - 01:09 pm:   

Thanks Des i fix that issue..

But now i have two main important things..

first when try send 3gp file i don't know how t0 put it in smil to be send correctly

second point if i want to put arabic name in the subject in the submitted link, how could be?
Abas Mohamed
New member
Username: Bigdongol

Post Number: 7
Registered: 02-2009
Posted on Sunday, February 08, 2009 - 08:59 am:   

Hi Des,

I success in the first point of vedio but now i still have the second problem of sending arabic subject..

also there is main point of how could i Set forward lock to yes in the submitted link
Abas Mohamed
New member
Username: Bigdongol

Post Number: 8
Registered: 02-2009
Posted on Monday, February 09, 2009 - 06:46 am:   

there's no one help me!! :-(
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 446
Registered: 08-2008
Posted on Monday, February 09, 2009 - 03:24 pm:   

Hi Abas,

You can find more information regarding the SMIL specification at:

http://www.w3.org/TR/2005/REC-SMIL2-20050107/

And you can find information about the limited SMIL that is used in MMS in the MMS Conformance document which is part of the OMA MMS specifications at:

http://www.openmobilealliance.org/Technical/release_program/mms_v1_2.aspx

The short answer is that to embed a video in a SMIL presenation, you use a "video" tag instead of "img":

<video src="vid.3gp" region="Image" />

Regarding an Arabic subject ... there are two issues:

1.) By default, NowSMS expects you to use the UTF-8 character set. If you are using the HTTP GET or POST interface, it is also possible to explicitly set a different character set using the "&charset=xxx" parameter, where "xxx" is the character set you are using, such as "&charset=iso-8859-6" for Arabic.

2.) There is a bug sending Unicode subject headers over an MM1 GPRS modem connection in most versions of NowSMS. (v2008.03.23 and later, including the current download from this web site, does not have this bug.)

--
Des
NowSMS Support
Abas Mohamed
New member
Username: Bigdongol

Post Number: 9
Registered: 02-2009
Posted on Wednesday, February 11, 2009 - 02:08 pm:   

Des..You Are Greate

Thanks
Abas Mohamed
New member
Username: Bigdongol

Post Number: 10
Registered: 02-2009
Posted on Wednesday, February 11, 2009 - 06:52 pm:   

Hi Des again...
Sorry i always came to you in any thing...
i have face another point i wonder how to pass it!!
i send MMS via MM7 as i have account and add it in MMSC Routing..
But the question was, if i have many account, so, how could i identify in the submitted link the account used for sending..
Now i have account A and choose it as default in MMSCRouting,
But if i add another account B, so what can i do?

Thanks again
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 458
Registered: 08-2008
Posted on Thursday, February 12, 2009 - 02:33 pm:   

Hi Abas,

NowSMS uses "sender based" routing for this type of situation.

When you configure the "MMSC Routing" definition, there is a "Default Sender Address" field.

If you submit a message and the sender ("MMSFROM") address matches the "Default Sender Address" for one of the "MMSC Routing" definitions, then the message gets sent out via that route.

--
Des
NowSMS Support
Abas Mohamed
New member
Username: Bigdongol

Post Number: 11
Registered: 02-2009
Posted on Wednesday, February 18, 2009 - 05:05 pm:   

Hi Des..

Really every point u told me help me in my work..

But today ofcorse i came to u with different problem that is

how could i increase the speed to out MMS message, i notice that if for example i send in my code 1000 message to out, i see that it take long time to out not less than 1 hour ?? i don't know why??
is there is a way to increase the speed here..

also in MMSC routing there's some thing called max connections, is that helpfull in my problem ??
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7748
Registered: 10-2002
Posted on Wednesday, February 18, 2009 - 10:27 pm:   

Hi Abas,

"Max Connections" could be helpful, depending on whether or not your provider has any issues with it (as long as you don't set it too high, it should not be a problem). This will allows NowSMS to open more simultaneous connections for sending the messages.

Another potential performance boost ... if you are running a version of NowSMS prior to 2008.04.10, you may want to update to the current download version (which I think is 2008.06.03). The reason for this is because the updated version enabled keep-alive support for MM7 connections, which offers performance boosts in many scenarios.

If none of this makes a difference, then it would be helpful for us to get a closer look at your logs to see if we notice anything.

Des should be back tomorrow. I'd suggest enabling the MMSCDEBUG.LOG, and sending a blast of at least 100 messages, and then send us the MMSCDEBUG.LOG to look at in more detail. E-mail it to nowsms@nowsms.com with "Attention: Des" in the subject line of your message. Also post a reply here to let Des know that you've e-mailed the log file, in case he needs to do some checking in our e-mail system to find it.

-bn
Abas Mohamed
New member
Username: Bigdongol

Post Number: 12
Registered: 02-2009
Posted on Saturday, February 21, 2009 - 07:38 am:   

Thank Bryce For Your advice

I'll send Mail to des

wish he is ok and be back soon
kishore k
New member
Username: Kishorek

Post Number: 1
Registered: 02-2009
Posted on Saturday, February 21, 2009 - 11:52 am:   

Hi,
I tried the given sample c# Application but i got errors can u suggest me to rectify.I am sending my code below

I gave phone number : 9966801760



public partial class Test : System.Web.UI.Page
{
private MmsProtocolMm7 objMm7Protocol = null;
private MmsMessage objMmsMessage = null;
private MmsConstants objConstants = null;
protected void Page_Load(object sender, EventArgs e)
{
objMm7Protocol = new MmsProtocolMm7();
objMmsMessage = new MmsMessage();
objConstants = new MmsConstants();
}
protected void Button1_Click(object sender, EventArgs e)
{
try
{
MmsSlide objSlide = new MmsSlide();
MmsMessage objMessage = new MmsMessage();
object obj = null;

objSlide.Clear();
objSlide.AddText("Hello");
objSlide.AddAttachment("D:\Sharing\ThanQ.gif", ref obj);

//Create MMS Message and add slide including text and image
objMessage.Clear();
objMessage.AddRecipient("9966801760", objConstants.asMMS_RECIPIENT_TO);
objMessage.From = "9966801760";
objMessage.Subject = "Sub:Test";
obj = objSlide;
objMessage.AddSlide(ref obj);

objMm7Protocol.Clear();
objMm7Protocol.ProviderURL = "http://mmsc.activexperts.com:8081/mm7";

// objConnection = CreateObject( "ActiveXperts.MM7Connection" ) // Create a new instance of MM7Connection
//objConnection.ProviderURL = "http://mmsc.activexperts.com:8081/mm7" // Set the providers URL

//objMm7Protocol.ProviderUseSSL = ctlUseSSL.Checked ? -1 : 0;
// objMm7Protocol.LogFile = "c:\mmsmm7.log";

// Send
obj = objMessage;
objMm7Protocol.Send(ref obj);
UpdateResult(objMm7Protocol.LastError);
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}

private void UpdateResult(System.Int32 numResult)
{
Response.Write(numResult.ToString() + ": " + objMm7Protocol.GetErrorDescription(numResult));
}
}

after running Application i am getting error
* Invalid host name
and can u provide "provider url" or explain it


}
kishore k
New member
Username: Kishorek

Post Number: 2
Registered: 02-2009
Posted on Saturday, February 21, 2009 - 11:56 am:   

Hi,

You gave free trail version of
Now SMS/MMS Gateway v2008.06.03

How to use this gate way .
can you explain step by step how to use this gate way }
Abas Mohamed
New member
Username: Bigdongol

Post Number: 13
Registered: 02-2009
Posted on Saturday, February 21, 2009 - 08:31 pm:   

Hi Kishore

I want to help u in any thing u want to know
but there's two main things
1) first i think u use another Gateway toolkit as i note in your code

2) i write my code in visual, So i don't know c#
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 501
Registered: 08-2008
Posted on Sunday, February 22, 2009 - 11:07 pm:   

Hi Kishore,

I'm not familiar with the MM7 library that you are using.

You can find more information about submitting MMS messages through NowSMS at the following link:

http://blog.nowsms.com/2009/02/sending-mms-messages-with-nowsms.html

However, before you try using any program code to submit messages to NowSMS, you should verify that you have a working configuration of NowSMS, and that you can send messages using the built-in NowSMS web interface. If you cannot send messages using the NowSMS web interface, you will not be able to send messages from your program code either.

To start with NowSMS, you need to connect NowSMS with an SMS and/or MMS service provider ... or with a GSM modem. More basic information about NowSMS can be found here: http://www.nowsms.com/whatisnowsms.htm.

--
Des
NowSMS Support

Login Login / Register Search Search   Home Home
Logout Logout Topics Topics Search Last 1|3|7|30 Days   Previous Page Previous Next Next Page