How about: <Reference variables="1" /> Already comitted.
Charles "Michael Stovenour" <[EMAIL PROTECTED]> 08/27/2008 02:54 PM To Charles P Wright/Watson/[EMAIL PROTECTED] cc "'SIPp-Users'" <[email protected]> Subject RE: [Sipp-users] Problem starting SIPp with a regular expression: Variable $1 is referenced 1 times! How about a way to tell the scenario that a variable is intentionally unused? Or maybe the parser could call WARNING() and continue. Or both? -----Original Message----- From: Charles P Wright [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2008 1:34 PM To: Michael Stovenour Cc: SIPp-Users; [EMAIL PROTECTED] Subject: Re: [Sipp-users] Problem starting SIPp with a regular expression: Variable $1 is referenced 1 times! Everyone complains about this. Is there really no one else that checking references has saved from hours of fruitless debugging? Charles "Michael Stovenour" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 08/27/2008 02:24 PM To "SIPp-Users" <[email protected]> cc Subject [Sipp-users] Problem starting SIPp with a regular expression: Variable $1 is referenced 1 times! to grab the user part of the To: header. The To: header looks like this: To: <sip:2082221234;[EMAIL PROTECTED];user=phone> I've defined the re to look like this: <ereg regexp="<sip:([^;@]*)" search_in="hdr" header="To:" assign_to="1,2" /> Where the idea is to match only the portion following the sip: using a RE sub-match with (). In this case SIPp is placing all of the matching characters for the entire RE into $1 and the sub-match in $2. I later use [$2] when I want to recall the user portion of the To header. It all works except.... SIPp refuses to start unless I use both variables somewhere in the scenario. I really do not need $1; it is just an artifact of the RE behavior, yet I must some how "refer" to $1 or I receive the following error: Variable $1 is referenced 1 times! I built a fake reference like this: <assign assign_to="1" variable="2" /> That just creates a second reference to variable 1 and SIPp is happy but this seems like a real waste. Michael ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
