ok,I started the smsbox: $ smsbox -v 1 kannel.conf2011-04-15 09:18:06 [6743] [0] INFO: Debug_lvl = 1, log_file = <none>, log_lvl = 02011-04-15 09:18:06 [6743] [0] INFO: Starting to log to file /var/log/kannel/smsbox.log level 02011-04-15 09:18:06 [6743] [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `0'.2011-04-15 09:18:06 [6743] [0] INFO: Service global sender set as '13003'2011-04-15 09:18:06 [6743] [0] INFO: HTTP: Opening server at port 13003.2011-04-15 09:18:06 [6743] [0] INFO: Set up send sms service at port 130032011-04-15 09:18:06 [6743] [0] INFO: Connected to bearerbox at localhost port 13001.
then:wget "http://localhost:13003/cgi-bin/sendsms?username=&password=&from=+34662345&to=0123456&text=Hello+world" but kannel never returns, it always stay at this point:2011-04-15 09:18:09 [6743] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>2011-04-15 09:18:09 [6743] [3] INFO: sendsms used by <>2011-04-15 09:18:09 [6743] [3] INFO: sendsms sender:<: 34662345> (127.0.0.1) to:<0123456> msg:<Hello world> Why is not returning? Thanks. > From: [email protected] > To: [email protected]; [email protected] > Subject: Re: fake smsc > Date: Fri, 15 Apr 2011 04:21:42 +0300 > > Hi, > > Have you read UG before addressing this list? Is your smsbox running? > > BR, > Nikos > ----- Original Message ----- > From: Gerardo Corro > To: [email protected] ; [email protected] > Sent: Friday, April 15, 2011 2:53 AM > Subject: RE: fake smsc > > > Hi Nikos, > > > Thanks for your message, but: > > > $ wget > http://localhost:13003/cgi-bin/sendsms?username=&password=&to=0123456&text=Hello+world > [1] 4840 > [2] 4841 > [3] 4842 > ~$ --2011-04-15 01:52:19-- http://localhost:13003/cgi-bin/sendsms?username= > Resolving localhost... 127.0.0.1 > Connecting to localhost|127.0.0.1|:13003... failed: Connection refused. > > > > > Thanks. > > > > > > > From: [email protected] > > To: [email protected]; [email protected] > > Subject: Re: fake smsc > > Date: Fri, 15 Apr 2011 02:26:34 +0300 > > > > Hi, > > > > You are mixing up 2 things in your request: > > > > 1) Fake SMSc port is 13004 > > 2) sendsms port is 13003 > > > > Fake smsc service requires the fakesmsc client connected at the fake port > > with specific format. > > Sendsms interface requires the request you sent but at port 13003. > > > > Do not send http reuqests to FAKE SMSc port! > > > > BR, > > Nikos > > ----- Original Message ----- > > From: Gerardo Corro > > To: [email protected] > > Sent: Friday, April 15, 2011 12:56 AM > > Subject: fake smsc > > > > > > Hi all, > > > > > > I know this is a recurrent issue, but I still cannot find a solution: I > > installed Kannel in my ubuntu laptop with "apt-get install kannel", then I > > created this config: > > > > > > group = core > > admin-port = 13000 > > smsbox-port = 13001 > > admin-password = bar > > log-file = /var/log/kannel/kannel.log > > log-level = 0 > > access-log = /var/log/kannel/access_kannel.log > > store-file = /var/log/kannel/store_sms > > > > > > group = smsc > > smsc = fake > > port = 13004 > > connect-allow-ip = "*.*.*.*" > > > > > > group = smsbox > > bearerbox-host = localhost > > sendsms-port = 13003 > > global-sender = 13003 > > smsbox-id = "my smsbox" > > log-file = /var/log/kannel/smsbox.log > > log-level = 0 > > > > > > group = sendsms-user > > username = > > password = > > > > > > group = sms-service > > keyword = default > > text = "No service specified" > > > > > > after that I restart kannel like this: > > > > > > sudo /etc/init.d/kannel restart > > > > > > then I try: > > > > > > wget > > http://localhost:13004/cgi-bin/sendsms?username=&password=&to=0123456&text=Hello+world > > > > > > kannel replies: > > > > > > 2011-04-14 20:17:34 [6419] [6] WARNING: smsc_fake: invalid message syntax > > from client, ignored > > > > > > What's wrong? Please help > >
