Код: Выделить всё
[101]
type=peer
username=101
host=192.168.1.198
insecure=port,invite
deny=0.0.0.0/0
permit=192.168.1.198/32
context=office_out
[102]
type=friend
call-limit=2
host=dynamic
username=102
secret=123
context=office_default
nat=yes
qualify=yes
canreinvite=no
;sipreinvite=no
allow=alaw
allow=ulaw
Код: Выделить всё
[office_default]
exten => 101,n,Dial(SIP/101)
Код: Выделить всё
exten => _9XXXXXXX,1,verbose(SIP/101/${EXTEN})
exten => _9XXXXXXX,n,Dial(SIP/101/${EXTEN})
Код: Выделить всё
== Using SIP RTP CoS mark 5
-- Executing [97443819@office_default:1] Verbose("SIP/102-0000000e", "SIP/101/93369010") in new stack
SIP/101/97443819
-- Executing [97443819@office_default:2] Dial("SIP/102-0000000e", "SIP/101/93369010") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/101/97443819
== Everyone is busy/congested at this time (1:0/1/0)
-- Auto fallthrough, channel 'SIP/102-0000000e' status is 'CONGESTION'