You need to send like this: http://localhost:13013/cgi-bin/sendsms?username=xxxx&password=xxxx&to=+573122639258&text=tucontacto
2346 is your smpp port. And it doesn't accept http requests. == Rene -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Soporte Sent: Friday, 24 August, 2012 23:34 To: [email protected] Cc: [email protected] Subject: Re: Request for Help smpp Can somebody help me!!! I don't know what to do for send the msm with the smpp. How can I correct this error?? Regards!! El 22/08/12 09:39, Soporte escribió: > Hello. > I'm already change my ports and still appearing the same error. > > 2012-08-22 13:26:25 [12329] [0] INFO: Debug_lvl = 1, log_file = > <none>, log_lvl = 0 > 2012-08-22 13:26:25 [12329] [0] INFO: Starting to log to file > /var/log/kannel/opensmppbox.log level 1 > 2012-08-22 13:26:25 [12329] [0] INFO: Added logfile > `/var/log/kannel/opensmppbox.log' with level `1'. > 2012-08-22 13:26:25 [12329] [0] INFO: MYSQL: Connected to server at > localhost. > 2012-08-22 13:26:25 [12329] [0] INFO: MYSQL: server version 5.1.47, > client version 5.1.47. > 2012-08-22 13:26:25 [12329] [0] INFO: MYSQL: Connected to server at > localhost. > 2012-08-22 13:26:25 [12329] [0] INFO: MYSQL: server version 5.1.47, > client version 5.1.47. > 2012-08-22 13:26:25 [12329] [0] INFO: MYSQL: Connected to server at > localhost. > 2012-08-22 13:26:25 [12329] [0] INFO: MYSQL: server version 5.1.47, > client version 5.1.47. > 2012-08-22 13:26:25 [12329] [0] INFO: DLR using storage type: mysql > 2012-08-22 13:26:25 [12329] [0] WARNING: opensmmpbox: DLR: using > default 'internal' for storage type. > 2012-08-22 13:26:25 [12329] [0] INFO: opensmppbox DLR storage using > type: internal > 2012-08-22 13:26:25 [12329] [0] INFO: Waiting for SMPP connections on > port 2346. > 2012-08-22 13:26:31 [12329] [1] INFO: Client connected from <127.0.0.1> > 2012-08-22 13:26:31 [12329] [1] INFO: Connected to bearerbox at > localhost port 13001. > 2012-08-22 13:26:31 [12329] [1] ERROR: opensmppbox: bearerbox_to_smpp: > thread starts > 2012-08-22 13:26:31 [12329] [2] ERROR: opensmppbox: smpp_to_bearerbox: > thread starts > 2012-08-22 13:26:31 [12329] [2] ERROR: SMPP: PDU length was too large > (1195725856, maximum is 7424). > 2012-08-22 13:26:31 [12329] [2] ERROR: opensmppbox[(null)]: Server > sent garbage, ignored. > 2012-08-22 13:26:31 [12329] [2] ERROR: Invalid SMPP PDU received. > 2012-08-22 13:26:31 [12329] [2] ERROR: opensmppbox: smpp_to_bearerbox: > thread terminates > 2012-08-22 13:26:31 [12329] [1] ERROR: opensmppbox: bearerbox_to_smpp: > thread terminates > 2012-08-22 13:26:32 [12329] [0] INFO: No more waiting for SMPP > connections. > > This is the chain that i'm using to send the message > > http://localhost:2346/cgi-bin/sendsms?username=xxxx&password=xxxx&to=+573122639258&text=tucontacto > > > > there are my config files: > > /*************** > * kannel.conf * > ***************/ > > #Default kannel configuration file > #core group 'mandatory' identifies the group > group = core > dlr-storage=mysql > #port for http administration > admin-port = 13000 > smsbox-port = 13001 > #Password for http administration > admin-password = xxxxxx > #Password to check status of kannel > status-password = xxxxxx > #Allow only localhost for now > #admin-deny-ip = "*.*.*.*" > admin-allow-ip = "localhost" > access-log = "/var/log/kannel/access.log" > store-type = spool > store-location = "/var/log/kannel/sent" > > group = smsbox > bearerbox-host = localhost > sendsms-port = 13013 > bearerbox-port = 13001 > mo-recode = 1 > #The sender number to be used in text messages > global-sender = 919994989838 > log-file = "/var/log/kannel/smsbox.log" > log-level = 1 > > #Identifies the SMS Center group > group = smsc > #Tells kannel that we are going to use mobile as smsc > smsc = at > #Sets the modem type to auto > modemtype = ZTE > #Identifies the modem > device =/dev/ttyUSB3 > #It should be your mobile number > my-number = xxxxxxxxxx > log-file = "/var/log/kannel/smsc.log" > log-level = 1 > > #It should be changed to work for your mobile > group = modems > id = ZTE > name = "ZTE TIGO" > detect-string = "ZTE MODEM" > init-string = "AT+CNMI=1,2,0,0,0" > #init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" > > group = mysql-connection > id = mydlr > host = localhost > username = xxxx > password = xxxx > database = dlr > max-connections = 3 > > group = dlr-db > id = mydlr > table = dlr > field-smsc = smsc > field-timestamp = ts > field-destination = destination > field-source = source > field-service = service > field-url = url > field-mask = mask > field-status = status > field-boxc-id = boxc > > #SMSC SMPP > group=smsc > smsc=smpp > smsc-id = SMPP > host = 193.105.74.58 > port = 8888 > receive-port = 8888 > transceiver-mode = false > smsc-username = "xxxx" > smsc-password = "xxxx" > keepalive = 25 > system-type = "VMA" > service-type=smpp > address-range ="" > source-addr-ton = 005 > interface-version = 0x34 > #enquire-link-interval = 10 > #reconnect-delay = 30 > log-level = 1 > log-file = /var/log/kannel/opensmppbox.log > > group = sendsms-user > #Username and Password for sending sms using HTTP interface > username = xxxx > password = xxxx > concatenation = true > #can send a longer text message about 3 smses ( 3*160) > max-messages = 3 > > # SMS SERVICE 'default' > group = sms-service > keyword = Tucontacto > text = "Bienvenido a la conexion de prueba de tu contacto sms" > catch-all = true > # Catch all incoming messages > # regarding the keyword. If you > # define other services, remove > # this line. > > /********************* > * opensmppbox.conf * > **********************/ > > group = core > dlr-storage = mysql > > # this group defines your opensmppbox > group = opensmppbox > box-dlr-storage = mysql > # our boxc type > opensmppbox-id = abcd > # the port to listen on for smpp connections > opensmppbox-port = 2346 > # we connect to the following host as a box > bearerbox-host = localhost > bearerbox-port = 20000 > log-level = 0 > log-file = /var/log/kannel/opensmppbox.log > our-system-id = chim1 > route-to-smsc = my-default-smsc > # see sample smpplogins.txt > smpp-logins = "/etc/kannel/smpplogins.txt" > > # the following is just standard dlr configuration > group = mysql-connection > id = mydlr > host = localhost > username = xxxx > password =xxxx > database = dlr > # you can increase this upon a higher load > max-connections = 1 > > group = dlr-db > id = mydlr > table = dlr > field-smsc = smsc > field-timestamp = ts > field-destination = destination > field-source = source > field-service = service > field-url = url > field-mask = mask > field-status = status > field-boxc-id = boxcid > > /***************** > * smppligings.txt > ******************/ > xxxx yyyy abcd 193.105.74.58 > > El 21/08/12 15:08, Rene Kluwen escribió: >> This is probably a configuration issue with the wrong tcp ports being >> connected to each other. >> If you post your config, we can help you further. >> >> == Rene >> >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] On Behalf Of Soporte >> Sent: Tuesday, 21 August, 2012 21:46 >> To: [email protected] >> Subject: Request for Help smpp >> >> Greetings. >> >> I'm new using the kannel app, and i'm trying to set up the Kannel >> SMPP server, but I recive this respond >> >> 2012-08-21 16:26:37 [3469] [1] ERROR: opensmppbox: bearerbox_to_smpp: >> thread starts >> 2012-08-21 16:26:37 [3469] [2] ERROR: opensmppbox: smpp_to_bearerbox: >> thread starts >> 2012-08-21 16:26:37 [3469] [2] ERROR: SMPP: PDU length was too >> large (1195725856, maximum is 7424). >> 2012-08-21 16:26:37 [3469] [2] ERROR: opensmppbox[(null)]: Server >> sent garbage, ignored. >> 2012-08-21 16:26:37 [3469] [2] ERROR: Invalid SMPP PDU received. >> 2012-08-21 16:26:37 [3469] [2] ERROR: opensmppbox: smpp_to_bearerbox: >> thread terminates >> 2012-08-21 16:26:37 [3469] [1] ERROR: opensmppbox: bearerbox_to_smpp: >> thread terminates >> 2012-08-21 16:26:38 [3469] [0] INFO: No more waiting for SMPP >> connections. >> >> >> So if you can help me, it will be greatfull. >> Thanks. >> >> >> >> > >
