What is « consume_credentials(); » ?
 
 

 

 

Cordialement,

BERGANZ François

 

cid:image001.gif@01C8F7CD.6BC1D2C0

http://www.acropolistelecom.net

P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.

 

De : users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] De la part de Antonio Reale
Envoyé : mercredi 10 décembre 2008 17:32
À : users@lists.kamailio.org
Objet : [Kamailio-Users] is_present_hf function

 

Hi all,
I have a problem with the is_present_hf function from TEXTOPS module.
In the script (openser 1.2.3-notls) I have:
---
if(is_present_hf("Proxy-Authorization"))
        {
                xlog("L_ERR", "Proxy-Authorization header present\n");
                consume_credentials();
        }
---

When the proxy receives the BYE message I see in the log:
Dec 10 16:00:54 sipsvr /usr/sbin/openser[12846]: Proxy-Authorization header present
Dec 10 16:00:54 sipsvr /usr/sbin/openser[12846]: consume_credentials(): No authorized credentials found (error in scripts)

Tracing the call I don't see any Proxy-Authorization header in the BYE message. Why the function is_present_hf returns true?
Attached you will find debug messages from Openser/Kamailio and the BYE.
I see the problem using Kapanga softphone, but the same problem occurs in production environment with different CPEs (for instance Linksys SPA2102).
The strange thing is that it occurs only when kapanga is the caller (and hungup) and not when it is the callee (and hungup).
Using wireshark I see that the BYE is the same in both situation.
How can I debug this problem?
Thanks a lot.

Regards,
Antonio.