Hello people.

Hopefully someone out there can help me with this problem originating a call to a group of extensions.

Briefly, I have an IVR application written in Python. It makes a TCP connection to Freeswitch, registers itself to listen for the events it needs, and sends commands to Freeswitch using the API. This all works really well and has been stable for years.

One option in the IVR application is to talk to a live agent. This also works well. When the caller chooses this option, I first send an api originate command and park it using &park in the command. I can call user/nnnn for an internal extension, and sofia/outbound/nnnnnnn for an outbound number, and I have a gateway set up called outbound.

I do it this way so I can detect if the call is connected and if it is answered. If it isn't answered within a certain time, I can hang up the call and tell the incoming caller that nobody can be reached. But if the call is answered, I then issue a api uuid_bridge command to connect the two calls since I have both the uuids.

Now I have been asked if I can do the same thing but to a group of agents. We have an internal number 2000 in our default.xml dialplan that calls a number of phones. The api originate command needs an endpoint but I can't figure that out in this case. I have played with loopback, but I've read that that should only be used if nothing else works. I'm not sure if loopback really works right in this case. How can I originate a call to this number with the same logic?

Hope someone can help.

Cheers.


Clive Lansink
Email: Clive@Lansink.Co.NZ
Phone: +64 9 520-4242
Mobile: +64 21 663-999
Fax: +64 21 789-150

