Page 1 of 1

can create a client account through vicidial/admin.php?

PostPosted: Fri Feb 09, 2007 9:24 pm
by gersonsia
im new on asterisk...
i got using the astguiclient, n i wonder know can i create a phone for a client through the vicidial/admin.php without edit the sip.conf n extensions.conf ?

for example:
i wan create a client account called 'sjphone1' n his IP is '192.168.58.123'
asterisk server is '192.168.0.10'.

then wat i did was add in the following code in sip.conf:
[sjphone1]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=coolman
secret=coolman
host=dynamic
dtmmode=inband
defaultip=192.168.58.123
qualify=1000
mailbox=2001
context=default
nat=no

then add in the code in extensions.conf:
[default]
; Extension SJPhone line 1
exten => 9000,1,Dial,sip/sjphone|30|to
exten => sjphone,goto(9000,1)
exten => 2000,2,Voicemail,u2000

after tat, i add a new phone in vicidial/admin.php n with the following information.
Phone extension: sjphone
Dialplan Number: 9000
Voicemail Box: 2000
Outbound CallerID: 13
Phone IP address: 192.168.58.123
Computer IP address: 192.168.58.123
Server IP: 192.168.0.10
Login: sjphone1
Password: sjphone1
Client Protocol: SIP
... ...
... ...

is it the correct way i did??
can i just add a new phone in vicidial/admin.php without add in the code insip.conf n extensions.conf?

i dunno y my this method sometimes work sometimes not work...

PostPosted: Sat Feb 10, 2007 12:51 am
by mflorell
You do need to add entries in sip.conf and extensions.conf to properly add a phone entry in astGUIclient.

This is a feature that I plan on adding to astGUIclient at some time in the future.

PostPosted: Mon Feb 12, 2007 5:48 am
by dlapitan
then wat i did was add in the following code in sip.conf:
[sjphone1]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=coolman
secret=coolman
host=dynamic
dtmmode=inband
defaultip=192.168.58.123
qualify=1000
mailbox=2001
context=default
nat=no

then add in the code in extensions.conf:
[default]
; Extension SJPhone line 1
exten => 9000,1,Dial,sip/sjphone1|30|to
;exten => 9000,1,Dial,sip/sjphone|30|to
exten => sjphone,goto(9000,1)
exten => 2000,2,Voicemail,u2000

after tat, i add a new phone in vicidial/admin.php n with the following information.
Phone extension: sjphone
Dialplan Number: 9000
Voicemail Box: 2000
Outbound CallerID: 13
Phone IP address: 192.168.58.123
Computer IP address: 192.168.58.123
Server IP: 192.168.0.10
Login: sjphone1
Password: sjphone1
Client Protocol: SIP



Please read the Vicidial manager or if you dont have it, please buy. It will help you a lots.