Hi,

Please read User's Guide about what http-interface-name means. It is not what 
you think. It is a good idea to read the user's guide, before configuring 
variables you don't know.

Why the old wapkannel.conf file? Always post current files in this list. We are 
not concerned about past problems. Do you still have a gw_gethostbyname issue?

BR,
Nikos
  ----- Original Message ----- 
  From: 陈波 
  To: [email protected] 
  Sent: Wednesday, December 23, 2009 9:04 AM
  Subject: Re: What's the final solution for Kannel's Error while 
gw_gethostbyname occurs, I can't resolve it at all.


  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: 陈波 
      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: ΞΉβ„ΆΛ†Ξ¶Β³Ξ† 
            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 
                To: ΞΉβ„ΆΛ†Ξ¶Β³Ξ† ; [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: ΞΉβ„ΆΛ†Ξ¶Β³Ξ† 
                  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: Ξ’Β³Ξžβ€™Ξ’Β²Ξ’Β¨ 
                      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
                      Ξ’Β 
                      Ξ’Β 
                      Ξ’Β 
                      Ξ’Β 
                      Ξ’Β 
                      Ξ’Β 
                      Ξ’Β 









Reply via email to