无法找到扩展程序''在上下文中,mycontext'用拨号()在星号中用选项t转移呼叫

时间:2014-11-25 09:51:25

标签: asterisk voip transfer phone-call ivr

所以我在我的代码中添加了一个呼叫转移工具。当用户拨打执行和执行选择的数量时,当时的执行人员有权将呼叫转移到特定的分机

[from-pstn]
exten=>_X.,1,Playback(hello-world)
exten=>_X.,n,set(__GOTO_ON_BLINDXFR=from-pstn^123456^1)
exten=>_X.,n,Goto(mycontext)

[mycontext]
exten=>_X.,1,dial(DAHDI/g0/0${9xxxxxxxxx},,mtG(recordvoice,${EXTEN},1))

[recordvoice]
exten=>_X.,1,Mixmonitor(myvoice.wav)

拨号

中的t选项说明
t: Allow the called user to transfer the call by hitting the blind xfer keys (features.conf) Does not affect transfers initiated through other methods.

    If you have set the variable GOTO_ON_BLINDXFR then the transferrer will be sent to the context|exten|pri (you can use ^ to represent | to avoid escapes), example: SetVar(GOTO_ON_BLINDXFR=woohoo^s^1); works with both t and T 

但是当呼叫连接并且执行时按“#”(默认呼叫转移键)然后呼叫不转移并且cli显示

Unable to find extension '' in context 'mycontext' 

2 个答案:

答案 0 :(得分:2)

默认情况下,星号在相同的上下文中搜索扩展名,并且它会收到一个空的扩展名。您可以在按#后按下扩展名来指定扩展名。在您的拨号方案中,您可以将其路由到不同的上下文。对于前

[from-pstn]
exten=>_X.,1,Playback(hello-world)
exten=>_X.,n,set(__GOTO_ON_BLINDXFR=mycontext^123456^1)
exten=>_X.,n,Goto(mycontext,111,1)

[mycontext]
exten=>123,1,Goto(from-pstn)
exten=>111,1,dial(DAHDI/g0/0${9xxxxxxxxx},,mtG(recordvoice,111,1))

[recordvoice]
exten=>111,1,Mixmonitor(myvoice.wav)

当连接呼叫时,在#之后按123转接呼叫。

干杯

答案 1 :(得分:0)

你会尝试

吗?

[mycontext] exten=>_X.,1,dial(DAHDI/g0/0${9xxxxxxxxx},,mtG(recordvoice,${EXTEN},1))

而不是n

相关问题