You can save From and To in the received message using:

<ereg regexp=".*" search_in="hdr" header="From:" check_it="true"
assign_to="1" />
<ereg regexp=".*" search_in="hdr" header="To:" check_it="true" assign_to="2" />


Then you can use [$1] and [$2] in the script, and change the headers like:

From: [$2]
To: [$1]


I hope it helps you.



2009/5/29 Dushyant Dhalia <[email protected]>

> One method could be to save To and From tags in some variable using regular
> expression.
>
> Dushyant P S Dhalia
> parasuraman kumarasami wrote:
>
>> Hi All,
>>
>> How we can exchange the From and To header in SIPp. for the receipent
>> sending BYE request.
>>
>> --
>> Regards,
>> Parasuraman Kumarasami
>> ------------------------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------------
>> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a
>> gathering of tech-side developers & brand creativity professionals. Meet
>> the minds behind Google Creative Lab, Visual Complexity, Processing, &
>> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
>> Group, R/GA, & Big Spaceship. 
>> http://p.sf.net/sfu/creativitycat-com------------------------------------------------------------------------
>>
>> _______________________________________________
>> Sipp-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/sipp-users
>>
>>
>
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> Sipp-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sipp-users
>
>


-- 
Vanessa Tejada
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to