|
Posted by Henk Oegema on 06/13/07 08:25
David Quinton wrote:
> On Tue, 12 Jun 2007 21:58:24 GMT, Henk Oegema <henk@oegema.com> wrote:
>
>>I'm using the script below to get the remaining balance of my VoipBuster
>>account.
>>I'm using this script in my Astrerisk PBX server.
> [snip]
>
>>I have been using this script without any problems.
>>However................after a new installation of Linux (SuSE102.2) and a
>>new installation of Asterisk, the result is always 0.
>
> [snip]
>
>>If I run the script directly from a web browser, it prints the RIGHT value
>>(print "Remaining credit: $bedrag\n"; //use this for testing)
>>
>>The funny thing is that the script worked correctly before I did a new
>>installation.
>>(I jus copied the old file to the new installation)
>>
>>Somebody who can help? ::)
>
> Maybe a long shot, but always look for the most obvious thing first...
> Is localhost in your hosts file?
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#
127.0.0.1 localhost
# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
192.168.1.100 asterisk.site asterisk
[Back to original message]
|