<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Titre content=""><meta name="Mots clés" content=""><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Courier New";
        panose-1:2 7 3 9 2 2 5 2 4 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:Calibri;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Calibri;
        color:windowtext;}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:"Courier New";
        mso-fareast-language:FR;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:Calibri;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:595.0pt 842.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body bgcolor=white lang=FR link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt'>Hi all,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>I need to test if some particular value exist in Reason header on a 404 reply. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>I receive : <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>SIP/2.0 404 Not Found<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>Via: SIP/2.0/UDP 1.2.3.4:5060;branch=z9hG4bK72222454<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>From: "+33111111111" <sip:+33111111111@1.2.3.4>;tag=as005364a4<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>To: <sip:+33999999999@5.6.7.8>;tag=SDufib599-019e0074000099e0<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>Call-ID: 323ca6b15f8404cd3d05d53014336311@1.2.3.4:5060<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>CSeq: 102 INVITE<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>Content-Length: 0<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.5pt;font-family:"Courier New";color:black;mso-fareast-language:FR'>Reason: Q.850;cause=001<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>I’m trying using this code, but is_present_hf() function return always false.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>if ( t_check_status("404") ) {<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> if (is_present_hf("Reason:")) xlog("L_WARN","Reason exist");<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'> xlog("L_WARN","Reason not exist");<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>}<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>Any Idea ?<o:p></o:p></span></p></div></body></html>