Hi

I think that this is the way to solve your problem (or that's what I
would try): 

Use the "occurrence" option at action tag of received request. Assign to
a different variable result of regexp and use those variables while
building the message sent. That is: 
<action>
        <ereg regexp=".*" search_in="hdr" header="Recor-Route:"
check_it="true" occurance="1" assign_to="1" />
        <ereg regexp=".*" search_in="hdr" header="Recor-Route:"
check_it="true" occurance="2" assign_to="2" />
  </action>
While building the message sent the Record-Route set will be inserted
as:
Record-Route: [$2]
Record-Route: [$1]
 
I hope it will help :-)
 

 

Regards, 

Evgeny Miloslavsky

Systest Engineer

Juniper Networks Solutions Israel LTD.

Office: 972-9-9717320/2355

-----Original Message-----
From: Matsuoka Noriko [mailto:matsuok...@qks.co.jp] 
Sent: Friday, January 16, 2009 3:37 AM
To: sipp-users@lists.sourceforge.net
Subject: [Sipp-users] How to get message header items

 

Hi all,

 

I want to get multi lined "Record-Route" in sip message header.

 

messsage is like this..

INVITE sip:192.168.4.73:5061;transport=UDP SIP/2.0

Record-Route: <sip:mt at pcscf.ims.test:4060;lr>

Record-Route: <sip:mt at scscf.ims.test:6060;lr>

Record-Route: <sip:mo at scscf.ims.test:6060;lr>

 

>From my understanding, by using [last_Record-Route:] tag, I can

retrieve all Record-Route of the last message,

but in my case, I need to keep it for subsequent message, 

that is not just after.

 

By using regexp function, I don't know how to get multiple 

Record-Route headers.

 

If you have any tip, please help me !

 

Thank you in advance.

 

Regards.

Noriko Matsuoka

 

 

 

 

------------------------------------------------------------------------
------

This SF.net email is sponsored by:

SourcForge Community

SourceForge wants to tell your story.

http://p.sf.net/sfu/sf-spreadtheword

_______________________________________________

Sipp-users mailing list

Sipp-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/sipp-users

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to