Re: Multiple sip applications with Jain-sip
"M. (Neo-Ranga) Ranganathan" <[email protected]> Fri, 4 May 2007 12:24:26 -0400
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
Not sure what is unclear. I think the error message says it all. On 5/4/07, [email protected] <[email protected]> wrote: > Hello again, > > i created a SipApplication class that implements the SipListener > interface. It has one SipStack, one SipProvider, and one > ListeningPoint. As part of constructor, i pass a port number that will > be used for as the listening port number and i am using UDP as the > transport. > > I then instantiate 2 objects of the SipApplication (each of which will > be used to setup a streaming application --> hence 2 applications as > per previous email): > SipApplication app_1 = new SipApplication(5060); > SipApplication app_1 = new SipApplication(5065); > > The first stack gets instantiated correctly but when the second line of > code is executed, i get the following error: > "Stack already has a listener. Only one listener per stack allowed" > > > I will really appreciate any comments, guide, or solution to this problem. > > Thank you. > > > > > > > > Quoting [email protected]: > > > Thank you! The reason i had asked this is because sometimes you see > > some architectures e.g. in a phone where one sip stack is shown and > > IMS applications reside above it. From that perspective, it is > > thought that there's one sip stack for all the applications. I wonder > > if that is just a representation & the actual coding would be a sip > > stack per application. > > > > Any thoughts? > > > > > > Thanks again > > > > > > Quoting "M. (Neo-Ranga) Ranganathan" <[email protected]>: > > > >> You would, create two SIP stacks and two listeners. One Sip Listener > >> instance per sip stack instance. > >> > >> Ranga > >> > >> On 5/3/07, [email protected] <[email protected]> wrote: > >>> Hello all, > >>> > >>> i was wondering if i can get some help with the following: > >>> > >>> i understand that the application has to implement the SipListener > >>> interface and that there can be multiple stacks, providers, listening > >>> points etc... > >>> The question is if i want to implement 2 or more sip applications e.g. > >>> simple data streaming over udp, should i use one > >>> SipListner/SipStack/SipProvider per application or one SipListner but > >>> different SipStack/SipProvider for each application. > >>> > >>> To be more clear, consider the following architecture for what i would > >>> like to have: > >>> > >>> > >>> |----------------| |--------------------| > >>> | Application #1 | | Application #2 | > >>> | e.g. streaming | |e.g. other streaming| > >>> ------------------ ---------------------- > >>> \ / > >>> \ / > >>> \ / > >>> \ / > >>> |---------------------------| > >>> | SIP | > >>> ----------------------------- > >>> > >>> to ask the same question in a different manner, how would such an > >>> architecture be mapped in the JAIN SIP world. > >>> > >>> > >>> Any comments would be greatly appreciated. > >>> > >>> > >>> > >>> Thanks. > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: [email protected] > >>> For additional commands, e-mail: [email protected] > >>> > >>> > >> > >> > >> -- > >> M. Ranganathan > >> "There are two ways to write error-free programs; only the third one > >> works." -- Alan Perlis > >> > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > -- M. Ranganathan "There are two ways to write error-free programs; only the third one works." -- Alan Perlis