- 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.
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.