<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>