<p dir="ltr"><br>
On Mar 18, 2016 8:27 PM, "Steve Edwards" <<a href="mailto:asterisk.org@sedwards.com">asterisk.org@sedwards.com</a>> wrote:<br>
>><br>
>> On Fri, 18 Mar 2016, Trey Hilyard wrote:<br>
>><br>
>>> I thought this would be as easy as<br>
>>> exten => _XXXXXXXXXX\;rn=+19136630000,1,Goto(from_pstn,${EXTEN:0:10})<br>
><br>
><br>
> How about something like:<br>
><br>
> [parse-lrn]<br>
> exten = _x.,1, verbose(1,[${EXTEN}@${CONTEXT}])<br>
> same = n, set(DID=${CUT(EXTEN,\;,1)})<br>
> same = n, set(LRN=${CUT(EXTEN,\;,2):3:12})<br>
> same = n, execif($["${LRN:0:1}" = "+"]?set(LRN=${LRN:1}))<br>
> same = n, execif($["${LRN:0:1}" = "1"]?set(LRN=${LRN:1}))<br>
> same = n, goto(${LRN},${DID},1)<br>
> same = n, hangup()</p>
<p dir="ltr">That's a good one. One thing it doesn't do is actually validate that the LRN is mine, but that shouldn't be tough to add now the the LRN is in its own variable. Thanks for the help!</p>
<p dir="ltr">><br>
> -- <br>
> Thanks in advance,<br>
> -------------------------------------------------------------------------<br>
> Steve Edwards <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>
> <a href="https://www.linkedin.com/in/steve-edwards-4244281">https://www.linkedin.com/in/steve-edwards-4244281</a><br>
><br>
> -- <br>
> _____________________________________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br>
> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
> <a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</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><br>
</p>