[SR-Users] segfault kamailio 3.01 avp_copy flag g

2010-05-06 Thread Manwe
Hi all I have experienced segfaults when using avp_copy in Kamailio 3.01. This happens when using the "g" flag and the avp is not null (no problem if it has no content) avp_copy("$avp(s:block_out_list)", "$avp(s:caller_block_out_list)/gd"); Removing the "g" flags works ok (but does not copy all

Re: [SR-Users] segfault kamailio 3.01 avp_copy flag g

2010-05-06 Thread Daniel-Constantin Mierla
Hello, can you get the backtrace. Make sure the ulimit is enough for writing a core and kamailio has written permissions in the working directory. Cheers, Daniel On 5/6/10 7:19 PM, Jon Bonilla (Manwe) wrote: Hi all I have experienced segfaults when using avp_copy in Kamailio 3.01. This ha

Re: [SR-Users] segfault kamailio 3.01 avp_copy flag g

2010-05-06 Thread Manwe
El Thu, 06 May 2010 19:21:54 +0200 Daniel-Constantin Mierla escribió: > Hello, > > can you get the backtrace. Make sure the ulimit is enough for writing a > core and kamailio has written permissions in the working directory. > > Cheers, > Daniel > #0 search_next_avp (s=0x7fffb420, val=0

Re: [SR-Users] segfault kamailio 3.01 avp_copy flag g

2010-05-06 Thread Daniel-Constantin Mierla
Hello, hopefully was a easy one, please fetch latest git and try again. Let me know if is fixed. Thanks, Daniel On 5/6/10 8:57 PM, Jon Bonilla (Manwe) wrote: El Thu, 06 May 2010 19:21:54 +0200 Daniel-Constantin Mierla escribió: Hello, can you get the backtrace. Make sure the ulimit

Re: [SR-Users] segfault kamailio 3.01 avp_copy flag g

2010-05-06 Thread Manwe
El Thu, 06 May 2010 21:15:38 +0200 Daniel-Constantin Mierla escribió: > Hello, > > hopefully was a easy one, please fetch latest git and try again. Let me > know if is fixed. > > worked. BTW, is there a preferred way to do this in kamailio 3? $avp(s:caller_block_out_list) = $avp(s:block_out

Re: [SR-Users] segfault kamailio 3.01 avp_copy flag g

2010-05-06 Thread Daniel-Constantin Mierla
On 5/6/10 10:12 PM, Jon Bonilla (Manwe) wrote: El Thu, 06 May 2010 21:15:38 +0200 Daniel-Constantin Mierla escribió: Hello, hopefully was a easy one, please fetch latest git and try again. Let me know if is fixed. worked. BTW, is there a preferred way to do this in kamailio 3?

Re: [SR-Users] segfault kamailio 3.01 avp_copy flag g

2010-05-06 Thread Manwe
El Thu, 06 May 2010 22:13:32 +0200 Daniel-Constantin Mierla escribió: > do you have only one value for that avp or many? Many. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.si

Re: [SR-Users] segfault kamailio 3.01 avp_copy flag g

2010-05-06 Thread Daniel-Constantin Mierla
On 5/6/10 10:13 PM, Daniel-Constantin Mierla wrote: On 5/6/10 10:12 PM, Jon Bonilla (Manwe) wrote: El Thu, 06 May 2010 21:15:38 +0200 Daniel-Constantin Mierla escribió: Hello, hopefully was a easy one, please fetch latest git and try again. Let me know if is fixed. worked. BTW, is the

Re: [SR-Users] segfault kamailio 3.01 avp_copy flag g

2010-05-06 Thread Manwe
El Thu, 06 May 2010 22:20:04 +0200 Daniel-Constantin Mierla escribió: > >> > > do you have only one value for that avp or many? If only one, then > > assignment is more actual. Lot of stuff from avpops is obsoleted by > > script operations, a reason avpops has not been much under focus lately.

Re: [SR-Users] segfault kamailio 3.01 avp_copy flag g

2010-05-06 Thread Daniel-Constantin Mierla
On 5/6/10 10:22 PM, Jon Bonilla (Manwe) wrote: El Thu, 06 May 2010 22:13:32 +0200 Daniel-Constantin Mierla escribió: do you have only one value for that avp or many? Many. then avp_copy does it in one line. With script operations: while($avp(s:block_out_list)) { $avp(s:cal

Re: [SR-Users] segfault kamailio 3.01 avp_copy flag g

2010-05-06 Thread Daniel-Constantin Mierla
On 5/6/10 10:29 PM, Jon Bonilla (Manwe) wrote: El Thu, 06 May 2010 22:20:04 +0200 Daniel-Constantin Mierla escribió: do you have only one value for that avp or many? If only one, then assignment is more actual. Lot of stuff from avpops is obsoleted by script operations, a reas