Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Cannot make calls between Asterisk and 3CX

Posted on 2012-09-11
15
Medium Priority
?
2,352 Views
Last Modified: 2012-10-29
Hey Experts,
So i am having a issue with Asterisk/3CX.  I am trying to link two systems together.  I am able to make calls from the 3CX to the asterisk just fine but not from the asterisk to the 3CX.  
In the SIP logs i see  Authentication failed for INVITE.  I just am not sure what is wrong.

I have attached a wireshark capture of a call both directions.
3CX - 192.168.210.17
FreePBX - 192.168.210.16
3CX extension - 2100
FreePBX Extension - 2930

The outgoing config in FreePBX is.
context=from-trunk
dtmfmode=auto
host=192.168.210.17
port=5060
qualify=yes
type=peer
username=10000
secret=r324t35
NAT=no
disallow=all
allow=ulaw
0
Comment
Question by:tsukraw
  • 9
  • 4
  • 2
15 Comments
 
LVL 20

Expert Comment

by:José Méndez
ID: 38388571
Where is the attachment mate?
0
 
LVL 15

Expert Comment

by:Phonebuff
ID: 38388792
@tsukraw

    As Willy said no attachment.  But a few things you should be checking.

    Check the status of the Trunk "sip show Peers",  Check that it is registered 'sip show registry"   If the Trunk shows registered then check the Outroutes for 21xx to the Trunk, if it does not show registered then check the Register Statement

register => fromuser@fromdomain:secret:authuser@host:port/extension

       --------------------------

.
0
 

Author Comment

by:tsukraw
ID: 38389163
Woops.
Suppose that would help.
wireshark-capture.txt
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 20

Assisted Solution

by:José Méndez
José Méndez earned 1500 total points
ID: 38389534
What happens if you add the outboundproxy=192.168.210.17 to your sip.conf?

The 407 negative reply is normal and necessary when authenticating outbound calls, but Asterisk is not retrying with an INVITE containing the 3CX user/pass expected at all. Either enable authentication on Asterisk's side or disable it on 3CX side.
0
 

Author Comment

by:tsukraw
ID: 38391896
You have outboundproxy=192.168.210.17 is that support to be the IP of the 3CX or the Asterisk?
0
 
LVL 20

Expert Comment

by:José Méndez
ID: 38391909
3CX would be the outboundproxy for those calls.
0
 

Author Comment

by:tsukraw
ID: 38391913
I cannot disable authentication on the 3CX so how do i go about enabling it on the Astiersk?
0
 

Author Comment

by:tsukraw
ID: 38391926
ok i have the outboundproxy in there i am still getting the same message.
0
 
LVL 20

Expert Comment

by:José Méndez
ID: 38391945
Just to be on the safe side, you did rest the sip driver right? sip restart?
0
 

Author Comment

by:tsukraw
ID: 38392988
yes i had rebooted the server completely.
0
 
LVL 15

Expert Comment

by:Phonebuff
ID: 38394679
@tsukraw

    Check the status of the Trunk "sip show Peers",  Check that it is registered 'sip show registry"   If the Trunk shows registered then check the Outroutes for 21xx to the Trunk, if it does not show registered then check the Register Statement

register => fromuser@fromdomain:secret:authuser@host:port/extension

       --------------------------
0
 

Author Comment

by:tsukraw
ID: 38397595
Yes all the registration looks good.  And 3CX as well shows it is registered and connected.
There is indeed a outbound route.  The wireshark trace that i attached was taken from the 3CX system so the outbound route has to be correct if it is getting to the 3CX box.
0
 

Author Comment

by:tsukraw
ID: 38521707
So did anyone have any more ideas on this?
I am once again trying to get this figured out and not getting far.
I setup a new test environment so i am not doing this on production setup.

3CX - 192.168.10.1
FreePBX - 192.168.10.140
3CX extension - 400
FreePBX Extension - 500

I am able to reproduce the issue where i am able to only call one direction.  I have attached another wireshark showing the issue.
FreePBX-to-3CX.txt
0
 

Accepted Solution

by:
tsukraw earned 0 total points
ID: 38521776
Just figured it out.
I added to the outgoing Settings.
fromdomain=192.168.10.1 (IP of 3CX)
fromuser=10000 (Trunk extension on 3CX)

Once i added those 2 fields i am able to call successfully back and forth between systems.
0
 

Author Closing Comment

by:tsukraw
ID: 38544528
Found solution
0

Featured Post

Sign your company up to try the MB 660 headset now

Take control and stay focused in noisy open office environments with the MB 660. By reducing background noise, you can revitalize your office and improve concentration.

Question has a verified solution.

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

Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
What do we know about Legacy Video Conferencing? - Full IT support needed! - Complicated systems at outrageous prices! - Intense training required! Highfive believes we need to embrace a new alternative.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Suggested Courses

578 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