On 22/03/10 15.27, Brian West wrote:
Please pay close attention this time.
Reading very closely, let me answer to see my setup.
So definitely i need to keep auth-calls=false .
No you want it to true. If you don't listen to me this time then I give up.
The reason you want it set to true is then you CAN do the directory lookup. Just return an empty password. The 401/407 will never take place and it gives you a way to let them in or not depending on what you want.
I verified that it does not works properly that way (at least with my setup) 1 - Client -> REGISTER(unauth) -> Server 2 - Client <- 407/401 (send digest) <- Server 3 - Client -> REGISTER(digest auth) -> Server 4 - Client <- OK <- Server The FreeSWITCH configured with xml_curl.conf as follow: <binding name="directory"> <param name="gateway-url" value="http://XXX/directory" bindings="directory"/> <param name="auth-scheme" value="digest"/> </binding> <binding name="dialplan"> <param name="gateway-url" value="http://XXX/dialplan" bindings="dialplan"/> </binding> I verified with tcpdump in one hand and siptrace on the other one and with this setup FS make the xml_curl requests only AFTER the step "3", so after the unauth requests already failed. Maybe i am doing something wrong at the configuration, but FS does not make any kind of lookup on step "1" of the sip registration process. I need FS to make a lookup to a database on step "1" of authentication process, so i can check that THAT sip UA is enabled to login without authentication. Some ideas on how to tweak this situation? Fabio Pietrosanti