where to change the server address? - SOLVED

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

where to change the server address? - SOLVED

Postby gersonsia » Tue Feb 06, 2007 10:42 pm

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....
Last edited by gersonsia on Mon Feb 12, 2007 9:12 pm, edited 1 time in total.
gersonsia
 
Posts: 25
Joined: Mon Feb 05, 2007 2:44 am
Location: Kuala Lumpur, Malaysia

Postby Op3r » Wed Feb 07, 2007 1:28 am

look at /etc/astguiclient.php
Get paid for US outbound Toll Free calls. PM me.
Op3r
 
Posts: 1432
Joined: Wed Jun 07, 2006 7:53 pm
Location: Manila

still cant find it...

Postby gersonsia » Wed Feb 07, 2007 2:41 am

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??
gersonsia
 
Posts: 25
Joined: Mon Feb 05, 2007 2:44 am
Location: Kuala Lumpur, Malaysia

Postby gerski » Sun Feb 11, 2007 10:58 am

just delete "defaultip=192.168.58.174 ;server" and if it doesn't work tr changing dtmfmode to rfc2833
gerski
 
Posts: 432
Joined: Fri Jul 14, 2006 6:21 am

Postby mflorell » Mon Feb 12, 2007 12:59 pm

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.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: No registered users and 92 guests