Cisco Unified Application Environment Developer Forums

« Back to Developers

Make a Call to 3 Phones at the same time.

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi All,
 
I am able to make a call to 3 Phones on an HTTP Trigger (eeze peeze). Is there a way in CUAE to stop the remaining 2 phones from ringing further as soon as any one of the phones is picked up?
 
Thanks in advance.
 
Shad

Hello Shad,
  Yes, you can do that with CUAE. Here is what you do.
 
1. Save the call ids of each of the calls that you make.
2. Once you get a makecall completed for your answered call, you can send a hangup to the other two calls that are ringing.
 
Let us know if you have any questions on this.
 
Thanks,
Rajesh 

Hi Shad,
 
   How are you? Could you point me inte right direction how you archived that? I thought I could place 3 MakeCall nodes right after the start, but from the start arrow in the ongotrequest I can only drag one Make Call node.
 
Thanks,
Francisco

Hi Francisco,
 
You can put multiple consecutive MakeCalls in your script. You need to maintain DN and call Id in global structure so that whenever your script receives MakeCall_Complete you hangup other calls.
 
Regards,
Umesh

Hi Umesh,
 
     Thanks for your reply. I understand that we can insert several consecutive MakeCall actions in the script. But the problem is that the next call is only make and becomes dependent on how sucessfully the privious calls were made. If I have 4 consecutive MakeCalls and if for some reason "Call 2" fails... "Call 3" and "Call 4" will not be made. What I am looking for is a way to start all the calls at the "same time" independentlt of each other and their sucess. Does it make sense?
 
 I attached an image with that I have with consecutive makeCalls for making 2 calls with the same OnMakeCall_Complete Event.
 
Thanks!
Attachments:

Hi Francisco,
 
If you want to have 4 calls independent of each other, you can do that by putting all the 4 MakeCall, right one after another.  Also on each of the individual MakeCall action, you will find a property called as "UserData", specify them as "one", "two", "three", "four" respectively for the 4 MakeCall action.
 
On the MakeCall_Complete event, create a variable say sUserData and you can initialize it with "UserData". In this way whenever each call reaches MakeCall_Complete the sUserData will be populated accordingly with "one", "two", "three", "four". After that you can put a switch action right after the start action and then u can continue with the business logic for each of the individual sUserData values.
 
Hope this Helps
 
Thanks
Nabhonil

Take only Deafult case of each MakeCall, Now it's upto state of the phone either that phone is ready to accept call or not. In this case if phone is not registered you won't be able to show that MakeCall failed. Rest you can handle as suggested by Nabhonil or you can change name of MakeCall_Complete function for each MakeCall.
 
Regards,
Umesh

Thanks. It is working fine after your advices. Thanks for the tips.