Hi Gang
I have this code snipplet:
if (has_credentials("$fd")) { xlog("L_INFO", "$cfg(route): got $rm with credentials. Validate them!\n"); if ($aU == $null) { xlog("L_INFO", "$cfg(route): no auth user, send challenge\n"); } auth_challenge("$fd", "0"); exit; } }
Please don't ask if this makes sense, it's a constructed snipplet to show the situation.
If $rm is INVITE, this works fine, no challenge is being sent, $au is populated. If $rm is ACK (some CPE seem to send the Credentials with each message) then $au is $null, auth_challenge is called and fails.
Mit freundlichen Grüssen
-Benoît Panizzon-