combining existing asterisk system with 3cx free issues

Status
Not open for further replies.

Antar

SMB User
Joined
Jan 21, 2025
Messages
3
Reaction score
0
Hello,

We have been using asterisk for our company for well over 10 years, but the calling queues have always been buggy, and the softphone clients were always terrible.

That's why we decided to give 3cx a go and use the calling queues function from 3cx and everything else from asterisk.

I have added an extension in asterisk sip.config as follows:

[3cx-trunk]
type=friend
context=from-3cx
host=dynamic
username=3cx-trunk
secret=password
qualify=yes
nat=yes
canreinvite=no
disallow=all
allow=ulaw
allow=alaw
allow=gsm
insecure=port,invite

then I have used this information to set up a trunk in 3cx free web, the trunk successfully registered to the asterisk server. This trunk is set to be routed to a calling queue that I have set up in 3cx. I have previously tested it with a voip.ms DID and everything worked great. I just didn't want to send actual calls to a DID queue and wanted to handle this through an estension.

The problem arises when a call is sent to the 3cx server, I get this error in 3cx:

"Call or Registration to Server has failed. sip:19901@{server_ip}:5060 replied: 403 Forbidden; from IP:{server_ip}:5060"
I am not sure what to try next as I have tried multiple configurations and it results in the same error. Looks as if 3cx is blocking the call coming from Asterisk, even though it is successfully registering the trunk using the server IP and extension credentials.

In the asterisk dial plan, this is the line that calls the 3cx extension hoping to be placed in queue, but fails:

"n,Dial(SIP/3cx-trunk/${EXTEN}@3cx_IP_provided_in_trunk_setup_process)"

Any help would be greatly appreciated.
 
The SMB Free edition does not allow you to connect to any other providers other than the ones listed in the Preferred and Supported list.

I am going to assume that you just got a random provider from the list and modified the credentials and registrar to get your trunk registered.

Its not quite as simple as that, as these providers have specific settings in their templates which could clash with what you need.

The fact that it registered just means that the credentials are correct, but the structure of the outgoing invite might be clashing with what yuor other server is expecting.

This is not the intended use of the SMB platform.
 
I figured that that may be the probelm. Does anyone know if what i'm trying to achieve can be done without me sending a call from asterisk to a did in 3cx? i'm trying to avoid this route. What's the best way to use just the calling queue + softphone from 3cx + keep asterisk and just send the calling queues to 3cx somehow. I am open to paying for a license, but we don't have over 10 users so that's why we opted for the free 3cx solution, seemed easier than setting up another server.
 
Willing to pay, if anyone knows a way to send a call from asterisk to 3cx via an extension rather than a call.
 
You need to either switch to 3CX entirely or else better find a solution such as FreePBX which I believe has some free queue features as well
 
Status
Not open for further replies.

Members Online Now

Forum statistics

Threads
111,832
Messages
589,283
Members
164,662
Latest member
DejanMDS