<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"><<a href="mailto:sr-users-request@lists.sip-router.org" target="_blank">sr-users-request@lists.sip-router.org</a>></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 'help' 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 "Re: Contents of sr-users digest..."<br>
<br>
<br>
Today'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 <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>><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: <<a href="mailto:515C726A.10104@evaristesys.com">515C726A.10104@evaristesys.com</a>><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>
> Hi am new to kamilio , but able to make calls, i need to do something<br>
> really simple if someone can give me an example of it i will be gratefull.<br>
><br>
> just before the call gets relayed i need to delete a prefix from the sip<br>
> uri so it gets transformed to the same uir but less 3 digits.<br>
><br>
> for example <a href="mailto:sip%3A123xxx@domain.com">sip:123xxx@domain.com</a> <mailto:<a href="mailto:sip%253A123xxx@domain.com">sip%3A123xxx@domain.com</a>> >>><br>
> changed to <a href="mailto:sip%3Axxxx@dmain.com">sip:xxxx@dmain.com</a> <mailto:<a href="mailto:sip%253Axxxx@dmain.com">sip%3Axxxx@dmain.com</a>><br>
><br>
> i tryed with transformations but still too new and does give me so many<br>
> errors that kamailio don't start,<br>
<br>
There is a core convenience function that can help with this, as long as<br>
you're manipulating the request URI:<br>
<br>
strip(3);<br>
<br>
You referred to "the SIP URI", 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 <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>><br>
Subject: Re: [SR-Users] please help with some transformations.<br>
To: "Kamailio (SER) - Users Mailing List"<br>
<<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Message-ID: <<a href="mailto:515C7284.5060905@gmail.com">515C7284.5060905@gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"<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>
> Hi am new to kamilio , but able to make calls, i need to do something<br>
> really simple if someone can give me an example of it i will be<br>
> gratefull.<br>
><br>
> just before the call gets relayed i need to delete a prefix from the<br>
> sip uri so it gets transformed to the same uir but less 3 digits.<br>
><br>
> for example <a href="mailto:sip%3A123xxx@domain.com">sip:123xxx@domain.com</a><br>
> <mailto:<a href="mailto:sip%253A123xxx@domain.com">sip%3A123xxx@domain.com</a>> >>> changed to <a href="mailto:sip%3Axxxx@dmain.com">sip:xxxx@dmain.com</a><br>
> <mailto:<a href="mailto:sip%253Axxxx@dmain.com">sip%3Axxxx@dmain.com</a>><br>
><br>
> i tryed with transformations but still too new and does give me so<br>
> many errors that kamailio don't start,<br>
><br>
> tryed subs_uri but i dont know how to tell it to just take the first<br>
> tree digits, it is usually done for adding prefixes.<br>
><br>
> please help.<br>
><br>
> thank you in advance.<br>
><br>
> on my scenario i am having an asterisk that i dont control sending me<br>
> an invite for with a prefix i need kamailio to forward that uri to<br>
> another server minus the prefix.<br>
><br>
> thank you.<br>
><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - 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>
--<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: <<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>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 3 Apr 2013 16:34:59 -0300<br>
From: Bruno Bresciani <<a href="mailto:bruno.bresciani@gmail.com">bruno.bresciani@gmail.com</a>><br>
Subject: [SR-Users] Abort at qm_debug_frag function<br>
To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -<br>
Users Mailing List" <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Message-ID:<br>
<<a href="mailto:CAKv6MrYwA61yXQz1%2BWUOCGOr%2Bp-QTE1JWptvSHtFFAXAim__7Q@mail.gmail.com">CAKv6MrYwA61yXQz1+WUOCGOr+p-QTE1JWptvSHtFFAXAim__7Q@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Kamailio is generating a abort at qm_debug_frag function (BUG: qm_*: prev.<br>
fragm. tail overwritten) but I can'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=<value optimized out>) at<br>
mem/q_malloc.c:158<br>
#4 0x0817a6f3 in qm_free (qm=0xb5f83000, p=0xb6109a54, file=0x43760e<br>
"perms_db: src_ip.c", func=0x4378a0 "list_destroy", 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: <<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>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Wed, 03 Apr 2013 21:39:23 +0200<br>
From: Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>><br>
Subject: Re: [SR-Users] Abort at qm_debug_frag function<br>
To: "Kamailio (SER) - Users Mailing List"<br>
<<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
Message-ID: <<a href="mailto:515C856B.4090909@gmail.com">515C856B.4090909@gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"<br>
<br>
What version are you using? Send the output of 'kamailio -V'.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 4/3/13 9:34 PM, Bruno Bresciani wrote:<br>
> Kamailio is generating a abort at qm_debug_frag function (BUG: qm_*:<br>
> prev. fragm. tail overwritten) but I can't understanding the meaning<br>
> this abort... Someone can tell me the purpose of qm_debug_frag<br>
> function, it checks if some improper memory handling happened and<br>
> 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=<value optimized<br>
> out>) at mem/q_malloc.c:158<br>
> #4 0x0817a6f3 in qm_free (qm=0xb5f83000, p=0xb6109a54, file=0x43760e<br>
> "perms_db: src_ip.c", func=0x4378a0 "list_destroy", 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,<br>
> param=0x0) at 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>
><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - 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>
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: <<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>><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>