<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<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:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        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";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:"Courier New";}
span.searchhit
        {mso-style-name:search_hit;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=FR link=blue vlink=purple>

<div class=Section1><pre><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>What is «&nbsp;</span>consume_credentials();&nbsp;»&nbsp;?<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre><o:p>&nbsp;</o:p></pre>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas;
color:#1F497D'>Cordialement,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas;
color:#1F497D'>BERGANZ François<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas;
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas;
color:navy'><img width=119 height=74 id="Image_x0020_1"
src="cid:image001.gif@01C95AED.FE8E2FD0"
alt="cid:image001.gif@01C8F7CD.6BC1D2C0"><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas;
color:#1F497D'><a href="http://www.acropolistelecom.net/"><span
style='color:#993300'>http://www.acropolistelecom.net</span></a><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:16.0pt;font-family:Webdings;
color:#377C17'>P</span><span style='font-size:16.0pt;font-family:"Calibri","sans-serif";
color:#377C17'>&nbsp;</span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";
color:#377C17'>Pensez à l'Environnement,&nbsp;n'imprimez ce mail que si
nécessaire.</span><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";
color:black'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De&nbsp;:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] <b>De
la part de</b> Antonio Reale<br>
<b>Envoyé&nbsp;:</b> mercredi 10 décembre 2008 17:32<br>
<b>À&nbsp;:</b> users@lists.kamailio.org<br>
<b>Objet&nbsp;:</b> [Kamailio-Users] is_present_hf function<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Hi all,<br>
I have a problem with the is_present_hf function from TEXTOPS module.<br>
In the script (openser 1.2.3-notls) I have:<br>
---<br>
if(is_present_hf(&quot;Proxy-Authorization&quot;))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
xlog(&quot;L_ERR&quot;, &quot;Proxy-Authorization header present\n&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
consume_credentials();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
---<br>
<br>
When the proxy receives the BYE message I see in the log:<br>
Dec 10 16:00:54 sipsvr /usr/sbin/openser[12846]: Proxy-Authorization header
present <br>
Dec 10 16:00:54 sipsvr /usr/sbin/openser[12846]: consume_credentials(): No
authorized credentials found (error in scripts)<br>
<br>
Tracing the call I don't see any Proxy-Authorization header in the BYE message.
Why the function is_present_hf returns true?<br>
Attached you will find debug messages from Openser/Kamailio and the BYE.<br>
I see the problem using Kapanga softphone, but the same problem occurs in
production environment with different CPEs (for instance Linksys SPA2102).<br>
The strange thing is that it occurs only when kapanga is the caller (and
hungup) and not when it is the callee (and hungup).<br>
Using wireshark I see that the BYE is the same in both situation.<br>
How can I debug this problem?<br>
Thanks a lot.<br>
<br>
Regards,<br>
Antonio.<o:p></o:p></p>

</div>

</body>

</html>