[Kamailio-Users] is_present_hf function

BERGANZ François francois at acropolistelecom.net
Wed Dec 10 17:37:41 CET 2008


What is « consume_credentials(); » ?
 
 

 

 

Cordialement,

BERGANZ François

 

cid:image001.gif at 01C8F7CD.6BC1D2C0

 <http://www.acropolistelecom.net/> http://www.acropolistelecom.net

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

 

De : users-bounces at lists.kamailio.org
[mailto:users-bounces at lists.kamailio.org] De la part de Antonio Reale
Envoyé : mercredi 10 décembre 2008 17:32
À : users at 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20081210/dd0fb605/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 3150 bytes
Desc: not available
Url : http://lists.kamailio.org/pipermail/users/attachments/20081210/dd0fb605/attachment.gif 


More information about the Users mailing list