Try this:<br><br><action application="set" data="my_number=${regex <a href="mailto:18005551212@tf.voipmich.com">18005551212@tf.voipmich.com</a>|^(\d+)|%1}"/><br><br>Also, you may need 'inline="true"' depending on when you need the value that ends up in ${my_number}.<br>
<br>-MC<br><br><div class="gmail_quote">On Tue, Mar 13, 2012 at 12:39 AM, Miha Zoubek <span dir="ltr"><<a href="mailto:miha@softnet.si">miha@softnet.si</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi @Brian,<br>
<br>
I was looking at Enum.conf but having problem with modifying it.<br>
<br>
<small><route service="E2U+SIP" regex="sip:(.*)"
replace="sofia/internal/$1"/></small><br>
<br>
I can remove <small>sofia/internal/ </small>and Enum will return
just <a href="mailto:18005551212@tf.voipmich.com" target="_blank">18005551212@tf.voipmich.com</a>.<br>
<br>
What is the best why to get rid of @<a href="http://tf.voipmich.com" target="_blank">tf.voipmich.com</a> as I need only
number?<br>
<br>
I was trying to trim it like exp.
{<a href="mailto:18005551212@tf.voipmich.com:10:10" target="_blank">18005551212@tf.voipmich.com:10:10</a>} but this is not working properly
as length of number change.<br>
<br>
Thanks!<br>
<br>
Regards,<br>
Miha<br>
<span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="font-size:10px"><br>
<a href="mailto:sofia/internal/18005551212@tf.voipmich.com" target="_blank"></a></span></span><br>
<br>
<br>
<br>
<br>
On 03/08/2012 04:10 PM, Brian West wrote:
<blockquote type="cite">or modify enum.conf to only give you the numer?
<div><br>
</div>
<div>/b</div>
<div><br>
<div>
<div>On Mar 8, 2012, at 4:54 AM, Miha Zoubek wrote:</div>
<br>
<blockquote type="cite"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="font-size:10px">Hi,<br>
<br>
how can I strip this<span> </span><a href="mailto:sofia/internal/18005551212@tf.voipmich.com" target="_blank">sofia/internal/18005551212@tf.voipmich.com</a>,
so that I would have only number <a href="tel:18005551212" value="+18005551212" target="_blank">18005551212</a>?<br>
<br>
This return enum.<br>
<br>
<br>
Thanks!<br>
Miha</span></span></blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>