Hello Eduardo, glad that I could be of assistance. To block the client from receiving those replies, try checking the "max-messages" option and set it to a low number.
Regards! On 7/19/11, Eduardo Alfaia <[email protected]> wrote: > Hi Alfred, this solution worked very well, thanks, but I' ve another > question, when Kannel sends the request for my Content Provider, it returns > a message toward the mobile phone, How can to block this return message in > the Kannel? I need of this because my Content Provider need to treat this > message and send only after of this. Do you understand me? > > Thanks > > 2011/7/19 Eduardo Alfaia <[email protected]> > >> Hi Alfred, you are right I send a message which has a keyword to Kannel, >> in >> my configuration file I have defined sms-service match the keyword and >> redirect this solicitation to my content provider reply. >> I'll use your solutionfor test. >> >> Thanks >> >> >> 2011/7/19 Mfawa Alfred Onen <[email protected]> >> >>> Try using the post-url option. I believe you are trying to send some data >>> to the Content Provider. >>> >>> On Tue, Jul 19, 2011 at 5:36 PM, Eduardo Alfaia <[email protected] >>> > wrote: >>> >>>> Hi Guys >>>> >>>> I have configured Kannel to connect in our Nokia SMSC under SMPP, it's >>>> work fine. I get to send message towards the mobile phone using the URL >>>> http://10.1.25.30:13013/cgi-bin/sendsms?username=tester&password=foobar&to=06182180096&text=Essa+mensagem+foi+envianda+via+HTTP >>>> . >>>> >>>> and I get to send messages from mobile phone to kannel writing in the >>>> textbody a keyword and I receive the reply from Kannel. Well, I need >>>> that >>>> the kannel, through a keyword, redirect the request HTTP to my Content >>>> Provider how this. >>>> >>>> >>>> [image: image.png] >>>> >>>> >>>> I have configured kannel: >>>> >>>> group = core >>>> admin-port = 13000 >>>> smsbox-port = 13001 >>>> admin-password = bar >>>> #status-password = foo >>>> #admin-deny-ip = "" >>>> #admin-allow-ip = "" >>>> log-file = "/tmp/kannel.log" >>>> log-level = 0 >>>> box-deny-ip = "*.*.*.*" >>>> box-allow-ip = "127.0.0.1" >>>> #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 = internal >>>> interface-version = 34 >>>> host = 10.1.2.30 >>>> port = 5588 >>>> system-id = kannel >>>> smsc-password = kannel >>>> system-type = default >>>> transceiver-mode = 1 >>>> #connect-allow-ip = 10.1.2.30 >>>> >>>> #--------------------------------------------- >>>> # 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 >>>> #bearerbox-host = 10.1.25.30 >>>> sendsms-port = 13013 >>>> global-sender = 13013 >>>> #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=tester&password=foobar. >>>> .. >>>> >>>> group = sendsms-user >>>> username = tester >>>> password = foobar >>>> #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 >>>> 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" >>>> >>>> # Servicos configurados Eduardo Alfaia >>>> group = sms-service >>>> keyword = felipe >>>> text = "Dr Ray" >>>> >>>> group = sms-service >>>> keyword = cota >>>> text = "Ta com dor no bumbum" >>>> >>>> group = sms-service >>>> keyword = circles >>>> get-url = " >>>> http://10.1.25.106:8080/circlesServer/moreresult?texto=testanto%20doget" >>>> >>>> My problem is: The kannel don't send the request to my Content Provider. >>>> >>>> Could you help me? >>>> >>>> Best Regards >>>> >>> >>> >>> >>> -- >>> *Mfawa Alfred Onen* >>> *M.Sc Telecoms, B.Eng Elect/Elect, CCNA, RHCE(in view)* >>> System Administrator >>> Department of Computer Science, >>> Bingham University. >>> >>> E-Mail: [email protected] >>> Phone1: +234 805 944 3154 >>> Phone2: +234 803 079 6088 >>> >>> >>> >> > -- Sent from my mobile device *Mfawa Alfred Onen* *M.Sc Telecoms, B.Eng Elect/Elect, CCNA, RHCE(in view)* System Administrator Department of Computer Science, Bingham University. E-Mail: [email protected] Phone1: +234 805 944 3154 Phone2: +234 803 079 6088
