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 -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users