[SR-Users] segfault kamailio 3.01 avp_copy flag g

Daniel-Constantin Mierla miconda at gmail.com
Thu May 6 22:27:20 CEST 2010



On 5/6/10 10:22 PM, Jon Bonilla (Manwe) wrote:
> El Thu, 06 May 2010 22:13:32 +0200
> Daniel-Constantin Mierla<miconda at gmail.com>  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:caller_block_out_list) = $avp(s:block_out_list);
   $avp(s:block_out_list) = $null;
}

is same as:

avp_copy("$avp(s:block_out_list)", "$avp(s:caller_block_out_list)/gd");

Cheers,
Daniel


>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>    

-- 
Daniel-Constantin Mierla
* http://www.asipto.com/





More information about the sr-users mailing list