[OpenSIPS-Users] mid_registrar and webrtc with asterisk

Alberto alberto.rinaudo at gmail.com
Tue Feb 22 15:04:52 UTC 2022


Hi,

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.
I think it's because asterisk expects the url to be "wss://
10.0.0.153:8188/ws"
But where do I configure such a url in opensips??
Thanks

  if (is_method("REGISTER")) {
    mid_registrar_save("location", "p0v");
    switch ($retcode) {
      case 1:
        #$du = "sips:10.0.0.153:5061;transport=tls";
        #$ru = "sip:10.0.0.153:5061";
        $du = "sips:10.0.0.153:8188;transport=wss";
        $ru = "sip:10.0.0.153:8188";
        $fs = NULL;
        route(relay);
        break;
      case 2:
        xlog("L_INFO", "Absorb REGISTER!\n");
        break;
      default:
        xlog("L_INFO", "Failed to save registration!\n");
        break;
    }

    exit;
  }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220222/585cab36/attachment.html>


More information about the Users mailing list