[Sipp-users] HowTo test header value
Hi All I would like to know, how do I validate that a given header has en defined value? For example, I would like to validate that INVITE request received with Max-Forwards header field value 10. And if it doesn't I want this call to be signed as failed. Thanks in advance Regards, Evgeny Miloslavsky Systest Engineer Juniper Networks Solutions Israel LTD. Office: 972-9-9717320/2355 -- ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users
Re: [Sipp-users] HowTo test header value
While not used for parsing a INVITE request *received* you might find this useful to learn from. !-- Contact header contains URI of the ad hoc conference to move to -- recv response=302 rtd=true action ereg regexp=\lt;([a-za-z...@.=;]+)[^gt;]+ search_in=hdr header=Contact: assign_to=1/ log message=INFO: 302 Contact Header: [$1] / exec command=echo [$1] ./302ContactHeader.txt / /action /recv From: Evgeny Miloslavsky [mailto:emiloslav...@juniper.net] Sent: 26 March 2009 09:36 To: sipp-users@lists.sourceforge.net Subject: [Sipp-users] HowTo test header value Hi All I would like to know, how do I validate that a given header has en defined value? For example, I would like to validate that INVITE request received with Max-Forwards header field value 10. And if it doesn't I want this call to be signed as failed. Thanks in advance Regards, Evgeny Miloslavsky Systest Engineer Juniper Networks Solutions Israel LTD. Office: 972-9-9717320/2355 -- ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users
Re: [Sipp-users] HowTo test header value
On Thu, Mar 26, 2009 at 7:50 PM, Evgeny Miloslavsky emiloslav...@juniper.net wrote: Hi and thanks for such a quick response J I’m testing header manipulation feature of mu DUT. I set a rule to modify Max-Forwards value toward UAS to 10. All I want is to validate at SIPp-UAS side that INVITE request is received with Max-Forwards: 10. Meanwhile I’m using recv request=INVITE action ereg regexp=10 search_in=hdr header=Max-Forwards: check_it=true assign_to=1/ /action /recv Is there any other way to do what I need? The way is fine but the regexp is wrong. It will search for 10 inside the header, and not that the header value is 10 (so it will match 100, 210 etc). You should use something like this (but i haven't tested): regexp=^\s*10\s*$ The above will: - anchor the check at the beginning of the header value (^) - accept zero or more whitespaces before the 10 (\s*) - match 10 - accept zero or more whitespaces after the 10 (\s*) - ensure nothing else appears in the header value ($) regards, takeshi -- ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users
[Sipp-users] Storing the result of an external command into an internal variable
Hi, I want to store the result of an external command into an internal variable. Is there a way to do that? Example: exec command=echo `sndfile-info [$filename] | grep Duration | awk '{print $3}'`/ Is there a way we can extract the value returned by the above command into an internal variable so that I can manipulate it internally in the xml script? Kindly respond. Regards, Madiha Taha -- ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users
Re: [Sipp-users] Storing the result of an external command into an internal variable
Not without modifying the SIPp code. Charles Madiha Shahid madis1...@gmail.com 03/26/2009 08:50 AM To sipp-users@lists.sourceforge.net cc Subject [Sipp-users] Storing the result of an external command into an internal variable Hi, I want to store the result of an external command into an internal variable. Is there a way to do that? Example: exec command=echo `sndfile-info [$filename] | grep Duration | awk '{print $3}'`/ Is there a way we can extract the value returned by the above command into an internal variable so that I can manipulate it internally in the xml script? Kindly respond. Regards, Madiha Taha -- ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users -- ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users
[Sipp-users] [IMS-Bench]Start TS automatically from manager without being prompted for password
Hi, I’m trying to start TS automatically from the manager when the manager starts up. I used ims_bench.pl to do the configuration. During the configuration I've set ExecuteSiPp to 1 so manager starts the TS. Both manager and TS are on the same machine. After starting the manager when i press e, the manager prompts me to enter the password for starting TS. Is it possible to get the manager to start the TS without prompting for password? I need to have it working this way for automating the process. Thank you. -- ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users
Re: [Sipp-users] [IMS-Bench]Start TS automatically from manager without being prompted for password
When ims_bench.pl script finished, it told you something like: Make sure all the TSs have the necessary authentication keys set up so SSH sessions can be opened from this host without requiring a password to be entered. This is what you need to do. You have to set up SSH keys so that you can do ssh ts_system_ip without having to enter a password. There are many tutorials on the net about this. For example http://www.debian-administration.org/articles/530 (but you don't need the part that tells you to prevent logging in with a password). Regards, -David From: r g [mailto:guptarashm...@yahoo.com] Sent: jeudi 26 mars 2009 15:48 To: sipp-users@lists.sourceforge.net Subject: [Sipp-users] [IMS-Bench]Start TS automatically from manager without being prompted for password Hi, I'm trying to start TS automatically from the manager when the manager starts up. I used ims_bench.pl to do the configuration. During the configuration I've set ExecuteSiPp to 1 so manager starts the TS. Both manager and TS are on the same machine. After starting the manager when i press e, the manager prompts me to enter the password for starting TS. Is it possible to get the manager to start the TS without prompting for password? I need to have it working this way for automating the process. Thank you. - Intel Corporation NV/SA Rond point Schuman 6, B-1040 Brussels RPM (Bruxelles) 0415.497.718. Citibank, Brussels, account 570/1031255/09 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users