Please try with following,
<ereg regexp="Contact:.*<.*>;.*" search_in="hdr" header="Contact:" 
assign_to="tempFarContact"/>
to extract below contact header 

Contact: "1XC-SIP, 40061401" 
<sips:40061401@135.27.152.189;gsid=cbb66ad0-f616-11e3-acc6-000c29ae90be;epv=%3csips:40061401%40avaya.com%3bgr%3d1ff2226dabd3ee74d6d4c89e762c0dbe%3e>;+avaya-cm-keep-mpro=no^M

Best Regards,Sakharam Thorat.

Date: Wed, 18 Jun 2014 11:19:03 +0530
From: gayake.sambh...@gmail.com
To: sipp-users@lists.sourceforge.net
Subject: [Sipp-users] Unable to extract Contact Header Value

Hi All,
Below is snippet of incoming INVITE message to SIPP.

Accept-Contact: *;+avaya-cm-line=1^MAccept-Language: en^M
Contact: "1XC-SIP, 40061401" 
<sips:40061401@135.27.152.189;gsid=cbb66ad0-f616-11e3-acc6-000c29ae90be;epv=%3csips:40061401%40avaya.com%3bgr%3d1ff2226dabd3ee74d6d4c89e762c0dbe%3e>;+avaya-cm-keep-mpro=no^M

User-Agent: Avaya Flare Engine/2.0.0 (Avaya 2.0 36; Windows NT 6.1, 64-bit) 
AVAYA-SM-6.3.8.0.638014 Avaya CM/R017x.00.0.422.0 AVAYA-SM-6.3.8.0.638014^M


As you can see, it has Accept-Contact header before Contact header. Now if I 
use below expression to extract Contact header, it always gives me 
Accept-Contact value.
          <ereg regexp=".*" search_in="hdr" header="Contact:" 
assign_to="tempFarContact"/>



Is there a way to make sure we get Contact header value instead of 
Accept-Contact value?
Thanks,Sambhaji



------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users                         
                  
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to