<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Slave,<br>
      <br>
      If you cannot do an IP authentication / whitelisting for OpenSIPS
      in 3CX, you could use the uac_auth module and the uac_auth()
      function to perform user side authentication in OpenSIPS. See<br>
          <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.4.x/uac.html">http://www.opensips.org/html/docs/modules/2.4.x/uac.html</a><br>
          <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.4.x/uac_auth.html">http://www.opensips.org/html/docs/modules/2.4.x/uac_auth.html</a><br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 2018
  <a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2018/">http://opensips.org/training/OpenSIPS_Bootcamp_2018/</a>
</pre>
    <div class="moz-cite-prefix">On 10/25/2018 09:49 PM, Slava Bendersky
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:1540493029.local-e2a9f351-0c21-v1.5.0-92ed66b8@getmailspring.com">
      <div>Hello Everyone,</div>
      <div>I am trying make BLF working and how opensips should handle
        PUBLISH where server reply 407 ?</div>
      <div>Do we need forward to end point ?</div>
      <div>Opensips send PUBLISH then 3CX send 407 and conversation
        done.</div>
      <div>Here some trace </div>
      <br>
      <div>[root@aitossbc01 ~]# cat BLF.txt</div>
      <div>2018/10/25 12:22:19.148093 10.100.104.10:5060 ->
        10.2.24.124:5060</div>
      <div>PUBLISH <a class="moz-txt-link-freetext" href="sip:120@domain.tld:5060">sip:120@domain.tld:5060</a> SIP/2.0</div>
      <div>Via: SIP/2.0/UDP
        10.100.104.10:5060;branch=z9hG4bK9f23.99096732.0</div>
      <div>To: <a class="moz-txt-link-freetext" href="sip:120@domain.tld:5060">sip:120@domain.tld:5060</a></div>
      <div>From:
<a class="moz-txt-link-rfc2396E" href="sip:120@domain.tld:5060"><sip:120@domain.tld:5060></a>;tag=4c20d2ebf66939afcc7c67fb6893f1be-672a</div>
      <div>CSeq: 10 PUBLISH</div>
      <div>Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:0324183200c79905-20534@10.100.104.10">0324183200c79905-20534@10.100.104.10</a></div>
      <div>Max-Forwards: 70</div>
      <div>Content-Length: 549</div>
      <div>User-Agent: OpenSIPS (3.0.0-dev (x86_64/linux))</div>
      <div>Event: dialog</div>
      <div>Expires: 3601</div>
      <div>Content-Type: application/dialog-info+xml</div>
      <br>
      <div><?xml version="1.0"?></div>
      <div><dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
        state="partial" entity=<a class="moz-txt-link-rfc2396E" href="sip:120@domain.tld:5060">"sip:120@domain.tld:5060"</a>><dialog
        id=<a class="moz-txt-link-rfc2396E" href="mailto:0_3095066305@192.168.88.146">"0_3095066305@192.168.88.146"</a>
        call-id=<a class="moz-txt-link-rfc2396E" href="mailto:0_3095066305@192.168.88.146">"0_3095066305@192.168.88.146"</a>
direction="recipient"><state>confirmed</state><remote><identity><a class="moz-txt-link-freetext" href="sip:221@domain.tld:5060">sip:221@domain.tld:5060</a></identity><target
uri=<a class="moz-txt-link-rfc2396E" href="sip:221@domain.tld:5060">"sip:221@domain.tld:5060"</a>/></remote><local><identity><a class="moz-txt-link-freetext" href="sip:120@domain.tld:5060">sip:120@domain.tld:5060</a></identity><target
uri=<a class="moz-txt-link-rfc2396E" href="sip:120@domain.tld:5060">"sip:120@domain.tld:5060"</a>/></local></dialog></dialog-info></div>
      <br>
      <br>
      <div>2018/10/25 12:22:19.198773 10.2.24.124:5060 ->
        10.100.104.10:5060</div>
      <div>SIP/2.0 407 Proxy Authentication Required</div>
      <div>Via: SIP/2.0/UDP
        10.100.104.10:5060;branch=z9hG4bK9f23.99096732.0</div>
      <div>Proxy-Authenticate: Digest
nonce="414d53595bd1fbcb12:61835c52c28e8a89737c489e16fa5965",algorithm=MD5,realm="3CXPhoneSystem"</div>
      <div>To: <a class="moz-txt-link-rfc2396E" href="sip:120@domain.tld:5060"><sip:120@domain.tld:5060></a>;tag=d9bb492f</div>
      <div>From:
<a class="moz-txt-link-rfc2396E" href="sip:120@domain.tld:5060"><sip:120@domain.tld:5060></a>;tag=4c20d2ebf66939afcc7c67fb6893f1be-672a</div>
      <div>Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:0324183200c79905-20534@10.100.104.10">0324183200c79905-20534@10.100.104.10</a></div>
      <div>CSeq: 10 PUBLISH</div>
      <div>User-Agent: 3CXPhoneSystem 15.5.15502.6 (15502)</div>
      <div>Content-Length: 0</div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>