So I’ve been trying to set up three way calling which I know has been an ongoing discussion in this forum.
I’ve been able to set it up such that when a user enters a specific phone number they enter a conference room and when any other user enters in the same number they enter the conference room as well. What I want to do is when 2 users are in the conference room, one user can invite a 3rd user rather than the 3rd user dialling in to the conference.
And in my extensions.conf I have:
;conference
exten => 8572435810,1,ConfBridge(1,default_bridge,default_user)
All I want to do is when a user in the conference types in 0, they can add someone to the call.
I understand this may be a simple task but I’ve explored a lot of documentation and examples online and I’m unsure how they apply to my specific circumstance. If someone could provide any guidance/assistance I would greatly appreciate it!
I went with your recommendation of using dialplan_exec and the Originate command and here is what I wrote:
exten => 602,1,NoOp()
same => n,Goto(conference,1)
exten => conference,1,NoOp()
same => n,Set(thisBridge=primary)
same => n,ConfBridge(${thisBridge},default_bridge,admin_user,sample_user_menu)
exten => conference_joiner,1,NoOp()
same => n,Read(numberToDial,vm-enter-num-to-call)
same => n,Originate(SIP/${numberToDial},exten,default,602,1)
The code gets to the originate command and prompts the user to enter a number to dial but after doing so it gives this error:
WARNING[20880][C-00000270]: chan_sip.c:6032 create_addr: Purely numeric hostname (8572435810), and not a peer–rejecting!
– Auto fallthrough, channel ‘SIP/john-00000480’ status is ‘UNKNOWN’
I think that means that the number I’m dialing, 8572435810, is not registered. I’m not sure where and how I register it.
There is no device through which to dial it, so the number treated as the name of the device, but there is no device of that name, and, as it is purely numeric it is not treated as a literal IP address or domain name.
You ran off the end of the dialplan without doing anything that sets DIALSTATUS. This would be normal for an extension that just goes to a voice announcement, if you don’t, redundantly, call Hangup.
I was able to setup basic 3-way calling using in-built features designed for asterisk 12+. I did this simply by adding the following to /etc/asterisk/features_featuremap_custom.conf:
[general]
atxferthreeway = *42
atxferabort = #42
You initiate by starting a transfer via *2. The callee is placed on hold and you are presented with a dial tone. Dial the new number to bring into the 3-way call. Then once you are ready to bridge dial *42 (or whatever you defined above for atxferthreeway). To cancel the 3-way call and go back to the original call dial #42 (or whatever you defined above for atxferabort).