Page 1 of 1

where to change the server address? - SOLVED

PostPosted: Tue Feb 06, 2007 10:42 pm
by gersonsia
in my astguiclient.php, it always access to the localhost instead of the server IP.

i have changed the $VARDB_server to the server IP. But it still link to localhost after click the submit button.

What is the problem???

i saw the code in the dbconnect.php as below:

$local_DEF = 'Local/';

$conf_silent_prefix = '7';

$local_AMP = '@';

$ext_context = 'demo';

$recording_exten = '8309';

$WeBRooTWritablE = '1';

is it because of this code so my astguiclient always point to my localhost??

---------------------------------------------------------------------------------------------
SOLUTION:
go to /etc/httpd/conf/httpd.conf and change the ServerName....

PostPosted: Wed Feb 07, 2007 1:28 am
by Op3r
look at /etc/astguiclient.php

still cant find it...

PostPosted: Wed Feb 07, 2007 2:41 am
by gersonsia
i still cant find t from the note...

in http://myip/agc/astguiclient.php, it always links to localhost after i click submit.
in http://myip/vicidial/admin.php, it has no problem...it can always point to my IP instead locahost.localdomain

i wan configure my sip phone, sjphone in my pc. but i dunno how can i setup the sjphone in the server.
i follow some instructions to setup the sjphone in sip.conf and add in this code:
[sjphone2]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=gerson
secret=123456
host=dynamic
dtmfmode=inband
defaultip=192.168.58.174 ;server
qualify=1000
mailbox=2007

add this code in extensions.conf:
exten => 103,1,dial(SIP/sjphone2)
exten => sjphone2,1,goto(103,1) ; To be able to dial with text, "sjphone2"

but it is not work oso...

any good examples can show me how to solve this problem??

PostPosted: Sun Feb 11, 2007 10:58 am
by gerski
just delete "defaultip=192.168.58.174 ;server" and if it doesn't work tr changing dtmfmode to rfc2833

PostPosted: Mon Feb 12, 2007 12:59 pm
by mflorell
I wrote the ADMIN_update_server_ip.pl to easily update server_ip in all of the places it needs to be. Just run that script on command-line and follow the prompts.