can create a client account through vicidial/admin.php?
Posted: Fri Feb 09, 2007 9:24 pm
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...
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...