mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
fix macro usage examples (bug #4579)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -177,7 +177,7 @@ specified with the name of the macro. They are then reffered to by that same
|
||||
name. A catch block can be specified to catch special extensions.
|
||||
|
||||
macro std-exten( ext , dev ) {
|
||||
Dial(${ext}/${dev},20);
|
||||
Dial(${dev}/${ext},20);
|
||||
switch(${DIALSTATUS) {
|
||||
case BUSY:
|
||||
Voicemail(b${ext});
|
||||
@@ -194,7 +194,7 @@ macro std-exten( ext , dev ) {
|
||||
A macro is then called by preceeding the macro name with an ampersand.
|
||||
|
||||
context example {
|
||||
_5XXX => &std-exten(${EXTEN});
|
||||
_5XXX => &std-exten(${EXTEN}, "IAX2");
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user