[asterisk-users] Questions about extension.conf

Mikhail Lischuk mlischuk at itx.com.ua
Thu Nov 29 10:52:17 CST 2012


 

Shitian Long wrote 29.11.2012 18:40: 

> There is a part of dial
plan from sample extension.conf above. My Question is how "same =>" key
word works . 
> 
> Thanks

"same" is used for complex templates, if you
don't want to copy previous line or afraid you can make a typo. 

exten
=> _1XXNXXX,1,Answer 

same => n,HangUp 

is the substitution for:


exten => _1XXNXXX,1,Answer 

exten => _1XXNXXX,n,HangUp 

Also, it
makes grepping the particular exten in a file a lot easier, and if you
want to change some template for exten which has 50 lines, you don't
have to edit all 50 of them. 

-- 
With Best Regards
Mikhail Lischuk

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121129/4fa0c37d/attachment.htm>


More information about the asterisk-users mailing list