Seeking Assistance with Simultaneous Dialing of Two Numbers Using Custom Dialplan on Asterisk

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:

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()

exten => _90NXXNXXXXXX,1,Verbose(2,Calling group)
exten => _90NXXNXXXXXX,n,Dial(PJSIP/${EXTEN}@VoIP,5)
exten => _90NXXNXXXXXX,n,Hangup()

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.

same => n,Dial(PJSIP/alice&PJIP/bob,45)

Calls alice and bob at the same time. Whoever answers first, wins.

You probably want to read this: Asterisk 20 Application_Dial - Asterisk Project - Asterisk Project Wiki

custom context is a FreePBX construct, not an Asterisk one.

Although this all looks overcomplicated, compared with Ed’s version, I can’t see anything wrong, other than that you seem to be calling one number twice, but then you haven’t said what is wrong and you haven’t provided any logs showing what is wrong. Please strip out the FreePBX noise from the logs. If your first exten line is not executed, you have a FreePBX problem and you should use their forum.

How do you get the call into the custom-multiple-call context? If you have that wrong, again it is a FreePBX problem and not suitable for this forum.

I agree. Unless I am missing something, I’d do it with a Ring Group or Queue.

If you insist on a custom string, FreePBX allows you to modify the dial string on PJSIP extensions. So you can change it from PJSIP/7878 to local/90PHONE#1@from-internal&local/90PHONE#2@from-internal

Either way, this should’ve really been posted on the FreePBX Community.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.