Send and Receive SMS via SMPP

Send and Receive SMS via SMPP SearchSearch
Author Message
shafeeq
New member
Username: Shafeeq_mca

Post Number: 1
Registered: 01-2011
Posted on Sunday, January 23, 2011 - 09:13 am:   

Hi Admin,

I am currently using SMS/MMS Gateway v2010.11.04. I am trying to send and receive SMS via SMPP. I am able to send and receive SMS connected to my Samsung Mobile GSM Modem. Whenever an SMS is sent from my application to Now SMS, 'SMS sent' and 'SMS received' in 'Service' tab is incremented by 1.

I had routed the received SMS to local user(SMSC tab -> Properties) and message storage as 'SIM Card'. Local user is added and configured for SMPP(SMS Users tab). But SMPP Gateway is not sending any received messages back to my application.

Additional Information as below:

1) I tried SMS message storage value to Default Memory but i am unable to receive SMS and SMS received count is not incremented. So changed it to SIM Card.

2) My application sends enquire_link smpp packets for every minute to NowSMS Gateway, for which i am getting the acknowledgement packet.

3) 2-Way tab is not configured. So no processing is done for received SMS.

Please find below SMSDEBUG.log and SMPPDEBUG.log for sending and receiving sms. Please help me to find out why SMPP gateway is not sending received SMS to my application.

Thanks for your kind support and sorry for long list of logs.
Shafeeq

********** SMSDEBUG.log - Starts ***********
14:15:57:127 [2] ModemTest: SAMSUNG Mobile USB Modem #2
14:15:57:230 [2] ModemTest: OK
14:18:59:192 [2] ModemTest: SAMSUNG Mobile USB Modem #2
14:18:59:312 [2] ModemTest: OK
14:22:01:138 [2] ModemTest: SAMSUNG Mobile USB Modem #2
14:22:01:258 [2] ModemTest: OK
14:25:03:149 [2] ModemTest: SAMSUNG Mobile USB Modem #2
14:25:03:251 [2] ModemTest: OK
14:28:05:248 [2] ModemTest: SAMSUNG Mobile USB Modem #2
14:28:05:368 [2] ModemTest: OK
14:29:36:937 [14] ThreadProcessSMPPConnection: Processing SMPP connection from 192.168.1.10...
14:29:38:974 [14] SMPPServerReceiveMessageCallback: inbound message: sender=, recip=2309243842, pid=0, dcs=0, msgFlags=0, udh=, msg=tr 1234567 10
14:29:39:157 [2] ThreadProcessModem: Processing 4D1A620E.req...
14:29:39:188 [2] ThreadProcessModem: OUT: AT+CMGS=24

14:29:39:206 [2] ThreadProcessModem: IN:
>
14:29:39:206 [2] ThreadProcessModem: OUT: 0001010A81329042832400000D743928269BD16AB61B280603
14:29:42:435 [2] ThreadProcessModem: +CMGS:12

OK

14:29:46:052 [2] ModemReceiveMessages: AT+CPMS?
14:29:46:052 [2] ModemReceiveMessages:
+CPMS:"SM",1,40,"SM",1,40,"SM",1,40

OK

14:29:46:131 [2] ModemReceiveMessages:
+CMGL:1,0,,30
06913220050050040A9132904283240000111032214515610D743928269BD16AB61B280603

OK

14:29:46:131 [2] ModemReceiveMessages: Decoding received message index 1 from message storage SM
14:29:46:131 [2] ModemReceiveMessages: 06913220050050040A9132904283240000111032214515610D743928269BD16AB61B280603
14:29:46:131 [2] ModemReceiveMessages: SMSC address len = 6
14:29:46:131 [2] ModemReceiveMessages: SMSC Address = +2302500005
14:29:46:131 [2] ModemReceiveMessages: SMS Message Type = SMS-DELIVER
14:29:46:131 [2] ModemReceiveMessages: Sender address len = 10
14:29:46:131 [2] ModemReceiveMessages: Sender Address = +2309243842
14:29:46:131 [2] ModemReceiveMessages: PID = 00
14:29:46:132 [2] ModemReceiveMessages: DCS = 00
14:29:46:132 [2] ModemReceiveMessages: Anticipated user data length = 13
14:29:46:132 [2] ModemReceiveMessages: Message = tr 1234567 10
14:29:46:138 [2] ModemReceiveMessages: AT+CMGD=1

14:29:46:210 [2] ModemReceiveMessages:
OK

14:31:06:248 [2] ModemTest: SAMSUNG Mobile USB Modem #2
14:31:06:350 [2] ModemTest: OK
14:34:08:188 [2] ModemTest: SAMSUNG Mobile USB Modem #2
14:34:08:308 [2] ModemTest: OK

********** SMSDEBUG.log - Ends ***********



********** SMPP DEBUG.log - Starts ***********
14:29:36:938 (00000394) 192.168.1.10 --: WaitForResponseSMPP: SMPP Debug: received bind request
14:29:38:941 (00000394) 192.168.1.10 <-: 40 byte packet
14:29:38:941 (00000394) 192.168.1.10 <-: 00 00 00 28 00 00 00 09 00 00 00 00 00 00 00 01 (
14:29:38:942 (00000394) 192.168.1.10 <-: 61 64 6D 69 6E 00 61 64 6D 69 6E 00 00 34 01 02 admin admin 4
14:29:38:942 (00000394) 192.168.1.10 <-: 39 32 34 33 38 34 32 00 9243842
14:29:38:942 (00000394) 192.168.1.10 <-: 40 byte packet
14:29:38:943 (00000394) 192.168.1.10 <-: 00 00 00 28 00 00 00 09 00 00 00 00 00 00 00 01 (
14:29:38:943 (00000394) 192.168.1.10 <-: 61 64 6D 69 6E 00 61 64 6D 69 6E 00 00 34 01 02 admin admin 4
14:29:38:943 (00000394) 192.168.1.10 <-: 39 32 34 33 38 34 32 00 9243842
14:29:38:953 (00000394) 192.168.1.10 ->: 28 byte packet
14:29:38:953 (00000394) 192.168.1.10 ->: 00 00 00 1C 80 00 00 09 00 00 00 00 00 00 00 01
14:29:38:953 (00000394) 192.168.1.10 ->: 4E 6F 77 53 4D 53 00 02 10 00 01 34 NowSMS 4
14:29:38:968 (00000394) 192.168.1.10 ->: 63 byte packet
14:29:38:969 (00000394) 192.168.1.10 ->: 00 00 00 3F 00 00 00 05 00 00 00 00 00 00 00 01 ?
14:29:38:970 (00000394) 192.168.1.10 ->: 00 01 01 32 33 30 39 32 34 33 38 34 32 00 00 01 2309243842
14:29:38:970 (00000394) 192.168.1.10 ->: 39 32 34 33 38 34 32 00 00 00 00 00 00 00 00 00 9243842
14:29:38:970 (00000394) 192.168.1.10 ->: 00 0D 74 72 20 31 32 33 34 35 36 37 20 31 30 tr 1234567 10
14:29:38:971 (00000394) 192.168.1.10 --: WaitForResponseSMPP: SMPP Debug: received a submit message
14:29:38:972 (00000394) 192.168.1.10 <-: 56 byte packet
14:29:38:973 (00000394) 192.168.1.10 <-: 00 00 00 38 00 00 00 04 00 00 00 00 00 00 00 02 8
14:29:38:973 (00000394) 192.168.1.10 <-: 00 00 00 00 00 00 32 33 30 39 32 34 33 38 34 32 2309243842
14:29:38:973 (00000394) 192.168.1.10 <-: 00 00 00 00 00 00 00 00 00 00 0D 74 72 20 31 32 tr 12
14:29:38:973 (00000394) 192.168.1.10 <-: 33 34 35 36 37 20 31 30 34567 10
14:29:38:992 (00000394) 192.168.1.10 ->: 25 byte packet
14:29:39:001 (00000394) 192.168.1.10 ->: 00 00 00 19 80 00 00 04 00 00 00 00 00 00 00 02
14:29:39:001 (00000394) 192.168.1.10 ->: 34 44 31 41 36 32 30 45 00 4D1A620E
14:30:39:005 (00000394) 192.168.1.10 --: WaitForResponseSMPP: SMPP Debug: received enquire_link, acknowledging
14:31:39:005 (00000394) 192.168.1.10 --: WaitForResponseSMPP: SMPP Debug: received enquire_link, acknowledging
14:31:39:006 (00000394) 192.168.1.10 --: SMPPServerSubmitMessage: SMPP response failed
14:31:39:016 (00000394) 192.168.1.10 ->: 210 byte packet
14:31:39:017 (00000394) 192.168.1.10 ->: 00 00 00 D2 00 00 00 05 00 00 00 00 00 00 00 02
14:31:39:018 (00000394) 192.168.1.10 ->: 00 01 01 32 33 30 34 32 32 38 35 32 36 00 00 01 2304228526
14:31:39:018 (00000394) 192.168.1.10 ->: 39 32 34 33 38 34 32 00 00 00 00 00 00 00 00 00 9243842
14:31:39:018 (00000394) 192.168.1.10 ->: 00 A0 46 72 6F 6D 20 59 6F 75 72 20 41 63 63 6F From Your Acco
14:31:39:019 (00000394) 192.168.1.10 ->: 75 6E 74 20 30 31 30 31 32 34 36 39 35 33 33 20 unt 01012469533
14:31:39:019 (00000394) 192.168.1.10 ->: 74 68 65 72 65 20 69 73 20 61 20 6C 61 72 67 65 there is a large
14:31:39:019 (00000394) 192.168.1.10 ->: 20 61 6D 6F 75 6E 74 20 74 72 61 6E 73 61 63 74 amount transact
14:31:39:019 (00000394) 192.168.1.10 ->: 69 6F 6E 20 6F 66 20 61 6D 6F 75 6E 74 20 34 30 ion of amount 40
14:31:39:019 (00000394) 192.168.1.10 ->: 32 30 20 4D 55 52 20 57 68 69 63 68 20 69 73 20 20 MUR Which is
14:31:39:020 (00000394) 192.168.1.10 ->: 67 72 65 61 74 65 72 20 74 68 61 6E 20 79 6F 75 greater than you
14:31:39:020 (00000394) 192.168.1.10 ->: 72 20 70 72 65 66 65 72 65 64 20 31 20 28 41 6C r prefered 1 (Al
14:31:39:020 (00000394) 192.168.1.10 ->: 65 72 74 20 67 65 6E 65 72 61 74 65 64 20 61 74 ert generated at
14:31:39:020 (00000394) 192.168.1.10 ->: 20 32 30 31 31 2D 30 31 2D 31 32 20 31 34 3A 35 2011-01-12 14:5
14:31:39:020 (00000394) 192.168.1.10 ->: 36 29 6)
14:32:39:005 (00000394) 192.168.1.10 --: WaitForResponseSMPP: SMPP Debug: received enquire_link, acknowledging
14:33:39:005 (00000394) 192.168.1.10 --: WaitForResponseSMPP: SMPP Debug: received enquire_link, acknowledging
14:33:40:015 (00000394) 192.168.1.10 --: WaitForResponseSMPP: SMPP select timeout
14:33:40:015 (00000394) 192.168.1.10 --: SMPPServerSubmitMessage: SMPP response failed
14:33:40:023 (00000394) 192.168.1.10 ->: 58 byte packet
14:33:40:023 (00000394) 192.168.1.10 ->: 00 00 00 3A 00 00 00 05 00 00 00 00 00 00 00 03 :
14:33:40:024 (00000394) 192.168.1.10 ->: 00 01 01 32 33 30 37 33 31 31 39 39 35 00 00 01 2307311995
14:33:40:024 (00000394) 192.168.1.10 ->: 39 32 34 33 38 34 32 00 00 00 00 00 00 00 00 00 9243842
14:33:40:024 (00000394) 192.168.1.10 ->: 00 08 53 74 61 72 74 69 6E 67 Starting
14:34:39:006 (00000394) 192.168.1.10 --: WaitForResponseSMPP: SMPP Debug: received enquire_link, acknowledging
14:35:39:006 (00000394) 192.168.1.10 --: WaitForResponseSMPP: SMPP Debug: received enquire_link, acknowledging
14:35:41:007 (00000394) 192.168.1.10 --: WaitForResponseSMPP: SMPP select timeout
14:35:41:007 (00000394) 192.168.1.10 --: SMPPServerSubmitMessage: SMPP response failed
14:35:41:012 (00000394) 192.168.1.10 ->: 208 byte packet
14:35:41:013 (00000394) 192.168.1.10 ->: 00 00 00 D0 00 00 00 05 00 00 00 00 00 00 00 04
14:35:41:013 (00000394) 192.168.1.10 ->: 00 01 01 32 33 30 34 32 32 38 35 32 36 00 00 01 2304228526
14:35:41:013 (00000394) 192.168.1.10 ->: 39 32 34 33 38 34 32 00 00 00 00 00 00 00 00 00 9243842
14:35:41:013 (00000394) 192.168.1.10 ->: 00 9E 46 72 6F 6D 20 59 6F 75 72 20 41 63 63 6F From Your Acco
14:35:41:013 (00000394) 192.168.1.10 ->: 75 6E 74 20 30 31 30 31 32 34 36 39 35 33 33 20 unt 01012469533
14:35:41:013 (00000394) 192.168.1.10 ->: 74 68 65 72 65 20 69 73 20 61 20 6C 61 72 67 65 there is a large
14:35:41:013 (00000394) 192.168.1.10 ->: 20 61 6D 6F 75 6E 74 20 74 72 61 6E 73 61 63 74 amount transact
14:35:41:014 (00000394) 192.168.1.10 ->: 69 6F 6E 20 6F 66 20 61 6D 6F 75 6E 74 20 35 30 ion of amount 50
14:35:41:014 (00000394) 192.168.1.10 ->: 20 4D 55 52 20 57 68 69 63 68 20 69 73 20 67 72 MUR Which is gr
14:35:41:014 (00000394) 192.168.1.10 ->: 65 61 74 65 72 20 74 68 61 6E 20 79 6F 75 72 20 eater than your
14:35:41:014 (00000394) 192.168.1.10 ->: 70 72 65 66 65 72 65 64 20 31 20 28 41 6C 65 72 prefered 1 (Aler
14:35:41:014 (00000394) 192.168.1.10 ->: 74 20 67 65 6E 65 72 61 74 65 64 20 61 74 20 32 t generated at 2
14:35:41:014 (00000394) 192.168.1.10 ->: 30 31 31 2D 30 31 2D 31 33 20 31 36 3A 31 37 29 011-01-13 16:17)

********** SMPP DEBUG.log - Ends ***********
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2851
Registered: 08-2008
Posted on Tuesday, January 25, 2011 - 09:11 pm:   

It looks like NowSMS is trying to deliver the message to your application via SMPP, but no response is being received back from your SMPP application to acknowledge.

In the log above, there seem to be 2 separate messages that NowSMS is sending to your application using a deliver_sm packet, but we never receive a deliver_sm_resp. I do see a submit_sm coming from your application, and your application is sending enquire_link. It just does not seem to be acknowledging these deliver_sm packets.

--
Des
NowSMS Support
kuntal pal
New member
Username: Kuntalpal

Post Number: 1
Registered: 01-2011
Posted on Friday, January 28, 2011 - 06:47 am:   

jjkyhtg