<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello,<br>
<br>
if you just need to remove first 3 digits, use:<br>
<br>
strip(3);<br>
<br>
If the number of digits to strip is variables, use strip
transformation:<br>
<br>
-
<a class="moz-txt-link-freetext" href="http://www.kamailio.org/wiki/cookbooks/4.0.x/transformations#sstrip_len">http://www.kamailio.org/wiki/cookbooks/4.0.x/transformations#sstrip_len</a><br>
<br>
If does not work for you giving errors, paste here what you have
in the config for that part.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 4/3/13 7:54 PM, julian arsanches wrote:<br>
</div>
<blockquote
cite="mid:CAG0Kfxu=qYP=8a_69U+df=frhONiQxMNC3mKvBnYyXWuy0Yn6A@mail.gmail.com"
type="cite"><span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hi
am new to kamilio , but able to make calls, i need to do
something really simple if someone can give me an example of it
i will be gratefull.</span>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">just
before the call gets relayed i need to delete a prefix from the
sip uri so it gets transformed to the same uir but less 3
digits.</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">for
example <a moz-do-not-send="true"
href="mailto:sip%3A123xxx@domain.com" target="_blank"
style="color:rgb(17,85,204)">sip:123xxx@domain.com</a> >>>
changed to <a moz-do-not-send="true"
href="mailto:sip%3Axxxx@dmain.com" target="_blank"
style="color:rgb(17,85,204)">sip:xxxx@dmain.com</a></div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">i
tryed with transformations but still too new and does give me so
many errors that kamailio don't start,</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">tryed
subs_uri but i dont know how to tell it to just take the first
tree digits, it is usually done for adding prefixes.</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">please
help.</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">thank
you in advance.</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">on
my scenario i am having an asterisk that i dont control sending
me an invite for with a prefix i need kamailio to forward that
uri to another server minus the prefix.</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</div>
<div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">thank
you.</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, April 16-17, 2013, Berlin
- <a class="moz-txt-link-freetext" href="http://conference.kamailio.com">http://conference.kamailio.com</a> -</pre>
</body>
</html>