Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/12.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 星号上下文配置_Asterisk_Voip - Fatal编程技术网

Asterisk 星号上下文配置

Asterisk 星号上下文配置,asterisk,voip,Asterisk,Voip,我的星号配置有三个上下文,我想对其进行配置。 这是my extensions.conf与我的用户: [agent] exten => 100,1,NoOp(Communication en cours) exten => 100,n,Dial(SIP/legende,10) exten => 100,n,Hangup() exten => 200,1,NoOp(Communication en cours) exten => 200,n,Dial(SIP/malot

我的星号配置有三个上下文,我想对其进行配置。 这是my extensions.conf与我的用户:

[agent]
exten => 100,1,NoOp(Communication en cours)
exten => 100,n,Dial(SIP/legende,10)
exten => 100,n,Hangup()
exten => 200,1,NoOp(Communication en cours)
exten => 200,n,Dial(SIP/malotru,10)
exten => 200,n,Hangup()

[sources]
exten => 300,1,NoOp(Communication en cours)
exten => 300,n,Dial(SIP/pepe,10)
exten => 300,n,Hangup()
exten => 400,1,NoOp(Communication en cours)
exten => 400,n,Dial(SIP/meme,10)
exten => 400,n,Hangup()

[analyste]
exten => 500,1,NoOp(Communication en cours)
exten => 500,n,Dial(SIP/cyclone,10)
exten => 500,n,Hangup()
exten => 600,1,NoOp(Communication en cours)
exten => 600,n,Dial(SIP/lafouine,10)
exten => 600,n,Hangup()
我希望来自上下文“源”的用户不能呼叫任何人,但他们可以接收来自其他人的呼叫,我希望上下文“分析师”只能呼叫“代理”用户。
也许我们必须添加regex?

如果您想要上下文不能调用任何东西,请使用类似的方法

[sources]
exten => _.,1,Answer
exten => _.,n,Playback(pbx-invalid); or put name of any sound file you want.
来自其他上下文的传入呼叫取决于该上下文,也就是说,如果传入现在起作用,它将起作用