1 | изначальная версия редактировать | |
sip.conf [pc] type=friend host=dynamic nat=yes qualify=yes disallow=all allow=alaw context=external dtmfmode=rfc2833 callerid="PC" <pc> secret=password
extension.conf exten => _04XXX,1,Set(CALLERID(num)=00) exten => _04XXX,n,Dial(SIP/pc/${EXTEN:2:2},60,r)
*-2 (192.168.0.2)
sip.conf register => pc:password@192.168.0.1
[pco] type=friend host=192.168.0.1 nat=yes qualify=yes insecure=port,invite disallow=all allow=alaw context=internal dtmfmode=rfc2833 callerid="pc-2" <pc-2> username=pc secret=siptpc116
extension.conf
extensions.conf exten => _00XXX,1,Dial(SIP/pco/${EXTEN:2:3},60,r)
2 | No.2 Revision редактировать |
Сервер -
1 (192.168.0.1)sip.conf [pc] type=friend host=dynamic nat=yes qualify=yes disallow=all allow=alaw context=external dtmfmode=rfc2833 callerid="PC" <pc> secret=password
extension.conf exten => _04XXX,1,Set(CALLERID(num)=00) exten => _04XXX,n,Dial(SIP/pc/${EXTEN:2:2},60,r)
*-2 Сервер - 2 (192.168.0.2)
sip.conf register => pc:password@192.168.0.1
[pco] type=friend host=192.168.0.1 nat=yes qualify=yes insecure=port,invite disallow=all allow=alaw context=internal dtmfmode=rfc2833 callerid="pc-2" <pc-2> username=pc secret=siptpc116
extension.conf
extensions.conf exten => _00XXX,1,Dial(SIP/pco/${EXTEN:2:3},60,r)
3 | No.3 Revision редактировать |
Сервер - 1 (192.168.0.1)
sip.conf [pc] type=friend host=dynamic nat=yes qualify=yes disallow=all allow=alaw context=external dtmfmode=rfc2833 callerid="PC" <pc> secret=password
extension.conf exten => _04XXX,1,Set(CALLERID(num)=00) exten => _04XXX,n,Dial(SIP/pc/${EXTEN:2:2},60,r)
Сервер - 2 (192.168.0.2)
sip.conf register => pc:password@192.168.0.1
[pco] type=friend host=192.168.0.1 nat=yes qualify=yes insecure=port,invite disallow=all allow=alaw context=internal dtmfmode=rfc2833 callerid="pc-2" <pc-2> username=pc secret=siptpc116
extension.conf
extensions.conf exten => _00XXX,1,Dial(SIP/pco/${EXTEN:2:3},60,r)
4 | Поправил форматирование редактировать |
Сервер - 1 (192.168.0.1)
sip.conf
sip.conf
[pc]
type=friend
host=dynamic
nat=yes
qualify=yes
disallow=all
allow=alaw
context=external
dtmfmode=rfc2833
callerid="PC" <pc>
secret=password<PC>
secret=password
extension.conf
extension.conf
exten => _04XXX,1,Set(CALLERID(num)=00)
exten => Сервер - 2 (192.168.0.2)
sip.conf
register => pc:password@192.168.0.1sip.conf
register => pc:password@192.168.0.1
[pco]
[pco]
type=friend
host=192.168.0.1
nat=yes
qualify=yes
insecure=port,invite
disallow=all
allow=alaw
context=internal
dtmfmode=rfc2833
callerid="pc-2" <pc-2>
username=pc
secret=siptpc116secret=siptpc116
extension.conf
extensions.conf
extensions.conf
exten => _00XXX,1,Dial(SIP/pco/${EXTEN:2:3},60,r)_00XXX,1,Dial(SIP/pco/${EXTEN:2:3},60,r)
5 | No.5 Revision редактировать |
Сервер - 1 (192.168.0.1)
sip.conf
[pc]
type=friend
host=dynamic
nat=yes
qualify=yes
disallow=all
allow=alaw
context=external
dtmfmode=rfc2833
callerid="PC" <PC>
secret=password
extension.conf
exten => _04XXX,1,Set(CALLERID(num)=00)
exten => _04XXX,n,Dial(SIP/pc/${EXTEN:2:2},60,r)
Сервер - 2 (192.168.0.2)
sip.conf
register => pc:password@192.168.0.1
[pco]
type=friend
host=192.168.0.1
nat=yes
qualify=yes
insecure=port,invite
disallow=all
allow=alaw
context=internal
dtmfmode=rfc2833
callerid="pc-2" <pc-2>
username=pc
secret=siptpc116
extension.conf
extensions.conf
exten => _00XXX,1,Dial(SIP/pco/${EXTEN:2:3},60,r)
6 | No.6 Revision редактировать |
Сервер - 1 (192.168.0.1)
sip.conf
[pc]
type=friend
host=dynamic
nat=yes
qualify=yes
disallow=all
allow=alaw
context=external
dtmfmode=rfc2833
callerid="PC" <PC>
secret=password
extension.conf
exten => _04XXX,1,Set(CALLERID(num)=00)
_04XXX,1,Set(CALLERID(num)=000)
exten => _04XXX,n,Dial(SIP/pc/${EXTEN:2:2},60,r)
_04XXX,n,Dial(SIP/pc/${EXTEN:2:3},60,r)
Сервер - 2 (192.168.0.2)
sip.conf
register => pc:password@192.168.0.1
[pco]
type=friend
host=192.168.0.1
nat=yes
qualify=yes
insecure=port,invite
disallow=all
allow=alaw
context=internal
dtmfmode=rfc2833
callerid="pc-2" <pc-2>
username=pc
secret=siptpc116
extensions.conf
exten => _00XXX,1,Dial(SIP/pco/${EXTEN:2:3},60,r)
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.