<div dir="ltr">Hi all,<div>I'm trying to use the AUTH module without any DB to authenticate SIP devices. I'm using OpenSIPS v3.3 and 'calculate_ha1' is set to '0', so I put pre-generated hash into $var(password) field, according to the manual:</div><div><br></div><div><div class="gmail-titlepage" style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:medium"><div><div><h3 class="gmail-title">1.4.9. <code class="gmail-varname">calculate_ha1</code> (integer)</h3></div></div></div><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">This parameter tells the server whether it should expect plaintext passwords in the pseudo-variable or a pre-calculated HA1 string.</p><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">If the parameter is set to 1 then the server will assume that the <span class="gmail-quote">“<span class="gmail-quote">password_spec</span>”</span> pseudo-variable contains plaintext passwords and it will calculate HA1 strings on the fly. If the parameter is set to 0 then the server assumes the pseudo-variable contains the HA1 strings directly and will not calculate them.</p><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">Default value of this parameter is 0.</p><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">Question is - how do I put TWO hashes into this variable if I'm trying to do a 'SHA-256,MD5' authentication, or a 'SHA-256, SHA-512-256' or something like that?</p><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">I tried putting these values with a comma, with a semicolon, with a '\r\n' but all that leads to is a crash in OpenSIPS without a segfault, like this:</p><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">Apr 10 00:19:18 INFO:core:daemonize: pre-daemon process exiting with 0<br>Apr 10 00:19:23 [REGISTER]      No authentication credentials found, challenging <a href="mailto:sip%3A123456@sipdomain.com">sip:123456@sipdomain.com</a><br>Apr 10 00:19:23 [CACHE]         Got hash [a359335dfeeda115c3d5f124a1762b35;b214e463cb1a9988078b52afa76ea7674ad114217e2b999c91be9b352f745735] for 123456<br>Apr 10 00:19:23 [CACHE]         Got hash [a359335dfeeda115c3d5f124a1762b35;b214e463cb1a9988078b52afa76ea7674ad114217e2b999c91be9b352f745735] for 123456<br>Apr 10 00:19:23 INFO:core:handle_sigs: child process 19650 exited by a signal 6<br>Apr 10 00:19:23 INFO:core:handle_sigs: core was generated<br>Apr 10 00:19:23 INFO:core:handle_sigs: terminating due to SIGCHLD<br>Apr 10 00:19:23 INFO:core:sig_usr: signal 15 received<br>Apr 10 00:19:23 INFO:core:sig_usr: signal 15 received<br>Apr 10 00:19:24 INFO:core:shutdown_opensips: process 8(19654) [TCP receiver] terminated, still waiting for 11 more<br>Apr 10 00:19:24 INFO:core:shutdown_opensips: process 6(19652) [SIP receiver udp:<a href="http://10.22.23.194:5060">10.22.23.194:5060</a>] terminated, still waiting for 10 more<br>Apr 10 00:19:24 INFO:core:shutdown_opensips: process 12(19658) [Timer handler] terminated, still waiting for 9 more<br>Apr 10 00:19:24 INFO:core:shutdown_opensips: process 5(19651) [SIP receiver udp:<a href="http://10.22.23.194:5060">10.22.23.194:5060</a>] terminated, still waiting for 8 more<br>Apr 10 00:19:24 INFO:core:shutdown_opensips: process 1(19647) [MI FIFO] terminated, still waiting for 7 more<br>Apr 10 00:19:24 INFO:core:shutdown_opensips: process 9(19655) [TCP receiver] terminated, still waiting for 6 more<br>Apr 10 00:19:24 INFO:core:shutdown_opensips: process 13(19659) [TCP main] terminated, still waiting for 5 more<br>Apr 10 00:19:24 INFO:core:shutdown_opensips: process 2(19648) [time_keeper] terminated, still waiting for 4 more<br>Apr 10 00:19:24 INFO:core:shutdown_opensips: process 3(19649) [timer] terminated, still waiting for 3 more<br>Apr 10 00:19:24 INFO:core:shutdown_opensips: process 10(19656) [TCP receiver] terminated, still waiting for 2 more<br>Apr 10 00:19:24 INFO:core:shutdown_opensips: process 11(19657) [TCP receiver] terminated, still waiting for 1 more<br>Apr 10 00:19:24 INFO:core:shutdown_opensips: process 7(19653) [SIP receiver udp:<a href="http://10.22.23.194:5060">10.22.23.194:5060</a>] terminated, still waiting for 0 more<br>Apr 10 00:19:24 INFO:core:cleanup: cleanup<br>Apr 10 00:19:24 NOTICE:cachedb_redis:destroy: destroy module cachedb_redis ...<br>Apr 10 00:19:24 INFO:core:fix_poll_method: using epoll as the IO watch method (auto detected)<br>Apr 10 00:19:24 NOTICE:core:main: version: opensips 3.3.2 (x86_64/linux)<br></p><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)"><br></p><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">Any ideas? Thanks!</p><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">Best regards,</p><p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">Yury.</p></div></div>