<div dir="ltr">Hi<div><br></div><div>Try this:</div><div><br></div><div><div>[pbx]</div><div>exten => _1X.,1,Answer()</div><div>same => n,Set(VAR=012345*543210)</div><div>same => n,Set(VAR1=${CUT(VAR,*,1)}) ;012345</div><div>same => n,Set(VAR1=${CUT(VAR,*,2)}) ;543210</div></div><div><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><br><div><table style="font-family:'Times New Roman'"><tbody><tr><td rowspan="3"><a href="mailto:rafaelsnsa@gmail.com" title="Enviar um e-mail para mim" target="_blank"><img alt="Sua Foto" src="https://lh5.googleusercontent.com/-4_Ww7w9G_BM/AAAAAAAAAAI/AAAAAAAAD40/IgVDbZCLz5w/s120-c/photo.jpg" width="70" height="70" style="clear:left;float:left;margin-bottom:5px;margin-right:5px"></a></td><td><span style="font-family:'Trebuchet MS',Trebuchet,sans-serif;font-size:22px;font-weight:bold">Rafael S. Saraiva</span></td></tr><tr><td><span style="font-family:'Trebuchet MS',Trebuchet,sans-serif">Porto Alegre - RS | Mobile: <a><img src="http://www.sidneyrezende.com/srzd/7ano/imagens/bandeira-brasil.png" title="Brazil +55" border="0"></a> (51) 8174-7956</span></td></tr><tr><td><a href="http://br.linkedin.com/pub/rafael-saraiva/52/aab/230" target="_blank"><img src="https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png" border="0" width="160" height="25" title="View Rafael Saraiva's profile on LinkedIn"></a> <a href="https://plus.google.com/u/0/+RafaelSaraivaRS" target="_blank"><img src="https://ssl.gstatic.com/s2/oz/images/faviconr2.ico" border="0" width="25" height="25" title="View Rafael Saraiva's profile on Google+"></a></td></tr></tbody></table></div></div></div></div>
<br><div class="gmail_quote">2015-12-05 14:21 GMT-02:00 Frank <span dir="ltr"><<a href="mailto:mailinglist@linuxista.com" target="_blank">mailinglist@linuxista.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Asterisk List<br>
<br>
Given, as an example, the following sequence<br>
<br>
012345*543210<br>
<br>
I would like to store into a variable all digits before "*" (012345) and<br>
in a different variable all digits after the "*" (543210) for further<br>
processing in the dial plan.<br>
<br>
The length of the dialed sequence may be variable and "*" is the<br>
separator between the two values to store.<br>
<br>
Any idea?<br>
<br>
Thanks<br>
<br>
Francesco<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">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" rel="noreferrer" target="_blank">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" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</font></span></blockquote></div><br></div></div>