- Joined
- Jul 4, 2019
- Messages
- 9
- Reaction score
- 1
Hello,
I follow this tuto :
https://www.3cx.com/docs/
But my bridge doesn't work.
My primary server is an Asterisk with freePBX.
My 3CX is a second server (trial version for testing solution).
My sip.conf on Asterisk :
- Outbound (trunk name: 3CX_peer) :
- Inbound (user context : ID_user) :
-Registration String:
My Bridge config on 3CX :
Test
I tried with a slave bridge, and a trunk to Asterisk and doesn't succeed.
I change many time the registration string with and without port number (5060) :
When i do a "sip show peers" : My outbound is OK and my inbound is "unmonitored.
But with a "sip show registry i juste have a "Request send" to @IP_3CX
Firewall doesn't block traffic, with tcpdump i see packet (in the buttom of message).
When i capture traffic with tcpdump (on router), i see :
When i show packet , i sew sometimes a "unknow user" with an ID deleted 1hour ago (i checked my sip.conf and this user ID is really deleted)
When i refresh status of bridge on 3CX, i see this message on Asterisk :
I think the problem is my Asterisk can't connect to 3CX, Do you see any error on my configuration ?
I follow this tuto :
https://www.3cx.com/docs/
But my bridge doesn't work.
My primary server is an Asterisk with freePBX.
My 3CX is a second server (trial version for testing solution).
My sip.conf on Asterisk :
- Outbound (trunk name: 3CX_peer) :
Code:
host=IP_3CX
type=peer
username=ID_user
fromuser=ID_user
secret=PASSWORD
context=from-trunk&from-ovh
qualify=yes&yes
insecure=invite&port,invite
srvlookup=yes
;dtmfmode=inband
dtmfmode=rfc2833
disallow=all
allow=alaw&ilbc&ulaw
- Inbound (user context : ID_user) :
Code:
host=IP_3CX
port=5060
type=peer
trustrpid=yes
context=from-trunk
-Registration String:
Code:
ID_user:pASSWORD@IP_3CX/ID_user
My Bridge config on 3CX :
Code:
Type : Master
Name : ID_user
ID : ID_user
secret : PASSWORD
Test
I tried with a slave bridge, and a trunk to Asterisk and doesn't succeed.
I change many time the registration string with and without port number (5060) :
Code:
ID_user:pASSWORD@IP_3CX/ID_user (actual)
ID_user@IP_3CX/ID_user
ID_user:ID_user@IP_3CX/ID_user (actual)
When i do a "sip show peers" : My outbound is OK and my inbound is "unmonitored.
But with a "sip show registry i juste have a "Request send" to @IP_3CX
Firewall doesn't block traffic, with tcpdump i see packet (in the buttom of message).
When i capture traffic with tcpdump (on router), i see :
Code:
13:31:40.618209 IP IP_3CX.sip > IP_Asterisk.sip: SIP: REGISTER sip:IP_Asterisk:5060 SIP/2.0
13:31:40.628339 IP IP_Asterisk.sip > IP_3CX.sip: SIP: SIP/2.0 401 Unauthorized
13:31:40.679318 IP IP_3CX.sip > IP_Asterisk.sip: SIP: REGISTER sip:IP_Asterisk:5060 SIP/2.0
13:31:40.689079 IP IP_Asterisk.sip > IP_3CX.sip: SIP: SIP/2.0 403 Forbidden
13:27:39.670776 IP IP_Asterisk.sip > IP_3CX.sip: SIP: REGISTER sip:IP_3CX SIP/2.0
13:27:39.721466 IP IP_3CX.sip > IP_Asterisk.sip: SIP: SIP/2.0 407 Proxy Authentication Required
13:27:39.731322 IP IP_Asterisk.sip > IP_3CX.sip: SIP: REGISTER sip:IP_3CX SIP/2.0
13:27:39.781969 IP IP_3CX.sip > IP_Asterisk.sip: SIP: SIP/2.0 403 Invalid password provided
13:32:41.623742 IP IP_Asterisk.sip > IP_3CX.sip: SIP: OPTIONS sip:IP_3CX SIP/2.0
13:32:41.674531 IP IP_3CX.sip > IP_Asterisk.sip: SIP: SIP/2.0 200 OK
When i show packet , i sew sometimes a "unknow user" with an ID deleted 1hour ago (i checked my sip.conf and this user ID is really deleted)
When i refresh status of bridge on 3CX, i see this message on Asterisk :
Code:
2019-07-04 15:37:54] NOTICE[55631]: chan_sip.c:27741 handle_request_register: Registration from '<sip:ID_user@IP_Asterisk:5060>' failed for 'IP_3CX:5060' - Wrong password
I think the problem is my Asterisk can't connect to 3CX, Do you see any error on my configuration ?