I'm still learning OpenSIPS and have come a long way from a few weeks back!<br><br>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:<br>
<br>ERROR:auth:consume_credentials: no authorized credentials found (error in scripts)<br><br>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)?<br>
<br>The relevant script block is:<br><br>########################################################################<br># Request route 'base-outbound'<br>########################################################################<br>
route[2]<br>{<br> t_on_reply("1");<br> if(!isflagset(21))<br> {<br><br> t_on_failure("2");<br> }<br> if(is_present_hf("Proxy-Authorization"))<br>
{<br> #Print value of Proxy-Auth, if it exists<br> xlog("L_INFO", "Proxy Authorization value header is $hdr(Proxy-Authorization)\n)");<br> consume_credentials();<br>
}<br><br> xlog("L_INFO", "Request leaving server, D-URI='$du' - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");<br> # no 100 (we already sent it) and no DNS blacklisting<br>
if(!t_relay("0x05"))<br> {<br> sl_reply_error();<br> }<br> exit;<br><br>}<br><br>