3cx bridge to FreeSwitch

Status
Not open for further replies.

Alexey V

Free User
Joined
Dec 10, 2018
Messages
10
Reaction score
0
Hello!

May be somebody advice me what wrong in my configs.
I'm trying to connect FreeSwitch (lastest version) to 3cx v16 and have a trouble. 3cx answers that: "Credentials don't match, check that authorization-ID and password match the ones in extension settings".

I've created the bridge:

11964


And wrote in freeswitch xml:

XML:
<include>
 <gateway name="177">
   <param name="username" value="177"/>
   <param name="password" value="177177"/>
   <param name="realm" value="10.240.15.1"/>
   <param name="from-user" value="177"/>
   <param name="from-domain" value="10.240.5.23"/>
   <param name="proxy" value="10.240.15.1"/>
   <param name="expire-seconds" value="800"/>
   <param name="register" value="true"/>
   <param name="register-transport" value="tcp"/>
   <param name="context" value="office"/>
 </gateway>
</include>


And see in 3cx's log:

22.08.2019 18:36:52 - [CM102001]: Authentication failed for AuthFail Recv Req REGISTER from 10.240.5.23:58246 tid=6pav6799crK7B Call-ID=8dc7cc06-e303-4f0e-bd89-097c9e94dba2:
REGISTER sip:10.240.15.1;transport=tcp SIP/2.0
Via: SIP/2.0/TCP 10.240.5.23:5080;rport=58246;branch=z9hG4bK6pav6799crK7B
Max-Forwards: 70
Contact: <sip:[email protected]:5080;transport=tcp;gw=177>
To: <sip:[email protected]>
From: <sip:[email protected]>;tag=55QKy0v7FHZKc
Call-ID: 8dc7cc06-e303-4f0e-bd89-097c9e94dba2
CSeq: 8688492 REGISTER
Expires: 800
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Proxy-Authorization: Digest username="177",realm="3CXPhoneSystem",nonce="414d53595d5ea82611:95b445c8d0445ee126faf7fe6a1e590b",algorithm=MD5,uri="sip:10.240.15.1;transport=tcp",response="6b7769df100d8482fd4cbe7ba21df211"
Supported: timer, path, replaces
User-Agent: FreeSWITCH-mod_sofia/1.10.1~64bit
Content-Length: 0

; Reason: Credentials don't match, check that authorization-ID and password match the ones in extension settings

and in freeswitch's log:

send 773 bytes to tcp/[10.240.15.1]:5060 at 14:37:41.224727:
------------------------------------------------------------------------
REGISTER sip:10.240.15.1;transport=tcp SIP/2.0
Via: SIP/2.0/TCP 10.240.5.23:5080;rport;branch=z9hG4bK7Z3m82tDa19SQ
Max-Forwards: 70
From: <sip:[email protected]>;tag=6eHc0UDBDtN6Q
To: <sip:[email protected]>
Call-ID: 8dc7cc06-e303-4f0e-bd89-097c9e94dba2
CSeq: 8688538 REGISTER
Contact: <sip:[email protected]:5080;transport=tcp;gw=177>
Expires: 800
User-Agent: FreeSWITCH-mod_sofia/1.10.1~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Proxy-Authorization: Digest username="177", realm="3CXPhoneSystem", nonce="414d53595d5ea82611:95b445c8d0445ee126faf7fe6a1e590b", algorithm=MD5, uri="sip:10.240.15.1;transport=tcp", response="6b7769df100d8482fd4cbe7ba21df211"
Content-Length: 0

recv 281 bytes from tcp/[10.240.15.1]:5060 at 14:37:41.302635:
------------------------------------------------------------------------
SIP/2.0 404 User unknown.
Via: SIP/2.0/TCP 10.240.5.23:5080;rport=58246;branch=z9hG4bK7Z3m82tDa19SQ
To: <sip:[email protected]>;tag=4df4e113
From: <sip:[email protected]>;tag=6eHc0UDBDtN6Q
Call-ID: 8dc7cc06-e303-4f0e-bd89-097c9e94dba2
CSeq: 8688538 REGISTER
Content-Length: 0

2019-08-22 18:37:41.301744 [ERR] sofia_reg.c:2469 177 Failed Registration with status User unknown. [404]. failure #4
2019-08-22 18:37:42.221345 [WARNING] sofia_reg.c:510 177 Failed Registration [404], setting retry to 120 seconds.
 
The user name (number), when you create a trunk is generally longer than that of an extension, (5 digits?)
 
The user name (number), when you create a trunk is generally longer than that of an extension, (5 digits?)
Yes, it was generated as 10000 and I changed it to 10077, but it didn't work also (the same trouble). After that I reduced it to 177 to see what will happen
 
I've changed external profile on freeswitch and it works! :cool:
(the bridge number returned after recreating the bridge, just added 3 params)

XML:
<include>
 <gateway name="10000">
   <param name="username" value="10000"/>
   <param name="password" value="010000"/>
   <param name="realm" value="10.240.15.1"/>
   <param name="from-user" value="10000"/>
   <param name="expire-seconds" value="800"/>
   <param name="register" value="true"/>
   <param name="register-transport" value="udp"/>
   <param name="extension" value="10000"/>
   <param name="context" value="public"/>
   <param name="caller-id-in-from" value="true"/>
   <param name="extension-in-contact" value="true"/>
   <param name="cid-type" value="rpid"/>
 </gateway>
</include>
 
Status
Not open for further replies.

Forum statistics

Threads
111,933
Messages
589,810
Members
164,808
Latest member
jsbjsb