Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

История изменений [назад]

нажмите, чтобы скрыть/показать версии 1
изначальная версия
редактировать

ответил 2011-01-16 02:35:35 +0400

amonra Gravatar amonra flag of Ukraine

http://lantec.ua/
    • 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)

    • Сервер - 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)

Сервер - 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 => _04XXX,n,Dial(SIP/pc/${EXTEN:2:2},60,r)

_04XXX,n,Dial(SIP/pc/${EXTEN:2:2},60,r)

Сервер - 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=siptpc116

secret=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)

Сервер - 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)

Сервер - 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.