Hi. I am going to migrate few lines to mark CDR’s fields accountcode and userfield before the call is placed onto a trunk; that’s because i am migrating another old FPBX15 to 17 (and as you know macro-dialout-trunk-predial-hook cannot be used anymore with asterisk >= 20 ). I will replace it with a subroutine. In wich context have i to call my subroutine to reach same result ?
It looks to me as though the name is unchanged, but it now ends with Return, rather than MacroExit.
None, problem is not the exit mode; problem is that macros are not supported in Asterisk >=20 and they have to be replaced with subroutines. Waiting for someone having experience about this common problem. Thanks.
That is the only change to the dummy hook code.
The name hasn’t changed. It is still called macro-…, and the context hasn’t changed.
The script class, ext_macro, that is used to generate the hook call, has been changed to generate a Gosub:
So there is no change in the code that invokes this, and hasn’t been for 11 years.