The only referenced once check is there to prevent typos and other similar 
errors that would have SIPp load a scenario with a variable only used once 
(the theory being why do you need to read or write to a variable if you 
never read or write from it again, basically like an unused variable 
warning from your compiler).  If you don't need $5, you can use it for 
something unneeded like:
<assign assign_to="5" value="0" />

I would rename "5" to something like "dummy" (you can use string names not 
just numeric names, which makes the scenario much more readable).

A better long term solution would be to modify the SIPp source code to 
make the whole match variable optional so that you don't need to jump 
through hoops like this.

Charles




Sajith T S <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
07/04/2008 09:28 AM

To
sipp-users@lists.sourceforge.net
cc

Subject
[Sipp-users] "Variable $5 is referenced 1 times!"






Hi,

I'm trying to find the contact uri from a 200 OK response sent by the
UAC, but sipp apparently isn't happy about the scenario file syntax.
I keep getting this error: "Variable $5 is referenced 1 times!"

is this correct?

      <recv response="200" rtd="true" rrs="true">
        <action>
          <ereg regexp="sip:.*;transport=.*SIP/2.0"
                     search_in="hdr"
                     header="Contact:"
                     check_it="true"
                     assign_to="5,6" />
        </action>
      </recv>

Thanks,
Sajith.
-- 
"the lyf so short, the craft so long to lerne." 
                          -- Chaucer.


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to