Hi,
Looking for some advice on routing within bearerbox of messages submitted through opensmppbox.

I have 2 smscs defined, GSM modems each with a particular number.
group = smsc
smsc-id = "smsc1"
smsc = at
modemtype = auto
device = /dev/ttyS0
speed = 9600
my-number = "+85269381702"

group = smsc
smsc-id = "smsc2"
smsc = at
modemtype = auto
device = /dev/ttyS1
speed = 9600
my-number = "+85253717105"

My SMPP client is configured to set the source address of the SMPP PDU to one of these numbers, and I want the MT to be delivered using the relevant smsc connection.

MO is working OK with the following routing:

group = smsbox-route
smsbox-id = "memova"
smsc-id = "smsc2"
shortcode = "+85253717105"

group = smsbox-route
smsbox-id = "memova"
smsc-id = "smsc1"
shortcode = "+85269381702"


Sample SMPP PDU:
2011-03-23 17:45:36 [3347] [2] DEBUG: SMPP PDU 0x93d45c0 dump:
2011-03-23 17:45:36 [3347] [2] DEBUG:   type_name: submit_sm
2011-03-23 17:45:36 [3347] [2] DEBUG:   command_id: 4 = 0x00000004
2011-03-23 17:45:36 [3347] [2] DEBUG:   command_status: 0 = 0x00000000
2011-03-23 17:45:36 [3347] [2] DEBUG:   sequence_number: 419 = 0x000001a3
2011-03-23 17:45:36 [3347] [2] DEBUG:   service_type: NULL
2011-03-23 17:45:36 [3347] [2] DEBUG:   source_addr_ton: 0 = 0x00000000
2011-03-23 17:45:36 [3347] [2] DEBUG:   source_addr_npi: 0 = 0x00000000
2011-03-23 17:45:36 [3347] [2] DEBUG:   source_addr: "+85253717105"
2011-03-23 17:45:36 [3347] [2] DEBUG:   dest_addr_ton: 1 = 0x00000001
2011-03-23 17:45:36 [3347] [2] DEBUG:   dest_addr_npi: 0 = 0x00000000
2011-03-23 17:45:36 [3347] [2] DEBUG:   destination_addr: "+85264312659"
2011-03-23 17:45:36 [3347] [2] DEBUG:   esm_class: 0 = 0x00000000
2011-03-23 17:45:36 [3347] [2] DEBUG:   protocol_id: 0 = 0x00000000
2011-03-23 17:45:36 [3347] [2] DEBUG:   priority_flag: 0 = 0x00000000
2011-03-23 17:45:36 [3347] [2] DEBUG:   schedule_delivery_time: NULL
2011-03-23 17:45:36 [3347] [2] DEBUG:   validity_period: NULL
2011-03-23 17:45:36 [3347] [2] DEBUG:   registered_delivery: 0 = 0x00000000
2011-03-23 17:45:36 [3347] [2] DEBUG:   replace_if_present_flag: 0 = 0x00000000
2011-03-23 17:45:36 [3347] [2] DEBUG:   data_coding: 0 = 0x00000000
2011-03-23 17:45:36 [3347] [2] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2011-03-23 17:45:36 [3347] [2] DEBUG:   sm_length: 7 = 0x00000007
2011-03-23 17:45:36 [3347] [2] DEBUG:   short_message: "Testing"
2011-03-23 17:45:36 [3347] [2] DEBUG: SMPP PDU dump ends.

Messages are delivered randomly using either smsc1 or smsc2

Can I configure bearerbox to route based upon the source_addr in the SMPP PDU? Or will I have to try and configure my application to have 2 distinct smpp connections, one for each number, two instances of opensmppbox and route-to-smsc.

Thanks,

Jim Wilde



Reply via email to