dial_exec_full: Unable to create channel of type 'SIP' (caus
Добавлено: 24 май 2011, 21:33
при исходящем вызове получаю ошибку.
sip.conf
extensions.conf
входящая связь проходит. в сипнете с этим же конфигом, связь работает в обе стороны. сижу за натом порты проброшены реальник есть.
Код: Выделить всё
dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
Код: Выделить всё
[general]
register = 74959845383:12345@sip.discounttelecom.ru
bindport = 5060
bindaddr = 0.0.0.0
context=default
allowguest=yes
allowoverlap=no
realm=McConfig VoIP Server
allow = g711
allow = alaw
srvlookup=yes
language=ru
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
[authentication]
[sipnet]
type=friend
insecure=invite
secret=12345
username=74959845383
fromuser=74959845383
fromdomain=sip.discounttelecom.ru
host=sip.discounttelecom.ru
port=5060
dtmfmode=rfc2833
allow = g711,A-law
allow = alaw
canreinvite=no
;============================ Users ===========================
[1000] ;ITCrowd
qualify=yes
context=LocalAndPSTNAndMobileAndLD
type=friend
username=1000
secret=
nat=no
allow=g711
host=dynamic
callerid="IT Crowd"
callgroup=1
pickupgroup=1
language=ru
canreinvite=yes
mailbox=1000@fantasyworld.org,1000
[1001] ;Support
qualify=yes
context=LocalAndPSTNAndMobileAndLD
type=friend
username=1001
secret=
nat=yes
allow=all
host=dynamic
callerid="Support"
callgroup=1
pickupgroup=1
language=ru
canreinvite=yes
mailbox=1001@fantasyworld.org,1001
Код: Выделить всё
[general]
priorityjumping=yes
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
[globals]
DYNAMIC_FEATURES=automon
[default]
include => 74959845383
include => OSoftSipNet
include => NSoftSipNet
include => LocalOnly
include => LocalAndPSTN
include => LocalAndPSTNAndMobile
include => LocalAndPSTNAndMobileAndLD
;==================== Start SIPNET IN =======================
[74959845383]
exten => s,1,Answer
exten => s,2,Set(TIMEOUT(digit)=5)
exten => s,3,Set(TIMEOUT(response)=10)
exten => s,4,BackGround(test/1)
exten => s,5,WaitExten(5)
exten => s,6,Dial(SIP/1000,20,otmw)
exten => s,7,Voicemail
exten => s,8,Hangup
exten => i,1,Dial(SIP/1000,300,otmw)
exten => i,2,Hangup
exten => _97XXXX,1,Goto(LocalAndPSTNAndMobileAndLD,${EXTEN},1)
;================== end SIPNET IN ==========================
;================== Start CONTEXT ==========================
[OSoftSipNet]
exten => _9XXXXXXX,1,Dial(SIP/${EXTEN:1}@sip.discounttelecom.ru)
[NSoftSipNet]
include => OSoftSipNet
exten => _900XXXXXXXX,1,Dial(SIP/${EXTEN:1}@sip.discounttelecom.ru)
[LocalOnly]
include => NSoftSipNet
exten => _XXXX,1,Dial(SIP/${EXTEN:0})
[LocalAndPSTN]
include => LocalOnly
exten => _97XXXXXXX,1,Dial(SIP/8383${EXTEN:1}@sip.discounttelecom.ru)
[LocalAndPSTNAndMobile]
include => LocalAndPSTN
exten => _97XXXXXXXXX,1,Dial(SIP/{$EXTEN:1}@sip.discounttelecom.ru)
[LocalAndPSTNAndMobileAndLD]
include => LocalAndPSTNAndMobile
exten => _97XXXXXXXXXX,1,Dial(SIP/${EXTEN:1}@sip.discounttelecom.ru)
;================== End CONTEXT ============================
;=================== Start VOICE MAIL ======================
exten => 8000,1,VoiceMailMain
exten => 8000,2,Hangup
;=================== End VOICE MAIL ========================
;=================== Start ALL USERS =======================
; exten => 1000,1,Dial(SIP/1000,300,rtwW)
; exten => 1000,2,Hangup
exten => 1000,1,Dial(SIP/1000,8,rtwW)
exten => 1000,2,Dial(SIP/79015582351@sip.discounttelecom.ru,300,rtwW)
exten => 1000,3,Hangup
exten => 1001,1,Dial(SIP/1001,8,rtwW)
exten => 1001,2,Voicemail
exten => 1001,3,Hangup
; exten => 1000,1,GotoIfTime(9:00-18:00|mon-fri|*|*?4)
; exten => 1000,2,Dial(SIP/1000,15,rtwW)
; exten => 1000,3,Goto(8)
; exten => 1000,4,Dial(SIP/1000.15,rtwW)
; exten => 1000,5,Set(CALLERID(num)=3578378)
; exten => 1000,6,Set(CALLERID(name)=my_astrerisk)
; exten => 1000,7,Dial(SIP/79015582351@sip.discounttelecom.ru,300,Wj)
; exten => 1000,8,Hangup
;==================== End ALL USERS ========================