Код: Выделить всё
[Oct 25 13:05:26] NOTICE[10790]: chan_sip.c:22753 handle_request_invite: Call from '200' (192.168.1.20:5060) to extension '88005000223' rejected because extension not found in context 'office'.
Extensions.conf
Код: Выделить всё
[office]
include => external
exten => 200,1,NoOp
exten => 200,n,Dial(SIP/200,30,rt)
exten => 200,n,Hangup
exten => 201,1,NoOp
exten => 201,n,Dial(SIP/201,30,rt)
exten => 201,n,Hangup
[frompstn]
exten => 500,1,NoOp
exten => 500,n,Dial(SIP/200&SIP/201,30,rt)
exten => 500,n,Hangup
[external]
exten => _[78]49[59]XXXXXXX,1,Answer
exten => _[78]49[59]XXXXXXX,n,Dial(SIP/ext/${EXTEN})
exten => _[78]49[59]XXXXXXX,n,Hangup
exten => _[78]9XXXXXXXXX,1,Answer
exten => _[78]9XXXXXXXXX,n,Dial(SIP/ext/${EXTEN})
exten => _[78]9XXXXXXXXX,n,Hangup
Код: Выделить всё
[ext]
trunkname = ext
host = dynamic
type = friend
username = ext
secret = xxx
qualify = yes
context = frompstn
call-limit=1
deny=0.0.0.0/24
permit=192.168.1.0/24
[500]
type = friend
host = dynamic
username = 500
secret = xxx
dtmfmode = rfc2833
context = frompstn
callcounter = yes
call-limit=1
linenumber = 1
deny=0.0.0.0/24
permit=192.168.1.0/24
[200]
type = friend
host = dynamic
username = 200
secret = xxx
dtmfmode = rfc2833
context = office
callerid = "" <200>
callcounter = yes
linenumber = 1
canreinvite = no
insecure = no
call-limit = 1
disallow = all
allow = ulaw
qualify = yes
deny=0.0.0.0/24
permit=192.168.1.0/24
[201]
type = friend
host = dynamic
username = 201
secret = xxx
dtmfmode = rfc2833
context = office
callerid = "" <201>
callcounter = yes
linenumber = 1
canreinvite = no
insecure = no
pickupgroup =
call-limit = 100
disallow = all
allow = ulaw
qualify = yes
deny=0.0.0.0/24
permit=192.168.1.0/24