Configuration 如何在Asterisk server中为多个拨号计划配置相同的扩展名

Configuration 如何在Asterisk server中为多个拨号计划配置相同的扩展名,configuration,asterisk,sip,voip,dialplan,Configuration,Asterisk,Sip,Voip,Dialplan,sip.conf文件内容如下 [general] context=LOCAL allowoverlap=no udpbindaddr=0.0.0.0 tcpenable=no tcpbindaddr=0.0.0.0 transport=udp srvlookup=yes accept_outofcall_message=yes outofcall_message_context=LOCAL auth_message_requests=yes qualify=yes qualifyfreq=60

sip.conf文件内容如下

[general]
context=LOCAL
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
transport=udp
srvlookup=yes
accept_outofcall_message=yes
outofcall_message_context=LOCAL
auth_message_requests=yes
qualify=yes
qualifyfreq=60
disallow=all
allow=alaw,gsm
allowguest=no

[8001]
type=friend
host=dynamic
secret=1111

[8002]
type=friend
host=dynamic
secret=1111

[8003]
type=friend
host=dynamic
secret=1111

[7005]
type=friend
host=dynamic
secret=1111
[general]
static=yes
writeprotect=no
priorityjumping=no
autofallthrough=yes
clearglobalvars=no

[LOCAL]
exten => 8001,1,Dial(SIP/8001,20)
exten => 8002,1,Dial(SIP/8002,20)
exten => 8003,1,Dial(SIP/8003,20)
exten => 7005,1,Dial(SIP/7005,20)
extension.conf文件如下所示

[general]
context=LOCAL
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
transport=udp
srvlookup=yes
accept_outofcall_message=yes
outofcall_message_context=LOCAL
auth_message_requests=yes
qualify=yes
qualifyfreq=60
disallow=all
allow=alaw,gsm
allowguest=no

[8001]
type=friend
host=dynamic
secret=1111

[8002]
type=friend
host=dynamic
secret=1111

[8003]
type=friend
host=dynamic
secret=1111

[7005]
type=friend
host=dynamic
secret=1111
[general]
static=yes
writeprotect=no
priorityjumping=no
autofallthrough=yes
clearglobalvars=no

[LOCAL]
exten => 8001,1,Dial(SIP/8001,20)
exten => 8002,1,Dial(SIP/8002,20)
exten => 8003,1,Dial(SIP/8003,20)
exten => 7005,1,Dial(SIP/7005,20)
问题:现在,我想为上下文制定另一个新的拨号计划,名为WORLD(新功能)。 此上下文的扩展名为800180028003,与本地上下文相同,而不是7005上下文,此新功能的扩展名为7003


我需要如何做的指导/帮助。

您可以尝试在sip.conf中的[8001]sip user中添加context=WORLD。在每个用户中

都不清楚您有什么问题。把7003而不是7005放到新的拨号计划中,你试过了吗?@arheops在一个拨号计划中,我想要两个本地和世界上下文。本地将有80018002800370005。世界将有80018002800370003。是的,我们理解。那你为什么不写两个上下文呢?有什么问题?