[asterisk-users] Cascading macros in 1.8. Bug or feature ?

Olivier oza_4h07 at yahoo.fr
Mon Sep 3 16:09:32 CDT 2012


Hello,


In Freepbx 2.10, for instance, you can read several instances of the
following pattern :


In extensions.conf
#include extensions_additional.conf
#include extensions_custom.conf


In extensions_additional.conf
[macro-hangupcall]
include => macro-hangupcall-custom
exten => s,1,Noop(foobar1)


In extensions_custom.conf
[macro-hangupcall-custom]
exten => s,1,Noop(foobar2)


When using "dialplan show s at macro-hangupcall", asterisk (1.8.12) displays
both foobar1 and foobar2 dialplans, in this order.
Then asterisk ignores foobar2 dialplan and only run foobar1 diaplan.

Would you rate this a bug or a feature ?
To me, asterisk should both :
1. list foobar2 dialplan first (with dialplan show) as the include
statement is the first one,
2. run foobar2 dialplan it is the first listed.

Opinions ?
Suggestions ?

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120903/9ab51b5e/attachment.htm>


More information about the asterisk-users mailing list