Hello Asterisk 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.
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)}" != "000"]?hangup)
exten => 7878,n,Dial(Local/90PHONE#1@custom-group & Local/90PHONE#1@custom-group,5)
; 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}@VoIP,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:
-
In the custom dialplan configuration, the “90” prefix is used to indicate the custom outgoing route that we have defined. This allows the dialplan to process the calls according to our specified settings.
-
The “VoIP” 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 “000” 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.
Please consider these additional details while analyzing our issue and providing suggestions for a possible solution. Thank you for your support.