Hi Slave,

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
    http://www.opensips.org/html/docs/modules/2.4.x/uac.html
    http://www.opensips.org/html/docs/modules/2.4.x/uac_auth.html

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 10/25/2018 09:49 PM, Slava Bendersky wrote:
Hello Everyone,
I am trying make BLF working and how opensips should handle PUBLISH where server reply 407 ?
Do we need forward to end point ?
Opensips send PUBLISH then 3CX send 407 and conversation done.
Here some trace

[root@aitossbc01 ~]# cat BLF.txt
2018/10/25 12:22:19.148093 10.100.104.10:5060 -> 10.2.24.124:5060
PUBLISH sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 10.100.104.10:5060;branch=z9hG4bK9f23.99096732.0
To: sip:[email protected]:5060
From: <sip:[email protected]:5060>;tag=4c20d2ebf66939afcc7c67fb6893f1be-672a
CSeq: 10 PUBLISH
Call-ID: [email protected]
Max-Forwards: 70
Content-Length: 549
User-Agent: OpenSIPS (3.0.0-dev (x86_64/linux))
Event: dialog
Expires: 3601
Content-Type: application/dialog-info+xml

<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" state="partial" entity="sip:[email protected]:5060"><dialog id="[email protected]" call-id="[email protected]" direction="recipient"><state>confirmed</state><remote><identity>sip:[email protected]:5060</identity><target uri="sip:[email protected]:5060"/></remote><local><identity>sip:[email protected]:5060</identity><target uri="sip:[email protected]:5060"/></local></dialog></dialog-info>


2018/10/25 12:22:19.198773 10.2.24.124:5060 -> 10.100.104.10:5060
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 10.100.104.10:5060;branch=z9hG4bK9f23.99096732.0
Proxy-Authenticate: Digest nonce="414d53595bd1fbcb12:61835c52c28e8a89737c489e16fa5965",algorithm=MD5,realm="3CXPhoneSystem"
To: <sip:[email protected]:5060>;tag=d9bb492f
From: <sip:[email protected]:5060>;tag=4c20d2ebf66939afcc7c67fb6893f1be-672a
Call-ID: [email protected]
CSeq: 10 PUBLISH
User-Agent: 3CXPhoneSystem 15.5.15502.6 (15502)
Content-Length: 0


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to