< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate-users] How to manage multi-calls use the dum objects.


Title: Mail
Hello:
 
I read the the document you offered, but I still can not understand how to use the AppDialog/AppDialogSets objects to control the multi-calls.
 
For example, at first, I created the call one, and then I created the call two.
Then I try to handup the call one, how to implement this ??
If I call the InviteSessionHandler->end(), it can only end the call two. How to switch the context to the call one ??
 
Is there have some example for controlling the multi-calls with dialogsets?? Very thanks!!
 
Ryan Qin
2008-05-29
----- Original Message -----
Sent: 2008-05-26, 22:43:48
Subject: RE: How to manage multi-calls use the dum objects.

You only need one stack and one dum object.  You can use AppDialog/AppDialogSets to help differentiate between two different calls:

http://www.resiprocate.org/DUM_Associating_Application_Data_with_DialogSets_and_Dialogs

Scott

From: 秦杨 [mailto:qinyang_1980@xxxxxxx]
Sent: May 26, 2008 9:48 AM
To: resiprocate-users
Cc: Scott Godin
Subject: How to manage multi-calls use the dum objects.

Hi Scott:

I want to design a softphone which can maitain a few calls(more than one) at the same time.

For example, I hold an active call and accept another new incoming call.

But I don't know that how much objects(dum,sip stacks,invite handler,register handler) I need to bind with the sip calls.

In the beginning, I use one dum object in every call object, but I found that its waste of resource. And another problem is that the multi-dum objects can not be created at the same port(5060) by the dum::addTransport(UDP, 5060) function.

Questions:

1.If the only one dum object can maintain multi-calls at the same time ?? I'm very confused about this.

2.If one dum object can not manage multi-calls, I want to know the best way to maintain multi-calls at the same time with the resiprocate library ?

Very thanks!!!

Ryan Qin

2008-05-26