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

 
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to