[asterisk-users] Including doesn't have any effect
Frank Vanoni
mailinglist at linuxista.com
Mon Jun 6 04:40:53 CDT 2016
On Sat, 2016-06-04 at 15:19 -0700, Steve Edwards wrote:
> Using a 'goto' to exit from a gosub is a bad idea.
Why?
> A better idea would be
> to set a channel variable and check it's value after the return, in the
> calling context.
The idea is to update the blacklist.conf whenever I want to add or
remove a specific number or an entire area code and leave the
extensions.conf untouched and to avoid complex regular expressions.
> Also, can a 'goto' in a subroutine reference an extension in the calling
> context? Seems weird, but 'dialplan' is a weird language :)
Well... I'm not an expert and my approach is by "trial and error". It
works perfectly. :-)
Frank
More information about the asterisk-users
mailing list