<div dir="ltr">Thanks a lot  it was just what i need it , it worked like a charm.<div><br></div><div style>strip(3);</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 3, 2013 at 3:39 PM,  <span dir="ltr">&lt;<a href="mailto:sr-users-request@lists.sip-router.org" target="_blank">sr-users-request@lists.sip-router.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send sr-users mailing list submissions to<br>
        <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:sr-users-request@lists.sip-router.org">sr-users-request@lists.sip-router.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:sr-users-owner@lists.sip-router.org">sr-users-owner@lists.sip-router.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of sr-users digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: please help with some transformations. (Alex Balashov)<br>
   2. Re: please help with some transformations.<br>
      (Daniel-Constantin Mierla)<br>
   3. Abort at qm_debug_frag function (Bruno Bresciani)<br>
   4. Re: Abort at qm_debug_frag function (Daniel-Constantin Mierla)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 03 Apr 2013 14:18:18 -0400<br>
From: Alex Balashov &lt;<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>&gt;<br>
Subject: Re: [SR-Users] please help with some transformations.<br>
To: <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
Message-ID: &lt;<a href="mailto:515C726A.10104@evaristesys.com">515C726A.10104@evaristesys.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hello Julian,<br>
<br>
On 04/03/2013 01:54 PM, julian arsanches wrote:<br>
<br>
&gt; Hi am new to kamilio , but able to make calls, i need to do something<br>
&gt; really simple if someone can give me an example of it i will be gratefull.<br>
&gt;<br>
&gt; just before the call gets relayed i need to delete a prefix from the sip<br>
&gt; uri so it gets transformed to the same uir but less 3 digits.<br>
&gt;<br>
&gt; for example <a href="mailto:sip%3A123xxx@domain.com">sip:123xxx@domain.com</a> &lt;mailto:<a href="mailto:sip%253A123xxx@domain.com">sip%3A123xxx@domain.com</a>&gt;  &gt;&gt;&gt;<br>
&gt; changed to <a href="mailto:sip%3Axxxx@dmain.com">sip:xxxx@dmain.com</a> &lt;mailto:<a href="mailto:sip%253Axxxx@dmain.com">sip%3Axxxx@dmain.com</a>&gt;<br>
&gt;<br>
&gt; i tryed with transformations but still too new and does give me so many<br>
&gt; errors that kamailio don&#39;t start,<br>
<br>
There is a core convenience function that can help with this, as long as<br>
you&#39;re manipulating the request URI:<br>
<br>
    strip(3);<br>
<br>
You referred to &quot;the SIP URI&quot;, which, of course, is ambiguous since a<br>
SIP request has many SIP URIs.<br>
<br>
-- Alex<br>
<br>
--<br>
Alex Balashov - Principal<br>
Evariste Systems LLC<br>
235 E Ponce de Leon Ave<br>
Suite 106<br>
Decatur, GA 30030<br>
United States<br>
Tel: <a href="tel:%2B1-678-954-0670" value="+16789540670">+1-678-954-0670</a><br>
Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.alexbalashov.com/" target="_blank">http://www.alexbalashov.com/</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 03 Apr 2013 20:18:44 +0200<br>
From: Daniel-Constantin Mierla &lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;<br>
Subject: Re: [SR-Users] please help with some transformations.<br>
To: &quot;Kamailio (SER) - Users Mailing List&quot;<br>
        &lt;<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:515C7284.5060905@gmail.com">515C7284.5060905@gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;; Format=&quot;flowed&quot;<br>
<br>
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 href="http://www.kamailio.org/wiki/cookbooks/4.0.x/transformations#sstrip_len" target="_blank">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<br>
config for that part.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 4/3/13 7:54 PM, julian arsanches wrote:<br>
&gt; Hi am new to kamilio , but able to make calls, i need to do something<br>
&gt; really simple if someone can give me an example of it i will be<br>
&gt; gratefull.<br>
&gt;<br>
&gt; just before the call gets relayed i need to delete a prefix from the<br>
&gt; sip uri so it gets transformed to the same uir but less 3 digits.<br>
&gt;<br>
&gt; for example <a href="mailto:sip%3A123xxx@domain.com">sip:123xxx@domain.com</a><br>
&gt; &lt;mailto:<a href="mailto:sip%253A123xxx@domain.com">sip%3A123xxx@domain.com</a>&gt;  &gt;&gt;&gt; changed to <a href="mailto:sip%3Axxxx@dmain.com">sip:xxxx@dmain.com</a><br>
&gt; &lt;mailto:<a href="mailto:sip%253Axxxx@dmain.com">sip%3Axxxx@dmain.com</a>&gt;<br>
&gt;<br>
&gt; i tryed with transformations but still too new and does give me so<br>
&gt; many errors that kamailio don&#39;t start,<br>
&gt;<br>
&gt; tryed subs_uri  but i dont know how to tell it to just take the first<br>
&gt; tree digits, it is usually done for adding prefixes.<br>
&gt;<br>
&gt; please help.<br>
&gt;<br>
&gt; thank you in advance.<br>
&gt;<br>
&gt; on my scenario i am having an asterisk that i dont control sending me<br>
&gt;   an invite for with a prefix i need kamailio to forward that uri to<br>
&gt; another server minus the prefix.<br>
&gt;<br>
&gt; thank you.<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
<br>
--<br>
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Kamailio World Conference, April 16-17, 2013, Berlin<br>
  - <a href="http://conference.kamailio.com" target="_blank">http://conference.kamailio.com</a> -<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20130403/89cc3741/attachment-0001.htm" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20130403/89cc3741/attachment-0001.htm</a>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 3 Apr 2013 16:34:59 -0300<br>
From: Bruno Bresciani &lt;<a href="mailto:bruno.bresciani@gmail.com">bruno.bresciani@gmail.com</a>&gt;<br>
Subject: [SR-Users] Abort at qm_debug_frag function<br>
To: &quot;SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -<br>
        Users   Mailing List&quot; &lt;<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CAKv6MrYwA61yXQz1%2BWUOCGOr%2Bp-QTE1JWptvSHtFFAXAim__7Q@mail.gmail.com">CAKv6MrYwA61yXQz1+WUOCGOr+p-QTE1JWptvSHtFFAXAim__7Q@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Kamailio is generating a abort at qm_debug_frag function (BUG: qm_*: prev.<br>
fragm. tail overwritten) but I can&#39;t understanding the meaning this<br>
abort...  Someone can tell me the purpose of qm_debug_frag function, it<br>
checks if some improper memory handling happened and abort the program?<br>
<br>
Below is backtrace of abort:<br>
<br>
#0  0x00f41402 in __kernel_vsyscall ()<br>
#1  0x009fec10 in raise () from /lib/libc.so.6<br>
#2  0x00a00521 in abort () from /lib/libc.so.6<br>
#3  0x081797b7 in qm_debug_frag (qm=0xb5f83000, f=&lt;value optimized out&gt;) at<br>
mem/q_malloc.c:158<br>
#4  0x0817a6f3 in qm_free (qm=0xb5f83000, p=0xb6109a54, file=0x43760e<br>
&quot;perms_db: src_ip.c&quot;, func=0x4378a0 &quot;list_destroy&quot;, line=79)<br>
    at mem/q_malloc.c:442<br>
#5  0x0043563c in list_destroy (liste=0xb6107274) at src_ip.c:79<br>
#6  0x00430a93 in reload_srcip_table () at db.c:163<br>
#7  0x004313be in perms_db_srcip_reload (cmd_tree=0x835aeac, param=0x0) at<br>
fifo.c:107<br>
#8  0x00335d97 in mi_fifo_server (fifo_stream=0x99561d8) at<br>
../../lib/kmi/mi.h:77<br>
#9  0x00337621 in fifo_process (rank=1) at mi_fifo.c:235<br>
#10 0x003378a5 in mi_child_init (rank=0) at mi_fifo.c:199<br>
#11 0x08120a02 in init_mod_child (m=0x82f4b88, rank=0) at sr_module.c:829<br>
#12 0x081209dc in init_mod_child (m=0x82f4d1c, rank=0) at sr_module.c:826<br>
#13 0x081209dc in init_mod_child (m=0x82f5164, rank=0) at sr_module.c:826<br>
#14 0x081209dc in init_mod_child (m=0x82f79f4, rank=0) at sr_module.c:826<br>
#15 0x081209dc in init_mod_child (m=0x82f7cf0, rank=0) at sr_module.c:826<br>
#16 0x081209dc in init_mod_child (m=0x82f8174, rank=0) at sr_module.c:826<br>
#17 0x081209dc in init_mod_child (m=0x82f8798, rank=0) at sr_module.c:826<br>
#18 0x081209dc in init_mod_child (m=0x82f8b54, rank=0) at sr_module.c:826<br>
#19 0x081209dc in init_mod_child (m=0x82f8eb4, rank=0) at sr_module.c:826<br>
#20 0x081209dc in init_mod_child (m=0x82f90b4, rank=0) at sr_module.c:826<br>
#21 0x081209dc in init_mod_child (m=0x82f952c, rank=0) at sr_module.c:826<br>
#22 0x081209dc in init_mod_child (m=0x82fa980, rank=0) at sr_module.c:826<br>
#23 0x081209dc in init_mod_child (m=0x82fab9c, rank=0) at sr_module.c:826<br>
#24 0x081209dc in init_mod_child (m=0x82faff8, rank=0) at sr_module.c:826<br>
#25 0x080ae175 in main_loop () at main.c:1624<br>
#26 0x080b1256 in main (argc=3, argv=0xbf9a8f14) at main.c:2398<br>
<br>
<br>
Best Regards<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20130403/9c300ce0/attachment-0001.htm" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20130403/9c300ce0/attachment-0001.htm</a>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Wed, 03 Apr 2013 21:39:23 +0200<br>
From: Daniel-Constantin Mierla &lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;<br>
Subject: Re: [SR-Users] Abort at qm_debug_frag function<br>
To: &quot;Kamailio (SER) - Users Mailing List&quot;<br>
        &lt;<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:515C856B.4090909@gmail.com">515C856B.4090909@gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;; Format=&quot;flowed&quot;<br>
<br>
What version are you using? Send the output of &#39;kamailio -V&#39;.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 4/3/13 9:34 PM, Bruno Bresciani wrote:<br>
&gt; Kamailio is generating a abort at qm_debug_frag function (BUG: qm_*:<br>
&gt; prev. fragm. tail overwritten) but I can&#39;t understanding the meaning<br>
&gt; this abort...  Someone can tell me the purpose of qm_debug_frag<br>
&gt; function, it checks if some improper memory handling happened and<br>
&gt; abort the program?<br>
&gt;<br>
&gt; Below is backtrace of abort:<br>
&gt;<br>
&gt; #0  0x00f41402 in __kernel_vsyscall ()<br>
&gt; #1  0x009fec10 in raise () from /lib/libc.so.6<br>
&gt; #2  0x00a00521 in abort () from /lib/libc.so.6<br>
&gt; #3  0x081797b7 in qm_debug_frag (qm=0xb5f83000, f=&lt;value optimized<br>
&gt; out&gt;) at mem/q_malloc.c:158<br>
&gt; #4  0x0817a6f3 in qm_free (qm=0xb5f83000, p=0xb6109a54, file=0x43760e<br>
&gt; &quot;perms_db: src_ip.c&quot;, func=0x4378a0 &quot;list_destroy&quot;, line=79)<br>
&gt;     at mem/q_malloc.c:442<br>
&gt; #5  0x0043563c in list_destroy (liste=0xb6107274) at src_ip.c:79<br>
&gt; #6  0x00430a93 in reload_srcip_table () at db.c:163<br>
&gt; #7  0x004313be in perms_db_srcip_reload (cmd_tree=0x835aeac,<br>
&gt; param=0x0) at fifo.c:107<br>
&gt; #8  0x00335d97 in mi_fifo_server (fifo_stream=0x99561d8) at<br>
&gt; ../../lib/kmi/mi.h:77<br>
&gt; #9  0x00337621 in fifo_process (rank=1) at mi_fifo.c:235<br>
&gt; #10 0x003378a5 in mi_child_init (rank=0) at mi_fifo.c:199<br>
&gt; #11 0x08120a02 in init_mod_child (m=0x82f4b88, rank=0) at sr_module.c:829<br>
&gt; #12 0x081209dc in init_mod_child (m=0x82f4d1c, rank=0) at sr_module.c:826<br>
&gt; #13 0x081209dc in init_mod_child (m=0x82f5164, rank=0) at sr_module.c:826<br>
&gt; #14 0x081209dc in init_mod_child (m=0x82f79f4, rank=0) at sr_module.c:826<br>
&gt; #15 0x081209dc in init_mod_child (m=0x82f7cf0, rank=0) at sr_module.c:826<br>
&gt; #16 0x081209dc in init_mod_child (m=0x82f8174, rank=0) at sr_module.c:826<br>
&gt; #17 0x081209dc in init_mod_child (m=0x82f8798, rank=0) at sr_module.c:826<br>
&gt; #18 0x081209dc in init_mod_child (m=0x82f8b54, rank=0) at sr_module.c:826<br>
&gt; #19 0x081209dc in init_mod_child (m=0x82f8eb4, rank=0) at sr_module.c:826<br>
&gt; #20 0x081209dc in init_mod_child (m=0x82f90b4, rank=0) at sr_module.c:826<br>
&gt; #21 0x081209dc in init_mod_child (m=0x82f952c, rank=0) at sr_module.c:826<br>
&gt; #22 0x081209dc in init_mod_child (m=0x82fa980, rank=0) at sr_module.c:826<br>
&gt; #23 0x081209dc in init_mod_child (m=0x82fab9c, rank=0) at sr_module.c:826<br>
&gt; #24 0x081209dc in init_mod_child (m=0x82faff8, rank=0) at sr_module.c:826<br>
&gt; #25 0x080ae175 in main_loop () at main.c:1624<br>
&gt; #26 0x080b1256 in main (argc=3, argv=0xbf9a8f14) at main.c:2398<br>
&gt;<br>
&gt;<br>
&gt; Best Regards<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
--<br>
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Kamailio World Conference, April 16-17, 2013, Berlin<br>
  - <a href="http://conference.kamailio.com" target="_blank">http://conference.kamailio.com</a> -<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20130403/119ee8b1/attachment.htm" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20130403/119ee8b1/attachment.htm</a>&gt;<br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
<br>
End of sr-users Digest, Vol 95, Issue 17<br>
****************************************<br>
</blockquote></div><br></div>