1.2.1 Cygwin compile SMPP - Issue not receiving %a from SMSC

"Warren Liu" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization PT. Virtual Batavia
Message-ID <005101c29520$6bfb0420$3901000a@MOLARI>
I am connecting to a CMG SMSC via SMPP. Due to this particular client's setup we had to use a w2k server instead of a linux server that we usually do. I do not know whether this is due to the cygwin compile or whether it is an issue on the telco side. Below is my config and the log files. I think its the SMSC side issue since we are getting %i and %p but not %a. If someone could kindly take a look at this and confirm my theory, so that we can narrow down the issue, would be much appreciated. I have edited out the sekret info and replaced them with XXXXX... but those are information received by kannel.
 
Sending and Receiving seems to be working properly except for the fact that no keyword is being received and thus we cannot process anything thus our php script can only return error message. If it is some stupid error on my part, please feel free to point it out and call me an idiot. =)
 
I highlighted the line where I based my theory on in red color.
 
CONF
group = core
admin-port = 13965
smsbox-port = 13001
...
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;202.XXX.XXX.10"
unified-prefix = "62855,0062855,+62855,0855;62856,0062856,+62856,0856"
 
group = smsc
smsc = smpp
smsc-id = "smpp"
allowed-smsc-id = "smpp"
host = 202.XXX.XXX.10
port = 13967
transceiver-mode = yes
smsc-username = XXXXXX
smsc-password = XXXXXX
system-type = "tcp"
source-addr-ton = 0
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
address-range = "^3967$"
enquire-link-interval = 180
 
group = smsbox
bearerbox-host = "localhost"
sendsms-port = 13966
sendsms-chars = "0123456789 +-"
 
group = sendsms-user
username = XXXXXX
password = XXXXXX
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1;202.XXX.XXX.10"
 
group = sms-service
keyword = default
accepted-smsc = "smpp"
post-url = "http://localhost/sms_im3/im3.php?smsc=%i <http://localhost/sms_im3/im3.php?smsc=%i&from=%p&text=%a> &from=%p&text=%a"
max-messages = 3
 
LOG
 
2002-11-26 14:07:33 [5] DEBUG: SMPP PDU 0x100b1360 dump:
2002-11-26 14:07:33 [5] DEBUG:   type_name: deliver_sm
2002-11-26 14:07:33 [5] DEBUG:   command_id: 5 = 0x00000005
2002-11-26 14:07:33 [5] DEBUG:   command_status: 0 = 0x00000000
2002-11-26 14:07:33 [5] DEBUG:   sequence_number: 1 = 0x00000001
2002-11-26 14:07:33 [5] DEBUG:   service_type: NULL
2002-11-26 14:07:33 [5] DEBUG:   source_addr_ton: 1 = 0x00000001
2002-11-26 14:07:33 [5] DEBUG:   source_addr_npi: 1 = 0x00000001
2002-11-26 14:07:33 [5] DEBUG:   source_addr: "628561172345"
2002-11-26 14:07:33 [5] DEBUG:   dest_addr_ton: 0 = 0x00000000
2002-11-26 14:07:33 [5] DEBUG:   dest_addr_npi: 1 = 0x00000001
2002-11-26 14:07:33 [5] DEBUG:   destination_addr: "3967"
2002-11-26 14:07:33 [5] DEBUG:   esm_class: 0 = 0x00000000
2002-11-26 14:07:33 [5] DEBUG:   protocol_id: 0 = 0x00000000
2002-11-26 14:07:33 [5] DEBUG:   priority_flag: 0 = 0x00000000
2002-11-26 14:07:33 [5] DEBUG:   schedule_delivery_time: NULL
2002-11-26 14:07:33 [5] DEBUG:   validity_period: NULL
2002-11-26 14:07:33 [5] DEBUG:   registered_delivery: 17 = 0x00000011
2002-11-26 14:07:33 [5] DEBUG:   replace_if_present_flag: 0 = 0x00000000
2002-11-26 14:07:33 [5] DEBUG:   data_coding: 0 = 0x00000000
2002-11-26 14:07:33 [5] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2002-11-26 14:07:33 [5] DEBUG:   sm_length: 0 = 0x00000000
2002-11-26 14:07:33 [5] DEBUG:   short_message: ""
2002-11-26 14:07:33 [5] DEBUG: SMPP PDU dump ends.
2002-11-26 14:07:33 [8] DEBUG: boxc_sender: sent message to <127.0.0.1>
 
2002-11-26 14:07:33 [5] DEBUG: SMPP[smpp]: Sending PDU:
2002-11-26 14:07:33 [5] DEBUG: SMPP PDU 0x100b14f8 dump:
2002-11-26 14:07:33 [5] DEBUG:   type_name: deliver_sm_resp
2002-11-26 14:07:33 [5] DEBUG:   command_id: 2147483653 = 0x80000005
2002-11-26 14:07:33 [5] DEBUG:   command_status: 0 = 0x00000000
2002-11-26 14:07:33 [5] DEBUG:   sequence_number: 1 = 0x00000001
2002-11-26 14:07:33 [5] DEBUG:   message_id: NULL
2002-11-26 14:07:33 [5] DEBUG: SMPP PDU dump ends.
2002-11-26 14:07:33 [7] DEBUG: boxc_receiver: got ack
2002-11-26 14:07:33 [7] DEBUG: boxc_receiver: sms received
 
SMSBOX.LOG
 
2002-11-26 14:07:33 [9] DEBUG: HTTP: Opening connection to `xxx.xxxxxxxx.xxx:80' (fd=26).
2002-11-26 14:07:33 [9] DEBUG: HTTP: Sending request:
2002-11-26 14:07:33 [9] DEBUG: Octet string at 0x100ba1c0:
2002-11-26 14:07:33 [9] DEBUG:   len:  118
2002-11-26 14:07:33 [9] DEBUG:   size: 119
2002-11-26 14:07:33 [9] DEBUG:   immutable: 0
2002-11-26 14:07:33 [9] DEBUG:   data: 47 45 54 20 2f 73 6d 73   GET /sms
2002-11-26 14:07:33 [9] DEBUG:   data: 5f 69 6d 33 2f 69 6d 33   _im3/im3
2002-11-26 14:07:33 [9] DEBUG:   data: 2e 70 68 70 3f 73 6d 73   .php?sms
2002-11-26 14:07:33 [9] DEBUG:   data: 63 3d 73 6d 70 70 26 66   c=smpp&f
2002-11-26 14:07:33 [9] DEBUG:   data: 72 6f 6d 3d 36 32 38 35   rom=XXXX
2002-11-26 14:07:33 [9] DEBUG:   data: 36 31 31 37 32 33 34 35   XXXXXXXX
2002-11-26 14:07:33 [9] DEBUG:   data: 26 74 65 78 74 3d 20 48   &text= H
2002-11-26 14:07:33 [9] DEBUG:   data: 54 54 50 2f 31 2e 31 0d   TTP/1.1.
2002-11-26 14:07:33 [9] DEBUG:   data: 0a 48 6f 73 74 3a 20 77   .Host: w
2002-11-26 14:07:33 [9] DEBUG:   data: 77 77 2e 72 72 69 6f 6e   ww.rrion
2002-11-26 14:07:33 [9] DEBUG:   data: 6c 69 6e 65 2e 63 6f 6d   line.com
2002-11-26 14:07:33 [9] DEBUG:   data: 0d 0a 55 73 65 72 2d 41   ..User-A
2002-11-26 14:07:33 [9] DEBUG:   data: 67 65 6e 74 3a 20 4b 61   gent: Ka
2002-11-26 14:07:33 [9] DEBUG:   data: 6e 6e 65 6c 2f 31 2e 32   nnel/1.2
2002-11-26 14:07:33 [9] DEBUG:   data: 2e 31 0d 0a 0d 0a         .1....
2002-11-26 14:07:33 [9] DEBUG: Octet string dump ends.
2002-11-26 14:07:33 [8] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK>
2002-11-26 14:07:33 [5] DEBUG: message length 22, sending 1 messages
 
ACCESS.LOG
2002-11-26 14:07:33 Receive SMS [SMSC:smpp] [SVC:] [ACT:] [from:XXXXXXXXXXXX] [to:3967] [flags:0:1:0:0:0] [msg:0:] [udh:0:]
2002-11-26 14:07:34 Sent SMS [SMSC:smpp] [SVC:default] [ACT:] [from:3967] [to:XXXXXXXXXXXX] [flags:0:1:0:0:0] [msg:22:Incomplete parameter..] [udh:0:]
 
Thanks for the time and help
 
******************
Warren K. Liu
Vice-President / P.T. Virtual Batavia
Menara Batavia 14F
Jalan K.H. Mas Mansyur Kav. 126
Jakarta 10220, Indonesia
Tel: +62 (21) 572-2366
Fax: +62 (21) 572-2357 / 8
Mobile (Jakarta): +62 (811) 978307
Mobile (Travelling): +65 (9) 656-6950
Email: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.