Today, I had setup asterisk testbeded at ENSEEIHT.
There are 3 computers.
Linux: Ubuntu 8.04
SIP Client: LinPhone (recommend) , Ekiga (there is sound problem)
SIP Client: X-Lite (Windows)
SIP Server: Asterisk
Asterisk acts as SIP proxy+registra server.
Linphone acts as SIP phone client.
Step by step:
1. Just install it by using synaptic => Asterisk & LinPhone
2. Modify sip.conf and extension.conf following below:
/etc/asterisk/sip.conf
4. Connect to asterisk terminal => #asterisk -r
5. You will have SIP console => *CLI>
6. CLI> sip show peers
// this command for check the sip status
7. CLI> sip show users
// this command show users
8. Start linphone (SIP Phone client), there is error message about port because linphone also use UDP: port 5060 same as asterisk service. So, you should change port of linphone. However, you can use #gconf-edit command for changing "Ekiga" listening port. In my case, I use UDP: port 5100
9. Go to client machine and start linphone (SIP Phone client). Client machine will not have port collision since it does not run asterisk server.
10. Register user with asterisk (SIP server). Account & User name is the same that specified in sip.conf.
eg. there are
11. After you registed with asterisk, please check the status in asterisk server with
*CLI> sip show peers
The status should label with "O.K."
12. You can call any one who already registered in asterisk server.
There are 3 computers.
Linux: Ubuntu 8.04
SIP Client: LinPhone (recommend) , Ekiga (there is sound problem)
SIP Client: X-Lite (Windows)
SIP Server: Asterisk
Asterisk acts as SIP proxy+registra server.
Linphone acts as SIP phone client.
Step by step:
1. Just install it by using synaptic => Asterisk & LinPhone
2. Modify sip.conf and extension.conf following below:
/etc/asterisk/sip.conf
/etc/asterisk/extension.conf
[general]
context=default
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
[100] ; this is the sip user name
secret=100 ; this is the password
type=friend
host=dynamic ;anyone can connect
context=from-internal
qualify=yes
port=5060
dtmfmode=rfc2833
[200]
secret=200
type=friend
host=dynamic
context=from-internal
qualify=yes
port=5060
dtmfmode=rfc2833
[300]
secret=300
type=friend
host=dynamic
context=from-internal
qualify=yes
port=5060
dtmfmode=rfc2833
3. Start asterisk service => #/etc/init.d/asterisk start [it normally starts after you install by synaptic][from-internal]
exten => 100,1,Dial(SIP/100)
exten => 200,1,Dial(SIP/200)
exten => 300,1,Dial(SIP/300)
4. Connect to asterisk terminal => #asterisk -r
5. You will have SIP console => *CLI>
6. CLI> sip show peers
// this command for check the sip status
7. CLI> sip show users
// this command show users
8. Start linphone (SIP Phone client), there is error message about port because linphone also use UDP: port 5060 same as asterisk service. So, you should change port of linphone. However, you can use #gconf-edit command for changing "Ekiga" listening port. In my case, I use UDP: port 5100
9. Go to client machine and start linphone (SIP Phone client). Client machine will not have port collision since it does not run asterisk server.
10. Register user with asterisk (SIP server). Account & User name is the same that specified in sip.conf.
eg. there are
Account Name=100,user=100, pass=100SIP URI looks like => 100@asteriskIP.fr
Account Name=200,user=200, pass=200
Account Name=300,user=300,pass=300
11. After you registed with asterisk, please check the status in asterisk server with
*CLI> sip show peers
The status should label with "O.K."
12. You can call any one who already registered in asterisk server.
No comments:
Post a Comment