<div dir="ltr"><div><div><div><div><div><div><div>Hello again,<br><br>Still getting familiar with kamailio, and I'm wondering about the AUTH route in the example configuration file. Here's a reducted-simplified version of it for reference (from git master, without IP AUTH and comments):<br><br>______________________________________________<br>route[AUTH] {<br>    if (is_method("REGISTER") || from_uri==myself) {<br>        if (!auth_check("$fd", "subscriber", "1")) {<br>            auth_challenge("$fd", "0");<br>            exit;<br>        }<br>        if(!is_method("REGISTER|PUBLISH"))<br>            consume_credentials();<br>    }<br>    if (from_uri!=myself && uri!=myself) {<br>        sl_send_reply("403","Not relaying");<br>        exit;<br>    }<br>    return;<br>}<br>______________________________________________<br><br>So the way I see it, what happens is the following:<br><br>* All REGISTERs will be challenged<br>* All SIP messages with kamailio's aliases in the "From" header URI will be challenged<br>* All SIP messages with no reference to kamailio's aliases in both R-URI and "From" header URI will be dropped<br><br>The question is, what about messages that do not enter either of the two conditionals? For example, I expect the following to be very common:<br><br>* Method: INVITE<br>* R-URI: myself<br>* From: username@"UAC's local IP address" (not myself)<br>* To: myself<br><br></div>So in the example above, the auth route will return without either having challenged or dropped the request, am I correct? This is because:<br><br></div>* For the challenge: Method is not REGISTER and "From URI" is not one of kamailio host's aliases (c<span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-">umulatively)</span></span></div></div>* For dropping after sending 403: "From URI" is not one of kamailio's host's aliases (which calculates to true) but R-URI is "myself"<br><br></div>So I'm guessing we're expecting the challenge to come from elsewhere in cases like the example above? Or is there something else I'm missing here? Thanks!<br><br></div>BR,<br></div>George<br></div>