Dear friend, Need Help very Urgent... I've installed kannel 1.4.1 on my slackware.. with modem gsm Siemens MC39i
i have problem every time i send sms more than 120 char it will says generic error, but if i send 110 Char it OK it will send smoothly. Please help me to know where the problem is...? i'm using perl to sending sms here the Script that i use to send sms *************************************************************** CGI Script To Send SMS With Kannel $defaultsmsc="siemens1"; $push_url = "http://myhostname.mydomain.com:13131/cgi-bin/sendsms" $push_uid = "userout"; $push_pwd = "passout"; $trxid = generate_trxid(); $dlr_url = "http://myhostname.mydomain.com/dlr.cgi?smsc-id=%i&status=%d&answer=%A&msisdn=%p&ts=%t&trxid=$trxid"; ### Encode dlr_url into post $enc_dlr_url = enurl $dlr_url; $text = "Hello World"; ### Encode text into post $enc_text = enurl $text; $url_sms = "$push_url1?to=$msisdn&text=$enc_text&username=$push_uid&password=$push_pwd&dlr-mask=7&smsc=$defa ultsmsc&dlr-url=$enc_dlr_url"; $http = new HTTP::Lite;$http->request("$url_sms") or print LOG "Error Could not get Document $!"; $message = $http->body(); *************************************************************** Here my Configuration File # CORE group = core admin-port = 13000 admin-password = ******* status-password = ******* admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1" log-file = "/var/log/kannel/kannel.log" log-level = 0 access-log = "/var/log/kannel/access.log" #box-deny-ip = "*.*.*.*"; #box-allow-ip = "127.0.0.1" smsbox-port = 13001 #store-file = "/var/log/kannel/kannel.store" #SMSC modem gsm group = smsc smsc = at host = myhostname.mydomain.com port = 13013 smsc-id = siemens1 modemtype = siemens_m39i device = /dev/ttyS0 speed = 57600 sms-center = +628****** group = modems id = SIEMENS name = siemens_m39i detect-string = SIEMENS init-string = "AT+CNMI=1,2,0,1,1" speed=57600 #enable-hwhs = "AT+IFC=2,2" enable-hwhs = "AT\\Q0" # SMSBOX SETUP group = smsbox bearerbox-host = myhostname.mydomain.com sendsms-port = 13131 global-sender = 62813899**** sendsms-chars = "0123456789+" log-file = "/var/log/kannel/smsbox.log" log-level = 0 access-log = "/var/log/kannel/access.log" # SEND-SMS USERS group = sendsms-user #group = smsbox username = userout password = passout concatenation = true omit-empty = true max-messages = 3 default-smsc=siemens1 dlr-url="http://myhostname.mydomain.com/dlr.cgi?smsc-id=%i&status=%d&answer=%A&msisdn=%p&ts=%t" # SMS SERVICE 'Default' # there should be default always group = sms-service keyword = default max-messages = 0 get-url = "http://myhostname.mydomain.com/get.cgi?timestamp=%t&msisdn=%q&text=%a&smscid=%i" accepted-smsc = "siemens1" *************************************************************** Here my Kannel Log 2007-01-23 23:40:22 [6874] [9] DEBUG: send_msg: sending msg to box: <202.153.135.229> 2007-01-23 23:40:22 [6874] [9] DEBUG: boxc_sender: sent message to <202.153.135.229> 2007-01-23 23:40:22 [6873] [8] INFO: Mutex gwlib/list.c:134: 4 locks, 0 collisions. 2007-01-23 23:40:22 [6873] [8] DEBUG: boxc_receiver: got ack 2007-01-23 23:40:31 [6873] [8] DEBUG: boxc_receiver: sms received 2007-01-23 23:40:31 [6873] [8] INFO: Mutex gwlib/list.c:134: 4 locks, 0 collisions. 2007-01-23 23:40:31 [6873] [8] DEBUG: send_msg: sending msg to box: <202.153.135.229> 2007-01-23 23:40:32 [6863] [6] DEBUG: AT2[siemens1]: TP-Validity-Period: 24.0 hours 2007-01-23 23:40:32 [6863] [6] DEBUG: AT2[siemens1]: --> AT+CMGS=146^M 2007-01-23 23:40:32 [6863] [6] DEBUG: AT2[siemens1]: <-- > 2007-01-23 23:40:32 [6863] [6] DEBUG: AT2[siemens1]: send command status: 1 2007-01-23 23:40:32 [6863] [6] DEBUG: AT2[siemens1]: --> 0031000C812618957100820000A796B0986C46ABD96EB81C2C269BD16AB61B2E078B C966B49AED86CBC162B219AD66BBE172B0986C46ABD96EB81C2C269BD16AB61B2E078BC966B49AED86CBC162B219AD66BBE172B0986C46ABD96EB81C2C269 BD16AB61B2E078BC966B49AED86CBC162B219AD66BBE172B0986C46ABD96EB81C2C269BD16AB61B2E078BC966B49AED86CB01 2007-01-23 23:40:32 [6863] [6] DEBUG: AT2[siemens1]: --> ^Z 2007-01-23 23:40:37 [6863] [6] DEBUG: AT2[siemens1]: <-- > 2007-01-23 23:40:37 [6863] [6] DEBUG: AT2[siemens1]: <-- ERROR 2007-01-23 23:40:37 [6863] [6] ERROR: AT2[siemens1]: Generic error: ERROR 2007-01-23 23:40:37 [6863] [6] DEBUG: AT2[siemens1]: send command status: -1 2007-01-23 23:40:37 [6863] [6] DEBUG: AT2[siemens1]: --> AT+CMGS=146^M 2007-01-23 23:40:37 [6863] [6] DEBUG: AT2[siemens1]: <-- > 2007-01-23 23:40:37 [6863] [6] DEBUG: AT2[siemens1]: send command status: 1 2007-01-23 23:40:37 [6863] [6] DEBUG: AT2[siemens1]: --> 0031000C812618957100820000A796B0986C46ABD96EB81C2C269BD16AB61B2E078B C966B49AED86CBC162B219AD66BBE172B0986C46ABD96EB81C2C269BD16AB61B2E078BC966B49AED86CBC162B219AD66BBE172B0986C46ABD96EB81C2C269 BD16AB61B2E078BC966B49AED86CBC162B219AD66BBE172B0986C46ABD96EB81C2C269BD16AB61B2E078BC966B49AED86CB01 2007-01-23 23:40:37 [6863] [6] DEBUG: AT2[siemens1]: --> ^Z 2007-01-23 23:40:44 [6863] [6] DEBUG: AT2[siemens1]: <-- > 2007-01-23 23:40:44 [6863] [6] DEBUG: AT2[siemens1]: <-- ERROR 2007-01-23 23:40:44 [6863] [6] ERROR: AT2[siemens1]: Generic error: ERROR 2007-01-23 23:40:44 [6863] [6] DEBUG: AT2[siemens1]: send command status: -1 2007-01-23 23:40:44 [6863] [6] DEBUG: AT2[siemens1]: --> AT+CMGS=146^M 2007-01-23 23:40:44 [6863] [6] DEBUG: AT2[siemens1]: <-- > 2007-01-23 23:40:44 [6863] [6] DEBUG: AT2[siemens1]: send command status: 1 2007-01-23 23:40:44 [6863] [6] DEBUG: AT2[siemens1]: --> 0031000C812618957100820000A796B0986C46ABD96EB81C2C269BD16AB61B2E078B C966B49AED86CBC162B219AD66BBE172B0986C46ABD96EB81C2C269BD16AB61B2E078BC966B49AED86CBC162B219AD66BBE172B0986C46ABD96EB81C2C269 BD16AB61B2E078BC966B49AED86CBC162B219AD66BBE172B0986C46ABD96EB81C2C269BD16AB61B2E078BC966B49AED86CB01 2007-01-23 23:40:45 [6863] [6] DEBUG: AT2[siemens1]: --> ^Z 2007-01-23 23:40:45 [6873] [8] DEBUG: boxc_receiver: heartbeat with load value 0 received
