Re: [asterisk-users] Macro vs sub

2012-01-18 Thread Jonas Kellens
*Sent*: Tuesday, January 17, 2012 5:53 AM *To*: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com *Subject*: [asterisk-users] Macro vs sub Hello list, can I conclude that it is better to use sub's in stead of macro's ? I read the following in an Asterisk-book

Re: [asterisk-users] Macro vs sub

2012-01-18 Thread Sammy Govind
*: Tuesday, January 17, 2012 5:53 AM *To*: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com asterisk-users@lists.digium.com *Subject*: [asterisk-users] Macro vs sub Hello list, can I conclude that it is better to use sub's in stead of macro's ? I read

Re: [asterisk-users] Macro vs sub

2012-01-18 Thread Jonas Kellens
, January 17, 2012 5:53 AM *To*: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com mailto:asterisk-users@lists.digium.com *Subject*: [asterisk-users] Macro vs sub Hello list, can I conclude that it is better to use sub's in stead

Re: [asterisk-users] Macro vs sub

2012-01-18 Thread Matthew Jordan
- Original Message - From: Jonas Kellens jonas.kell...@telenet.be To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Wednesday, January 18, 2012 6:36:35 AM Subject: Re: [asterisk-users] Macro vs sub Thank you for sharing your

Re: [asterisk-users] Macro vs sub

2012-01-18 Thread Jonas Kellens
On 01/18/2012 01:51 PM, Matthew Jordan wrote: Anyone else ? Maybe one of the developers can confirm this risk of working with macros ? I don't think you need an Asterisk developer to tell you the risks of using macros in deeply nested situations. Quoting the documentation of Macro: Because

Re: [asterisk-users] Macro vs sub

2012-01-18 Thread Sammy Govind
Hi, why don't you try write two macros only and recursively call both of them incrementing a counter each time you call the inner macro. Also print(NOOP) system stats along with the counter. You'll soon see what happens. The para Matthew quoted is cent percent true. But if you don't need to call

[asterisk-users] Macro vs sub

2012-01-17 Thread Jonas Kellens
Hello list, can I conclude that it is better to use sub's in stead of macro's ? I read the following in an Asterisk-book : GoSub() works in a different manner from Macro(), though, in that it doesn't have the stack space requirements, so it nests effectively. Essentially, GoSub() acts like

Re: [asterisk-users] Macro vs sub

2012-01-17 Thread Bryant Zimmerman
Sent: Tuesday, January 17, 2012 5:53 AM To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Subject: [asterisk-users] Macro vs sub Hello list, can I conclude that it is better to use sub's in stead of macro's ? I read the following in an Asterisk