|
From: Trinh Ta <tri...@gm...> - 2010-07-23 14:51:32
|
I'm using the Windows version downloaded from the SIPp download page. It's very old. It needs to be updated (I wish I could it but I can't): sipp-win32-3.1.1.exe<http://sourceforge.net/projects/sipp/files/sipp/3.1/sipp-win32-3.1.1.exe/download> 2.2 MB 2008-05-30 27,161 Release Notes<http://sourceforge.net/project/shownotes.php?release_id=593806> On Fri, Jul 23, 2010 at 7:31 AM, Trinh Ta <tri...@gm...> wrote: > The HTML help page says this: > > To prevent programming errors, SIPp performs very rudimentary checks to > ensure that each variable is used more than once in the scenario (this helps > prevent some typos from turning into hard to debug errors). Unfortunately, > this can cause some complication with regular expression matching. The > regular expression action must assign the entire matched expression to a > variable. If you are only interested in checking the validity of the > expression (i.e. the check_it attribute is set) or in capturing a > sub-expression, you must still assign the entire expression to a variable. > As this variable is likely only referenced once, you must inform SIPp that > you are knowingly using this variable once with a Reference clause. For > example: > > <recv request="INVITE"> > <action> > <ereg regexp="<sip:([^;@]*)" search_in="hdr" header="To:" assign_to="dummy,uri" /> > > </action> > > </recv> > <Reference variables="dummy" /> > > However, using <Reference> will get you this: > > Unknown element 'Reference' in xml scenario file > > The <Reference> tag is missing in the code base ? > > Thanks, > |