Calling an External Number and Adding Both Participants to a ConfBridge

Hi,

I’m working on an Asterisk configuration with the following scenario:

  • I want to call an extension (1000).

  • This extension should then call an external number (e.g., 012345).

  • The goal is that both participants end up in ConfBridge 1234 at the same time.

  • Each participant should have their own user profile in the ConfBridge (normal_user for the external participant, admin for me).

  • The Caller ID should be displayed correctly to the external participant.

Problem:

  • When I use Dial(PJSIP/012345@Trunk), Dial blocks until the external party hangs up.

  • Only after that would ConfBridge(1234,…) be executed, so the participants cannot join the ConfBridge simultaneously.

  • Assigning different user profiles for the participants doesn’t work reliably this way.

  • Setting the Caller ID via dialplan (CALLERID(num) / CALLERID(num-pres)) or Originate hasn’t worked consistently.

Goal:

  • The external call is initiated correctly.

  • Both participants enter the ConfBridge at the same time.

  • Different user profiles work for each participant.

  • Caller ID is displayed correctly.

Thanks in advance for your help!

Kind Regards

Reflects a common misunderstanding; Dial supervises the call, not just initiates it.

For this one, I think you want the G option on Dial(), which will do a simultaneous GoTo to two different priorities, which can set up different environments and then enter the conference. (For third party control, AMI has a double redirect.)

Thanks for your replay David.

Do you mean something like that?

exten => 1000,1,Answer()

exten => 1000,2,Dial(012345@TRUNK,G(3))

exten => 1000,3,Confbridge(1234,default_bridge,default_user)

Unfortunately that does not work for me.

If you use Originate, the call is already up before priority 1 is executed (and if it were an incoming call, it is bad practice to start billing for the caller, before the callee has answered).

There is an obvious syntax error in the parameters of Dial.

There is an obvious syntax error in the dial string.

The caller will get added to the bridge, even if the call fails.

The callee will get hung up as soon as they answer, as they will be sent to a priority that does not exist.

I haven’t checked the parameters on ConfBridge.

You will find it much easier to maintain the code, if you use labels and relative priorities.

There is actually an example that is fairly close to what you want to in the documentation for the Dial application, although it is subject to my fourth point!

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