Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asterisk 找不到扩展名'';在上下文中';mycontext';使用星号中拨号()中的选项t转接呼叫时_Asterisk_Voip_Transfer_Phone Call_Ivr - Fatal编程技术网

Asterisk 找不到扩展名'';在上下文中';mycontext';使用星号中拨号()中的选项t转接呼叫时

Asterisk 找不到扩展名'';在上下文中';mycontext';使用星号中拨号()中的选项t转接呼叫时,asterisk,voip,transfer,phone-call,ivr,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${9xxx

因此,我在我的代码中添加了一个呼叫转接设施。当用户拨打行政电话号码,行政人员选择时,行政人员有权将呼叫转接到特定分机

[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' 
你能试一下吗

[mycontext]
分机=>_X.,1,拨号(DAHDI/g0/0${9xxxxxxxxx},mtG(录音语音,${extn},1))


默认情况下,星号搜索同一上下文中的扩展名,而不是
n

,它会收到一个空扩展名。您可以在按#后按扩展名来指定扩展名,并在拨号计划中将其路由到不同的上下文

[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转接电话

干杯