unsubscribe
unsubscribe
Can not send messages using SMPP
Hi All, I am trying to send SMS messages using SMPP protocol. The bearer box and smsbox are working fine and connected with each other. But when I try to send the message then it says Queued for later delivery. Also the bearerbox debug shows that message is being sent to the box at 127.0.0.1, while my SMSC IP is different. If this is causing the issue then how to fix this. Any help will be greatly appreciated. I am wasting my time since last two days. Regards, Rajendra Tiwari Tech Lead Saviance Technologies Pvt Ltd. 1101, Tower B, Millenium Plaza, Shushant Lok I, Gurgaon - 122002 Email: [EMAIL PROTECTED] Mobile: +91 9910241422 URL: http://www.saviance.com http://www.saviance.com/
Re: Can not send messages using SMPP
. 2008-05-08 06:20:37 [28596] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 28596. 2008-05-08 06:20:37 [28596] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 28596. 2008-05-08 06:20:37 [28596] [0] INFO: DLR rerouting for smsc id Airtel disabled. 2008-05-08 06:20:37 [28596] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 28596. 2008-05-08 06:20:37 [28596] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 28596. 2008-05-08 06:20:37 [28596] [0] DEBUG: Started thread 6 (gw/smsc/smsc_smpp.c:io_thread) 2008-05-08 06:20:37 [28596] [0] DEBUG: Started thread 7 (gw/smsc/smsc_smpp.c:io_thread) 2008-05-08 06:20:37 [28596] [0] DEBUG: Started thread 8 (gw/bb_smscconn.c:sms_router) 2008-05-08 06:20:37 [28596] [0] INFO: 2008-05-08 06:20:37 [28596] [0] INFO: Kannel bearerbox II version 1.4.1 starting 2008-05-08 06:20:37 [28596] [0] INFO: MAIN: Start-up done, entering mainloop 2008-05-08 06:20:37 [28596] [8] DEBUG: Thread 8 (gw/bb_smscconn.c:sms_router) maps to pid 28596. 2008-05-08 06:20:37 [28596] [8] DEBUG: sms_router: time to sleep 30.00 secs. 2008-05-08 06:20:37 [28596] [8] DEBUG: sms_router: gwlist_len = 0 2008-05-08 06:20:37 [28596] [7] DEBUG: Thread 7 (gw/smsc/smsc_smpp.c:io_thread) maps to pid 28596. 2008-05-08 06:20:37 [28596] [6] DEBUG: Thread 6 (gw/smsc/smsc_smpp.c:io_thread) maps to pid 28596. 2008-05-08 06:20:38 [28596] [6] DEBUG: SMPP[Airtel]: Sending PDU: 2008-05-08 06:20:38 [28596] [6] DEBUG: SMPP PDU 0x8ec16a0 dump: 2008-05-08 06:20:38 [28596] [6] DEBUG: type_name: bind_transmitter 2008-05-08 06:20:38 [28596] [6] DEBUG: command_id: 2 = 0x0002 2008-05-08 06:20:38 [28596] [6] DEBUG: command_status: 0 = 0x 2008-05-08 06:20:38 [28596] [6] DEBUG: sequence_number: 1 = 0x0001 2008-05-08 06:20:38 [28596] [6] DEBUG: system_id: gold_fish 2008-05-08 06:20:38 [28596] [6] DEBUG: password: gold123 2008-05-08 06:20:38 [28596] [6] DEBUG: system_type: VMA 2008-05-08 06:20:38 [28596] [6] DEBUG: interface_version: 52 = 0x0034 2008-05-08 06:20:38 [28596] [6] DEBUG: addr_ton: 0 = 0x 2008-05-08 06:20:38 [28596] [6] DEBUG: addr_npi: 0 = 0x 2008-05-08 06:20:38 [28596] [6] DEBUG: address_range: NULL 2008-05-08 06:20:38 [28596] [6] DEBUG: SMPP PDU dump ends. 2008-05-08 06:21:07 [28596] [5] INFO: Client connected from 127.0.0.1 2008-05-08 06:21:07 [28596] [5] DEBUG: Started thread 9 (gw/bb_boxc.c:function) 2008-05-08 06:21:07 [28596] [9] DEBUG: Thread 9 (gw/bb_boxc.c:function) maps to pid 28596. 2008-05-08 06:21:07 [28596] [9] DEBUG: Started thread 10 (gw/bb_boxc.c:boxc_sender) 2008-05-08 06:21:07 [28596] [10] DEBUG: Thread 10 (gw/bb_boxc.c:boxc_sender) maps to pid 28596. 2008-05-08 06:21:08 [28596] [6] DEBUG: SMPP[Airtel]: Sending enquire link: 2008-05-08 06:21:08 [28596] [6] DEBUG: SMPP PDU 0x8ebb9b8 dump: 2008-05-08 06:21:08 [28596] [6] DEBUG: type_name: enquire_link 2008-05-08 06:21:08 [28596] [6] DEBUG: command_id: 21 = 0x0015 2008-05-08 06:21:08 [28596] [6] DEBUG: command_status: 0 = 0x 2008-05-08 06:21:08 [28596] [6] DEBUG: sequence_number: 2 = 0x0002 2008-05-08 06:21:08 [28596] [6] DEBUG: SMPP PDU dump ends. 2008-05-08 06:21:12 [28596] [9] DEBUG: boxc_receiver: sms received 2008-05-08 06:21:12 [28596] [8] DEBUG: sms_router: handling message (0x8ebba80 vs 0x8ebba80) 2008-05-08 06:21:12 [28596] [8] DEBUG: sms_router: handling message (0x8ebba80 vs 0x8ebba80) 2008-05-08 06:21:12 [28596] [8] DEBUG: sms_router: time to sleep 30.00 secs. 2008-05-08 06:21:12 [28596] [9] DEBUG: send_msg: sending msg to box: 127.0.0.1 2008-05-08 06:21:19 [28596] [2] DEBUG: HTTP: Creating HTTPClient for `192.168.0.18'. 2008-05-08 06:21:19 [28596] [2] DEBUG: HTTP: Created HTTPClient area 0x8ebb9d0. 2008-05-08 06:21:19 [28596] [3] DEBUG: HTTP: Resetting HTTPClient for `192.168.0.18'. 2008-05-08 06:21:23 [28596] [3] DEBUG: HTTP: Resetting HTTPClient for `192.168.0.18'. 2008-05-08 06:21:38 [28596] [6] DEBUG: SMPP[Airtel]: Sending enquire link: 2008-05-08 06:21:38 [28596] [6] DEBUG: SMPP PDU 0x8eb7fb8 dump: 2008-05-08 06:21:38 [28596] [6] DEBUG: type_name: enquire_link 2008-05-08 06:21:38 [28596] [6] DEBUG: command_id: 21 = 0x0015 2008-05-08 06:21:38 [28596] [6] DEBUG: command_status: 0 = 0x 2008-05-08 06:21:38 [28596] [6] DEBUG: sequence_number: 3 = 0x0003 2008-05-08 06:21:38 [28596] [6] DEBUG: SMPP PDU dump ends. 2008-05-08 06:21:42 [28596] [8] DEBUG: sms_router: gwlist_len = 1 2008-05-08 06:21:42 [28596] [8] DEBUG: sms_router: handling message (0x8ebba80 vs 0x8ebba80) 2008-05-08 06:21:42 [28596] [8] DEBUG: sms_router: handling message (0x8ebba80 vs 0x8ebba80) 2008-05-08 06:21:42 [28596] [8] DEBUG: sms_router: time to sleep 30.00 secs. Please help, it is driving me crazy. Regards, Rajendra Tiwari Tech Lead Saviance Technologies Pvt Ltd. 1101, Tower B, Millenium Plaza, Shushant Lok I, Gurgaon
Re: Can not send messages using SMPP
Hi Otandeka, Thanks for your help. But I am not able to understand what should I change in it the SMSC details are the same as provided by them. The username, password, IP and port. And the worst situation is that it is not giving any error messages. How could I diagnose the problem? Regards, Rajendra Tiwari Tech Lead Saviance Technologies Pvt Ltd. 1101, Tower B, Millenium Plaza, Shushant Lok I, Gurgaon - 122002 Email: [EMAIL PROTECTED] Mobile: +91 9910241422 URL: http://www.saviance.com http://www.saviance.com/ From: Otandeka Simon Peter [mailto:[EMAIL PROTECTED] Sent: Thursday, May 08, 2008 3:37 PM To: [EMAIL PROTECTED] Subject: Re: Can not send messages using SMPP U are not connecting to the SMSC at all. Otherwise you would be online not connecting. Kindly check the status of your connection and revert if you fail. Do not lose hope.
RE: Can not send messages using SMPP
Also, the kannel log shows this sending enquire link message many times and after 4-5 times it says that connection timed out. 2008-05-08 06:23:38 [28596] [6] DEBUG: SMPP[Airtel]: Sending enquire link: 2008-05-08 06:23:38 [28596] [6] DEBUG: SMPP PDU 0x8eb7fb8 dump: 2008-05-08 06:23:38 [28596] [6] DEBUG: type_name: enquire_link 2008-05-08 06:23:38 [28596] [6] DEBUG: command_id: 21 = 0x0015 2008-05-08 06:23:38 [28596] [6] DEBUG: command_status: 0 = 0x 2008-05-08 06:23:38 [28596] [6] DEBUG: sequence_number: 7 = 0x0007 2008-05-08 06:23:38 [28596] [6] DEBUG: SMPP PDU dump ends. 2008-05-08 06:23:42 [28596] [8] DEBUG: sms_router: gwlist_len = 1 2008-05-08 06:23:42 [28596] [8] DEBUG: sms_router: handling message (0x8ebba80 vs 0x8ebba80) 2008-05-08 06:23:42 [28596] [8] DEBUG: sms_router: handling message (0x8ebba80 vs 0x8ebba80) 2008-05-08 06:23:42 [28596] [8] DEBUG: sms_router: time to sleep 30.00 secs. 2008-05-08 06:23:46 [28596] [7] ERROR: connect failed 2008-05-08 06:23:46 [28596] [7] ERROR: System error 110: Connection timed out 2008-05-08 06:23:46 [28596] [7] ERROR: error connecting to server `203.145.131.149' at port `700' 2008-05-08 06:23:46 [28596] [7] ERROR: SMPP[Airtel]: Couldn't connect to server. 2008-05-08 06:23:46 [28596] [7] ERROR: SMPP[Airtel]: Couldn't connect to SMS center (retrying in 10 seconds). Regards, Rajendra Tiwari From: Tharanga [mailto:[EMAIL PROTECTED] Sent: Thursday, May 08, 2008 4:09 PM To: [EMAIL PROTECTED] Subject: Re: Can not send messages using SMPP check your router access control list. may be ur firewall blocking it..whats ur SMPP port ? - Original Message - From: Rajendra mailto:[EMAIL PROTECTED] Tiwari To: users@kannel.org Sent: Thursday, May 08, 2008 3:26 PM Subject: Re: Can not send messages using SMPP Hi, Thanks for your help. The status report as shown in browser is as below: Kannel bearerbox version `1.4.1'. Build `May 7 2008 01:59:03', compiler `3.4.6 20060404 (Red Hat 3.4.6-8)'. System Linux, release 2.6.9-22.ELsmp, version #1 SMP Mon Sep 19 18:32:14 EDT 2005, machine i686. Hostname mail.saviance.com, IP 127.0.0.1. Libxml version 2.6.16. Using OpenSSL 0.9.7a Feb 19 2003. Using native malloc. Status: running, uptime 0d 0h 0m 46s WDP: received 0 (0 queued), sent 0 (0 queued) SMS: received 0 (0 queued), sent 0 (1 queued), store size -1 SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec DLR: 0 queued, using internal storage Box connections: smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 0m 16s) SMSC connections: AirtelSMPP:203.145.131.149:81/700:username:VMA (connecting, rcvd 0, sent 0, failed 0, queued 0 msgs) The lob file in SMSBOX log is : 2008-05-08 06:21:07 [28665] [0] INFO: Connected to bearerbox at localhost port 13001. 2008-05-08 06:21:07 [28665] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2008-05-08 06:21:07 [28665] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 28665. 2008-05-08 06:21:07 [28665] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 28665. 2008-05-08 06:21:07 [28665] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 28665. 2008-05-08 06:21:12 [28665] [2] DEBUG: HTTP: Creating HTTPClient for `192.168.0.18'. 2008-05-08 06:21:12 [28665] [2] DEBUG: HTTP: Created HTTPClient area 0x90e1260. 2008-05-08 06:21:12 [28665] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 192.168.0.18 2008-05-08 06:21:12 [28665] [3] INFO: sendsms used by tester 2008-05-08 06:21:12 [28665] [3] INFO: sendsms sender:tester:919810049894 (192.168.0.18) to:9910241422 msg:kannel 2008-05-08 06:21:12 [28665] [3] DEBUG: Stored UUID ab989ed5-557c-440d-9417-760502f68c79 2008-05-08 06:21:12 [28665] [3] DEBUG: message length 6, sending 1 messages 2008-05-08 06:21:12 [28665] [3] DEBUG: Status: 202 Answer: Sent. 2008-05-08 06:21:12 [28665] [3] DEBUG: Delayed reply - wait for bearerbox 2008-05-08 06:21:12 [28665] [0] DEBUG: Got ACK (3) of ab989ed5-557c-440d-9417-760502f68c79 2008-05-08 06:21:12 [28665] [0] DEBUG: HTTP: Resetting HTTPClient for `192.168.0.18'. 2008-05-08 06:22:12 [28665] [1] DEBUG: Timeout for fd:24 appeares. 2008-05-08 06:22:12 [28665] [1] DEBUG: HTTP: Destroying HTTPClient area 0x90e1260. 2008-05-08 06:22:12 [28665] [1] DEBUG: HTTP: Destroying HTTPClient for `192.168.0.18'. 2008-05-08 06:25:08 [28665] [0] ERROR: SIGINT received, aborting program... 2008-05-08 06:25:08 [28665] [0] INFO: Received (and handled?) 0 requests in 241 seconds (0.00 per second) 2008-05-08 06:25:08 [28665] [0] INFO: Kannel smsbox terminating. 2008-05-08 06:25:08 [28665] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) terminates. 2008-05-08 06:25:08 [28665] [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate 2008-05-08 06:25:08 [28665] [3] DEBUG: HTTP: No clients with requests, quitting. 2008-05-08 06:25:08 [28665] [3] DEBUG: Thread 3 (gw
Sending Enquire link issue
Hi, I have configured the SMS gateway on my local system. And trying to connect to Airtel SMSC as given in the user document. I have created Bearerbox and SMSBOX processes. But when I tried to send the SMS through browser then it says that messages is queued for later delivery. And bearerbox keep saying Sending Enquire Link, and nothing happens. If anyone has faced such issues then please help me. The smskannel.conf file is: group = core admin-port = 13000 smsbox-port = 13001 admin-password = admin #status-password = foo admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1;192.168.0.* log-file = /tmp/kannel.log log-level = 0 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1;192.168.0.* #unified-prefix = +358,00358,0;+,00 #access-log = /tmp/access.log #store-file = kannel.store #ssl-server-cert-file = cert.pem #ssl-server-key-file = key.pem #ssl-certkey-file = mycertandprivkeyfile.pem #- # SMSC CONNECTIONS # # SMSC connections are created in bearerbox and they handle SMSC specific # protocol and message relying. You need these to actually receive and send # messages to handset, but can use GSM modems as virtual SMSCs # This is a fake smsc connection, _only_ used to test the system and services. # It really cannot relay messages to actual handsets! group = smsc smsc = smpp smsc-id = Airtel host = 203.145.131.149 port = 81 smsc-username = gfish smsc-password = gold123 system-type = VMA #- # SMSBOX SETUP # # Smsbox(es) do higher-level SMS handling after they have been received from # SMS centers by bearerbox, or before they are given to bearerbox for delivery group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 global-sender = 123123 sendsms-chars = 0123456789 +- log-file = /tmp/smsbox.log log-level = 0 access-log = /tmp/access.log #- # SEND-SMS USERS # # These users are used when Kannel smsbox sendsms interface is used to # send PUSH sms messages, i.e. calling URL like # http://kannel.machine:13013/cgi-bin/sendsms?username=testerpassword=foobar. .. group = sendsms-user username = tester password = tester #user-deny-ip = #user-allow-ip = #- # SERVICES # # These are 'responses' to sms PULL messages, i.e. messages arriving from # handsets. The response is based on message content. Only one sms-service is # applied, using the first one to match. group = sms-service keyword = nop catch-all = true max-messages = 0 text = You asked nothing and I did it! # There should be always a 'default' service. This service is used when no # other 'sms-service' is applied. group = sms-service keyword = default text = No service specified Any help would be appreciated. Thanks in advance. Regards, Rajendra Tiwari