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

Re: [recon-devel] Can you have multiple UserAgent associated with one ConversationManager?


OK good - that's what I was hoping.  

You can "register" the one UserAgent instance to multiple URI's just by adding additional ConversationProfiles (UserAgent::addConversationProfile).  recon will register each ConversationProfile you add with the configured registrar.  For placing outbound calls recon will use the Identity in the default outbound ConversationProfile (see UserAgent::setDefaultOutgoingConversationProfile).  For inbound calls there is an algorithm to match the request uri or to header to the appropriate ConversationProfile.  

There is also work going on in a branch right now, that allows you select which ConversationProfile you want to use when calling the CreateConversation API method.  All of these identities/ConversationProfiles can run over the same set of transports/ports without any issues.

Scott

On Thu, Jul 30, 2009 at 6:22 PM, dsuh <dsuhpublic@xxxxxxxxx> wrote:
I need to register each UA to a different URI.
I don't think adding new transports or changing profiles will do that
unless you are talking about adding new transports for each port and
sending out a registration message on different ports with different
URIs (by switching profiles before each send?).
Can you elaborate on the sequence of calls that an application would have to do?

David Suh

On Wed, Jul 29, 2009 at 5:45 PM, Scott Godin<sgodin@xxxxxxxxxxxxxxx> wrote:
> HI David,
> There is currently a one-to-one relationship between UserAgent and
> ConversationManager classes.  Before I think too much about what it would
> mean as far as a change in architecture, I would like to understand your
> requirements more.  Perhaps there is another way to meet your requirements.
> Note:  You can currently create multiple transports for a single UserAgent
> and ConversationManager instance, in order to run on multiple ports.  You
> can also have multiple ConversationProfiles per UserAgent.
> Thanks,
> Scott
>
> On Wed, Jul 29, 2009 at 7:21 PM, dsuh <dsuhpublic@xxxxxxxxx> wrote:
>>
>> I need some clarification.
>> Can you instantiate multiple UserAgent and associate it with one
>> instantiated ConversationManager?
>> I want to create multiple UserAgents on different ports and have the
>> ConversationManager receive incoming call events from those multiple
>> UserAgents.
>> I would also like to make outgoing calls through different UserAgents
>> using the ConversationManager.
>> Are these currently possible?
>> If not, would it be a major change in architecture to do this?
>>
>> Thanks,
>> David Suh
>> _______________________________________________
>> recon-devel mailing list
>> recon-devel@xxxxxxxxxxxxxxx
>> List Archive: http://list.resiprocate.org/archive/recon-devel/
>
>