[SR-Users] loop through variables

Bernhard Suttner bernhard.suttner at winet.ch
Tue Nov 2 17:52:41 CET 2010


Hi,

thanks @ all. I will try out the AVP method.

Best regards,
Bernhard

-----Ursprüngliche Nachricht-----
Von: Daniel-Constantin Mierla [mailto:miconda at gmail.com] 
Gesendet: Dienstag, 2. November 2010 17:16
An: Alex Balashov
Cc: Bernhard Suttner; sr-users at lists.sip-router.org
Betreff: Re: [SR-Users] loop through variables



On 11/2/10 5:13 PM, Alex Balashov wrote:
> On 11/02/2010 12:01 PM, Daniel-Constantin Mierla wrote:
>
>> What Alex provided for assignment is not working exactly that way,
>> because an assignment to an AVP always adds at the first position like a
>> stack (the index is not relevant for avp in the left side of assignment
>> unless it is '*' and assigned value is null - meaning delete all avps
>> with that name).
>
> That is true.  I forgot about that.  That still means he could insert 
> the IPs in backward order, though, doesn't it?
yes, it inserts them in backward order.

Cheers,
Daniel

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






More information about the sr-users mailing list