[Kamailio-Users] prefix() cannot take pseudovariable argument?

Alex Balashov abalashov at evaristesys.com
Thu Apr 16 22:42:42 CEST 2009


Daniel-Constantin Mierla wrote:

> Hello,
> 
> On 04/16/2009 10:14 PM, Alex Balashov wrote:
>> Why can't prefix() accept a pseudovariable argument, e.g.
>>
>>     prefix("$avp(S:the_prefix)");
>>
>> ?
>>
>> It is interpreted literally.
>>   
> this is old function from core -- most of them do not take 
> pseudo-variables as argument. You can use instead:
> 
> $rU = $avp(S:the_prefix) + $rU;

That's what I ended up doing.  I was just wondering if there was some 
philosophical / design-related reason for it and you answered my 
question.  :)

-- 
Alex Balashov
Evariste Systems
Web    : http://www.evaristesys.com/
Tel    : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (678) 237-1775




More information about the sr-users mailing list