Re: [Sipp-users] Howto set a percentage of accepted or rejected requests

2008-12-16 Thread Evgeny Miloslavsky
OK Thanks

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

-Original Message-
From: Charles P Wright [mailto:cpwri...@us.ibm.com] 
Sent: Tuesday, December 16, 2008 2:45 PM
To: Peter Higginson
Cc: Evgeny Miloslavsky; sipp_users;
sipp-users-boun...@lists.sourceforge.net
Subject: Re: [Sipp-users] Howto set a percentage of accepted or rejected
requests

Evegeny,

You can also use next and chance like:
nop next=reject chance=0.25 /
... accept ...

label id=reject /
... reject ...

Charles

Peter Higginson plh...@hotmail.com wrote on 12/16/2008 04:56:52 AM:

 
 One way I have done that is to generate UA names of the form 
 user[call_number]x and then match on 5x to reject the call. That way
 10% of calls get rejected - which is what I wanted at the time. I 
 also did some 1% unusual cases by matching 33x (say) and similar 
 things. Clearly it is not random and not easy to generate anything 
 other than a few specific percentages.
 
 Peter
 
 
 Date: Tue, 16 Dec 2008 07:07:42 +
 From: emiloslav...@juniper.net
 To: sipp-users-boun...@lists.sourceforge.net
 CC: sipp-users@lists.sourceforge.net
 Subject: [Sipp-users] Howto set a percentage of accepted or rejected 
requests
 

 Hi All!
 Is there any possibility to define for SIPp-UAS percentage of 
 rejected and accepted calls?
 For example I want my SIPp-UAS to accept (200 OK) 75% of requests 
 received and to reject (4xx response) 25% of requests received.
 Thanks in advance
 
 Regards,
 
 Evgeny Miloslavsky
 Systest Engineer
 Juniper Networks Solutions Israel LTD.
 Office: 972-9-9712355 / 7320
 
 
 
 Great search results, great prizes. BigSnapSearch.com Search now
 

--
 SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, 
Nevada.
 The future of the web can't happen without you.  Join us at MIX09 to 
help
 pave the way to the Next Web now. Learn more and register at
 
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.
com/
 ___
 Sipp-users mailing list
 Sipp-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/sipp-users


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users


[Sipp-users] String manipulation with Sipp

2008-12-16 Thread Tuan Viet Nguyen
Hello,

Does anyone know if it is possible to manipulate characters with Sipp?

For example to delete a character from a string variable, to replace a
character , etc ...

BR,
Tuan Viet Nguyen
--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users


Re: [Sipp-users] String manipulation with Sipp

2008-12-16 Thread Charles P Wright
The only way to do it is to use regular expressions.  For anything else, 
you'll need to modify the source code.  Adding an action is relatively 
straightforward.  You need to change scenario.cpp to parse it, actions.hpp 
to define it, and call.cpp to actually do it.

Charles




Tuan Viet Nguyen tuanviet.ngu...@yahoo.fr 
12/16/2008 11:28 AM

To
sipp-users@lists.sourceforge.net
cc

Subject
[Sipp-users] String manipulation with Sipp






Hello,

Does anyone know if it is possible to manipulate characters with Sipp? 

For example to delete a character from a string variable, to replace a 
character , etc ...

BR,
Tuan Viet Nguyen
--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, 
Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users



--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users


[Sipp-users] sipp does not bind to IP address provided in -i option even with -bind_local, resulting in wrong TCP source IP and failed calls

2008-12-16 Thread Bhaskar Dutta
Hi,

I am facing an issue similar to this (unanswered) thread:
http://www.mail-archive.com/sipp-users@lists.sourceforge.net/msg02716.html

I want to send a TCP call to (machine1) 10.1.1.99 from logical interface
eth1:1 (10.1.1.48) in machine2 running sipp over TCP.
All UDP calls contain eth1:1's IP address (10.1.1.48) as expected, and my
calls are fine, but TCP packets pick the outgoing interface's IP, resulting
in failed calls.

My machine2 running sipp:
eth0   :10.1.1.43
eth1   :10.1.1.55
eth1:1 :10.1.1.48

I am using sipp with -i 10.1.1.48, which results in Via, Contact, From
being set to this IP. I am also using -bind_local (which does not seem to
work as expected).

Ethereal traces show:
  10.1.1.43 - 10.1.1.99  SIP Request: REGISTER sip:10.1.1.48

Now I add a route to the system:
# ip route add 10.1.1.0/24 via 10.1.1.48

Ethereal traces now show:
  10.1.1.55 - 10.1.1.99  SIP Request: REGISTER sip:10.1.1.48

So, sipp seems to pick the source IP based on the dest route!
Is there a way to pick the logical interface's IP as the TCP source? (Note:
ip route does not work with logical interface).

I can achieve the same using SNAT iptable rules, but isn't this a problem
that needs to be fixed in the sipp code? ( I can try writing a hack if it is
indeed an issue and there is no existing solution).

Thanks,
Bhaskar
--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users