[OpenSIPS-Users] Confused -> ERROR:auth:consume_credentials: no authorized credentials found (error in scripts)

Alan Frisch frisch.alan at gmail.com
Thu Mar 26 21:50:51 CET 2009


I'm still learning OpenSIPS and have come a long way from a few weeks back!

Right now, I am using one of the scripts from the Sipwise OpenSER script
generator.  With some tweaks to bring the script up to OpenSIPS standards I
am now using a basic PSTN gateway script (LCR) from the site.  The script
works great, but when the caller sends a BYE (including a
Proxy-Authorization header) I receive the following in the console:

ERROR:auth:consume_credentials: no authorized credentials found (error in
scripts)

I have confirmed that that the credentials do get consumed by OpenSIPs as
the relayed BYE received at the gateway has no Proxy-Auth header. Is this
simply saying there was no matching authorization request (and thus a
harmless error)?

The relevant script block is:

########################################################################
# Request route 'base-outbound'
########################################################################
route[2]
{
        t_on_reply("1");
        if(!isflagset(21))
        {

                t_on_failure("2");
        }
        if(is_present_hf("Proxy-Authorization"))
        {
                #Print value of Proxy-Auth, if it exists
                xlog("L_INFO", "Proxy Authorization value header is
$hdr(Proxy-Authorization)\n)");
                consume_credentials();
        }

        xlog("L_INFO", "Request leaving server, D-URI='$du' - M=$rm RURI=$ru
F=$fu T=$tu IP=$si ID=$ci\n");
        # no 100 (we already sent it) and no DNS blacklisting
        if(!t_relay("0x05"))
        {
                sl_reply_error();
        }
        exit;

}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090326/0227703d/attachment.htm 


More information about the Users mailing list