<div dir="ltr">Thank you Thank you Thank you! I changed it to: exten => s/5553331111,1,Gosub(subBusy,s,1()) and it now works like a charm. Really appreciate the help!<div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El sáb, 20 nov 2021 a las 10:55, <<a href="mailto:asterisk@phreaknet.org">asterisk@phreaknet.org</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 11/20/2021 11:51 AM, Richard Reina wrote:<br>
> Since Macro is deprecated I am trying to eliminate it from my diaplan. I<br>
> believe I have successfully done so in the example below.<br>
><br>
> ; dial an internal extension<br>
> exten => 101,1  Macro(ext,100,Dahdi/15)<br>
><br>
> TO:<br>
><br>
> exten => 101,1,Dial(Dahdi/15,30)<br>
><br>
> So far it seems to work. However I also in my dialplan have call routing<br>
> examples that use macro that I am not able to figure out.<br>
><br>
> exten => s/5553331111,1,Macro(busy);<br>
><br>
> TO:<br>
><br>
> exten => s/5553331111,1,Gosub(subBusy,start,1());<br>
><br>
> [subBusy]<br>
> exten => s,1,Answer<br>
> exten => s,2,Wait(1)<br>
> exten => s,3,Playtones(480+620/500,0/500)<br>
> exten => s,4,Wait(12)<br>
> exten => s,5,Hangup<br>
><br>
> However, after reloading the diaplan and calling from the specified number<br>
> I get the error:<br>
><br>
> Gosub attempted to reach non-existent destination 'subBusy<br>
You are trying to gosub to the extension subBusy,start,1. But you have <br>
only defined subBusy,s,1.<br>
"s" has no special meaning in a subroutine as it did with Macro. Either <br>
change start to s or s to start.<br>
</blockquote></div>