Maybe you should put this reference in <nop> and/or <action> command or 
directly into the regexp context. However, you can also use an harmless <log 
message="dummy"/> to not using it but still present in logs ...
 
 
 
Ruhi ASLAN
Stagiaire ST40 - NOC/Operation
 

VTX SERVICES SA
Une société du groupe VTX Telecom
================================================================
Tél. direct : 021 721 12 18
Av. de Lavaux 101 - 1009 Pully
http://www.vtx.ch <http://www.vtx.ch/>  - ruhi.as...@vtx-telecom.ch
----------------------------------------------------------------
VTX, votre partenaire telecom proche de vous !
================================================================
 

________________________________

De : Trinh Ta [mailto:trinhta...@gmail.com] 
Envoyé : vendredi, 23. juillet 2010 14:12
À : sipp-users@lists.sourceforge.net
Objet : [Sipp-users] <Reference> element


There have been two postings about the missing <Reference> tag but no answer so 
far, and I'm getting the same error.

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

Anyone here can shed light on this ?

Thanks,
T. Ta



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to