当context中使用include => context_name时,context的执行顺序是Master-->switch-->include 。switch可以用来查询远程asterisk服务器上的分机情况。但只对IAX2协议有效。其用法是:
switch => IAX2/<username>:[<password>]@<ast_remote>/<context>
该功能在组建大型的asterisk系统时很有用.
转载于:https://blog.51cto.com/strugglelinux/560735