|
Hello,
I am having trouble sending a binary SMS to the SIM card using the submit_sm command. I have done this many times with a Logica client with the same settings. What I am seeing from the TCP dump on my SMSC is that the data is being converted to 7-bit GSM encoding (30, 31, etc) instead of leaving it in the 8-bit format. I was hoping that is would just pass the data as is to the SMSC, but it is not.
my $download_data = '0270000031150A21F1F1000001000000000100e5f16b283041102ca0a40000023f00a0a4000002
+7f20a0a40000026f31a0d600000101';
$resp_pdu=$smpp->submit_sm(
service_type => '', # default ok
source_addr_ton => 0x01, # default ok
source_addr_npi => 0x03, # default ok
source_addr => 2299, # default ok
dest_addr_ton => 0x01, # default ok
dest_addr_npi => 0x01, # default ok
destination_addr => 882351050097068, # mandatory
esm_class => 0x40, # default ok
protocol_id => 0x7f, # default ok on CDMA,TDMA
# on GSM value needed
priority_flag => 0x00, # default ok
schedule_delivery_time => '', # default ok
validity_period => '', # default ok
registered_delivery => 0x01, # default ok
replace_if_present_flag => 0x00, # default ok
data_coding => 0xf6, # default ok
sm_default_msg_id => 0x00, # default ok
short_message => $download_data, # default ok, but
# usually supplied
) or die;
|