Re: [Sipp-users] Variable $5 is referenced 1 times!
Charles P Wright [EMAIL PROTECTED] wrote: The only referenced once check is there to prevent typos and other similar errors that would have SIPp load a scenario with a variable only used once (the theory being why do you need to read or write to a variable if you never read or write from it again, basically like an unused variable warning from your compiler). If you don't need $5, you can use it for something unneeded like: assign assign_to=5 value=0 / This worked for me, I didn't need $5. Thanks a lot -- I'd have spent a lot more time gawking at the error message otherwise. A better long term solution would be to modify the SIPp source code to make the whole match variable optional so that you don't need to jump through hoops like this. Ah, now that I have read it, I thought it could have been a WARNING() instead of an ERROR(), but apparently sipp didn't want to be that easily forgiving. That doesn't make it any less useful a tool though. This was an educational experience after all. :-) Regards, Sajith. -- the lyf so short, the craft so long to lerne. -- Chaucer. - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users
Re: [Sipp-users] Variable $5 is referenced 1 times!
Hi, It's probably about an unused vatiable. I had this error in sipp 3.1 when I extracted something with ereg, but never used the variable. It is strange, because it should rather say that it's referenced 0 times. The error goes away if you use every extracted variable somewhere in the scenario. In sipp 3.0, I didn't get this error even if there were unused variables. Another thing is that you should probably use parentheses () in the regular expression if you assign to more than one variable. The, the first variable will contain the whole expression and the next ones will contain the part that matches the content of each parentheses. So you should probably have ereg regexp=sip:(.*);transport=(.*)SIP/2.0 ... assign_to=1,5,6/ And then you will have 1 - the whole contact beginning with sip: and ending with SIP/2.0 (first variable always gets the whole expression) 5 - the sip uri (the part between sip: and ;transport) 6 - the transport And last but not least - do you really have SIP/2.0 in Contact header? In one of my tests, it looks as follows Contact: sip:[EMAIL PROTECTED]:16175;transport=UDP Hope this helps -- Tomasz Radziszewski Senior Software Engineer Ericpol Telecom sp. z o.o. Madalinskiego 9, 30-303 Krakow, Poland e-mail: [EMAIL PROTECTED] http://www.ericpol.pl/ Hi, I'm trying to find the contact uri from a 200 OK response sent by the UAC, but sipp apparently isn't happy about the scenario file syntax. I keep getting this error: Variable $5 is referenced 1 times! is this correct? recv response=200 rtd=true rrs=true action ereg regexp=sip:.*;transport=.*SIP/2.0 search_in=hdr header=Contact: check_it=true assign_to=5,6 / /action /recv Thanks, Sajith. - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users
Re: [Sipp-users] Variable $5 is referenced 1 times!
The only referenced once check is there to prevent typos and other similar errors that would have SIPp load a scenario with a variable only used once (the theory being why do you need to read or write to a variable if you never read or write from it again, basically like an unused variable warning from your compiler). If you don't need $5, you can use it for something unneeded like: assign assign_to=5 value=0 / I would rename 5 to something like dummy (you can use string names not just numeric names, which makes the scenario much more readable). A better long term solution would be to modify the SIPp source code to make the whole match variable optional so that you don't need to jump through hoops like this. Charles Sajith T S [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 07/04/2008 09:28 AM To sipp-users@lists.sourceforge.net cc Subject [Sipp-users] Variable $5 is referenced 1 times! Hi, I'm trying to find the contact uri from a 200 OK response sent by the UAC, but sipp apparently isn't happy about the scenario file syntax. I keep getting this error: Variable $5 is referenced 1 times! is this correct? recv response=200 rtd=true rrs=true action ereg regexp=sip:.*;transport=.*SIP/2.0 search_in=hdr header=Contact: check_it=true assign_to=5,6 / /action /recv Thanks, Sajith. -- the lyf so short, the craft so long to lerne. -- Chaucer. - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users