星号 - 错误的上下文 - 入站呼叫

时间:2015-03-19 20:08:13

标签: handler asterisk sip

我收到了这个警告:

pbx.c:6647 __ast_pbx_run: Channel 'SIP/ipgate.sk-00000002' sent to invalid extension but no invalid handler: context,exten,priority=to_pstn,0650941362,1

当我尝试拨打电话或拨打电话时,拨号方案会转到我仅使用外拨电话[to_pstn]的上下文。你们知道会导致这个问题的原因吗?

从* CLI(详细5)我只得到这个。入站和出站的相同消息:

-- Executing [0902135633@default:1] Goto("SIP/201-00000005", "to_pstn,0902135633,1") in new stack
    -- Goto (to_pstn,0902135633,1)
[Mar 19 21:01:30] WARNING[4846][C-00000005]: pbx.c:6647 __ast_pbx_run: Channel 'SIP/201-00000005' sent to invalid extension but no invalid handler: context,exten,priority=to_pstn,0902135633,1

的extensions.conf

[from_pstn]
exten => _X.,1,Goto(IVR_IN,100,1)

[to_pstn]
exten => _XXXXXXXXXX,n,Dial(SIP/${EXTEN}@my_provider,20)

sip.conf

[my_provider]
canreinvite=yes
username=**myUSERNAME**
fromuser=**myFROMUSER**
secret=**mySECRET**
context=from_pstn
type=peer
fromdomain=**myDOMAIN**
host=ipgate.sk
dtmfmode=rfc2833
disallow=all
allow=alaw
allow=ulaw
nat=yes
insecure=port,invite

1 个答案:

答案 0 :(得分:2)

您的extensions.conf有错误:

[to_pstn]
exten => _XXXXXXXXXX,n,Dial(SIP/${EXTEN}@my_provider,20)

应该是

[to_pstn]
exten => _XXXXXXXXXX,1,Dial(SIP/${EXTEN}@my_provider,20)

...你不能用" n"

开始优先考虑

在控制台试试dialplan show to_pstn