Receiver and Route MMS Messages through NowSMS/MMS Gateway

Receiver and Route MMS Messages through NowSMS/MMS Gateway SearchSearch
Author Message
Sarah Selig
New member
Username: Sarahselig

Post Number: 1
Registered: 02-2006
Posted on Friday, February 10, 2006 - 05:59 pm:   

Dear Administrators/Users

I want to receive an MMS on NowSMS/MMS Gateway, and route it to:

1.) External MMSC Operator if phone number (of receiver) is not in database on the same server.

2.) Web Service (running on the same server) if phone number (of receiver) is in database on the same server

How do I make such settings in my NowSMS/MMS Gateway ?

Also, for a phone sending an MMS to this gateway (actually intended for another user) puts what number as the receiver no. - GSM Modem's number or receiver's no. or both ?

Really need to clear my concepts and start implementation urgently. Your help would be greatly appreciated.

Thanks a lot!!
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5523
Registered: 10-2002
Posted on Monday, February 13, 2006 - 07:47 pm:   

Hi Sarah,

How MMS messages are routed is determined by the routing definitions under "MMSC Routing", where you can define the different outbound routes to be used for sending out MMS messages.

However, this routing information is statically defined, and it is not convenient for performing dynamic routing ... or routing based upon a database lookup.

However, there is also an HTTP callback that can be configured. Each time NowSMS has an MMS message to route, it issues an HTTP request to a URL that you configure, and the script behind that URL can indicate which of the defined "MMSC Routing" definitions to use.


See the README.TXT file of NowSMS, for information on the MMSRoutingURL parameter.
Sarah Selig
New member
Username: Sarahselig

Post Number: 2
Registered: 02-2006
Posted on Tuesday, February 14, 2006 - 07:21 am:   

Thanks Bryce,

Could you also please tell me:
1.) When I want to send an MMS out through the gateway, I am posting my MMS as an HTTP Get to the gateway port. To send it out as a WAP Push, what settings do I do on my gateway ?
I have only done "Convert MMS to Multimedia WAP Push" on the MMSC Routing section.
Do I have to do anything else ?

2.) When receiving, I don't quite understand how the gateway does http get ?
The readme.txt specifies setting mmsroutingURL parameter in the MMSC.ini file. How do I do that, and then how do I define my routes on a web service ?

3.) Is the MMS that is received and retrieved by the gateway broken down into image and test files ? If not, how can I break it up into such files and store it in the MMS-In Directory?

Thanks a lot.
Really need your reply urgently!
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5544
Registered: 10-2002
Posted on Tuesday, February 14, 2006 - 09:47 am:   

Hi Sarah,

1.) If the "Convert MMS to Multimedia WAP Push" route is active, then that is sufficient. Instead of sending the message out as an MMS, NowSMS will do a multimedia WAP Push instead.

If you want to send an MM WAP Push without relying on this routing, add "&MMSWAPPush=Yes" to your URL request. All of the other parameters are the same as for sending MMS.

2.) I might have misunderstood some of what you want to do. This dynamic routing callback (MMSRoutingURL parameter) is performed when NowSMS has an MMS message to be routed outbound.

But re-reading your message, I see that you are receiving a message ... and you then want to re-route it outbound. I do not understand the configuration here. Let me explain my confusion. You say that you want to receive an MMS with NowSMS, and then route it based upon whether or not the recipient of the message exists in your database. I do not understand how NowSMS is receiving the message. Is NowSMS acting as the MMSC, and clients submit the message to the NowSMS MMSC? That is what I was assuming ... otherwise, I do not know how the recipient is being set in the message.

If NowSMS is the MMSC, then each time NowSMS receives a message from a client, it consults the MMSRoutingURL callback to determine how the message is to be routed. NowSMS issues an HTTP GET to that URL, and looks for the response to be a text response that indicates which defined "MMSC Routing" to use.

3.) It can be, but it depends on how the message is being submitted into NowSMS. I guess that is my confusion here ... I do not understand the route through which NowSMS is receiving the messages. Are these messages being received via an MMSC connection? Directly from MMS clients using NowSMS as the MMSC? Other?

Apologies in advance, but I may not be able to reply back promptly.

-bn
Sarah Selig
New member
Username: Sarahselig

Post Number: 3
Registered: 02-2006
Posted on Tuesday, February 14, 2006 - 10:47 am:   

Thanks Bryce once again.

Alright, so my system works like this :

1.) I have made a smartdevice application that sends an MMS through a Web Server on Wireless LAN to another phone carrying the same application, within the WLAN.

Now everything works fine when both sender and receiver carrying this application are carrying the application.

2.) However, if the receiver is not carrying the application, the sender still needs to send its own encoded MMS to this receiver through GPRS. And that's how it goes through the gateway, based on a little check about the receiver not in the database. This MMS is sent as a WAP Push.

3.) Similarly, a receiver with the application needs to be able to receive the MMS from a sender connected through GPRS (and not carrying my application). This would also be through the gateway.

Now if the receiver is in the database, I would like to send the MMS to this receiver (encoded in the format understood by my application. And so for this i need the MMS received by the NowSMS to be retrieved as well, broken up into files, and encoded back into the format understood by my application)

However, if the receiver is not in the database, the MMS without being retrieved by the NowSMS, would be desired to be routed out to the intended recepient.

This is the system. I hope I was clear enough this time. :-)

(So another important question is also what To:phonenumber is specified by the sender not carrying my application, intending to send out an MMS ? NowSMS gateway modem number right ? Then where is the actual intended recepient's number specified for NowSMS to know where to route? )

Thanks a lot in advance ! I look forward to your reply.
Sarah Selig
New member
Username: Sarahselig

Post Number: 4
Registered: 02-2006
Posted on Monday, February 20, 2006 - 05:22 am:   

Dear Bryce,

It would be great to get your reply soon on the above. Thanks.