<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Hello Mike,<br>
<br>
1) the best solution for this is the "s.select" transformation
[1]<br>
2) if you want to extract the user from the Diversion URI, you
can use the "uri.user" transformation [2]<br>
<br>
[1]: <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-Tran-1-12#toc6">http://www.opensips.org/Documentation/Script-Tran-1-12#toc6</a><br>
[2]:
<a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-Tran-1-12#toc22">http://www.opensips.org/Documentation/Script-Tran-1-12#toc22</a><br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 05/21/2014 09:59 AM, Mike Claudi Pedersen wrote:<br>
</div>
<blockquote
cite="mid:CADats6Ef78GpZ_B7bw+FbNC7Ubj4MVwKyrQosWM+i=trKRpaPQ@mail.gmail.com"
type="cite">
<div dir="ltr">is there a transformation that allows me to cut a
str at a spcial char like @ or *<br>
i need this to be able to cut a certain pice from a string
sometime its +0212345678*234 and sometimes its +021122345678*234
and this makes it hard to use the {s.substr,x,y} transformation<br
clear="all">
<div><br>
</div>
a 2nd question.
<div>in special cases i need to replace the $fU with $di before
forwarding the request, is this possible and if yes.. how?</div>
<div><br>
</div>
<div>any help appreciated</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>