On Fri, Apr 3, 2009 at 5:36 PM, Mitev, Mitko
<[email protected]> wrote:
>  think there might be a bug in sipp v 3.
>
> this works fine:
> <action>
>   <ereg assign_to="1,2" header="From:" regexp=".*tag=([^;]*)"
> search_in="hdr" />
>   <log message="whole match: ([$1])" />
>   <log message="capturing group: ([$2])" />
> </action>
> this is not working:
> <action>
>   <ereg assign_to="1,2" header="From:" regexp=".*tag=([^;]*)"
> search_in="hdr" />
>   <log message="capturing group: ([$2])" />
> </action>
> with error message:
> 2009-04-02      10:57:31:737    1238662651.737749: Variable $1 is referenced
> 1 times!
>
> But content of variable $1 is in this case only unavoidable trash.
>
> (as workaround it's necessary to use [$1] somewhere in the script)
>
> It's sipp v 3 related (Sipp 2.0.1 works fine with both examples).

Hello,
it is not a bug. It is a basic check performed by SIPp to avoid
programming errors due to typos. Please read:
http://sipp.sourceforge.net/doc/reference.html#Variables

regards,
takeshi

------------------------------------------------------------------------------
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to