?
Solved

Asterisk SIP trunk with 3CX

Posted on 2012-08-21
3
Medium Priority
?
5,839 Views
Last Modified: 2014-05-05
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.
0
Comment
Question by:tsukraw
3 Comments
 
LVL 15

Accepted Solution

by:
Phonebuff earned 2000 total points
ID: 38316825
@ tsukraw

   Not that familiar with the 3CX but I would check a couple of things from the Asterisk side.  

   What's in your SIP configurations for localnet values ? Depending on the build it wouyld be in /etc/asterisk/sip.conf or /etc/asterisk/sip_nat.conf

   Add to the Peer definition above.
         NAT=NO
         disallow=all
         allow=ulaw

   Change your registration statement to

        10000:1234@192.168.200.8:50:5060/10000
0
 

Author Comment

by:tsukraw
ID: 38316881
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!
0
 

Expert Comment

by:designred
ID: 40042808
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
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The point of this post is to give you a copy/paste installation solution to setting up Asterisk 1.6 on Ubuntu 9.04 (or similar) server. # Setup the system apt-get install subversion apt-get install make apt-get install linux-source kernel-p…
There are no good configuration guides for HP-H3C router to LYNC on the web. :( Big statement, but we havent been able to find one yet. We did find the following document useful, but the information was not enough to use H3C router for use as a L…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month15 days, 18 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question