Link to home
Start Free TrialLog in
Avatar of tsukraw
tsukraw

asked on

Asterisk SIP trunk with 3CX

Hey Experts,
So i am trying to create a trunk between 3CX and FreePBX (asterisk).
Sorry if my terminology is a bit off...
The Trunk is a authenticated trunk on the 3CX. Trunk user:10000.

If i go onto X-lite or another sip client i can setup a user account with ext:10000 and password and that client will register as a user through the trunk.

From FreePBX however i get a msg "Authentication failed to REGISTER" so i am guessing i just have something wrong on the Trunk settings...

Here are my FreePBX settings.
PEER Details:

context=from-trunk
dtmfmode=auto
host=192.168.200.8 (IP OF 3CX)
port=5060
qualify=yes
type=peer
username=10000 (Trunk extension on 3CX)
secret=1234 (Trunk password)

USER Context:      10000

Registration String:10000:1234@192.168.200.8

Anything i should change on this?
I have attached a PCAP file captured from the 3CX when trying to register. Maybe it will shed some light?  Had to change to .txt to upload just change back to pcap to open in wireshark.
ASKER CERTIFIED SOLUTION
Avatar of Phonebuff
Phonebuff
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tsukraw
tsukraw

ASKER

Correction on a typo of yours.  10000:1234@192.168.200.8:50:5060/10000 should be 10000:1234@192.168.200.8:5060/10000  there is a extra :50 in there.  And that did fix it!  It was missing the /10000 at the end!

Thank you!
Hello all,
I am trying the same situation.
Thanks to this article, it is very useful. I got the SIP trunk registered.
However now the calls are not going through for some reason.

When I call through the 3CX to the free PBX I get a "Not acceptable here" 488 error.
Any tips?
Thank you