До негопроброшено два физических интерфейса eth0 и eth1.
eth0 - локальная сеть (интернет-шлюз,ПК,SIP телефоны)
eth1 - SIP-провайдер.
если интерфейс eth1 отключен звонки между внутренними телефонам выполняются без задержек.
если подключить eth1 появляется длительное ожидание до и после набора внутренних и внешних номеров.
sip.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[general]
allowguest=no ; Allow or reject guest calls (default is yes)
alwaysauthreject=yes
context=default
externip=176.193.69.223
localnet=192.168.100.0/255.255.255.0
register => number:password@home.voip.chebnet.com/number
allowoverlap=no
srvlookup=yes
udpbindaddr=0.0.0.0 ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
;tcpenable=yes ; Enable server for incoming TCP connections (default is no)
;tcpbindaddr=0.0.0.0 ; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces)
transport=udp ; Set the default transports. The order determines the primary default transport.
[cisco](!)
type=friend
insecure=invite,port
context=office
fromdomain=192.168.100.235
host=dynamic
qualify=yes
disallow=all
allow=alaw
allow=ulaw
language=ru
dtmfmode=rfc2833
directmedia=nonat
call-limit=1
nat=no
deny=0.0.0.0/0.0.0.0
permit=192.168.100.0/255.255.255.0
[100](cisco)
secret=1234
[101](cisco)
secret=1234
[chebnet]
fromdomain=home.voip.chebnet.com
host=home.voip.chebnet.com
insecure=invite,port
port=5060
qualify=no
type=friend
username=username
fromuser=username
secret=password
disallow=all
allow=alaw
allow=ulaw
context=incoming
dtmfmode=rfc2833
directmedia=nonat
transport=udp
nat=force_rport,comedia
allowguest=no ; Allow or reject guest calls (default is yes)
alwaysauthreject=yes
context=default
externip=176.193.69.223
localnet=192.168.100.0/255.255.255.0
register => number:password@home.voip.chebnet.com/number
allowoverlap=no
srvlookup=yes
udpbindaddr=0.0.0.0 ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
;tcpenable=yes ; Enable server for incoming TCP connections (default is no)
;tcpbindaddr=0.0.0.0 ; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces)
transport=udp ; Set the default transports. The order determines the primary default transport.
[cisco](!)
type=friend
insecure=invite,port
context=office
fromdomain=192.168.100.235
host=dynamic
qualify=yes
disallow=all
allow=alaw
allow=ulaw
language=ru
dtmfmode=rfc2833
directmedia=nonat
call-limit=1
nat=no
deny=0.0.0.0/0.0.0.0
permit=192.168.100.0/255.255.255.0
[100](cisco)
secret=1234
[101](cisco)
secret=1234
[chebnet]
fromdomain=home.voip.chebnet.com
host=home.voip.chebnet.com
insecure=invite,port
port=5060
qualify=no
type=friend
username=username
fromuser=username
secret=password
disallow=all
allow=alaw
allow=ulaw
context=incoming
dtmfmode=rfc2833
directmedia=nonat
transport=udp
nat=force_rport,comedia
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[general]
static=yes
writeprotect=no
[globals]
[default]
[office]
exten => _1XX,1,Dial(SIP/${EXTEN})
exten => _XXX.,1,Dial(SIP/${EXTEN}@chebnet)
[incoming]
exten => _X.,1,Dial(SIP/104)
static=yes
writeprotect=no
[globals]
[default]
[office]
exten => _1XX,1,Dial(SIP/${EXTEN})
exten => _XXX.,1,Dial(SIP/${EXTEN}@chebnet)
[incoming]
exten => _X.,1,Dial(SIP/104)