Hi Amol and welcome to the list.

not much traffic here, but it is still alive... ;-)

basically, you are doing everything right.
Your second calls waits for the first call to be set up, because it is intended to... sendAction the way you use it waits for the manager response. If you want to return immediately, you should use sendaction in conjunction with a per call callback handler... take a look at the api doc, it is quite easy. another approach to become even more "parallel" is using one thread per call.

cheers,
yves

Am 23.03.2017 um 17:01 schrieb Amol Vedak:

Hello Friends,

I am new to Asterisk Java and I suppose my question may be very basic. Request you to kindly bare with me.

My code connects to Asterisk using ManagerConnection instance. It logs in for one time and I use the same object multiple times in different threads.

I hope that is OK.

I initiate two simultaneous calls on the same ManagerConnection object /managerConnection/.sendAction

What I notice is, calls do not happen simultaneously. Second call happens after first call.

Is there a way to run simultaneous calls through same ManagerConnection object? Or do I have to create object every time and login / logoff everytime?

I hit a search on Google without much luck.

Any help/pointers in this direction are highly appreciated.

Thanks & Regards,

Amol



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
Asterisk-java-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/asterisk-java-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Asterisk-java-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/asterisk-java-users

Reply via email to