NCL Community Forum Index
  Home   Login   Register   Help   Memberlist   Search   NCL  

NCL Community Forum Index » Provato Support » Sending mobile terminated MMS over MM1
Post new topic  Reply to topic View previous topic :: View next topic 
Sending mobile terminated MMS over MM1
PostPosted: Tue Sep 13, 2005 3:50 pm Reply with quote
Administrator
Site Admin
Joined: 11 Aug 2004
Posts: 237




For mobile terminated messages, provato can act as an MMSC hosting out MMS for collection by a phone.

Provato MT MMSC works as follows
  • Application sends an MMS message to provato
  • Provato stores the message in a database table (provato_messages_cache)
  • A provato SMS gateway sends out an MMS WAP Push message containing the URL of the MMS
  • The phone connects back over GPRS and downloads the MMS


To configured Provato as an MM1 MMSC, you must have at least on SMS gateway configured that will be used to send the MMS Notifications via SMS.

To configure MM1
  • Select/Modify the SMS gateway that will be used to transmit the notifications
  • On the Send MMS Messages select provato-mms-mm1 and save
  • Go to the System->MMS over MM1 menu option
  • Configure the external hostname/port that a mobile phone can connect to download the MMS (you will need to setup your firewall proxy to route HTTP/IP traffic back to the provato MMS url
  • The URL should look something like
    Code:
    http://myPublicIPAddress:myPort/provato/mms/
  • Click apply


You can try the sample code below to send a simple MMS (using the NCL Media format in this example)
Code:

        VivatoSoapClient client = new VivatoSoapClient();
        client.setServerUrl("http://localhost:8080/provato/soap");
        client.setApplicationName("mmsbroadcast");

        client.connect();


        VivatoMessage msg = new VivatoMessage();
        msg.setContentType(VivatoMessage.MEDIA_MESSAGE_TYPE);
        msg.setUserAgent(VivatoMessage.USERAGENT_MMS);
        msg.setContent("<body>Hello world <img src=\"http://www.ncl.ie/images/ncllogo.gif\"/></body>");
        msg.setDestination("+353872352079");
        // msg.setRegistered(true);

        client.sendMessage(msg);

        client.close();



Note if you have access to your firewall server you can use SSH to run a proxy from your public/DMZ machine to the machine running provato. This is for test purposes only though as it gives access to the whole provato console also.
Code:

ssh -L8080:ipAddressOfMachineRunningProvato:8080 ipAddressOfMachineRunningProvato -g -n -N -v
View user's profile Send private message

Sending mobile terminated MMS over MM1
 NCL Community Forum Index » Provato Support
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Post new topic  Reply to topic