Cisco Unified Application Environment Mailing Lists                                                

Subscribing to the mailing-lists

To Subscribe one or more of our mailing-lists,
please use the mailing-list management page at this URL: http://developer.cisco.com/web/cuae/mailer.

  Web Archives

       To browse the mailing-list archives, select one of the categories below:

 

Cisco Unified Application Environment Developer Forums Cisco Unified Application Environment Developer Forums
Combination View Flat View Tree View
Threads [ Previous | Next ]
Having Multiple 'MakeCall' actions
toggle
Hello,
 
I have a question.
 
If I have multiple 'MakeCall' actions in a script, say like a conference script where one 'MakeCall' action followed by another, in which case, Can I have different 'OnMakeCall_Complete' events with different name OR only one OnMakeCall_Complete?
 
Please let me know since I have a script having multiple OnMakeCall_Complete events with different function names but the default is the one thats called always.
 
Thanks in advance
Flag Flag
RE: Having Multiple 'MakeCall' actions
10/28/09 3:58 PM as a reply to Kasiviswanath Rajagopalan.
Yes, you can have multiple MakeCall_Complete and MakeCall_Fail event handlers. When you drop the MakeCall action on the designer, it'll immediately create the  MakeCall_Complete and MakeCall_Fail event handlers for you. rename the event handlers names as you wish. When you drop the second MakeCall action, it'll create the MakeCall_Complete and MakeCall_Fail again. Simply rename these two method to something else.
Flag Flag
RE: Having Multiple 'MakeCall' actions
11/4/09 2:53 PM as a reply to Chris Manuh.
Another way to handle this is to make use of the 'userdata' property in the MakeCall action. Set different values for 'userdata' in each MakeCall and use only one 'MakeCallComplete' and 'MakeCallFailed' handler. In these Async callback handlers, initialize a variable with 'userdata' and based on the value application can relate to which MakeCall this refers to. This would be a better approach if you have many MakeCalls or Play(or any other async actions) in one script.
 
Regards,
Shameer.
Flag Flag
RE: Having Multiple 'MakeCall' actions
11/10/09 2:53 PM as a reply to Shameer Abdul Rasheed.
Thanks Chris and Shameer
 
I noticed that even when I was having multiple event handlers, only the default MakeCall_Complete and MakeCall_Failed event handlers are getting called
 
So Now I decided to have only one Event Handler for all MakeCall actions - all those action calls lead to same event handlers
Flag Flag