<div dir="ltr"><div>Hi,</div><div><br></div><div>I'm back again, I'm trying to get mid_registrar to work with webrtc, but when I use the piece of configuration below asterisk replies with 404.</div><div>I think it's because asterisk expects the url to be "wss://<a href="http://10.0.0.153:8188/ws">10.0.0.153:8188/ws</a>"</div><div>But where do I configure such a url in opensips??<br></div><div>Thanks<br></div><div><br></div><div>  if (is_method("REGISTER")) {<br>    mid_registrar_save("location", "p0v");<br>    switch ($retcode) {<br>      case 1:<br>        #$du = "sips:10.0.0.153:5061;transport=tls";<br>        #$ru = "sip:<a href="http://10.0.0.153:5061">10.0.0.153:5061</a>";<br>        $du = "sips:10.0.0.153:8188;transport=wss";<br>        $ru = "sip:<a href="http://10.0.0.153:8188">10.0.0.153:8188</a>";<br>        $fs = NULL;<br>        route(relay);<br>        break;<br>      case 2:<br>        xlog("L_INFO", "Absorb REGISTER!\n");<br>        break;<br>      default:<br>        xlog("L_INFO", "Failed to save registration!\n");<br>        break;<br>    }<br><br>    exit;<br>  }<br></div></div>