Re: [SR-Users] loop through variables

2010-11-02 Thread Alex Balashov
On 11/02/2010 09:35 AM, Sergey Okhapkin wrote: htable module should do the trick to you. On Tuesday 02 November 2010, Bernhard Suttner wrote: Hi, I want something like that: # define some router to use later in the script (global section) Mod_param(router(1), 10.10.10.1)

Re: [SR-Users] loop through variables

2010-11-02 Thread Bernhard Suttner
[mailto:sr-users-boun...@lists.sip-router.org] Im Auftrag von Alex Balashov Gesendet: Dienstag, 2. November 2010 14:41 An: sr-users@lists.sip-router.org Betreff: Re: [SR-Users] loop through variables On 11/02/2010 09:35 AM, Sergey Okhapkin wrote: htable module should do the trick to you

Re: [SR-Users] loop through variables

2010-11-02 Thread Alex Balashov
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

Re: [SR-Users] loop through variables

2010-11-02 Thread Bernhard Suttner
-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

Re: [SR-Users] loop through variables

2010-11-02 Thread Daniel-Constantin Mierla
:16 An: Alex Balashov Cc: Bernhard Suttner; sr-users@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

Re: [SR-Users] loop through variables

2010-11-02 Thread Bernhard Suttner
Suttner Cc: sr-users@lists.sip-router.org Betreff: Re: [SR-Users] loop through variables On 11/2/10 5:52 PM, Bernhard Suttner wrote: Hi, thanks @ all. I will try out the AVP method. beware that normally the avps are persistent per transaction. Meaning that when the transaction processing