28 Configuring Messaging Server for One-Way SMS

This example describes how to configure Oracle Communications Messaging Server for one-way SMS by using Unified Configuration recipes. You could also perform the same configuration manually by using the msconfig command, however, using recipes is faster and makes the task repeatable. You run one recipe on the system where you are adding the SMS channelsmpp. For more information on Unified Configuration recipes, see the discussion on recipe language in the Messaging Server Reference and "Using Recipes."

Use the "Example Recipe to Configure One-Way SMS with Messaging Server" to configure Messaging Server for one-way SMS.

  1. Create the source filter file (process_sms.filter) with the Messaging Server unified configuration.

    1. To create a filter definition file for the source filter, enter a definition as in the following example:

      require ["body","imap4flags"]; 
      if body :raw :contains "Action: failed" 
      { 
      addflag "sms"; 
      addflag "smserror"; 
      }
      
    2. Save the filter definition file.

  2. Make a copy of the example recipe file and save it as recipe.rcp.

  3. To run the recipe, type the following command:

    cd MessagingServer_home/bin 
    msconfig run <recipe_name>
    
  4. If running a compiled configuration, recompile the MTA configuration to capture the changes you have made:

    cd MessagingServer_home/bin
    imsimta cnbuild
    
  5. Restart Messaging Server.

    stop-msg 
    start-msg
    

Example Recipe to Configure One-Way SMS with Messaging Server

set_option("mta.enable_sieve_body", "1"); 

if exists_channel("sms") { 
delete_channel("sms"); 
} 
if exists_channel("process_sms") { 
delete_channel("process_sms"); 
} 

add_channel("sms", ["notificationchannel", "process_sms", "backoff", "PT10M PT20M PT30M", "notices", "1", "official_host_name", "sms-handle", "options.smpp_server", "127.0.0.1", "options.smpp_port", "8500", "options.default_source_address", "000", "options.smsc_default_charset", "UTF-16-BE", "options.esme_password", "password", "options.esme_system_id", "smppclient"]); 

add_channel("process_sms", ["sourcefilter", "file:/opt/sun/comms/messaging64/config/process_sms.filter", "official_host_name", "process_sms-daemon"]); 

#Setting rewrite rules 
append_rewrites(["sms","$U@sms-handle"]);