<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">will exten => _13[0-4]X,1,Goto(12${EXTEN:3},1) work for you?<div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">-- </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Jim Dickenson</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="mailto:dickenson@cfmc.com">mailto:dickenson@cfmc.com</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">CfMC</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="http://www.cfmc.com/">http://www.cfmc.com/</a></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br></span></font></div></div></div></span><br class="Apple-interchange-newline"> </div><br><div><div>On Aug 17, 2009, at 9:58 AM, Gabriel Ortiz Lour wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi all,<br><br> When I have 2 masks that would like to execute the same logic, there is the way to use the Goto (or any other) command without changing the ${EXTEN}?<br><br>Eg. DID range is 1200-1349 -> call Macro(disca), what mask to use? (I just got it with 2 masks, but I didn't wanted to duplicate the dialplan for both)<br> <br><br>[test]<br>exten => _12XX,1,Set(DIR=3)<br>exten => _12XX,n,Set(GROUP(flux)=internal)<br>exten => _12XX,n,Macro(disca)<br><br>exten => _13[0-4]X,1,Goto(1200,1) ; what to put here to go to 12XX ??<br><br> The example above would not work because it will try to call 1200 always for the 13[0-4]X mask, since it will change the ${EXTEN} variable.<br><br>thanks already,<br>Gabriel Ortiz<br> _______________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br><br>AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>Register Now: <a href="http://www.astricon.net">http://www.astricon.net</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br></body></html>