|
From: mayamatakeshi <may...@gm...> - 2009-01-21 06:13:35
|
On Wed, Jan 21, 2009 at 2:44 PM, Matsuoka Noriko <mat...@qk...>wrote: > Hi, > > Thank you for your mail. > > I'm using SIPp version 3.1, latest stable version.. > > Noriko Matsuoka > > > Hi > > I'm out of options. > > What version of SIPp do u use? > > > > Regards, > > Evgeny Miloslavsky > > Systest Engineer > > Juniper Networks Solutions Israel LTD. > > Office: 972-9-9717320/2355 > > > > -----Original Message----- > > From: Matsuoka Noriko [mailto:mat...@qk...] > > Sent: Wednesday, January 21, 2009 4:01 AM > > To: Evgeny Miloslavsky > > Cc: sip...@li... > > Subject: Re: [Sipp-users] How to get message header items > > > > Hi, > > > > Thank you for your information. This is exactly what I wanted to do ! > > > > I tried for "Record-Route" header and "Via" header, but both didn't > > work.. > > my scenario is... > > <recv request="NOTIFY" rtd="true"> > > <action> > > <ereg regexp=".*" search_in="hdr" occurance="1" header="Via:" > > assign_to="1" /> > > <ereg regexp=".*" search_in="hdr" occurance="2" header="Via:" > > assign_to="2" /> > > <ereg regexp=".*" search_in="hdr" occurance="3" header="Via:" > > assign_to="3" /> > > </action> > > </recv> > > .... > > <send> > > <![CDATA[ > > SIP/2.0 200 OK > > Via:[$1] > > Via:[$2] > > Via:[$3] > > .... > > > > and It's result is ... > > Via: SIP/2.0/UDP 192.168.4.72:4060;branch=z9hG4bKa881.6597d637.0^M > > Via: SIP/2.0/UDP 192.168.4.72:4060;branch=z9hG4bKa881.6597d637.0^M > > Via: SIP/2.0/UDP 192.168.4.72:4060;branch=z9hG4bKa881.6597d637.0^M > > > > It seems like the first "Via" value was inserted for all. > > I missed something ? Misspelling maybe: >From SIPp docs: occurence: to find the nth occurence of a header. Only used when the search_in tag is set to hdr. In the sample: <ereg regexp=".*" search_in="hdr" occurance="1" header="Via:" Merriam-Webster: http://www.merriam-webster.com/dictionary/occurrence I don't know what would be right as I never used this. |