> Available modes are on gw/smsc/smpp_pdu.h about line 134
>  It is set to ESM_CLASS_SUBMIT_STORE_AND_FORWARD_MODE (0x00000003) by
> default. You need to set it to ESM_CLASS_SUBMIT_DEFAULT_SMSC_MODE
> (0x00000000).
>  To do that, go to gw/smsc/smsc_smpp.c and change it there. It should be
> on
> (or nearby) line 638.

Thx, i found the line and changed it to the
ESM_CLASS_SUBMIT_DEFAULT_SMSC_MODE. Would have liked it better if this was
a configuration setting rather than making change in the code.

However there is some problem i am facing while sending certain characters
to kannel. Slightly confused on where to start debuging.

I am sending the following message to kannel

`Hi`

However in the log file kannel shows the incoming message as

?Hi?

Basically there is a character replacement happening, any ideas ?

Here is the PDU for the message:

2005-07-28 17:04:07 [23003] [7] DEBUG: SMPP PDU 0x9fa88c0 dump:
2005-07-28 17:04:07 [23003] [7] DEBUG:   type_name: submit_sm
2005-07-28 17:04:07 [23003] [7] DEBUG:   command_id: 4 = 0x00000004
2005-07-28 17:04:07 [23003] [7] DEBUG:   command_status: 0 = 0x00000000
2005-07-28 17:04:07 [23003] [7] DEBUG:   sequence_number: 11 = 0x0000000b
2005-07-28 17:04:07 [23003] [7] DEBUG:   service_type: "CMT"
2005-07-28 17:04:07 [23003] [7] DEBUG:   source_addr_ton: 5 = 0x00000005
2005-07-28 17:04:07 [23003] [7] DEBUG:   source_addr_npi: 0 = 0x00000000
2005-07-28 17:04:07 [23003] [7] DEBUG:   source_addr: "Anand"
2005-07-28 17:04:07 [23003] [7] DEBUG:   dest_addr_ton: 1 = 0x00000001
2005-07-28 17:04:07 [23003] [7] DEBUG:   dest_addr_npi: 1 = 0x00000001
2005-07-28 17:04:07 [23003] [7] DEBUG:   destination_addr: "xxxxxxxxxx"
2005-07-28 17:04:07 [23003] [7] DEBUG:   esm_class: 0 = 0x00000000
2005-07-28 17:04:07 [23003] [7] DEBUG:   protocol_id: 0 = 0x00000000
2005-07-28 17:04:07 [23003] [7] DEBUG:   priority_flag: 0 = 0x00000000
2005-07-28 17:04:07 [23003] [7] DEBUG:   schedule_delivery_time: NULL
2005-07-28 17:04:07 [23003] [7] DEBUG:   validity_period: NULL
2005-07-28 17:04:07 [23003] [7] DEBUG:   registered_delivery: 1 = 0x00000001
2005-07-28 17:04:07 [23003] [7] DEBUG:   replace_if_present_flag: 0 =
0x00000000
2005-07-28 17:04:07 [23003] [7] DEBUG:   data_coding: 0 = 0x00000000
2005-07-28 17:04:07 [23003] [7] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2005-07-28 17:04:07 [23003] [7] DEBUG:   sm_length: 4 = 0x00000004
2005-07-28 17:04:07 [23003] [7] DEBUG:   short_message: "?Hi?"
2005-07-28 17:04:07 [23003] [7] DEBUG: SMPP PDU dump ends.

-- 
regards,

Anand Gupta

Reply via email to