Re: [Sipp-users] Jumping to a Label resets variables

2008-07-29 Thread Evgeny Miloslavsky
HI
I have the same problem that sipp performs the nop block before it jumps
to the label.
I attached the xml scenario file and the log file to show the problem. 

PS: I'm using sipp version 3.0


Regards,
 
Evgeny Miloslavsky
Systest Engineer
Juniper Networks Solutions Israel LTD.
Office: 972-9-9712355 / 7320
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ricardo
Fernandes
Sent: Friday, July 25, 2008 1:43 PM
To: sipp-users@lists.sourceforge.net
Subject: [Sipp-users] Jumping to a Label resets variables

Hello,

I have a scenario of a client that registers and then must quit after
receiving x calls.
The scenario goes like this:

nop
action
assignstr assign_to=NumberOfCallsToAwnserTemp
value=[field1]/
-- field[1] contains the value 2
todouble assign_to=NumberOfCallsToAwnser
variable=NumberOfCallsToAwnserTemp/
/action
/nop
label id=ReceiveCall/

recv request=INVITE rrs=true /recv
send![CDATA[]]/send
recv request=ACK rrs=true/
recv request=BYE\recv
send![CDATA[...]]/send
nop
action
 exec command=echo '[$NumberOfCallsToAwnser]'  file.log/
--- This will always print 2 that is the value of [field1]
 subtract assign_to=NumberOfCallsToAwnser value=1 /
exec command=echo '[$NumberOfCallsToAwnser]'  file.log/
--- This will always print 1
test assign_to=NumberOfCallsToAwnserIsZero
variable=NumberOfCallsToAwnser compare=equal value=0/
test assign_to=NumberOfCallsToAwnserGreaterZero
variable=NumberOfCallsToAwnser compare=greater_than value=0/
/action
/nop
nop hide=true test=NumberOfCallsToAwnserIsZero next=Unregister /
nop hide=true test=NumberOfCallsToAwnserGreaterZero
next=ReceiveCall / -- here i go to ReceiveCall to make a loop

label id=Unregister/
Unregister part

The problem is that when i go to ReceiveCall label the variable
NumberOfCallsToAwnser is always reset to the inicial value of 2.
Is there a way to prevent the reset of this variable ??

I am using the latest version of the sipp for snapshots for windows, I
have noticied that the other versions do the same.

TIA
Ricardo Fernandes


-
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=100url=/
___
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users
?xml version=1.0 encoding=ISO-8859-1 ?
   !DOCTYPE scenario SYSTEM sipp.dtd
   
   !-- This program is free software; you can redistribute it and/or  --
   !-- modify it under the terms of the GNU General Public License as --
   !-- published by the Free Software Foundation; either version 2 of the --
   !-- License, or (at your option) any later version.--
   !----
   !-- This program is distributed in the hope that it will be useful,--
  !-- but WITHOUT ANY WARRANTY; without even the implied warranty of --
  !-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  --
  !-- GNU General Public License for more details.   --
  !----
  !-- You should have received a copy of the GNU General Public License  --
  !-- along with this program; if not, write to the  --
  !-- Free Software Foundation, Inc.,--
  !-- 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --
  !----
  !-- Sipp default 'uas' scenario.   --
  !----
  
  scenario name=Basic UAS responder

nop
  action
 assign assign_to=1 value=0 /
log message =variable 1=[$1]/
  /action
/nop

  label id=1/

recv request=INVITE test=2 next=2
  action
add assign_to=1 value=1/
log message=variable 1=[$1]/
test assign_to=2 variable=1 compare=equal value=2/
	log message=variable 2=[$2] /
  /action
/recv
  
send
  ![CDATA[
  
SIP/2.0 302 Multiple Choices
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
[last_CSeq:]
Contact: sip:70.1.2.100:5060;transport=UDP
  
  ]]
/send
  
   recv request=ACK next=1 
   /recv

 label id=2/

  send
![CDATA[

  SIP/2.0 180 Ringing
  [last_Via:]
  [last_From:]
  [last_To:];tag=[call_number]
  [last_Call-ID:]
  [last_CSeq:]
  Contact: 

[Sipp-users] Call Length Repartition

2008-07-29 Thread Naresh

Hi,
 
Can anyone give me some information on Call Length Repartition? 
The SIPp document is not giving much info on this option.
 
Regards,
Naresh


  Explore your hobbies and interests. Go to 
http://in.promos.yahoo.com/groups/-
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=100url=/___
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users


Re: [Sipp-users] Redirection functionality from single UAS scenario xml

2008-07-29 Thread Pandurangan R S
This technique works only if the invite created by UAC as a result of
redirection has the same call-id as the original invite (as per RFC 3261,
this is recommended but not mandatory).

May be the redirected invite has a different call-id?

-- Pandu

On Tue, Jul 29, 2008 at 7:09 PM, Charles P Wright [EMAIL PROTECTED]wrote:

 I didn't see your script, but why can't you handle it as a single call
 flow like?

 recv INVITE 
 send 302
 recv INVITE
 Do the normal call flow here.

 Charles



 Evgeny Miloslavsky [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
 07/29/2008 08:01 AM

 To
 sipp-users@lists.sourceforge.net
 cc

 Subject
 [Sipp-users] Redirection functionality from single UAS scenario xml







 HI
 I?m testing the redirection feature of my DUT and I need both SIPp-UAS?s
 (redirector and final UAS responder) to be run from a single xml scenario
 file. I prepared one, but the problem is that SIPp does not distinguishing
 between a redirected INVITE request and the initial one. I tried to use
 labels but it doesn?t work.
 Any advices?

 PS: script is attached.

 Regards,

 Evgeny Miloslavsky
 Systest Engineer
 Juniper Networks Solutions Israel LTD.
 Office: 972-9-9712355 / 7320

  -
 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=100url=/
 ___
 Sipp-users mailing list
 Sipp-users@lists.sourceforge.net
 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=100url=/
 ___
 Sipp-users mailing list
 Sipp-users@lists.sourceforge.net
 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=100url=/___
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users


Re: [Sipp-users] Redirection functionality from single UAS scenario xml

2008-07-29 Thread Charles P Wright
If it is a byte-for-byte match I can't think of any way to get around that 
either with the same or separate calls.  The only thing you might be able 
to do is terminate the call, and use infindex to record the fact that 
you've seen this invite before.  I suspect you might need to introduce 
some new keywords/actions.

Charles




Evgeny Miloslavsky [EMAIL PROTECTED] 
07/29/2008 09:45 AM

To
Charles P Wright/Watson/[EMAIL PROTECTED]
cc

Subject
RE: [Sipp-users] Redirection functionality from single UAS scenario xml






Because SIPp recognizes redirected invite as retransmission of the
initial one

Regards,
 
Evgeny Miloslavsky
Systest Engineer
Juniper Networks Solutions Israel LTD.
Office: 972-9-9712355 / 7320
 

-Original Message-
From: Charles P Wright [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 29, 2008 4:40 PM
To: Evgeny Miloslavsky
Cc: sipp-users@lists.sourceforge.net;
[EMAIL PROTECTED]
Subject: Re: [Sipp-users] Redirection functionality from single UAS
scenario xml

I didn't see your script, but why can't you handle it as a single call 
flow like?

recv INVITE 
send 302
recv INVITE
Do the normal call flow here.

Charles



Evgeny Miloslavsky [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
07/29/2008 08:01 AM

To
sipp-users@lists.sourceforge.net
cc

Subject
[Sipp-users] Redirection functionality from single UAS scenario xml






 
HI
I?m testing the redirection feature of my DUT and I need both SIPp-UAS?s

(redirector and final UAS responder) to be run from a single xml
scenario 
file. I prepared one, but the problem is that SIPp does not
distinguishing 
between a redirected INVITE request and the initial one. I tried to use 
labels but it doesn?t work.
Any advices?
 
PS: script is attached.
 
Regards,
 
Evgeny Miloslavsky
Systest Engineer
Juniper Networks Solutions Israel LTD.
Office: 972-9-9712355 / 7320
 
 

-
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=100url=/
___
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
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=100url=/
___
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users


Re: [Sipp-users] Redirection functionality from single UAS scenario xml

2008-07-29 Thread Pandurangan R S
 Because SIPp recognizes redirected invite as retransmission of the
 initial one

This should not happen, because the new invite is supposed to contain
a different branch parameter in the top via header.
If this is happening, then the UAC is behaving incorrectly.

-- Pandu

On Tue, Jul 29, 2008 at 7:21 PM, Charles P Wright [EMAIL PROTECTED] wrote:

 If it is a byte-for-byte match I can't think of any way to get around that
 either with the same or separate calls.  The only thing you might be able
 to do is terminate the call, and use infindex to record the fact that
 you've seen this invite before.  I suspect you might need to introduce
 some new keywords/actions.

 Charles




 Evgeny Miloslavsky [EMAIL PROTECTED]
 07/29/2008 09:45 AM

 To
 Charles P Wright/Watson/[EMAIL PROTECTED]
 cc

 Subject
 RE: [Sipp-users] Redirection functionality from single UAS scenario xml






 Because SIPp recognizes redirected invite as retransmission of the
 initial one

 Regards,

 Evgeny Miloslavsky
 Systest Engineer
 Juniper Networks Solutions Israel LTD.
 Office: 972-9-9712355 / 7320


 -Original Message-
 From: Charles P Wright [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 29, 2008 4:40 PM
 To: Evgeny Miloslavsky
 Cc: sipp-users@lists.sourceforge.net;
 [EMAIL PROTECTED]
 Subject: Re: [Sipp-users] Redirection functionality from single UAS
 scenario xml

 I didn't see your script, but why can't you handle it as a single call
 flow like?

 recv INVITE 
 send 302
 recv INVITE
 Do the normal call flow here.

 Charles



 Evgeny Miloslavsky [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
 07/29/2008 08:01 AM

 To
 sipp-users@lists.sourceforge.net
 cc

 Subject
 [Sipp-users] Redirection functionality from single UAS scenario xml







 HI
 I?m testing the redirection feature of my DUT and I need both SIPp-UAS?s

 (redirector and final UAS responder) to be run from a single xml
 scenario
 file. I prepared one, but the problem is that SIPp does not
 distinguishing
 between a redirected INVITE request and the initial one. I tried to use
 labels but it doesn?t work.
 Any advices?

 PS: script is attached.

 Regards,

 Evgeny Miloslavsky
 Systest Engineer
 Juniper Networks Solutions Israel LTD.
 Office: 972-9-9712355 / 7320


 
 -
 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=100url=/
 ___
 Sipp-users mailing list
 Sipp-users@lists.sourceforge.net
 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=100url=/
 ___
 Sipp-users mailing list
 Sipp-users@lists.sourceforge.net
 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=100url=/
___
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users


[Sipp-users] SIPP command not running

2008-07-29 Thread Hao Nguyen (haonguy)
Have anyone send this error msg ? 
 
[EMAIL PROTECTED]:~/sbc mailto:[EMAIL PROTECTED]:~/sbc # sipp -sf
uac_reg_sample.xml 10.88.225.187 -trace_msg -m 1
2008-07-29  11:19:25:9181217344765.918059: No injection file was
specified!
-
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=100url=/___
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users


Re: [Sipp-users] SIPP command not running

2008-07-29 Thread Charles P Wright
Your XML must have a [fieldN] keyword and is expecting an injection file.

Charles

[EMAIL PROTECTED] wrote on 07/29/2008 11:27:09 AM:

 Have anyone send this error msg ? 
 
 [EMAIL PROTECTED]:~/sbc# sipp -sf uac_reg_sample.xml 10.88.225.187 -
 trace_msg -m 1
 2008-07-29  11:19:25:9181217344765.918059: No injection file
 was specified!
 
-
 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=100url=/
 ___
 Sipp-users mailing list
 Sipp-users@lists.sourceforge.net
 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=100url=/
___
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users