Hi, I've not found a solution yet.
Great Thanks, 1) If a MO come to my gateway, i can receive it without any problem. 2) i send a MT message from my web site using this url : $request = "http://$my_localhost:$my_sendsms_port/cgi-bin/sendsms?username=xx&password=xx&from=$from&to=$to&text=$message" 3) if a send a MT message, my bearerbox output is : 2010-03-24 21:40:33 [2593] [9] ERROR: HTTP[http_smsc]: Message was rejected. SMSC reponse was: =========================================================== Still WHAT IS the response from your call to http://<operator_ip>?username=<login>&password=<pass>&from=%P&to=%p&text=%a" ??? As per the last line of your log, it seems that there is no answer (or is empty) from the server that receives the call. As there is no answer, there is no match to status-xxxx-regex so kannel does not know what happened to the message and trows the error. What is the nexts lines after the "... SMSC response was..." line You need to set status-xxx-regex according to the responses your call receives. It has no sens to just copy-paste the default parameter in your config Regards Alvaro On Wed, Mar 24, 2010 at 5:45 PM, Kidi Kidi <[email protected]> wrote: > > more info about : ERROR: HTTP[my_http_smsc_id]: Message was rejected. SMSC > reponse was: > > status-success-regex = "ok" > status-permfail-regex = "failure" > status-tempfail-regex = "retry later" > > ++++ my bearerbox output ++++++++++++++++++++++++++ > > 2010-03-24 21:40:36 [2642] [0] INFO: Debug_lvl = 1, log_file = <none>, > log_lvl = 0 > 2010-03-24 21:40:36 [2642] [0] INFO: MYSQL: Connected to server at > localhost. > 2010-03-24 21:40:36 [2642] [0] INFO: MYSQL: server version 5.1.37-1ubuntu5, > client version 5.1.37. > 2010-03-24 21:40:36 [2642] [0] INFO: DLR using storage type: mysql > 2010-03-24 21:40:36 [2642] [0] INFO: Added logfile `/tmp/log/bearerbox.log' > with level `0'. > 2010-03-24 21:40:36 [2642] [0] INFO: HTTP: Opening server at port 13000. > 2010-03-24 21:40:36 [2642] [0] INFO: BOXC: 'smsbox-max-pending' not set, > using default (100). > 2010-03-24 21:40:36 [2642] [0] INFO: Set SMS resend frequency to 60 seconds. > 2010-03-24 21:40:36 [2642] [0] INFO: SMS resend retry set to unlimited. > 2010-03-24 21:40:36 [2642] [0] INFO: DLR rerouting for smsc id > <my_http_smsc_id> disabled. > 2010-03-24 21:40:36 [2642] [0] INFO: HTTP: Opening server at port 23020. > 2010-03-24 21:40:36 [2642] [0] INFO: HTTP[my_http_smsc_id]: Initiated and > ready > 2010-03-24 21:40:36 [2642] [0] INFO: > ---------------------------------------- > 2010-03-24 21:40:36 [2642] [0] INFO: Kannel bearerbox II version > cvs-20100228 starting > 2010-03-24 21:40:36 [2642] [0] INFO: MAIN: Start-up done, entering mainloop > 2010-03-24 21:40:47 [2642] [5] INFO: Client connected from <127.0.0.1> > 2010-03-24 21:40:50 [2642] [7] ERROR: HTTP[my_http_smsc_id]: Message was > rejected. SMSC reponse was: > > +++ SMSC HTTP +++++ > group = smsc > smsc = http > smsc-id = http_smsc > host = localhost > port = 16000 > system-type = generic > smsc-username = <login> > smsc-password = <pass> > send-url =" > http://<operator_ip>?username=<login>&password=<pass>&from=%P&to=%p&text=%a" > status-success-regex = "ok" > status-permfail-regex = "failure" > status-tempfail-regex = "retry later" > > > ------------------------------------------------------------------------------------------------------/ > Please provide more info... we can not guess what is happening with no info. > > Nevertheless check smsc http. As you are calling a generic script you > need to tell kannel which string should it consider as an OK, NAK or > temporary fault. > > most exactly: status-success-regex, status-permfail-regex, > status-tempfail-regex > > Regards > > Alvaro > > > |-----------------------------------------------------------------------------------------------------------------| > Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier > celular y Nextel > en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via > SMS y GPRS online > Visitenos en www.perusms.NET www.smsglobal.com.mx y > www.pravcom.com > > > > On Wed, Mar 24, 2010 at 4:05 PM, Kidi Kidi <[email protected]> wrote: >> Hi, >> >> I get the error below whenever i send a message through my http smsc, >> though >> i get the message on my phone. Someone have an idea what is it? >> >> 2010-03-20 08:05:21 [1928] [12] DEBUG: Octet string dump ends. >> 2010-03-20 08:05:21 [1928] [7] ERROR: HTTP[http_smsc]: Message was >> rejected. >> SMSC reponse was: >> >> +++ SMSC HTTP +++++ >> group = smsc >> smsc = http >> smsc-id = http_smsc >> host = localhost >> port = 16000 >> system-type = generic >> smsc-username = <login> >> smsc-password = <pass> >> send-url = >> http://<operator_ip>?username=<login>&password=<pass>&text=<message> >> .... >> >> >> >> >> |------------------------------------------------------------------------------------------------------ >> >> Thank you Alvaro, >> >> I am using kannel gateway-1.4.3, i also tested it with the latest >> gateway_cvs. >> >> >> |---------------------------------------------------------------------------------------------------- >> >> >> Might be you are using an outdated version??? >> >> Regards >> >> Alvaro >> >> |-----------------------------------------------------------------------------------------------------------------| >> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier >> celular y Nextel >> en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via >> SMS y GPRS online >> Visitenos en www.perusms.NET www.smsglobal.com.mx y >> www.pravcom.com >> >> >> |------------------------------------------------------------------------------------------------------ >> >> On Sun, Mar 21, 2010 at 4:32 AM, Kidi Kidi <[email protected]> wrote: >>> I get this error whenever i send a sms through my http smsc using " >>> system-type = generic". >>> Though the sms is sent since i receive it on my mobile phone. >>> But, when i use " system-type =kannel", i don't get this error and >>> everything goes all right. >>> >>> Some people have already reported this error but i have not found a >>> suitable >>> solution yet. >>> >>> >> >> >> > > -- |-----------------------------------------------------------------------------------------------------------------| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com
