Log file Optimisation for sending SMS/MMS and check mobile credit

Log file Optimisation for sending SMS/MMS and check mobile credit SearchSearch
Author Message
Mohamed Salim ALI
New member
Username: Salim

Post Number: 37
Registered: 04-2005
Posted on Thursday, March 09, 2006 - 01:44 pm:   

Dear Bryce ,

we were working with you and Breth, to solve many problems, and then just now we are in migration process to use the 2006 release one.

We are facing a critical problem which makes our server hanging up some time by the delay time which NowSms takes to update the log file:

1. As many times, I explained you, we are interfacing a RedKnee system with our mobile Operator to check the mobile balance before we send any message (SMS/MMS, MT). Our applicating keeps checking by reading the log file of NowSMS directory, and when, if NowSms delay to generate or update the log file, our application makes our Server hanging up; "Error, File Not found".
So what we can Optimize to process this log file updating fast by NowSMS. Because we do delay 5mn, the checking from application, but still it continue to happen.

2. We are using the version 51k one, do you advice us to upgrade into the 2006 release one, it will not makes us trouble ? That because we were solved many problems, and we don't want to get them back, like the no trying to send Message, like the delivery notification, like the non MM7 standard AnnyWay.
Such features are on the release one ?

Regards,
Salim.
MedSalimALI
New member
Username: Salim

Post Number: 38
Registered: 04-2005
Posted on Thursday, March 09, 2006 - 04:18 pm:   

Hi Bryce,

More details Bryce, we are connected to many Mobile Operators in the midle East, and we are using Visual Basic and ASP as main function of our application, behind Nowsms, in case that can be helpfull to understand more our application.

Regards,
Salim.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5620
Registered: 10-2002
Posted on Thursday, March 09, 2006 - 09:16 pm:   

Hi Salim,

1.) Can you explain more about what you are checking in step #1, and how you perform this check. I would like to understand it better in order to comment, and see if there is a better way to do it.

2.) All of that functionality is included in the 2006 release. In addition to the AnnyWay support, we also added support for another proprietary protocol used by LogicaCMG (in addition to the existing support for Ericsson's non-standard MM7). We added a configuration setting so that these non-standards can be selected in the user interface (previously for the AnnyWay connection you had to edit a VASP.INI file directly).

-bn
MedSalimALI
New member
Username: Salim

Post Number: 39
Registered: 04-2005
Posted on Monday, March 20, 2006 - 10:39 am:   

Hi Bryce,

For #2, Thank you very much, and we are planning to upgrade it then, and I was afraid if it can make us trouble.
For #1, That is a pleasure for me to express to you how NowSms helped us, but this new problem makes us again pending. Below is the scenario:
We are running two kind of Service, MO & MT.
the Mo services we don't have any problem, because when we are replying back to the mobile user, no billing process, the billing was handled by the mobile operator.
The problem is in the MT message: When we initiate sending, the NowSMS SMPP outbound is connected to RedKnee billing system, so then when NowSms try to send message with the MT short code, The RedKnee billing system will deliver a notification Error as "FE", if the Prepaid mobile User has no credit, we were working with you & Breth, to capture it and stop the looping messages.
So, what makes our application hanging ? Our application is using two parameters to identify the error code status, by reading the Log file of NowSMS:
When our application used in 9:30:25mn, and find at exact time NowSMS didn't yet make update the log file associated to the specified mobile number, it makes hanging up the application, and show as error "File Not Found"
we do use as solution, delaying within 1 or 3 mn, but the same scenario error.
we didn't think to check the mobile number alone without the time, because one mobile number can get amount for one service, and second service it has no amount, so he may get the serice freely, this why we are usind the exact & nearly time to check the notification code of NowSMS log, associated to the Mobile number
I think that, I am little clear, if not, I will write to you Email, to explain in development details

Regards,
Salim.}
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5690
Registered: 10-2002
Posted on Tuesday, March 21, 2006 - 06:12 pm:   

Hi Salim,

Is the issue that you do not want the message delivery to be retried if the error code is "FE"?

Are you using the SMPPRejectErrorCodes setting in SMSGW.INI?

For most SMPP error codes, NowSMS will retry message delivery, assuming that the error is temporary.

The exceptions to this are detailed below.

The following error conditions cause NowSMS to record a failure and NOT retry sending:

ESME_RINVDSTADDR (0x0B, invalid destination/recipient address)
ESME_RINVSRCADDR (0x0A, invalid source/sender address)
ESME_RX_R_APPN (0x66, receiver reject message)

The following error codes cause NowSMS to retry more times than the RetryMaxAttempts setting (default=20) allows:

ESME_RTHROTTLED (0x58, throttle error, slow down)
ESME_RMSGQFUL (0x14, message queue full)

For all other errors, NowSMS will retry sending the message up to RetryMaxAttempts times (default=20).

However, if you have particular error codes from your SMS provider that you need to treat as failure, you can add them to the SMPPRejectErrorCodes setting.

For example, to treat the 0xFE error as a permanent error, you would edit SMSGW.INI, and under the [SMSGW] header, add:

SMPPRejectErrorCodes=FE

If you need to include multiple error codes in this list, separate them with a "," (comma).

SMPPRejectErrorCodes=FE,FF,400,401

Does that remove your need to parse the log file while the system is running?

If not, we could add a configuration option to force the log file to be flushed to disk after each time it is written to ... but this could slow down operations.

-bn
MedSalimALI
New member
Username: Salim

Post Number: 40
Registered: 04-2005
Posted on Sunday, March 26, 2006 - 04:33 pm:   

Hi Bryce,

Thank you for your details. We already used that you gave us along time back SMPPRejectErrorCodes=FE,FC (The Fc we got as a mobile number which is not on the mobile operator service) and we are handling many error codes. so we need some pushing features which can help more the process of log files, because it take time to be updated.

As I followed your above details, we may need to get this NewSMS 2006 release one, but I am afraid to get back the activation code delay after install it, this where I am planing a backup server, because many services are live.

So, what you suggest to us on that Log process ?

One more problem Bryce, one of our MMS service, example the MMS was sent for 1mn:30s playing, it come correctly and some time it come only 30s. one more similar problem that we send MMS today, but the mobile phone will get it tomorrow, we check in NowSMS queue and let seen that the MMS was submit to the MMSC of our mobile operator, why such problem are happening ? Any solution to prevent it ?

Regards,
Salim.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5712
Registered: 10-2002
Posted on Monday, March 27, 2006 - 07:19 pm:   

Hi Salim,

I'm going to try to put numbers with these issues, so that we can try to sort through them.

1.) The activation code delay can be a minor inconvenience. But the install tries to prevent you from accidentally installing a trial over an existing serialised installation.

My recommendation is that you run the NowSMS 2006 install to get your installation reference code, but do not complete the install until you have the activation code.

The process works like this:

a.) Run NowSMS 2006 install. Click "Next" 3 times to get past the opening screens.

b.) Install prompts:

This NowSMS upgrade will not recognise your existing serial number.

Your NowSMS Upgrade Agreement is expired, or a new activation code is required to reflect your renewed agreement.

Do you have a new activation code to install, or wish to request an activation code?

Select Yes.

c.) Install prompts:

To complete the serial number activation process, you must request an activation code from Now Wireless. This activation code is approximately 40 characters in length.

Do you already have this activation code?

Select No.

d.) The install displays your installation reference code. Use the Copy+Paste button to copy it into the Windows cut&paste buffer, so that you can send it to us to get the activation code.

e.) Select Exit. Your existing installation will not be modified.

f.) When you have the activation code, go back and repeat the process, but select Yes at step (c).

2.) The log process. Actually, I guess this is the original #1 from above, but we'll change it to #2 now.

Long term, what we would like to do is add an HTTP accounting type of callback for message deliveries and delivery attempts. I don't know if that would help you or not.

Shorter term, as I mentioned above, we could add a configuration option that forced Windows to flush the log file to disk after each time we update it. I will go ahead and try to get this included in an update.

3.) "one of our MMS service, example the MMS was sent for 1mn:30s playing, it come correctly and some time it come only 30s"

Are you including a SMIL file in the message? If not, it is a good idea to try to include one, as this will often tell the client how long to display a page.

4.) "we send MMS today, but the mobile phone will get it tomorrow, we check in NowSMS queue and let seen that the MMS was submit to the MMSC of our mobile operator"

Did NowSMS submit it to the operator MMSC when you expected ... but the operator MMSC did not deliver it until later?

If so, there might not be anything that can be done. The mobile operator might be having MMS delivery problems. Or there could have been problems on the GPRS network. It's hard to say, but once the message is accepted by the operator MMSC, it's out of our hands. (NowSMS 2006 does have some new retry settings in this area, but those are for configurations where NowSMS is acting as the MMSC, so they don't apply here.)

-bn
MedSalimALI
New member
Username: Salim

Post Number: 42
Registered: 04-2005
Posted on Sunday, April 09, 2006 - 12:34 pm:   

Hi Bryce,

I hightly appreciated your reply and mostly the details you provide to me. Now I have to go ahead because these days, we were getting some Local exhibition here in Kuwait, and with NowSMS we are running in easy way our services. As I see that the release 2006 one, will help us more.

For the 3# and 4#, Bryce, we are facing still the same problem. I am using the 51k version which it was the best from along time back, after working with you. we didn't make any change, and now we are facing this problem only MMS services.
for the 3# we are using smile to synchronouse Audio+pic together. this smile allow us to display the picture until the end of the audio (1mn or 2mn).

4# this is the matter I am facing. receiving MMS, it's working fine weather the settings. but Sending MMS, I desabled to route as MM7 Sharawi account, to send as MMSC, it sending faster than MM7 protocols, wrong way of course, but better and faster than the MM7.

But my problem, still the same on case that some customers are claiming to get only uncomplete audio file: 20s instead of 1mn30s or 2mn.
Beleave me, I do make many working nights with NowSMS, but still it makes me understand that may be my Mobile operator has part of this matter.
When I inform them, they told me that the days which I am sending MMS as MMSC, they don't get any trafic status. But if I am sending as MM7, they are getting the trafic, So what you saggest ?

Resume:
sending MMS as MM7, too much queueing MMS on Q directory
Sending MMS as MMSC, less queue MMS, mobile operator don't get any trafic status.

Regards
Salim.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5823
Registered: 10-2002
Posted on Thursday, April 20, 2006 - 08:02 pm:   

Hi Salim,

I'm not sure that I understand your questions, so if my responses don't make sense, please clarify the questions.

#3 - Can you post an example of your SMIL? Maybe this will give an idea if I see something unusual in the SMIL.

And maybe it is users with particular phone types that are having problems? That would help in troubleshooting to determine if there is a pattern.

#4 - Yes, if it is not blocked by the mobile operator, this should be the fastest way to send.

If you want to speed up sending on the MM7, maybe you could define multiple "MMSC Routing" definitions in NowSMS, all pointing to the same MM7 account (use different "Account name" settings in NowSMS, but all the same connection parameters). This way, NowSMS will have multiple threads posting to the operator MMSC simultaneously. Otherwise, it only allocates one thread to route one message at a time.

In fact, now I think I understand what you are saying better, so hopefully that is a good answer.

-bn
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5854
Registered: 10-2002
Posted on Thursday, April 27, 2006 - 07:55 pm:   

Follow-up - Regarding #4.

We have created an update for NowSMS 2006 which allows a "Max Connections" setting for outbound MM7, MM4 and EAIF connections.

This can speed up the performance of routing messages over a connection to an operator MMSC by having NowSMS allocate multiple threads to post messages simultaneously.

More details on the update available at http://support.nowsms.com/discus/messages/53/15129.html
MedSalimALI
New member
Username: Salim

Post Number: 44
Registered: 04-2005
Posted on Wednesday, May 03, 2006 - 10:42 am:   

Hi Bryce,

Thank you very much and I am sorry because We were too busy these days with our Exhibition with MTC vodafone Kuwait.
We have one week, we are sending MMS as MM7 same version 51k, and today I will send our installation reference to request the activation code by Email. I attached to you on this post message our Smile file to check.

Regarding the 4#, (MTC warning us recently that we are sending Binary data through their SMSC), so you're right and then our NowSMS didn't deal at all with MTC MMSC, NowSMS was dealing with MTC SMSC by Binary data, we just find it, and I beleive that this was among the problem of uncomplete audio, because within that time we were sending MMS as MMSC.

Thank you very much again, and I hope so that your attached update will help us more, but how I will set it, I have Sharawi outbound MM7 account, so I will set the same parameters with different names ? or is there a specific way to edit by using the same parameters in all the routes ?

Question 5#, we are using one short code to send MMS with different service names, we have asigned many Prefix for each service (only one * prefix in 2 way command and our application handle these issue), we would like to know how many SMS/MMS send through each prefix in the log files, is there a way to to make an identifier code, so we can get right information report from NowSMS as well as our databse monthly report ?

Once again, thank alot for your effort and great work

Regards,
Salim.
application/x-zip-compressedSmile files
smile files.zip (93.1 k)
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5870
Registered: 10-2002
Posted on Wednesday, May 03, 2006 - 07:53 pm:   

Hi Salim,

First a little advice about the SMIL.

I would suggest removing the "region" tag that defines an "audio" region, and remove the "region" attribute from the "audio" tag.

I do not think that they will cause any problems, but there is potential for confusion.

A bigger suggestion, however is to add a "dur" attribute to your "par" element. This specifies how long the page should be displayed. An intelligent MMS client should see that there is an audio clip associated with the page, and default the duration to be at least the length of the audio clip. However, I wouldn't necessarily assume that all MMS clients are intelligent ... and if no "dur" is specified, they might just apply a default value. I'd suggest you manually specify a "dur" value that is at least as long as your audio clip length.


quote:

Thank you very much again, and I hope so that your attached update will help us more, but how I will set it, I have Sharawi outbound MM7 account, so I will set the same parameters with different names ? or is there a specific way to edit by using the same parameters in all the routes ?




The update would be a lot easier.

Without it, you would need to duplicate the configuration information several times via the configuration dialogs, as there isn't a convenient way to just do it via file edits.

With the update, you just change an attribute in the existing definition.


quote:

Question 5#, we are using one short code to send MMS with different service names, we have asigned many Prefix for each service (only one * prefix in 2 way command and our application handle these issue), we would like to know how many SMS/MMS send through each prefix in the log files, is there a way to to make an identifier code, so we can get right information report from NowSMS as well as our databse monthly report ?




I need to understand more. Have you looked at the SMSOUT-yyyymmdd.LOG and MMSC-yyyymmdd.LOG files? Is there additional information needed, and if so, what information?

-bn
MedSalimALI
New member
Username: Salim

Post Number: 46
Registered: 04-2005
Posted on Saturday, May 06, 2006 - 10:34 am:   

Hi Bryce,

Thank very much for all your effort and supporting us as well as we needed. For the #4 I will give more details next time, but now I am giving you details for 5# because we need to implement.

NOWSMS – one record from SMS out log file: (Existing situation):

2006-05-05 21:16:20,4448EF57.req,11.0.0.117,+9657444415,OK -- SMPP - 10.42.2.5:8004,Sender=96966;SMSCMsgId=3F92268E;Binary=1;DCS=8;Data=0634064306310 62700200644064406270634062A06310627064300200633062A06350644064300200631063306270 64406290020063506280627062D0020064306440020064A0648064500200628062D0627064406290 02006270644063706420633

NowSMS Required format:

2006-05-05 21:16:20,4448EF57.req,11.0.0.117,+9657444415,OK -- SMPP - 10.42.2.5:8004,Sender=96966;SerID=S;SMSCMsgId=3F92268E;Binary=1;DCS=8;Data=063406430631062700200644064406270634062A 06310627064300200633062A0635064406430020063106330627064406290020063506280627062D 0020064306440020064A0648064500200628062D062706440629002006270644063706420633

We need to add the service ID to the record as shown above in the example. This is required for differentiating between many services are running within the same short-code. We already have 4 services as following;

No. SerID Short-code
1 S 96955
2 V 96955
3 D 96955
4 Y 96955

In order to do reconciliation with mobile operator we need to get the total number of messages sent through Now SMS for each service. Currently we are getting the total number of messages sent through the Short-code only.

We are using the following URL to send the messages:

http:// 11.0.0.117:8900?phonenumber=xxxxxxx&Text=tttttt&sender=96955

Regards,
Salim.
MedSalimALI
New member
Username: Salim

Post Number: 48
Registered: 04-2005
Posted on Sunday, May 07, 2006 - 02:52 pm:   

Hi Bryce,

Following the 4#, our Mobile operator desabled our MMS saharawi account for some time with their MTC MMSC, because NowSMS is keeping sending MMS whole 24 hours by queeing them as you know. They gave us 2 hours/24 only for our MMS push.

with the Version 51k I suggest on second way to handle multi sending MMS as well as SMS But I need to get your opinion, before I inform them to enable our account and try again.
1. You suggested us to create many MMS accounts pointing to the same VASP Account Outbound, right ? only the 2006 release one ?
2. Can we create some MMS group, and then in our MMS pushing URL, instead of puting one mobile number, we will add many mobile numbers and between them by comma (+9657986632, +965798632, +9659659652...), is it possible ? I test it with SMS and it successed, will it sending as one MMS to those many mobile numbers or NowSMS will send one by one as normal ? or only the solution one 1) which is the best by creating many routes.

Please, advice as soon as you can, because they desabled our MMS Sharawi account.

Regards,
Salim.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5908
Registered: 10-2002
Posted on Monday, May 08, 2006 - 09:51 pm:   

Hi Salim,

Regarding #1 ... defining many "MMSC Routing" accounts pointing to the same VASP account outbound is possible in v5.51k. (2006 release just makes it easier because there is a patch that allows you to specify to use multiple simultaneous connections without defining the same account information multiple times.)

Regarding #2 ... YES ... if you are sending the same content to multiple users, then you should definitely be doing this! (At least try it ... normally I would not have a reservation, but I recall that you are connecting to an AnnyWay MM7 connection that does not implement the standard MM7 protocol. I still would expect it to be ok with multiple recipients.)

With SMS, when you send to multiple recipients, NowSMS still has to submit the messages one at a time.

But with MMS through an operator MMSC connection, when you send to multiple recipients, the MMS protocols allow you to send to multiple recipients in a single submission. Assuming that it works ok with the AnnyWay connection, and most of your traffic is the same content to large numbers of recipients, then this would be the best way to speed up throughput on your system (more impact than defining the multiple routes that we discussed above).

By default, with an MM7 connection, if you send a message to multiple recipients, NowSMS will break the recipients into groups of 100. But it is actually possible to change that number as well (edit VASPOUT\accountname\VASP.INI, and under the [VASP] header, add MaxRecips=####), although I'd stick with the default of 100 initially.

If you are submitting MMS via an URL request, then you can add many mobile numbers separating them with a ",". There is no defined limit to the maximum amount of numbers that you can specify here (but the libraries you are using to submit the URL to NowSMS might have limits on the URL length, so you might run into a limit there).

-bn

Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5909
Registered: 10-2002
Posted on Monday, May 08, 2006 - 09:58 pm:   

Regarding the "SerID=" idea, I need time to discuss this idea with colleagues.

My initial thought is that I don't see a good way to add a dummy parameter like this, but maybe with some more discussion there is some idea that we could come up with. Currently we have ways to support a variety of extra SMPP and HTTP parameters. Currently those "extra" parameters don't get written to the log ... but perhaps they could. And if they were, then maybe you could use one of them.

I'm just thinking out loud. At present, I don't see any way to handle that requirement other than your recording your own information about which service it is when you send your messages.


-bn
MedSalimALI
New member
Username: Salim

Post Number: 49
Registered: 04-2005
Posted on Tuesday, May 09, 2006 - 08:24 pm:   

Hello Bryce,

Thank you very much for your quick response on our grouping MMS sending. We got new problem on the current solution.

Regarding #1, I didn't still implement it on the Version 51k, I will do it if no solution for the current solution.

Regarding #2, as I told you, we success sending MMS by grouping the mobile users as 50 recipients at the time we are sending one MMS. It's gone as we wished, but we are facing a new problem:

One MMS sent to 50 mobile numbers from NowSMS to MTC MMSC, every mobile Number which has to receive MMS, it receiving MMS with all the 49 Mobile other Numbers, that is a new step of matter.
Is there any way to send like Bcc (blind copy) of Email, because if there any parameter to edit or to add in our URL, we will say that we success and our MMS outbound will be very easy and fast.

I will not move any more today, because I need your help on that stage, and remaining steps, we will go ahead next time, after finding a solution on that issue, because MTC VAS team enabled my Sharawi account for now, and they told us to find such solution which any one who will receive MMS will never see any more another mobile number.

Regards,
Salim.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5919
Registered: 10-2002
Posted on Wednesday, May 10, 2006 - 07:46 pm:   

Hi Salim,

There isn't a parameter in the URL submission method to specify whether a recipient should be considered To, Cc, or BCC. That is definitely something we should consider.

However, the fastest solution that I can offer you is a configuration option to force all recipients to be treated as BCC.

There is an updated MMSC.EXE (compatible with v5.51k) at the download link http://www.nowsms.com/download/salim.zip. With that version, you can edit VASPOUT/accountname/VASP.INI, and under the [VASP] header, add ForceBCC=Yes. This will force all recipients routed through this connection to be labeld "Bcc" instead of "To".

-bn
MedSalimALI
New member
Username: Salim

Post Number: 50
Registered: 04-2005
Posted on Thursday, May 11, 2006 - 10:50 am:   

Hi Bryce,

Thank you very much, I downloaded the above Zip (mmsc.exe), but I fail to install it, by Error message showing as: unable to locate component: cw3230mt.DLL was not found.
so is there any problem on our NowSMS v5.51k or the update itself has problem ?

I have done the two way: by stopping the services MMS/SMS, and by running them at the time I try to install. (we have 5 days we didn't send any MMS)

Regards,
Salim
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5921
Registered: 10-2002
Posted on Thursday, May 11, 2006 - 03:38 pm:   

Salim,

The MMSC.EXE file in the ZIP is intended to replace the MMSC.EXE in your existing installation (e.g., \program files\nowsms directory)

The DLL file that you reference is already present in that directory.

You should not run MMSC.EXE by itself (it is the service process for the MMSC).

-bn
MedSalimALI
Frequent Contributor
Username: Salim

Post Number: 51
Registered: 04-2005
Posted on Thursday, May 11, 2006 - 10:47 pm:   

Dear Bryce,

Really you're Smart and full helpfull! the Bcc is forcing now as well as we needed. tomorrow, we will send 10 000 MMS for the 5 days we didn't send any thing. I try now sending it's going by grouping and no "TO" Numbers as well as we wanted.
really you helped us too much.

I will be back next time for the other steps I started with you.

regards,
Salim.
MedSalimALI
Frequent Contributor
Username: Salim

Post Number: 52
Registered: 04-2005
Posted on Sunday, May 21, 2006 - 01:34 pm:   

Hello Bryce,

Following the 5# still now you don't suggest any idea to edit the log itself.
If no, you said:"Currently we have ways to support a variety of extra SMPP and HTTP parameters. Currently those "extra" parameters don't get written to the log ... but perhaps they could" So which solution you suggest here?

New problem: 6# we were thinking that it will come, and then just now. one of our mobile operator gave us an SMPP account. all the parameters are much well as habitual. but one parameter, I am hesitaing where to setup it: SMSC ID=jiffy, where to set it ?

New again 7#, and need your great effort as you always do: one mobile operator gave us below settings as MM7 account to their MMSC, I do understand that they are new on such market of MMS services. I cannot easily guess or translate the below settings:

VAS-6 = isosty
VAS-6.vaspid = isosty.com
VAS-6.description = sample VAS (routed to the sample servlet)
VAS-6.enabled = true
VAS-6.shortcode = 8785/TYPE=PLMN
VAS-6.url = http://61.15.45.7
VAS-6.subject.keyword = isosty
VAS-6.subject.match = EQUALS
VAS-6.subject.ignorecase = true
VAS-6.senderID = from
Server=http://84.14.177.4:8128/mm7/mms

I am trying to guess as below:

Protocol=MM7
Server=http://84.14.177.4:8128/mm7/mms
ServiceCode=8045
SenderAddress=8785
ForceSenderAddress=Yes
UserName=isosty
Password=isysts.com
UseDial=No
mm7SubmitReq=Yes
VASID=isosty

When I am trying to send MMS, I am getting error, as below:

<font size="+2">Http Error 504</font><br>
<hr>
An error of type 504 occurred: Gateway Timeout: no answer from 84.14.177.4:8128.
<hr>
<font size="-1"><em>Generated by Nextenso Http Stack 1.0</em></font>

So what do you advice me, for now I am suspecting that may be the MMSC is not responding, but why this error code 504.

Regards,
Salim
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5983
Registered: 10-2002
Posted on Monday, May 22, 2006 - 03:50 pm:   

#5 - We're still investigating to see how this might be facilitated. I do not expect to have any answers for at least a week.

#6 - My guess is that you do not need to configure this anywhere. My guess would be that this is the SMSC id that is reported back by their system when you connect to it.

#7 - It sounds like there is a configuration problem with the MMSC itself. Maybe they need to configure your IP address to give you permission to connect.

Your guesses seem good. My experience has been that most MMSCs do not require the use of username/password settings. Instead they use "VASPID", "VASID" and sometimes "ServiceCode" settings for authentication.

-bn
MedSalimALI
Frequent Contributor
Username: Salim

Post Number: 53
Registered: 04-2005
Posted on Wednesday, May 24, 2006 - 05:21 pm:   

Hi Bryce,

5# I will be waiting, for now we are working on the database logs
6# As you said it was not at all a problem, and I am connected as SMPP tranceiver, but I am facing one problem Bryce:
This mobile operator request from me to use an HTTP POST to get the status of the mobile credit balance as their Billing System, before initiate sending SMS.
I got from them the parameters, and I built the below URL:
http://192.100.100.81:8082/jmdfrt/jjtd_http?MSISDN!=!96500003721896&USER!=!SERVICE_PROVIDER&APARTY!=65020

I run it on my browser for testing purpose and got he below Response:

SEQID!=!96500003721896
STATUS!=!24

I though that I will use my VB6 code to capture this HTTP response STATUS, they told me now that I am passing HTTP GET, I have to use HTTP POST Script.
can you help me Bryce ?
7# this pending issue I am waiting them to check their MMSC settings, I already informed them.

Regards,
Salim.
MedSalimALI
Frequent Contributor
Username: Salim

Post Number: 54
Registered: 04-2005
Posted on Saturday, May 27, 2006 - 11:48 am:   

Hi Bryce,

5# Still we keep waiting good news from you and now we are working on the database logs
6# This mobile operator request from me an HTTP POST for billing scenario before I initiate sending SMS.
I got from them the parameters, and I built the below URL:
http://192.100.100.81:8082/jmdfrt/jjtd_http?MSISDN!=!96500003721896&USER!=!SERVICE_PROVIDER&APARTY!=65020

I run it on my browser for testing purpose and got he below Response:

SEQID!=!96500003721896
STATUS!=!24

at Last they told me to use an HTTP Post instead of HTTP GET as they said. can you help me Bryce ?

7# I follow the guessing parameters and we were working today on the sending MMS. he is getting in his MMSC log by my MMS messages are rejected:

Bryce, See my Log:

<MM7Version>5.3.0</MM7Version><Status><StatusCode>4007</StatusCode><StatusText>S ervice denied; MM7 originator unknown or disabled systs@isysts.com</StatusText></Status></SubmitRsp></SOAP-ENV:Body></SOAP-ENV:Envelope>
12:15:15:689 [5] ThreadRouteSMTPIn: 1696DD8F.RFC
12:15:15:689 [5] ThreadRouteSMTPIn: X-Mms-Message-Type: MM4_delivery_report.REQ
12:15:15:689 [5] ThreadRouteSMTPIN: X-Mms-Message-Type: m-delivery-ind
12:15:15:689 [5] ThreadRouteSMTPIn: X-MMSC-RCPT-TO: 8045/TYPE=PLMN
12:15:15:689 [5] ThreadRouteSMTPIn: X-Mms-Message-ID: "20060527/12/65BD5D55@192.168.0.3"
12:15:15:689 [5] ThreadRouteSMTPIn: X-Mms-Status: Rejected
12:15:15:689 [5] ThreadRouteSMTPIn: X-Mms-MM-Status-Code: Rejected
12:15:15:689 [5] ThreadRouteSMTPIn: X-MMSC-Auth-User: localsystem
12:15:15:689 [5] ThreadRouteSMTPIn: Sender: +967733111247/TYPE=PLMN@192.168.0.3
12:15:15:689 [5] ThreadRouteSMTPIn: From: +967733111247/TYPE=PLMN
12:15:15:689 [5] ThreadRouteSMTPIn: Subject: Not Delivered: test
12:15:15:705 [5] DeliverMMSMessage: Found VASP Recip - isysts
12:15:16:377 [7] InetServerConnect: Connected to 82.114.178.4 (82.114.178.4:3128)
12:15:16:377 [7] ThreadProcessVASPQ: POST /mm7/mms HTTP/1.1
Host: 82.114.178.4:3128
SOAPAction: ""
Content-Length: 778
Content-Type: text/xml; charset="utf-8"
Connection: close
<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><mm7:TransactionID SOAP-ENV:mustUnderstand="1" xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0">99C25E4D-temp@192.168.0.3</mm7:TransactionID></SOAP-ENV:Header><SOAP-ENV:Body><DeliveryReportRsp xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0"><MM7Version>5.3.0</MM7Version><Status><StatusCode>2007</StatusCode><StatusText >missing mandatory field 'Date'</StatusText></Status></DeliveryReportRsp></SOAP-ENV:Body></SOAP-ENV:Envel ope>

Bryce, See the mobile operator MMSC Log:

encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><mm7:TransactionID SOAP-ENV:mustUnderstand="1" xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0">C7A45640-temp@192.168.0.3</mm7:TransactionID></SOAP-ENV:Header><SOAP-ENV:Body><DeliveryReportRsp xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0"><MM7Version>5.3.0</MM7Version><Status><StatusCode>2007</StatusCode><StatusText >missing mandatory field 'Date'</StatusText></Status></DeliveryReportRsp></SOAP-ENV:Body></SOAP-ENV:Envel ope>

What that means, missing mandatory field 'Date'?

Please I need your help.
Regards,
Salim.
MedSalimALI
Frequent Contributor
Username: Salim

Post Number: 55
Registered: 04-2005
Posted on Tuesday, May 30, 2006 - 09:21 am:   

Hi Bryce,

We need your help as you are always doing to us for above problems we are facing now.

Regards,
Salim
MedSalimALI
Frequent Contributor
Username: Salim

Post Number: 56
Registered: 04-2005
Posted on Tuesday, June 06, 2006 - 02:42 pm:   

Hi Bryce,

6# ==>> This mobile operator sent to us an HTTP POST script in php, can we translate it into VB6 object? this for billing scenario:

<?php

$XML = "
MSISDN!=!962799701223
USER!=!SERVICE_PROVIDER
APARTY!=!95020
BPARTY!=!962799701223
VASCLASS!=!ISTTS
VLRID!=!";
//MSISDN!=!962796501504 this number should return status 7 (negative amount)
//MSISDN!=!962799701223 this number is postpaid hence returns status 6
//MSISDN!=!962795937581 this number is prepaid with sufficient credit hence status 1
//therefore, status 7, 23 or any other status should be avoided
$fp = fsockopen("192.168.55.82", 8082, $errno, $errstr, 5);
if(!$fp)
{
echo "$errstr ($errno)\n";
}
else
{
fputs($fp, "POST /jmdcgi/jmd_http HTTP/1.1\r\n");
fputs($fp, "Host: 192.168.55.82:8082\r\n");
fputs($fp, "Content-length: ". strlen($XML)."\r\n");
fputs($fp, "Connection: close\r\n\r\n");
fputs($fp, $XML . "\r\n\r\n");
while(!feof($fp))
{
$buf.=fgets($fp, 128);
}
fclose($fp);
echo "Response : $buf";
}
?>
==>> we made our VB6 one but it's same giving us STATUS!=!24 which is wrong parameters, see it below:

Private Sub Command1_Click()
Dim strHTTP As String
vsender = "962799701223"
vscode = "95020"
vvas = "T"
Inet1.URL = "http://172.100.100.81:8082/jmdcgi/jmd_http?MSISDN!=!" & vsender & "&USER!=!SERVICE_PROVIDER&APARTY!=!" & 95020 & "&VASCLASS!=!" & vvas
'murl = Inet1.URL
strHTTP = Inet1.URL
Inet1.RequestTimeout = 1000
On Error Resume Next
sResponse = ""
sResponse = Trim(Inet1.OpenURL(strHTTP))
vaa = InStr(sResponse, "STATUS")
vbb = Mid(sResponse, vaa + 9, 3)
vcc = Mid(sResponse, vaa - 15, 15)
MsgBox "STATUS :" & vbb
MsgBox "SEQID :" & vcc
'SendHttpMessage murl, vsender, vscode, vvas
'vfsa = staturl(murl)
'MsgBox vfsa
End Sub

==>>> Can you please help us for the up php one into VB6 post script?

7#,==>>> I got some advance on our above sending MMS problem that I am submitting MMS without TIME STAMP field and that VAS Guy is telling that his MMSC is using GMT+3, so if I follown well in similar thread, NowSMS is using the default TIMA STAMP as GMT only, how can we solve this problem?

Regards,
Salim
MedSalimALI
Frequent Contributor
Username: Salim

Post Number: 57
Registered: 04-2005
Posted on Wednesday, June 14, 2006 - 04:03 pm:   

Hello Bryce,

7#,==>>> I got some advance on our above sending MMS problem that I am submitting MMS without TIME STAMP field and that VAS Guy is telling that his MMSC is using GMT+3, so if I follown well in similar thread, NowSMS is using the default TIMA STAMP as GMT only, how can we solve this problem?

Bryce you are too much busy and you forget all your guys, we are pending, just show your push we will follow, sure.
Please Bryce, I need your help with the Time stamp from the GMT of version 51k to GMT+3 yemen MMSC, I am getting as above error MMS sending.

Regards,
Salim
Remon Huggan
New member
Username: Ramhuggan

Post Number: 1
Registered: 06-2006
Posted on Saturday, June 17, 2006 - 10:55 am:   

hello all,
its nice to share your expeiance with me,
this is frist time use nowsms getway and i read help and i made simple project VB6 to handel mm7 but i faced many problem
application/x-zip-compressedmm7 project
mm7.zip (250.5 k)
my email ramhuggan@yahoo.com
wait your advice

regards
Ram
MedSalimALI
Frequent Contributor
Username: Salim

Post Number: 58
Registered: 04-2005
Posted on Saturday, June 17, 2006 - 01:21 pm:   

Hello Bryce,

7#,==>>> I got some advance on our above sending MMS problem that I am submitting MMS without TIME STAMP field and that VAS Guy is telling that his MMSC is using GMT+3, so if I follown well in similar thread, NowSMS is using the default TIMA STAMP as GMT only, how can we solve this problem?

Bryce you are too much busy and you forget all your guys, we are pending, just show your push we will follow, sure.
Please Bryce, I need your help with the Time stamp from the GMT of version 51k to GMT+3 yemen MMSC, I am getting as above error MMS sending.

Regards,
Salim
MedSalimALI
Frequent Contributor
Username: Salim

Post Number: 60
Registered: 04-2005
Posted on Saturday, June 17, 2006 - 01:37 pm:   

Hello Ram,

your MM7 VB6 Zip file has a trojan virus I cannot download it, my Antivirus detect some suspected micro or macro files. can you clean it and resend again?

I will be proud to share with you more, for sure

Regards,
Salim
Remon Huggan
New member
Username: Ramhuggan

Post Number: 2
Registered: 06-2006
Posted on Sunday, June 18, 2006 - 08:35 am:   

Hello sir,
thank you for your respond, I compiled the project and i will upload it again
application/octet-streamMM7
MM7.exe (268.5 k)


I downloaded Nowsms 2006 and I configured GSM Modems and I can send MMS message like that http://www.nowsms.com/documentation/ProductDocumentation/the_web_interface/Send_MMS_Message.htm

Regards,
Ram
MedSalimALI
Frequent Contributor
Username: Salim

Post Number: 61
Registered: 04-2005
Posted on Sunday, June 18, 2006 - 12:30 pm:   

Hello Ram,

Thank you for your effort, but still no way your file:
http://support.nowsms.com/discus/messages/1/MM7-16022.unk
Win32:Agent-XW [Trj]
Trojan Horse
I think that it should be good if you send the code itself or change the warn macro/micro files or code.
Any way, we can start exchange information as you like, regarding NowSMS.
We have alot of services running On VB6 and ASP, and just some remaining steps to improve more, and any need I can help you, because we successed after many problems, we guess some solutions, Bryce, Breth all helped us, and we are still providing our experience to all others.

Regards,
Salim
Remon Huggan
New member
Username: Ramhuggan

Post Number: 3
Registered: 06-2006
Posted on Sunday, June 18, 2006 - 01:55 pm:   

Dear sir,
Danke für Ihre Bemühung, thank you for your effort

our company is a new company in mobile multimedia and we in testing period and our programmer try develope some application by vb and asp but he faced many problem because we are new in this feild.

we have Datenbank SQL2000, web server and Brandmauer cisco firewall but my brain is hung
can you help me to complete this application ?

viel Dank für Sie.

regrads,
Ram
MedSalimALI
Frequent Contributor
Username: Salim

Post Number: 62
Registered: 04-2005
Posted on Sunday, June 18, 2006 - 07:00 pm:   

Hello Ram,

We have experience on that way, and it's a pleasure to share with you our experience. currently one of our interface is using ASP for any web basic applications. for remaining windows applications we are using VB6 coding and shortly we will migrate to DotNet.
Database we are using SQL server and Mysql for some php script under IIS.
So your case, it's just to tell you that you found the best place by working with NowSMS. I am working with NowSMS for more than one year and I really appreciated it, for many flexibilty and easier way, and mostly the Forum Product support with Bryce and other like Breth.
If you have a cisco firewall, it means that all the ports wich you enabled inetrnally for web interface, SMPP, MM7, MMSC must be open two tuneling. I mean these port most of them you will enable them on the firewall side to allow NowSMS to listen the Trafic through them.
Next step, it will depend on the web script you are using.
For ASP is simple because you just use 2-Way command, by pointing its paramters inside your asp main page and then process the script. you may need to map and store date from SMSIN into your database by using NowSMS 2-Way command tab.
For the remaining part, you may need a windows Interface to monitore your trafic and reply back to the mobile user. this way is easy and sure, because if you choose another way, you will work hard and get many conflits.
for MMS, you need MM7 if you want to submit MMS to mobile operator who will deliver to the mobile users. you can use MM1, MM4, and again you can outbound MMS on NowSMS as MMSC which will allow you to send MMS directly in a binary data to mobile user if your Mobile operator allows you. some peaple are using GSM Modem as a way to by pass.
I was just wanted to tell you that at the beginning you will face alot of problem but for sure, you will be wise after some time.
NowSMS will help you as a gateway between your application, Mobile operator and end user who will use your services.
just you build your own application to capture data from NomSMS
process them and use NowSMS to reply back to your subscribers or users, that what you need to know.

NowSMS will not process all your application, you need to handle this part. NowSMS will receive for you, and will send for you as a Gateway.

I was talking too much, but let me inform you that it's a pleasure for me to share my own experience working with Bryce in NowSMS, and you will find help and support for all your application, just get start and go ahead.
Any way, I can send to you some main code which you can modify as you wish, in VB6 and in ASP just for the case, but in email for now.

Regards,
Salim
Remon Huggan
New member
Username: Ramhuggan

Post Number: 4
Registered: 06-2006
Posted on Sunday, June 18, 2006 - 07:43 pm:   

hallo geehrter Herr,
Sein sehr nettes, its very nice you are generous, can you send it on my mail ramhuggan@yahoo.com

You have excellent knowlage in this work and I get more information from your post.

Respekt,
Ram
MedSalimALI
Frequent Contributor
Username: Salim

Post Number: 66
Registered: 04-2005
Posted on Monday, June 19, 2006 - 09:26 pm:   

Hi ram,

How do you like to build the application? are you using VB6 for windows application interface and asp as web script with your application or you are using php?
For Now, I read you above that you are running ASP coding under sql server 2000, right?

Any way, I will send to you first code which you will do whatever you want, in VB and in ASP soon.

Regards,
Salim
Remon Huggan
New member
Username: Ramhuggan

Post Number: 5
Registered: 06-2006
Posted on Wednesday, June 28, 2006 - 08:20 am:   

hallo geehrter Herr Salim,
I wait you to send your code, Please send it on my mail ramhuggan@yahoo.com

Respekt,
Ram