|
From: karthick s. <kar...@gm...> - 2018-09-09 17:03:21
|
Thanks Pavel for the suggestion. I got the two variables syntax format from a discussion https://sourceforge.net/p/sipp/mailman/message/25805436/ Still, it's not working. <recv request="INVITE" crlf="true"> <action> <assignstr assign_to="v1" value="blue"/> <assignstr assign_to="v2" value="blue"/> <strcmp assign_to="result" variable="v1" value="blue"/> <log message="v1=[$v1] and v2=[$v2]"/> <log message="result=[$result]"/> </action> </recv> *Logs:* $ cat uas1_strcmp_5232_logs.log v1=blue and v2=blue result= Regards, Karthick On Sun, Sep 9, 2018 at 7:07 PM Šindelka Pavel <sin...@tt...> wrote: > First of all, where have you found the strcmp syntax with variable2? The > manual for current version (3.4) doesn't mention anything alike and says: A *string > variable* and a *value* can be compared using the <strcmp> action. > > So I'd first try the following: > > <strcmp assign_to="result" variable="v1" value="blue"/> > > If this works, it means that <strcmp> itself works and that <log> can > print double values properly. > > The next step would be > > <strcmp assign_to="result" variable="v1" value="[$v2]"/> > > If this helps, you're done; if it doesn't, you have to dive into the > source code. > > Pavel > > _______________________________________________ > Sipp-users mailing list > Sip...@li... > https://lists.sourceforge.net/lists/listinfo/sipp-users > |