Hello FreePBX community,
I am seeking assistance with setting up a custom dialplan in FreePBX/Asterisk to achieve simultaneous dialing of two phone numbers by dialing a single extension. My current setup is FreePBX with Asterisk and I have been able to make and receive individual phone calls successfully, but I am experiencing difficulty configuring a custom dialplan to call two numbers at the same time.
My goal is to create a custom dialplan where I dial the extension “7878” and have the system call two phone numbers simultaneously. I have tried different methods to achieve this, such as creating a custom context, using local channels, and even generating call files to initiate the calls. Unfortunately, none of the methods have worked so far. I consistently receive a busy signal and no response when trying to use the custom dialplan.
Current Configuration:
Two custom extensions - ‘881’ and ‘882’ - have been created, each one intended to dial a unique external number via specific outbound routes. The dial setting for each extension is in line with its outbound route: ‘Local/908XXXXXXXXX@outbound-allroutes’ for extension 881 and ‘Local/918XXXXXXXXX@outbound-allroutes’ for extension 882, where ‘8XXXXXXXXX’ are the actual external phone numbers.
These extensions are not set up on any softphone or application; they are designed solely to make outbound calls to the specified external numbers as part of the custom dialplan.
A custom Ring Group (‘7878’) has also been set up with these two extensions (881 and 882) included in the Extension List.
Here is the latest configuration I have tried in the extensions_custom.conf file:
[custom-multiple-call]
exten => 7878,1,Verbose(2,Starting custom multiple call)
; Check if the calling user is allowed to use this custom extension
exten => 7878,n,GotoIf($["${CALLERID(num)}" != "MY-EXTENSION"]?hangup)
same => n,Dial(PJSIP/908XXXXXXXXX@provider&PJSIP/918XXXXXXXXX@provider,30)
same => n,Hangup()
; Hangup if the user is not allowed
exten => 7878,n(hangup),Hangup()
exten => 7878,n,Hangup()
[custom-group]
exten => _90NXXNXXXXXX,1,Verbose(2,Calling group)
exten => _90NXXNXXXXXX,n,Dial(PJSIP/${EXTEN}@provider,5)
exten => _90NXXNXXXXXX,n,Hangup()
[from-internal-custom]
include => custom-multiple-call
Despite reloading the dialplan and core, the issue persists. I also tried the call file method, but it didn’t work either.
I have provided all the necessary information regarding my setup and the steps I’ve taken so far. I am seeking guidance from the community on how to resolve this issue and accomplish my goal of simultaneous dialing of two phone numbers using a custom dialplan.
Please let me know if you need any additional information or if you have any suggestions for a solution.
Additional Information:
The “provider” in the Dial command refers to the PJSIP trunk configured for our VoIP provider. It is used to send the call over the specified trunk to the destination phone number.
We have attempted multiple methods to resolve the issue, including checking the Asterisk logs with various log levels and searching for specific SIP messages such as “SIP INVITE”, “SIP ACK”, “SIP CANCEL”, “SIP BYE”, “SIP REGISTER”, and “SIP NOTIFY”. However, none of these messages were present in the logs.
The logs were configured to capture as much information as possible by increasing the verbosity and debug levels.
We also tried the call file method by creating call files in the /var/spool/asterisk/outgoing directory with the necessary information to initiate the calls. Despite verifying the file permissions and ensuring Asterisk had the capability to execute external scripts, this method did not yield the desired result.
In the custom dialplan, the extension “MY-EXTENSION” represents the allowed user who can access and use the custom dialplan for making simultaneous calls. It serves as a security measure to limit access to the functionality.
It is important to note that our current configuration allows for making and receiving individual phone calls without any issues. The problem arises only when trying to dial two phone numbers simultaneously. Even when we modified the custom dialplan to dial only one number, we still encountered the same issue with a busy signal and no response.
I’ve conducted extensive troubleshooting, even inspecting my NAT settings, network configuration, and ensuring that the firewall is not causing the problem, all to no avail.
I’m seeking your valuable insights and suggestions to address this issue. Any input towards helping me configure a custom dialplan for dialing two numbers simultaneously will be greatly appreciated.