Re: [Sipp-users] Variables as integer
Hi Charles and Takeshi, I don't see ereg ... search_in=var variable=foo / happening in SIPp version 3.1. If you can provide me a pointer for the version where it works, it will be helpful. I need to increase Cseq:, which I'm not able to do in a loop. Thanks, Shamik From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of mayamatakeshi Sent: Wednesday, September 17, 2008 10:38 AM To: Charles P Wright Cc: [EMAIL PROTECTED]; sipp-users Subject: Re: [Sipp-users] Variables as integer On Thu, Sep 18, 2008 at 2:31 AM, Charles P Wright [EMAIL PROTECTED] wrote: With recent trunk versions you can do: ereg ... search_in=var variable=foo / Oh! That's neat. Thanks a lot. mayamatakeshi [EMAIL PROTECTED] 09/17/2008 01:25 PM To Charles P Wright/Watson/[EMAIL PROTECTED] cc sipp-users sipp-users@lists.sourceforge.net, [EMAIL PROTECTED] Subject Re: [Sipp-users] Variables as integer On Thu, Sep 18, 2008 at 1:59 AM, Charles P Wright [EMAIL PROTECTED] wrote: The only way right now is to use a regular expression to parse it out as a string. Hi Charles, but is it possible to pass a variable to the ereg action? It seems search_in will only accept msg or hdr. I need a variable because I'll have to increment it. mayamatakeshi [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 09/17/2008 12:37 PM To sipp-users sipp-users@lists.sourceforge.net cc Subject [Sipp-users] Variables as integer Hello, how can I insert a variable in a message but as an integer instead of a floating point number? For example, if I do: nop action assign assign_to=1 value=1 / /action /nop and try to use it like this ... CSeq: [$1] REGISTER ...the header will be sent as : CSeq: 1.00 REGISTER How can I make it to be sent as : CSeq: 1 REGISTER ? regards, takeshi - 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] Variables as integer
You need to get a recent subversion trunk version, 3.1 does not have this support. Charles Shamik Mukhopadhyay -X (shmukhop - WIPRO at Cisco) [EMAIL PROTECTED] 11/13/2008 07:07 PM To mayamatakeshi [EMAIL PROTECTED], Charles P Wright/Watson/[EMAIL PROTECTED] cc sipp-users@lists.sourceforge.net Subject RE: [Sipp-users] Variables as integer Hi Charles and Takeshi, I don't see ereg ... search_in=var variable=foo / happening in SIPp version 3.1. If you can provide me a pointer for the version where it works, it will be helpful. I need to increase Cseq:, which I'm not able to do in a loop. Thanks, Shamik From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of mayamatakeshi Sent: Wednesday, September 17, 2008 10:38 AM To: Charles P Wright Cc: [EMAIL PROTECTED]; sipp-users Subject: Re: [Sipp-users] Variables as integer On Thu, Sep 18, 2008 at 2:31 AM, Charles P Wright [EMAIL PROTECTED] wrote: With recent trunk versions you can do: ereg ... search_in=var variable=foo / Oh! That's neat. Thanks a lot. mayamatakeshi [EMAIL PROTECTED] 09/17/2008 01:25 PM To Charles P Wright/Watson/[EMAIL PROTECTED] cc sipp-users sipp-users@lists.sourceforge.net, [EMAIL PROTECTED] Subject Re: [Sipp-users] Variables as integer On Thu, Sep 18, 2008 at 1:59 AM, Charles P Wright [EMAIL PROTECTED] wrote: The only way right now is to use a regular expression to parse it out as a string. Hi Charles, but is it possible to pass a variable to the ereg action? It seems search_in will only accept msg or hdr. I need a variable because I'll have to increment it. mayamatakeshi [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 09/17/2008 12:37 PM To sipp-users sipp-users@lists.sourceforge.net cc Subject [Sipp-users] Variables as integer Hello, how can I insert a variable in a message but as an integer instead of a floating point number? For example, if I do: nop action assign assign_to=1 value=1 / /action /nop and try to use it like this ... CSeq: [$1] REGISTER ...the header will be sent as : CSeq: 1.00 REGISTER How can I make it to be sent as : CSeq: 1 REGISTER ? regards, takeshi - 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] Variables as integer
On Fri, Nov 14, 2008 at 12:25 PM, Shamik Mukhopadhyay -X (shmukhop - WIPRO at Cisco) [EMAIL PROTECTED] wrote: Hi Charles, Does that mean that using 3.1 - we can not increment an integer value in sipp script ? If not, please provide me pointer. Hi, v. 3.1 will work but it must be the version from the svn repo. Do the following (or the equivalent to your distro): Ensure OpenSSL development headers and libs are installed: yum install openssl-devel.i386 Pick source from svn repo: svn co https://sipp.svn.sourceforge.net/svnroot/sipp sipp Go to source folder: cd sipp/sipp/trunk Build: make pcapplay_ossl To increment the CSeq, I use this (sorry, maybe it could be shorter, but that's what I was able to come up with): nop action assign assign_to=1 value=0 / /action /nop label id=1 / nop action add assign_to=1 value=1 / assignstr assign_to=2 value=[$1] / ereg regexp=[0-9]+ search_in=var variable=2 assign_to=2 check_it=true / /action /nop send retrans=500 ![CDATA[ REGISTER sip:[field1] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch] From: [field0] sip:[EMAIL PROTECTED];tag=[pid]SIPpTag00[call_number] To: [field0] sip:[EMAIL PROTECTED] Call-ID: [call_id] Contact: sip:[EMAIL PROTECTED]:[local_port] CSeq: [$2] REGISTER Max-Forwards: 70 Expires: 3600 Allow: INVITE,CANCEL,ACK,BYE,NOTIFY,REFER,OPTIONS,INFO,MESSAGE User-Agent: ATA Content-Length: 0 ]] /send ... Extra things go here and then loop nop next=1 / Thanks, Shamik -Original Message- From: Charles P Wright [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2008 6:44 PM To: Shamik Mukhopadhyay -X (shmukhop - WIPRO at Cisco) Cc: mayamatakeshi; sipp-users@lists.sourceforge.net Subject: RE: [Sipp-users] Variables as integer You need to get a recent subversion trunk version, 3.1 does not have this support. Charles Shamik Mukhopadhyay -X (shmukhop - WIPRO at Cisco) [EMAIL PROTECTED] 11/13/2008 07:07 PM To mayamatakeshi [EMAIL PROTECTED], Charles P Wright/Watson/[EMAIL PROTECTED] cc sipp-users@lists.sourceforge.net Subject RE: [Sipp-users] Variables as integer Hi Charles and Takeshi, I don't see ereg ... search_in=var variable=foo / happening in SIPp version 3.1. If you can provide me a pointer for the version where it works, it will be helpful. I need to increase Cseq:, which I'm not able to do in a loop. Thanks, Shamik From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of mayamatakeshi Sent: Wednesday, September 17, 2008 10:38 AM To: Charles P Wright Cc: [EMAIL PROTECTED]; sipp-users Subject: Re: [Sipp-users] Variables as integer On Thu, Sep 18, 2008 at 2:31 AM, Charles P Wright [EMAIL PROTECTED] wrote: With recent trunk versions you can do: ereg ... search_in=var variable=foo / Oh! That's neat. Thanks a lot. mayamatakeshi [EMAIL PROTECTED] 09/17/2008 01:25 PM To Charles P Wright/Watson/[EMAIL PROTECTED] cc sipp-users sipp-users@lists.sourceforge.net, [EMAIL PROTECTED] Subject Re: [Sipp-users] Variables as integer On Thu, Sep 18, 2008 at 1:59 AM, Charles P Wright [EMAIL PROTECTED] wrote: The only way right now is to use a regular expression to parse it out as a string. Hi Charles, but is it possible to pass a variable to the ereg action? It seems search_in will only accept msg or hdr. I need a variable because I'll have to increment it. mayamatakeshi [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 09/17/2008 12:37 PM To sipp-users sipp-users@lists.sourceforge.net cc Subject [Sipp-users] Variables as integer Hello, how can I insert a variable in a message but as an integer instead of a floating point number? For example, if I do: nop action assign assign_to=1 value=1 / /action /nop and try to use it like this ... CSeq: [$1] REGISTER ...the header will be sent as : CSeq: 1.00 REGISTER How can I make it to be sent as : CSeq: 1 REGISTER ? regards, takeshi - 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] Variables as integer
Hello, how can I insert a variable in a message but as an integer instead of a floating point number? For example, if I do: nop action assign assign_to=1 value=1 / /action /nop and try to use it like this ... CSeq: [$1] REGISTER ...the header will be sent as : CSeq: 1.00 REGISTER How can I make it to be sent as : CSeq: 1 REGISTER ? regards, takeshi - 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] Variables as integer
The only way right now is to use a regular expression to parse it out as a string. Charles mayamatakeshi [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 09/17/2008 12:37 PM To sipp-users sipp-users@lists.sourceforge.net cc Subject [Sipp-users] Variables as integer Hello, how can I insert a variable in a message but as an integer instead of a floating point number? For example, if I do: nop action assign assign_to=1 value=1 / /action /nop and try to use it like this ... CSeq: [$1] REGISTER ...the header will be sent as : CSeq: 1.00 REGISTER How can I make it to be sent as : CSeq: 1 REGISTER ? regards, takeshi - 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] Variables as integer
On Thu, Sep 18, 2008 at 1:59 AM, Charles P Wright [EMAIL PROTECTED]wrote: The only way right now is to use a regular expression to parse it out as a string. Hi Charles, but is it possible to pass a variable to the ereg action? It seems search_in will only accept msg or hdr. I need a variable because I'll have to increment it. mayamatakeshi [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 09/17/2008 12:37 PM To sipp-users sipp-users@lists.sourceforge.net cc Subject [Sipp-users] Variables as integer Hello, how can I insert a variable in a message but as an integer instead of a floating point number? For example, if I do: nop action assign assign_to=1 value=1 / /action /nop and try to use it like this ... CSeq: [$1] REGISTER ...the header will be sent as : CSeq: 1.00 REGISTER How can I make it to be sent as : CSeq: 1 REGISTER ? regards, takeshi - 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] Variables as integer
With recent trunk versions you can do: ereg ... search_in=var variable=foo / Charles mayamatakeshi [EMAIL PROTECTED] 09/17/2008 01:25 PM To Charles P Wright/Watson/[EMAIL PROTECTED] cc sipp-users sipp-users@lists.sourceforge.net, [EMAIL PROTECTED] Subject Re: [Sipp-users] Variables as integer On Thu, Sep 18, 2008 at 1:59 AM, Charles P Wright [EMAIL PROTECTED] wrote: The only way right now is to use a regular expression to parse it out as a string. Hi Charles, but is it possible to pass a variable to the ereg action? It seems search_in will only accept msg or hdr. I need a variable because I'll have to increment it. mayamatakeshi [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 09/17/2008 12:37 PM To sipp-users sipp-users@lists.sourceforge.net cc Subject [Sipp-users] Variables as integer Hello, how can I insert a variable in a message but as an integer instead of a floating point number? For example, if I do: nop action assign assign_to=1 value=1 / /action /nop and try to use it like this ... CSeq: [$1] REGISTER ...the header will be sent as : CSeq: 1.00 REGISTER How can I make it to be sent as : CSeq: 1 REGISTER ? regards, takeshi - 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] Variables as integer
On Thu, Sep 18, 2008 at 2:31 AM, Charles P Wright [EMAIL PROTECTED]wrote: With recent trunk versions you can do: ereg ... search_in=var variable=foo / Oh! That's neat. Thanks a lot. mayamatakeshi [EMAIL PROTECTED] 09/17/2008 01:25 PM To Charles P Wright/Watson/[EMAIL PROTECTED] cc sipp-users sipp-users@lists.sourceforge.net, [EMAIL PROTECTED] Subject Re: [Sipp-users] Variables as integer On Thu, Sep 18, 2008 at 1:59 AM, Charles P Wright [EMAIL PROTECTED] wrote: The only way right now is to use a regular expression to parse it out as a string. Hi Charles, but is it possible to pass a variable to the ereg action? It seems search_in will only accept msg or hdr. I need a variable because I'll have to increment it. mayamatakeshi [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 09/17/2008 12:37 PM To sipp-users sipp-users@lists.sourceforge.net cc Subject [Sipp-users] Variables as integer Hello, how can I insert a variable in a message but as an integer instead of a floating point number? For example, if I do: nop action assign assign_to=1 value=1 / /action /nop and try to use it like this ... CSeq: [$1] REGISTER ...the header will be sent as : CSeq: 1.00 REGISTER How can I make it to be sent as : CSeq: 1 REGISTER ? regards, takeshi - 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