Nikos,
My old wapkannel.conf file is as follow:
group = core
admin-port = 13000
wapbox-port = 9200
admin-password = bar
wdp-interface-name = "*"
box-deny-ip = "*.*.*.*"
box-allow-ip = "*.*.*.*"
group = wapbox
bearerbox-host = 192.168.11.8
log-file = "/var/log/kannel/wapbox.log"
log-level = 1
access-log = "/var/log/kannel/wapaccess.log"
syslog-level = none
http-interface-name = "http://www.gmail.com/"
You know, when I use this conf file the wapbox server always show me some
error as follow:
2009-12-14 18:54:06 [10573] [6] INFO: Fetching URL <http://www.gmail.com>
for MSISDN <>, IP <192.168.11.1:59677>
2009-12-14 18:54:06 [10573] [10] ERROR: Error while gw_gethostbyname occurs.
2009-12-14 18:54:06 [10573] [10] ERROR: System error 3: No such process
2009-12-14 18:54:06 [10573] [10] ERROR: gethostbyname failed
2009-12-14 18:54:06 [10573] [10] ERROR: error connecting to server `
www.gmail.com' at port `80'
2009-12-14 18:54:06 [10573] [10] ERROR: Couldn't send request to <
http://www.gmail.com>
2009-12-14 18:54:06 [10573] [7] ERROR: WSP: HTTP lookup failed, oops.
So I have to delete http-interface-name item in the wapkannel.conf file.
Then all is ok.
Now I have another question:
My goal is to setup a kannel wapgate named <a>, at the same time I
need to develop a website named <b> to provide some service for mobiles.
Thus, mobiles can access <a> to get some service provided by <b>. My
question is whether <b> must provide .wml format files? Or <a> can
automatically translate .html format files of <b> into .wml format files for
mobiles?
boocheen
2009/12/21 Nikos Balkanas <[email protected]>
> Hi,
>
> I can't understand what you are talking about. Please post configuration.
>
> gethostbyname has nothing to do with whether tha page is wml or not. It all
> depends on what accept headers your mobile sends to kannel. If your mobile
> accepts only wml, then kannel will block all other content, since that might
> crash your mobile.
>
> BR,
> Nikos
>
> ----- Original Message -----
> *From:* 陈波 <[email protected]>
> *To:* [email protected]
> *Sent:* Monday, December 21, 2009 10:00 AM
> *Subject:* Re: What's the final solution for Kannel's Error while
> gw_gethostbyname occurs, I can't resolve it at all.
>
> NikosοΌŒ
> Β Β Β Β Β Β Β I make important progress today.
> Β Β Β Β Β Β Β In fact, I should delete http-interface from wapkannel.conf.
> andΒ at the same time I should change the accessing url website on the nokia
> client, legal urls such asΒ http://m.google.cn/?dc=gbackstop.Β These urls
> must return Β WML web page and kannel wapgate must be limited by that?
> What's your opinion?
> Β
> boocheen
> Β
> 2009/12/21 ι™ˆζ³Ά <[email protected]>
>
>> Coincidently , my wapgate server is named server1 and my notebook is
>> named server2, this is my habit.
>> I still can ping server1 from local pc and other pc on local network.
>> What's your more suggestions?
>> 2009/12/20 Nikos Balkanas <[email protected]>
>>
>>> Hi,
>>> Β
>>> I said <server1> not server1. That means use the output of:
>>> Β
>>> hostname
>>> Β
>>> in your /etc/hosts. Then ping <that name>.
>>> Β
>>> This has nothing to do with kannel, just with Linux administration and
>>> is irrelevant to this group.
>>> Β
>>> Try again and repost.
>>> Β
>>> Nikos
>>>
>>> ----- Original Message -----
>>> *From:* ι™ˆζ³Ά <[email protected]>
>>> *To:* [email protected]
>>> *Sent:* Sunday, December 20, 2009 5:07 AM
>>> *Subject:* Re: What's the final solution for Kannel's Error while
>>> gw_gethostbyname occurs, I can't resolve it at all.
>>>
>>> I modify my hosts file, then I run the command 'service network
>>> restart' to ensure the validity of modification,Ξ’Β now the hosts file
>>> isΞ’Β as follows:
>>> # Do not remove the following line, or various programs
>>> # that require network functionality will fail.
>>> 127.0.0.1 localhost.localdomain localhost
>>> 192.168.11.8 server1
>>> ::1 localhost6.localdomain6 localhost6
>>> I still can ping server1 from local pc and other pc on local network.
>>> However, bearerbox server still gives me the same log:
>>> [r...@localhost ~]# /usr/local/kannel/gw/bearerbox -v 1
>>> /usr/local/kannel/gw/wapkannel.conf
>>> 2009-12-14 18:52:33 [10561] [0] INFO: Debug_lvl = 1, log_file = <none>,
>>> log_lvl = 0
>>> 2009-12-14 18:52:33 [10561] [0] WARNING: DLR: using default 'internal'
>>> for storage type.
>>> 2009-12-14 18:52:33 [10561] [0] INFO: DLR using storage type: internal
>>> 2009-12-14 18:52:33 [10561] [0] INFO: HTTP: Opening server at port 13000.
>>> 2009-12-14 18:52:33 [10561] [0] INFO: Adding interface *
>>> 2009-12-14 18:52:33 [10561] [0] INFO:
>>> ----------------------------------------
>>> 2009-12-14 18:52:33 [10561] [0] INFO: Kannel bearerbox II version 1.4.3
>>> starting
>>> 2009-12-14 18:52:33 [10561] [0] INFO: MAIN: Start-up done, entering
>>> mainloop
>>> 2009-12-14 18:52:41 [10561] [9] INFO: Client connected from
>>> <192.168.11.8>
>>> Ξ’Β
>>> wapkannelserver still gives me the same log, too:
>>> [r...@localhost ~]# /usr/local/kannel/gw/wapbox -v 1
>>> /usr/local/kannel/gw/wapkannel.conf
>>> 2009-12-14 18:52:41 [10573] [0] INFO: Debug_lvl = 1, log_file = <none>,
>>> log_lvl = 0
>>> 2009-12-14 18:52:41 [10573] [0] INFO: Added logfile `/tmp/wapbox.log'
>>> with level `1'.
>>> 2009-12-14 18:52:41 [10573] [0] INFO: Starting to log to file
>>> /tmp/wapbox.log level 1
>>> 2009-12-14 18:52:41 [10573] [0] INFO: Logging accesses to
>>> '/tmp/wapaccess.log'.
>>> 2009-12-14 18:52:41 [10573] [0] INFO: Started access logfile
>>> `/tmp/wapaccess.log'.
>>> 2009-12-14 18:52:41 [10573] [0] INFO:
>>> ------------------------------------------------------------
>>> 2009-12-14 18:52:41 [10573] [0] INFO: Kannel wapbox version 1.4.3
>>> starting up.
>>> 2009-12-14 18:52:41 [10573] [0] INFO: Connected to bearerbox at
>>> 192.168.11.8 port 9200.
>>> 2009-12-14 18:54:06 [10573] [6] INFO: Fetching URL <http://www.gmail.com>
>>> for MSISDN <>, IP <192.168.11.1:59677>
>>> 2009-12-14 18:54:06 [10573] [10] ERROR: Error while gw_gethostbyname
>>> occurs.
>>> 2009-12-14 18:54:06 [10573] [10] ERROR: System error 3: No such process
>>> 2009-12-14 18:54:06 [10573] [10] ERROR: gethostbyname failed
>>> 2009-12-14 18:54:06 [10573] [10] ERROR: error connecting to server `
>>> www.gmail.com' at port `80'
>>> 2009-12-14 18:54:06 [10573] [10] ERROR: Couldn't send request to <
>>> http://www.gmail.com>
>>> 2009-12-14 18:54:06 [10573] [7] ERROR: WSP: HTTP lookup failed, oops.
>>> 2009-12-14 18:54:06 [10573] [7] WARNING: WSP: Content type <text/plain>
>>> not supported by client, deleting body.
>>>
>>> what's your more suggestions?
>>> Ξ’Β
>>> 2009/12/20 Nikos Balkanas <[email protected]>
>>>
>>>> And don't forget to retry kannel and repost detailed logs.
>>>>
>>>> ----- Original Message -----
>>>> *From:* Nikos Balkanas <[email protected]>
>>>> *To:* ΞΉβ„ΆΛ†Ξ¶Β³Ξ† <[email protected]> ; [email protected]
>>>> *Sent:* Saturday, December 19, 2009 10:02 PM
>>>> *Subject:* Re: What's the final solution for Kannel's Error while
>>>> gw_gethostbyname occurs, I can't resolve it at all.
>>>>
>>>> Hi,
>>>> Ξ’Β
>>>> Don't use double entries in /etc/hosts. You shouldn't have localhost
>>>> with 2 IP addresses. Use your hostname for the NIC address:
>>>> Ξ’Β
>>>> 192.168.11.8Ξ’Β Ξ’Β Ξ’Β <server1>
>>>> Ξ’Β
>>>> Then try pinging <server1>
>>>> Ξ’Β
>>>> BR,
>>>> Nikos
>>>>
>>>> ----- Original Message -----
>>>> *From:* ΞΉβ„ΆΛ†Ξ¶Β³Ξ† <[email protected]>
>>>> *To:* [email protected]
>>>> *Sent:* Saturday, December 19, 2009 2:08 PM
>>>> *Subject:* Re: What's the final solution for Kannel's Error while
>>>> gw_gethostbyname occurs, I can't resolve it at all.
>>>>
>>>> Thank you, Nikos.
>>>> I use centos 5.2. From a shell, I can ping 192.168.11.8, and I can ping
>>>> 192.168.11.8 from other PC in local network,too.
>>>> My hosts file is:
>>>> # Do not remove the following line, or various programs
>>>> # that require network functionality will fail.
>>>> 127.0.0.1Ξ’Β localhost.localdomainΞ’Β localhost
>>>> 192.168.11.8Ξ’Β localhost.localdomainΞ’Β localhost
>>>> ::1Ξ’Β localhost6.localdomain6Ξ’Β localhost6
>>>> What's your further suggestion?
>>>> 2009/12/19 Nikos Balkanas <[email protected]>
>>>>
>>>>> Hi,
>>>>> Ξ’Β
>>>>> You seem to have some issues with maillist etiquette. You shouldn't
>>>>> spam, and when referencing an old problem please do not delete previous
>>>>> messages. Otherwise all previous work has to be replicated.
>>>>> Ξ’Β
>>>>> From a shell, are you able to ping a server in your /etc/hosts file?
>>>>> Ξ’Β
>>>>> What linux/OS are you using?
>>>>> Ξ’Β
>>>>> BR,
>>>>> Nikos
>>>>>
>>>>> ----- Original Message -----
>>>>> *From:* Ξ’Β³Ξžβ€™Ξ’Β²Ξ’Β¨ <[email protected]>
>>>>> *To:* [email protected]
>>>>> *Sent:* Saturday, December 19, 2009 11:22 AM
>>>>> *Subject:* What's the final solution for Kannel's Error while
>>>>> gw_gethostbyname occurs, I can't resolve it at all.
>>>>>
>>>>> hi, friend.
>>>>> Ξ’Β Ξ’Β Ξ’Β I met this problem one month ago. I post a papaer named
>>>>> 'Kannel confuse me for two weeks, I need your help' to get help in this
>>>>> mailing list two weeks ago. That time I got some advices fromΞ’Β many
>>>>> freinds, but I can't make any progress. Ξ’Β My problem is described in
>>>>> this
>>>>> paper: http://www.kannel.org/pipermail/users/2009-December/009367.html
>>>>> Ξ’Β Ξ’Β Ξ’Β Ξ’Β I almost read all relatedΞ’Β paperΞ’Β in the internet
>>>>> by google. Some people think this should be an old glibc bug in this url
>>>>> http://www.opensubscriber.com/message/[email protected]/1946877.html,
>>>>> but I still failed after trying.
>>>>> Ξ’Β Ξ’Β Ξ’Β I can't do anything but posting paper in this mailing list
>>>>> now.
>>>>> Ξ’Β Ξ’Β Ξ’Β Thanks for any help.
>>>>> Ξ’Β
>>>>> boocheen
>>>>> 2009.12.19
>>>>> Ξ’Β
>>>>> Ξ’Β
>>>>> Ξ’Β
>>>>> Ξ’Β
>>>>> Ξ’Β
>>>>> Ξ’Β
>>>>> Ξ’Β
>>>>>
>>>>>
>>>>
>>>
>>
>