[sip-comm-dev] Fw: Use sip-communicator with other java project


#1

Hi there,

Apologies for spamming like this as I posted this message on the users mailing list as well as I was not sure where to post it. Going through the archive and came across this post from a while back: https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841

Now that I know what am trying to do is somewhat possible. Can anyone please point me in the right direction as to where to start. I need my application to be able to load the sip-communicator environment and pass voice back and forth and also be able to make and answer phone calls. How is this possible and where should I start looking?

Again apologies if these questions seem trivial.

Afro

···

From: Henry oko

Sent: Thursday, May 13, 2010 10:52 AM
To: users@sip-communicator.dev.java.net
Subject: Use sip-communicator with other java project

Hi sip-communicator community,

I am relatively new to sip-communicator and am wondering how possible it is to incorporate some of its services in my java application. I have developed a voice recognizer/speech synthesizer application which I need to plug in to sip-communicator. Basically what I want to find out is :

(1) Configuring - is it possible to configure and launch it from another java class
(2) Control - is it possible to dial out or answer the phone via another java class
(3) Voice out - can I send voice from my application into the sip client
(4) Voice in - can I get voice into my java class from the SIP client.

I do apologize if my questions seem trivial but as mentioned earlier, I am just getting into sc and am doing as much learning as I can plus my work is kind of high priority. Thank you very much in advance.

Afro


#2

Hey Afro,

На 13.05.10 15:31, Henry oko написа:

Hi there,

Apologies for spamming like this as I posted this message on the users
mailing list as well as I was not sure where to post it. Going through
the archive and came across this post from a while back:
https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841
<https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841>

Now that I know what am trying to do is somewhat possible. Can anyone
please point me in the right direction as to where to start. I need my
application to be able to load the sip-communicator environment and pass
voice back and forth and also be able to make and answer phone calls.
How is this possible and where should I start looking?

Try getting familiar with OSGi first. You can find a lot of useful
information on their web site [1]. You should then also have a look at
how JMF works [2]. The

I am relatively new to sip-communicator and am wondering how possible it
is to incorporate some of its services in my java application. I have
developed a voice recognizer/speech synthesizer application which I need
to plug in to sip-communicator. Basically what I want to find out is :

(1) Configuring - is it possible to configure and launch it from another
java class

Yes. Have a look at our launcher class to see how to do this:

net.java.sip.communicator.launcher.SIPCommunicator

However, rather than launching SIP Communicator, I'd recommend designing
your application in OSGi bundles and running them together with SIP
Communicator's. This would make communication between them easier.

(2) Control - is it possible to dial out or answer the phone via another
java class

Yes. You would need to use OperationSerBasicTelephony in a provider that
supports it in order to do this.

(3) Voice out - can I send voice from my application into the sip client

This one would require adding your own datasource to our neomedia
package, because we don't currently support external data sources. You'd
have to go through the JMF docs in order to learn how to do this.

(4) Voice in - can I get voice into my java class from the SIP client.

Same as (3). You'd have to modify the neomedia package in order to
handle this.

Hope this helps,
Emil

[1] - http://felix.apache.org
[2] - http://java.sun.com/javase/technologies/desktop/media/jmf/index.jsp

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hi Emil,

Many many thanks for your mail, am sure you are quite busy, so I really do appreciate your time.

Well I have familiarized myself with OSGI by going through the tutorials and allot of the documentation on the felix website and I dear say it was very helpful. I have not had a look at JMF but I will quickly get accustomed to it.

I do however have another question if you don't mind, after going through the Felix tutorials and your reply to the question on the post, I had been thinking about developing my application to work with Sip-Com as bundles but some other question come to mind.

1) Is sip a bundled app or hosted framework?
2) It is not desired to switch my application which is quite large at this point into an OSGI compatible model. Can a sub application be used to interact with both my application and sip?

Once again thank you very much for your time. You have been most helpful. Have a nice weekend.
Afro

···

--------------------------------------------------

From: "Emil Ivov" <emcho@sip-communicator.org>

Sent: Saturday, May 15, 2010 9:53 AM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Afro,

На 13.05.10 15:31, Henry oko написа:

Hi there,

Apologies for spamming like this as I posted this message on the users
mailing list as well as I was not sure where to post it. Going through
the archive and came across this post from a while back:
https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841
<https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841>

Now that I know what am trying to do is somewhat possible. Can anyone
please point me in the right direction as to where to start. I need my
application to be able to load the sip-communicator environment and pass
voice back and forth and also be able to make and answer phone calls.
How is this possible and where should I start looking?

Try getting familiar with OSGi first. You can find a lot of useful
information on their web site [1]. You should then also have a look at
how JMF works [2]. The

I am relatively new to sip-communicator and am wondering how possible it
is to incorporate some of its services in my java application. I have
developed a voice recognizer/speech synthesizer application which I need
to plug in to sip-communicator. Basically what I want to find out is :

(1) Configuring - is it possible to configure and launch it from another
java class

Yes. Have a look at our launcher class to see how to do this:

net.java.sip.communicator.launcher.SIPCommunicator

However, rather than launching SIP Communicator, I'd recommend designing
your application in OSGi bundles and running them together with SIP
Communicator's. This would make communication between them easier.

(2) Control - is it possible to dial out or answer the phone via another
java class

Yes. You would need to use OperationSerBasicTelephony in a provider that
supports it in order to do this.

(3) Voice out - can I send voice from my application into the sip client

This one would require adding your own datasource to our neomedia
package, because we don't currently support external data sources. You'd
have to go through the JMF docs in order to learn how to do this.

(4) Voice in - can I get voice into my java class from the SIP client.

Same as (3). You'd have to modify the neomedia package in order to
handle this.

Hope this helps,
Emil

[1] - http://felix.apache.org
[2] - http://java.sun.com/javase/technologies/desktop/media/jmf/index.jsp

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hey Afro,

Hi Emil,

Many many thanks for your mail, am sure you are quite busy, so I really do
appreciate your time.

Well I have familiarized myself with OSGI by going through the tutorials and
allot of the documentation on the felix website and I dear say it was very
helpful. I have not had a look at JMF but I will quickly get accustomed to
it.

I do however have another question if you don't mind, after going through
the Felix tutorials and your reply to the question on the post, I had been
thinking about developing my application to work with Sip-Com as bundles but
some other question come to mind.

1) Is sip a bundled app or hosted framework?

Not sure I understand the question. SIP itself is a signalling
protocol so I guess it's neither. Our SIP protocol provider (the
module that handles SIP for SIP Communicator) is a bundle that
encapsulates, among other things, jain-sip which is the protocol stack
we use to convert SIP message into Java objects and vice versa. SIP
Communicator on the other hand is a collection of bundles that are
packaged together, that discover each other via the OSGi bundle
context, and that use each other's features through service
interfaces.

2) It is not desired to switch my application which is quite large at this
point into an OSGI compatible model. Can a sub application be used to
interact with both my application and sip?

In that case you can either make your application behave as one OSGi
bundle (which would probably be the easiest to implement), or, use it
to launch SIP Communicator. If you go down the second road you'd have
to use Felix's Main class as an example in order to have a reference
to the bundle context, and hence the rest of the SC modules. In my
previous mail I also mentioned using our own launcher as an example,
but that won't give you access to the bundle context and is therefore
probably not a good idea.

Hope this helps,
Emil

···

On Sat, May 15, 2010 at 3:54 PM, Henry oko <henry.oko_serco@hotmail.co.uk> wrote:

Once again thank you very much for your time. You have been most helpful.
Have a nice weekend.
Afro

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 9:53 AM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Afro,

На 13.05.10 15:31, Henry oko написа:

Hi there,

Apologies for spamming like this as I posted this message on the users
mailing list as well as I was not sure where to post it. Going through
the archive and came across this post from a while back:

https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841

<https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841>

Now that I know what am trying to do is somewhat possible. Can anyone
please point me in the right direction as to where to start. I need my
application to be able to load the sip-communicator environment and pass
voice back and forth and also be able to make and answer phone calls.
How is this possible and where should I start looking?

Try getting familiar with OSGi first. You can find a lot of useful
information on their web site [1]. You should then also have a look at
how JMF works [2]. The

I am relatively new to sip-communicator and am wondering how possible it
is to incorporate some of its services in my java application. I have
developed a voice recognizer/speech synthesizer application which I need
to plug in to sip-communicator. Basically what I want to find out is :

(1) Configuring - is it possible to configure and launch it from another
java class

Yes. Have a look at our launcher class to see how to do this:

net.java.sip.communicator.launcher.SIPCommunicator

However, rather than launching SIP Communicator, I'd recommend designing
your application in OSGi bundles and running them together with SIP
Communicator's. This would make communication between them easier.

(2) Control - is it possible to dial out or answer the phone via another
java class

Yes. You would need to use OperationSerBasicTelephony in a provider that
supports it in order to do this.

(3) Voice out - can I send voice from my application into the sip client

This one would require adding your own datasource to our neomedia
package, because we don't currently support external data sources. You'd
have to go through the JMF docs in order to learn how to do this.

(4) Voice in - can I get voice into my java class from the SIP client.

Same as (3). You'd have to modify the neomedia package in order to
handle this.

Hope this helps,
Emil

[1] - http://felix.apache.org
[2] - http://java.sun.com/javase/technologies/desktop/media/jmf/index.jsp

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31


#5

Hey Afro,

Hi Emil,

Many many thanks for your mail, am sure you are quite busy, so I really do
appreciate your time.

Well I have familiarized myself with OSGI by going through the tutorials and
allot of the documentation on the felix website and I dear say it was very
helpful. I have not had a look at JMF but I will quickly get accustomed to
it.

I do however have another question if you don't mind, after going through
the Felix tutorials and your reply to the question on the post, I had been
thinking about developing my application to work with Sip-Com as bundles but
some other question come to mind.

1) Is sip a bundled app or hosted framework?
     

Not sure I understand the question.

I think he was asking whether SC is delivered as a set of bundles which run completely inside the OSGi framework or whether it is a host application that embeds an OSGi framework inside of it and has a mixture of inside/outside code? I believe it is the former, is my understanding correct?

-> richard

···

On 5/15/10 10:58 AM, Emil Ivov wrote:

On Sat, May 15, 2010 at 3:54 PM, Henry oko > <henry.oko_serco@hotmail.co.uk> wrote:

SIP itself is a signalling
protocol so I guess it's neither. Our SIP protocol provider (the
module that handles SIP for SIP Communicator) is a bundle that
encapsulates, among other things, jain-sip which is the protocol stack
we use to convert SIP message into Java objects and vice versa. SIP
Communicator on the other hand is a collection of bundles that are
packaged together, that discover each other via the OSGi bundle
context, and that use each other's features through service
interfaces.

2) It is not desired to switch my application which is quite large at this
point into an OSGI compatible model. Can a sub application be used to
interact with both my application and sip?
     

In that case you can either make your application behave as one OSGi
bundle (which would probably be the easiest to implement), or, use it
to launch SIP Communicator. If you go down the second road you'd have
to use Felix's Main class as an example in order to have a reference
to the bundle context, and hence the rest of the SC modules. In my
previous mail I also mentioned using our own launcher as an example,
but that won't give you access to the bundle context and is therefore
probably not a good idea.

Hope this helps,
Emil
   

Once again thank you very much for your time. You have been most helpful.
Have a nice weekend.
Afro

--------------------------------------------------
From: "Emil Ivov"<emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 9:53 AM
To:<dev@sip-communicator.dev.java.net>
Cc: "Henry oko"<henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Afro,

На 13.05.10 15:31, Henry oko написа:
       

Hi there,

Apologies for spamming like this as I posted this message on the users
mailing list as well as I was not sure where to post it. Going through
the archive and came across this post from a while back:

https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841

<https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841>

Now that I know what am trying to do is somewhat possible. Can anyone
please point me in the right direction as to where to start. I need my
application to be able to load the sip-communicator environment and pass
voice back and forth and also be able to make and answer phone calls.
How is this possible and where should I start looking?
         

Try getting familiar with OSGi first. You can find a lot of useful
information on their web site [1]. You should then also have a look at
how JMF works [2]. The

I am relatively new to sip-communicator and am wondering how possible it
is to incorporate some of its services in my java application. I have
developed a voice recognizer/speech synthesizer application which I need
to plug in to sip-communicator. Basically what I want to find out is :

(1) Configuring - is it possible to configure and launch it from another
java class
         

Yes. Have a look at our launcher class to see how to do this:

net.java.sip.communicator.launcher.SIPCommunicator

However, rather than launching SIP Communicator, I'd recommend designing
your application in OSGi bundles and running them together with SIP
Communicator's. This would make communication between them easier.

(2) Control - is it possible to dial out or answer the phone via another
java class
         

Yes. You would need to use OperationSerBasicTelephony in a provider that
supports it in order to do this.

(3) Voice out - can I send voice from my application into the sip client
         

This one would require adding your own datasource to our neomedia
package, because we don't currently support external data sources. You'd
have to go through the JMF docs in order to learn how to do this.

(4) Voice in - can I get voice into my java class from the SIP client.
         

Same as (3). You'd have to modify the neomedia package in order to
handle this.

Hope this helps,
Emil

[1] - http://felix.apache.org
[2] - http://java.sun.com/javase/technologies/desktop/media/jmf/index.jsp

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#6

Hi Emil,

Thanks again for your mail, very helpful indeed.

I will explore the first option although it is undesired at this point because the application interacts with other components as well. Going down this road will inevitably mean converting other components as well.

Thank you very much for your help.

Henry

···

--------------------------------------------------

From: "Emil Ivov" <emcho@sip-communicator.org>

Sent: Saturday, May 15, 2010 3:58 PM
To: <dev@sip-communicator.dev.java.net>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Afro,

On Sat, May 15, 2010 at 3:54 PM, Henry oko > <henry.oko_serco@hotmail.co.uk> wrote:

Hi Emil,

Many many thanks for your mail, am sure you are quite busy, so I really do
appreciate your time.

Well I have familiarized myself with OSGI by going through the tutorials and
allot of the documentation on the felix website and I dear say it was very
helpful. I have not had a look at JMF but I will quickly get accustomed to
it.

I do however have another question if you don't mind, after going through
the Felix tutorials and your reply to the question on the post, I had been
thinking about developing my application to work with Sip-Com as bundles but
some other question come to mind.

1) Is sip a bundled app or hosted framework?

Not sure I understand the question. SIP itself is a signalling
protocol so I guess it's neither. Our SIP protocol provider (the
module that handles SIP for SIP Communicator) is a bundle that
encapsulates, among other things, jain-sip which is the protocol stack
we use to convert SIP message into Java objects and vice versa. SIP
Communicator on the other hand is a collection of bundles that are
packaged together, that discover each other via the OSGi bundle
context, and that use each other's features through service
interfaces.

2) It is not desired to switch my application which is quite large at this
point into an OSGI compatible model. Can a sub application be used to
interact with both my application and sip?

In that case you can either make your application behave as one OSGi
bundle (which would probably be the easiest to implement), or, use it
to launch SIP Communicator. If you go down the second road you'd have
to use Felix's Main class as an example in order to have a reference
to the bundle context, and hence the rest of the SC modules. In my
previous mail I also mentioned using our own launcher as an example,
but that won't give you access to the bundle context and is therefore
probably not a good idea.

Hope this helps,
Emil

Once again thank you very much for your time. You have been most helpful.
Have a nice weekend.
Afro

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 9:53 AM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Afro,

На 13.05.10 15:31, Henry oko написа:

Hi there,

Apologies for spamming like this as I posted this message on the users
mailing list as well as I was not sure where to post it. Going through
the archive and came across this post from a while back:

https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841

<https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841>

Now that I know what am trying to do is somewhat possible. Can anyone
please point me in the right direction as to where to start. I need my
application to be able to load the sip-communicator environment and pass
voice back and forth and also be able to make and answer phone calls.
How is this possible and where should I start looking?

Try getting familiar with OSGi first. You can find a lot of useful
information on their web site [1]. You should then also have a look at
how JMF works [2]. The

I am relatively new to sip-communicator and am wondering how possible it
is to incorporate some of its services in my java application. I have
developed a voice recognizer/speech synthesizer application which I need
to plug in to sip-communicator. Basically what I want to find out is :

(1) Configuring - is it possible to configure and launch it from another
java class

Yes. Have a look at our launcher class to see how to do this:

net.java.sip.communicator.launcher.SIPCommunicator

However, rather than launching SIP Communicator, I'd recommend designing
your application in OSGi bundles and running them together with SIP
Communicator's. This would make communication between them easier.

(2) Control - is it possible to dial out or answer the phone via another
java class

Yes. You would need to use OperationSerBasicTelephony in a provider that
supports it in order to do this.

(3) Voice out - can I send voice from my application into the sip client

This one would require adding your own datasource to our neomedia
package, because we don't currently support external data sources. You'd
have to go through the JMF docs in order to learn how to do this.

(4) Voice in - can I get voice into my java class from the SIP client.

Same as (3). You'd have to modify the neomedia package in order to
handle this.

Hope this helps,
Emil

[1] - http://felix.apache.org
[2] - http://java.sun.com/javase/technologies/desktop/media/jmf/index.jsp

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#7

Hi Richard,

Thanks for your input on this. If I do say, a big thank you for the information on the Felix website. It was paramount to my understanding of the OSGI framework.

Indeed this is what I wanted to find out from Emil as it will dictate the course of direction my project follows. As the project is not developed based on OSGI, do I now restructure the whole thing in order to work with sip? Or can I create a create a bundle that sits within the current OSGI implementation to interact with both sip and my application?

Thanks again for your input. Have a nice weekend.
Afro

···

--------------------------------------------------

From: "Richard S. Hall" <heavy@ungoverned.org>

Sent: Saturday, May 15, 2010 6:39 PM
To: <dev@sip-communicator.dev.java.net>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

On 5/15/10 10:58 AM, Emil Ivov wrote:

Hey Afro,

On Sat, May 15, 2010 at 3:54 PM, Henry oko >> <henry.oko_serco@hotmail.co.uk> wrote:

Hi Emil,

Many many thanks for your mail, am sure you are quite busy, so I really do
appreciate your time.

Well I have familiarized myself with OSGI by going through the tutorials and
allot of the documentation on the felix website and I dear say it was very
helpful. I have not had a look at JMF but I will quickly get accustomed to
it.

I do however have another question if you don't mind, after going through
the Felix tutorials and your reply to the question on the post, I had been
thinking about developing my application to work with Sip-Com as bundles but
some other question come to mind.

1) Is sip a bundled app or hosted framework?

Not sure I understand the question.

I think he was asking whether SC is delivered as a set of bundles which run completely inside the OSGi framework or whether it is a host application that embeds an OSGi framework inside of it and has a mixture of inside/outside code? I believe it is the former, is my understanding correct?

-> richard

SIP itself is a signalling
protocol so I guess it's neither. Our SIP protocol provider (the
module that handles SIP for SIP Communicator) is a bundle that
encapsulates, among other things, jain-sip which is the protocol stack
we use to convert SIP message into Java objects and vice versa. SIP
Communicator on the other hand is a collection of bundles that are
packaged together, that discover each other via the OSGi bundle
context, and that use each other's features through service
interfaces.

2) It is not desired to switch my application which is quite large at this
point into an OSGI compatible model. Can a sub application be used to
interact with both my application and sip?

In that case you can either make your application behave as one OSGi
bundle (which would probably be the easiest to implement), or, use it
to launch SIP Communicator. If you go down the second road you'd have
to use Felix's Main class as an example in order to have a reference
to the bundle context, and hence the rest of the SC modules. In my
previous mail I also mentioned using our own launcher as an example,
but that won't give you access to the bundle context and is therefore
probably not a good idea.

Hope this helps,
Emil

Once again thank you very much for your time. You have been most helpful.
Have a nice weekend.
Afro

--------------------------------------------------
From: "Emil Ivov"<emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 9:53 AM
To:<dev@sip-communicator.dev.java.net>
Cc: "Henry oko"<henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Afro,

На 13.05.10 15:31, Henry oko написа:

Hi there,

Apologies for spamming like this as I posted this message on the users
mailing list as well as I was not sure where to post it. Going through
the archive and came across this post from a while back:

https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841

<https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841>

Now that I know what am trying to do is somewhat possible. Can anyone
please point me in the right direction as to where to start. I need my
application to be able to load the sip-communicator environment and pass
voice back and forth and also be able to make and answer phone calls.
How is this possible and where should I start looking?

Try getting familiar with OSGi first. You can find a lot of useful
information on their web site [1]. You should then also have a look at
how JMF works [2]. The

I am relatively new to sip-communicator and am wondering how possible it
is to incorporate some of its services in my java application. I have
developed a voice recognizer/speech synthesizer application which I need
to plug in to sip-communicator. Basically what I want to find out is :

(1) Configuring - is it possible to configure and launch it from another
java class

Yes. Have a look at our launcher class to see how to do this:

net.java.sip.communicator.launcher.SIPCommunicator

However, rather than launching SIP Communicator, I'd recommend designing
your application in OSGi bundles and running them together with SIP
Communicator's. This would make communication between them easier.

(2) Control - is it possible to dial out or answer the phone via another
java class

Yes. You would need to use OperationSerBasicTelephony in a provider that
supports it in order to do this.

(3) Voice out - can I send voice from my application into the sip client

This one would require adding your own datasource to our neomedia
package, because we don't currently support external data sources. You'd
have to go through the JMF docs in order to learn how to do this.

(4) Voice in - can I get voice into my java class from the SIP client.

Same as (3). You'd have to modify the neomedia package in order to
handle this.

Hope this helps,
Emil

[1] - http://felix.apache.org
[2] - http://java.sun.com/javase/technologies/desktop/media/jmf/index.jsp

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#8

Hey Henry,

На 15.05.10 17:48, Henry oko написа:

Hi Emil,

Thanks again for your mail, very helpful indeed.

I will explore the first option although it is undesired at this point
because the application interacts with other components as well. Going down
this road will inevitably mean converting other components as well.

Not necessarily. Making your application work as a bundle does not mean
that you absolutely need to fragment it into separate independent
bundles that all follow the OSGi paradigm. The only real difference is
that rather than being started by a main method, it would be launched
from your Activator's start method.

You'll also have to make sure that all libs you are using are either
bundled together with your app or made available through the various
mechanisms that Felix allows.

Cheers,
Emil

···

Thank you very much for your help.

Henry

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 3:58 PM
To: <dev@sip-communicator.dev.java.net>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Afro,

On Sat, May 15, 2010 at 3:54 PM, Henry oko >> <henry.oko_serco@hotmail.co.uk> wrote:

Hi Emil,

Many many thanks for your mail, am sure you are quite busy, so I really
do
appreciate your time.

Well I have familiarized myself with OSGI by going through the tutorials
and
allot of the documentation on the felix website and I dear say it was
very
helpful. I have not had a look at JMF but I will quickly get accustomed
to
it.

I do however have another question if you don't mind, after going through
the Felix tutorials and your reply to the question on the post, I had
been
thinking about developing my application to work with Sip-Com as bundles
but
some other question come to mind.

1) Is sip a bundled app or hosted framework?

Not sure I understand the question. SIP itself is a signalling
protocol so I guess it's neither. Our SIP protocol provider (the
module that handles SIP for SIP Communicator) is a bundle that
encapsulates, among other things, jain-sip which is the protocol stack
we use to convert SIP message into Java objects and vice versa. SIP
Communicator on the other hand is a collection of bundles that are
packaged together, that discover each other via the OSGi bundle
context, and that use each other's features through service
interfaces.

2) It is not desired to switch my application which is quite large at
this
point into an OSGI compatible model. Can a sub application be used to
interact with both my application and sip?

In that case you can either make your application behave as one OSGi
bundle (which would probably be the easiest to implement), or, use it
to launch SIP Communicator. If you go down the second road you'd have
to use Felix's Main class as an example in order to have a reference
to the bundle context, and hence the rest of the SC modules. In my
previous mail I also mentioned using our own launcher as an example,
but that won't give you access to the bundle context and is therefore
probably not a good idea.

Hope this helps,
Emil

Once again thank you very much for your time. You have been most helpful.
Have a nice weekend.
Afro

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 9:53 AM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Afro,

На 13.05.10 15:31, Henry oko написа:

Hi there,

Apologies for spamming like this as I posted this message on the users
mailing list as well as I was not sure where to post it. Going through
the archive and came across this post from a while back:

https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841

<https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841>

Now that I know what am trying to do is somewhat possible. Can anyone
please point me in the right direction as to where to start. I need my
application to be able to load the sip-communicator environment and
pass
voice back and forth and also be able to make and answer phone calls.
How is this possible and where should I start looking?

Try getting familiar with OSGi first. You can find a lot of useful
information on their web site [1]. You should then also have a look at
how JMF works [2]. The

I am relatively new to sip-communicator and am wondering how possible
it
is to incorporate some of its services in my java application. I have
developed a voice recognizer/speech synthesizer application which I
need
to plug in to sip-communicator. Basically what I want to find out is :

(1) Configuring - is it possible to configure and launch it from
another
java class

Yes. Have a look at our launcher class to see how to do this:

net.java.sip.communicator.launcher.SIPCommunicator

However, rather than launching SIP Communicator, I'd recommend designing
your application in OSGi bundles and running them together with SIP
Communicator's. This would make communication between them easier.

(2) Control - is it possible to dial out or answer the phone via
another
java class

Yes. You would need to use OperationSerBasicTelephony in a provider that
supports it in order to do this.

(3) Voice out - can I send voice from my application into the sip
client

This one would require adding your own datasource to our neomedia
package, because we don't currently support external data sources. You'd
have to go through the JMF docs in order to learn how to do this.

(4) Voice in - can I get voice into my java class from the SIP client.

Same as (3). You'd have to modify the neomedia package in order to
handle this.

Hope this helps,
Emil

[1] - http://felix.apache.org
[2] -
http://java.sun.com/javase/technologies/desktop/media/jmf/index.jsp

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#9

Hi Emil,

Thanks for your reply, very insightful.

I have tried implementing my application as you suggested but have found it
will be impossible to go down this route as certain parts of the application
need to run in a separate JVM. Implementing it in the OSGI framework hides
the visibility of certain components.

I do however have another question if you don't mind. I believe I can
process basic control from my application to sip through sockets but that
remains to be seen. In the mean time before I dive head first into the code,
is there any documentation on how the neomedia package works? Even just a quick run down of how the package selects a datasource?

Thanks in advance.
Henry

···

--------------------------------------------------

From: "Emil Ivov" <emcho@sip-communicator.org>

Sent: Saturday, May 15, 2010 8:44 PM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Henry,

На 15.05.10 17:48, Henry oko написа:

Hi Emil,

Thanks again for your mail, very helpful indeed.

I will explore the first option although it is undesired at this point
because the application interacts with other components as well. Going
down
this road will inevitably mean converting other components as well.

Not necessarily. Making your application work as a bundle does not mean
that you absolutely need to fragment it into separate independent
bundles that all follow the OSGi paradigm. The only real difference is
that rather than being started by a main method, it would be launched
from your Activator's start method.

You'll also have to make sure that all libs you are using are either
bundled together with your app or made available through the various
mechanisms that Felix allows.

Cheers,
Emil

Thank you very much for your help.

Henry

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 3:58 PM
To: <dev@sip-communicator.dev.java.net>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Afro,

On Sat, May 15, 2010 at 3:54 PM, Henry oko >>> <henry.oko_serco@hotmail.co.uk> wrote:

Hi Emil,

Many many thanks for your mail, am sure you are quite busy, so I really
do
appreciate your time.

Well I have familiarized myself with OSGI by going through the
tutorials
and
allot of the documentation on the felix website and I dear say it was
very
helpful. I have not had a look at JMF but I will quickly get accustomed
to
it.

I do however have another question if you don't mind, after going
through
the Felix tutorials and your reply to the question on the post, I had
been
thinking about developing my application to work with Sip-Com as
bundles
but
some other question come to mind.

1) Is sip a bundled app or hosted framework?

Not sure I understand the question. SIP itself is a signalling
protocol so I guess it's neither. Our SIP protocol provider (the
module that handles SIP for SIP Communicator) is a bundle that
encapsulates, among other things, jain-sip which is the protocol stack
we use to convert SIP message into Java objects and vice versa. SIP
Communicator on the other hand is a collection of bundles that are
packaged together, that discover each other via the OSGi bundle
context, and that use each other's features through service
interfaces.

2) It is not desired to switch my application which is quite large at
this
point into an OSGI compatible model. Can a sub application be used to
interact with both my application and sip?

In that case you can either make your application behave as one OSGi
bundle (which would probably be the easiest to implement), or, use it
to launch SIP Communicator. If you go down the second road you'd have
to use Felix's Main class as an example in order to have a reference
to the bundle context, and hence the rest of the SC modules. In my
previous mail I also mentioned using our own launcher as an example,
but that won't give you access to the bundle context and is therefore
probably not a good idea.

Hope this helps,
Emil

Once again thank you very much for your time. You have been most
helpful.
Have a nice weekend.
Afro

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 9:53 AM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Afro,

На 13.05.10 15:31, Henry oko написа:

Hi there,

Apologies for spamming like this as I posted this message on the
users
mailing list as well as I was not sure where to post it. Going
through
the archive and came across this post from a while back:

https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841

<https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841>

Now that I know what am trying to do is somewhat possible. Can anyone
please point me in the right direction as to where to start. I need
my
application to be able to load the sip-communicator environment and
pass
voice back and forth and also be able to make and answer phone calls.
How is this possible and where should I start looking?

Try getting familiar with OSGi first. You can find a lot of useful
information on their web site [1]. You should then also have a look at
how JMF works [2]. The

I am relatively new to sip-communicator and am wondering how possible
it
is to incorporate some of its services in my java application. I have
developed a voice recognizer/speech synthesizer application which I
need
to plug in to sip-communicator. Basically what I want to find out is
:

(1) Configuring - is it possible to configure and launch it from
another
java class

Yes. Have a look at our launcher class to see how to do this:

net.java.sip.communicator.launcher.SIPCommunicator

However, rather than launching SIP Communicator, I'd recommend
designing
your application in OSGi bundles and running them together with SIP
Communicator's. This would make communication between them easier.

(2) Control - is it possible to dial out or answer the phone via
another
java class

Yes. You would need to use OperationSerBasicTelephony in a provider
that
supports it in order to do this.

(3) Voice out - can I send voice from my application into the sip
client

This one would require adding your own datasource to our neomedia
package, because we don't currently support external data sources.
You'd
have to go through the JMF docs in order to learn how to do this.

(4) Voice in - can I get voice into my java class from the SIP
client.

Same as (3). You'd have to modify the neomedia package in order to
handle this.

Hope this helps,
Emil

[1] - http://felix.apache.org
[2] -
http://java.sun.com/javase/technologies/desktop/media/jmf/index.jsp

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#10

Hey Henry,

На 18.05.10 00:02, Henry oko написа:

I have tried implementing my application as you suggested but have found it
will be impossible to go down this route as certain parts of the application
need to run in a separate JVM. Implementing it in the OSGI framework hides
the visibility of certain components.

Well, if you are going to use separate JVMs then I am not sure how OSGi
would be a problem. As for hiding the visibility - all this is very
configurable and there are different ways to allow for partial or
complete access to the system class loader like for example
org.osgi.framework.bootdelegation and
org.osgi.framework.system.packages.extra. All this added to what you can
do with your bundle manifest of course.

I do however have another question if you don't mind. I believe I can
process basic control from my application to sip through sockets but that
remains to be seen. In the mean time before I dive head first into the code,
is there any documentation on how the neomedia package works? Even just a
quick run down of how the package selects a datasource?

Nothing specific to our neomedia package I am afraid (other than the
javadocs). You'd probably find the various docs available on the JMF
site quite useful though.

Cheers,
Emil

···

Thanks in advance.
Henry
--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 8:44 PM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Henry,

На 15.05.10 17:48, Henry oko написа:

Hi Emil,

Thanks again for your mail, very helpful indeed.

I will explore the first option although it is undesired at this point
because the application interacts with other components as well. Going
down
this road will inevitably mean converting other components as well.

Not necessarily. Making your application work as a bundle does not mean
that you absolutely need to fragment it into separate independent
bundles that all follow the OSGi paradigm. The only real difference is
that rather than being started by a main method, it would be launched
from your Activator's start method.

You'll also have to make sure that all libs you are using are either
bundled together with your app or made available through the various
mechanisms that Felix allows.

Cheers,
Emil

Thank you very much for your help.

Henry

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 3:58 PM
To: <dev@sip-communicator.dev.java.net>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Afro,

On Sat, May 15, 2010 at 3:54 PM, Henry oko >>>> <henry.oko_serco@hotmail.co.uk> wrote:

Hi Emil,

Many many thanks for your mail, am sure you are quite busy, so I really
do
appreciate your time.

Well I have familiarized myself with OSGI by going through the
tutorials
and
allot of the documentation on the felix website and I dear say it was
very
helpful. I have not had a look at JMF but I will quickly get accustomed
to
it.

I do however have another question if you don't mind, after going
through
the Felix tutorials and your reply to the question on the post, I had
been
thinking about developing my application to work with Sip-Com as
bundles
but
some other question come to mind.

1) Is sip a bundled app or hosted framework?

Not sure I understand the question. SIP itself is a signalling
protocol so I guess it's neither. Our SIP protocol provider (the
module that handles SIP for SIP Communicator) is a bundle that
encapsulates, among other things, jain-sip which is the protocol stack
we use to convert SIP message into Java objects and vice versa. SIP
Communicator on the other hand is a collection of bundles that are
packaged together, that discover each other via the OSGi bundle
context, and that use each other's features through service
interfaces.

2) It is not desired to switch my application which is quite large at
this
point into an OSGI compatible model. Can a sub application be used to
interact with both my application and sip?

In that case you can either make your application behave as one OSGi
bundle (which would probably be the easiest to implement), or, use it
to launch SIP Communicator. If you go down the second road you'd have
to use Felix's Main class as an example in order to have a reference
to the bundle context, and hence the rest of the SC modules. In my
previous mail I also mentioned using our own launcher as an example,
but that won't give you access to the bundle context and is therefore
probably not a good idea.

Hope this helps,
Emil

Once again thank you very much for your time. You have been most
helpful.
Have a nice weekend.
Afro

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 9:53 AM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Afro,

На 13.05.10 15:31, Henry oko написа:

Hi there,

Apologies for spamming like this as I posted this message on the
users
mailing list as well as I was not sure where to post it. Going
through
the archive and came across this post from a while back:

https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841

<https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841>

Now that I know what am trying to do is somewhat possible. Can anyone
please point me in the right direction as to where to start. I need
my
application to be able to load the sip-communicator environment and
pass
voice back and forth and also be able to make and answer phone calls.
How is this possible and where should I start looking?

Try getting familiar with OSGi first. You can find a lot of useful
information on their web site [1]. You should then also have a look at
how JMF works [2]. The

I am relatively new to sip-communicator and am wondering how possible
it
is to incorporate some of its services in my java application. I have
developed a voice recognizer/speech synthesizer application which I
need
to plug in to sip-communicator. Basically what I want to find out is
:

(1) Configuring - is it possible to configure and launch it from
another
java class

Yes. Have a look at our launcher class to see how to do this:

net.java.sip.communicator.launcher.SIPCommunicator

However, rather than launching SIP Communicator, I'd recommend
designing
your application in OSGi bundles and running them together with SIP
Communicator's. This would make communication between them easier.

(2) Control - is it possible to dial out or answer the phone via
another
java class

Yes. You would need to use OperationSerBasicTelephony in a provider
that
supports it in order to do this.

(3) Voice out - can I send voice from my application into the sip
client

This one would require adding your own datasource to our neomedia
package, because we don't currently support external data sources.
You'd
have to go through the JMF docs in order to learn how to do this.

(4) Voice in - can I get voice into my java class from the SIP
client.

Same as (3). You'd have to modify the neomedia package in order to
handle this.

Hope this helps,
Emil

[1] - http://felix.apache.org
[2] -
http://java.sun.com/javase/technologies/desktop/media/jmf/index.jsp

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#11

Hi Emil,

Thanks for your mail.

Am afraid I was not very specific in my earlier question about the neomedia
package. Currently (and I may be wrong), I notice sip uses the primary
capture devices for input and output. They can be changed when running the
communicator. After I build my data source and probably a processor for it
then add to the package as you've suggested, will sip recognize it and allow
it to be selected?

Thanks again.

···

--------------------------------------------------

From: "Emil Ivov" <emcho@sip-communicator.org>

Sent: Tuesday, May 18, 2010 9:55 AM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Henry,

На 18.05.10 00:02, Henry oko написа:

I have tried implementing my application as you suggested but have found it
will be impossible to go down this route as certain parts of the application
need to run in a separate JVM. Implementing it in the OSGI framework hides
the visibility of certain components.

Well, if you are going to use separate JVMs then I am not sure how OSGi
would be a problem. As for hiding the visibility - all this is very
configurable and there are different ways to allow for partial or
complete access to the system class loader like for example
org.osgi.framework.bootdelegation and
org.osgi.framework.system.packages.extra. All this added to what you can
do with your bundle manifest of course.

I do however have another question if you don't mind. I believe I can
process basic control from my application to sip through sockets but that
remains to be seen. In the mean time before I dive head first into the code,
is there any documentation on how the neomedia package works? Even just a
quick run down of how the package selects a datasource?

Nothing specific to our neomedia package I am afraid (other than the
javadocs). You'd probably find the various docs available on the JMF
site quite useful though.

Cheers,
Emil

Thanks in advance.
Henry
--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 8:44 PM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Henry,

На 15.05.10 17:48, Henry oko написа:

Hi Emil,

Thanks again for your mail, very helpful indeed.

I will explore the first option although it is undesired at this point
because the application interacts with other components as well. Going
down
this road will inevitably mean converting other components as well.

Not necessarily. Making your application work as a bundle does not mean
that you absolutely need to fragment it into separate independent
bundles that all follow the OSGi paradigm. The only real difference is
that rather than being started by a main method, it would be launched
from your Activator's start method.

You'll also have to make sure that all libs you are using are either
bundled together with your app or made available through the various
mechanisms that Felix allows.

Cheers,
Emil

Thank you very much for your help.

Henry

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 3:58 PM
To: <dev@sip-communicator.dev.java.net>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Afro,

On Sat, May 15, 2010 at 3:54 PM, Henry oko >>>>> <henry.oko_serco@hotmail.co.uk> wrote:

Hi Emil,

Many many thanks for your mail, am sure you are quite busy, so I really
do
appreciate your time.

Well I have familiarized myself with OSGI by going through the
tutorials
and
allot of the documentation on the felix website and I dear say it was
very
helpful. I have not had a look at JMF but I will quickly get accustomed
to
it.

I do however have another question if you don't mind, after going
through
the Felix tutorials and your reply to the question on the post, I had
been
thinking about developing my application to work with Sip-Com as
bundles
but
some other question come to mind.

1) Is sip a bundled app or hosted framework?

Not sure I understand the question. SIP itself is a signalling
protocol so I guess it's neither. Our SIP protocol provider (the
module that handles SIP for SIP Communicator) is a bundle that
encapsulates, among other things, jain-sip which is the protocol stack
we use to convert SIP message into Java objects and vice versa. SIP
Communicator on the other hand is a collection of bundles that are
packaged together, that discover each other via the OSGi bundle
context, and that use each other's features through service
interfaces.

2) It is not desired to switch my application which is quite large at
this
point into an OSGI compatible model. Can a sub application be used to
interact with both my application and sip?

In that case you can either make your application behave as one OSGi
bundle (which would probably be the easiest to implement), or, use it
to launch SIP Communicator. If you go down the second road you'd have
to use Felix's Main class as an example in order to have a reference
to the bundle context, and hence the rest of the SC modules. In my
previous mail I also mentioned using our own launcher as an example,
but that won't give you access to the bundle context and is therefore
probably not a good idea.

Hope this helps,
Emil

Once again thank you very much for your time. You have been most
helpful.
Have a nice weekend.
Afro

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 9:53 AM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Afro,

На 13.05.10 15:31, Henry oko написа:

Hi there,

Apologies for spamming like this as I posted this message on the
users
mailing list as well as I was not sure where to post it. Going
through
the archive and came across this post from a while back:

https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841

<https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841>

Now that I know what am trying to do is somewhat possible. Can anyone
please point me in the right direction as to where to start. I need
my
application to be able to load the sip-communicator environment and
pass
voice back and forth and also be able to make and answer phone calls.
How is this possible and where should I start looking?

Try getting familiar with OSGi first. You can find a lot of useful
information on their web site [1]. You should then also have a look at
how JMF works [2]. The

I am relatively new to sip-communicator and am wondering how possible
it
is to incorporate some of its services in my java application. I have
developed a voice recognizer/speech synthesizer application which I
need
to plug in to sip-communicator. Basically what I want to find out is
:

(1) Configuring - is it possible to configure and launch it from
another
java class

Yes. Have a look at our launcher class to see how to do this:

net.java.sip.communicator.launcher.SIPCommunicator

However, rather than launching SIP Communicator, I'd recommend
designing
your application in OSGi bundles and running them together with SIP
Communicator's. This would make communication between them easier.

(2) Control - is it possible to dial out or answer the phone via
another
java class

Yes. You would need to use OperationSerBasicTelephony in a provider
that
supports it in order to do this.

(3) Voice out - can I send voice from my application into the sip
client

This one would require adding your own datasource to our neomedia
package, because we don't currently support external data sources.
You'd
have to go through the JMF docs in order to learn how to do this.

(4) Voice in - can I get voice into my java class from the SIP
client.

Same as (3). You'd have to modify the neomedia package in order to
handle this.

Hope this helps,
Emil

[1] - http://felix.apache.org
[2] -
http://java.sun.com/javase/technologies/desktop/media/jmf/index.jsp

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#12

Hey Henry,

На 18.05.10 11:19, Henry oko написа:

After I build my data source and probably a processor for it
then add to the package as you've suggested, will sip recognize it and allow
it to be selected?

As long as it's properly registered in JMF, it will yes. This is what we
do with the portaudio datasources for example so you may use them as a
source of inspiration.

Cheers,
Emil

···

Thanks again.

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Tuesday, May 18, 2010 9:55 AM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Henry,

На 18.05.10 00:02, Henry oko написа:

I have tried implementing my application as you suggested but have found
it
will be impossible to go down this route as certain parts of the
application
need to run in a separate JVM. Implementing it in the OSGI framework
hides
the visibility of certain components.

Well, if you are going to use separate JVMs then I am not sure how OSGi
would be a problem. As for hiding the visibility - all this is very
configurable and there are different ways to allow for partial or
complete access to the system class loader like for example
org.osgi.framework.bootdelegation and
org.osgi.framework.system.packages.extra. All this added to what you can
do with your bundle manifest of course.

I do however have another question if you don't mind. I believe I can
process basic control from my application to sip through sockets but that
remains to be seen. In the mean time before I dive head first into the
code,
is there any documentation on how the neomedia package works? Even just a
quick run down of how the package selects a datasource?

Nothing specific to our neomedia package I am afraid (other than the
javadocs). You'd probably find the various docs available on the JMF
site quite useful though.

Cheers,
Emil

Thanks in advance.
Henry
--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 8:44 PM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Henry,

На 15.05.10 17:48, Henry oko написа:

Hi Emil,

Thanks again for your mail, very helpful indeed.

I will explore the first option although it is undesired at this point
because the application interacts with other components as well. Going
down
this road will inevitably mean converting other components as well.

Not necessarily. Making your application work as a bundle does not mean
that you absolutely need to fragment it into separate independent
bundles that all follow the OSGi paradigm. The only real difference is
that rather than being started by a main method, it would be launched
from your Activator's start method.

You'll also have to make sure that all libs you are using are either
bundled together with your app or made available through the various
mechanisms that Felix allows.

Cheers,
Emil

Thank you very much for your help.

Henry

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 3:58 PM
To: <dev@sip-communicator.dev.java.net>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Afro,

On Sat, May 15, 2010 at 3:54 PM, Henry oko >>>>>> <henry.oko_serco@hotmail.co.uk> wrote:

Hi Emil,

Many many thanks for your mail, am sure you are quite busy, so I
really
do
appreciate your time.

Well I have familiarized myself with OSGI by going through the
tutorials
and
allot of the documentation on the felix website and I dear say it was
very
helpful. I have not had a look at JMF but I will quickly get
accustomed
to
it.

I do however have another question if you don't mind, after going
through
the Felix tutorials and your reply to the question on the post, I had
been
thinking about developing my application to work with Sip-Com as
bundles
but
some other question come to mind.

1) Is sip a bundled app or hosted framework?

Not sure I understand the question. SIP itself is a signalling
protocol so I guess it's neither. Our SIP protocol provider (the
module that handles SIP for SIP Communicator) is a bundle that
encapsulates, among other things, jain-sip which is the protocol stack
we use to convert SIP message into Java objects and vice versa. SIP
Communicator on the other hand is a collection of bundles that are
packaged together, that discover each other via the OSGi bundle
context, and that use each other's features through service
interfaces.

2) It is not desired to switch my application which is quite large at
this
point into an OSGI compatible model. Can a sub application be used to
interact with both my application and sip?

In that case you can either make your application behave as one OSGi
bundle (which would probably be the easiest to implement), or, use it
to launch SIP Communicator. If you go down the second road you'd have
to use Felix's Main class as an example in order to have a reference
to the bundle context, and hence the rest of the SC modules. In my
previous mail I also mentioned using our own launcher as an example,
but that won't give you access to the bundle context and is therefore
probably not a good idea.

Hope this helps,
Emil

Once again thank you very much for your time. You have been most
helpful.
Have a nice weekend.
Afro

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 9:53 AM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Afro,

На 13.05.10 15:31, Henry oko написа:

Hi there,

Apologies for spamming like this as I posted this message on the
users
mailing list as well as I was not sure where to post it. Going
through
the archive and came across this post from a while back:

https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841

<https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841>

Now that I know what am trying to do is somewhat possible. Can
anyone
please point me in the right direction as to where to start. I need
my
application to be able to load the sip-communicator environment and
pass
voice back and forth and also be able to make and answer phone
calls.
How is this possible and where should I start looking?

Try getting familiar with OSGi first. You can find a lot of useful
information on their web site [1]. You should then also have a look
at
how JMF works [2]. The

I am relatively new to sip-communicator and am wondering how
possible
it
is to incorporate some of its services in my java application. I
have
developed a voice recognizer/speech synthesizer application which I
need
to plug in to sip-communicator. Basically what I want to find out
is
:

(1) Configuring - is it possible to configure and launch it from
another
java class

Yes. Have a look at our launcher class to see how to do this:

net.java.sip.communicator.launcher.SIPCommunicator

However, rather than launching SIP Communicator, I'd recommend
designing
your application in OSGi bundles and running them together with SIP
Communicator's. This would make communication between them easier.

(2) Control - is it possible to dial out or answer the phone via
another
java class

Yes. You would need to use OperationSerBasicTelephony in a provider
that
supports it in order to do this.

(3) Voice out - can I send voice from my application into the sip
client

This one would require adding your own datasource to our neomedia
package, because we don't currently support external data sources.
You'd
have to go through the JMF docs in order to learn how to do this.

(4) Voice in - can I get voice into my java class from the SIP
client.

Same as (3). You'd have to modify the neomedia package in order to
handle this.

Hope this helps,
Emil

[1] - http://felix.apache.org
[2] -
http://java.sun.com/javase/technologies/desktop/media/jmf/index.jsp

---------------------------------------------------------------------
To unsubscribe, e-mail:
dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE:
+33.1.77.62.43.30
http://sip-communicator.org FAX:
+33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#13

Hi Emil,

Thanks again for reply.

What package and classes should I be looking at for the port audio datasources?

Am working towards using RTPSockets to build the datasource.

Thanx again
Henry

···

--------------------------------------------------

From: "Emil Ivov" <emcho@sip-communicator.org>

Sent: Wednesday, May 19, 2010 12:02 PM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Henry,

На 18.05.10 11:19, Henry oko написа:

After I build my data source and probably a processor for it
then add to the package as you've suggested, will sip recognize it and allow
it to be selected?

As long as it's properly registered in JMF, it will yes. This is what we
do with the portaudio datasources for example so you may use them as a
source of inspiration.

Cheers,
Emil

Thanks again.

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Tuesday, May 18, 2010 9:55 AM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Henry,

На 18.05.10 00:02, Henry oko написа:

I have tried implementing my application as you suggested but have found
it
will be impossible to go down this route as certain parts of the
application
need to run in a separate JVM. Implementing it in the OSGI framework
hides
the visibility of certain components.

Well, if you are going to use separate JVMs then I am not sure how OSGi
would be a problem. As for hiding the visibility - all this is very
configurable and there are different ways to allow for partial or
complete access to the system class loader like for example
org.osgi.framework.bootdelegation and
org.osgi.framework.system.packages.extra. All this added to what you can
do with your bundle manifest of course.

I do however have another question if you don't mind. I believe I can
process basic control from my application to sip through sockets but that
remains to be seen. In the mean time before I dive head first into the
code,
is there any documentation on how the neomedia package works? Even just a
quick run down of how the package selects a datasource?

Nothing specific to our neomedia package I am afraid (other than the
javadocs). You'd probably find the various docs available on the JMF
site quite useful though.

Cheers,
Emil

Thanks in advance.
Henry
--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 8:44 PM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Henry,

На 15.05.10 17:48, Henry oko написа:

Hi Emil,

Thanks again for your mail, very helpful indeed.

I will explore the first option although it is undesired at this point
because the application interacts with other components as well. Going
down
this road will inevitably mean converting other components as well.

Not necessarily. Making your application work as a bundle does not mean
that you absolutely need to fragment it into separate independent
bundles that all follow the OSGi paradigm. The only real difference is
that rather than being started by a main method, it would be launched
from your Activator's start method.

You'll also have to make sure that all libs you are using are either
bundled together with your app or made available through the various
mechanisms that Felix allows.

Cheers,
Emil

Thank you very much for your help.

Henry

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 3:58 PM
To: <dev@sip-communicator.dev.java.net>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Afro,

On Sat, May 15, 2010 at 3:54 PM, Henry oko >>>>>>> <henry.oko_serco@hotmail.co.uk> wrote:

Hi Emil,

Many many thanks for your mail, am sure you are quite busy, so I
really
do
appreciate your time.

Well I have familiarized myself with OSGI by going through the
tutorials
and
allot of the documentation on the felix website and I dear say it was
very
helpful. I have not had a look at JMF but I will quickly get
accustomed
to
it.

I do however have another question if you don't mind, after going
through
the Felix tutorials and your reply to the question on the post, I had
been
thinking about developing my application to work with Sip-Com as
bundles
but
some other question come to mind.

1) Is sip a bundled app or hosted framework?

Not sure I understand the question. SIP itself is a signalling
protocol so I guess it's neither. Our SIP protocol provider (the
module that handles SIP for SIP Communicator) is a bundle that
encapsulates, among other things, jain-sip which is the protocol stack
we use to convert SIP message into Java objects and vice versa. SIP
Communicator on the other hand is a collection of bundles that are
packaged together, that discover each other via the OSGi bundle
context, and that use each other's features through service
interfaces.

2) It is not desired to switch my application which is quite large at
this
point into an OSGI compatible model. Can a sub application be used to
interact with both my application and sip?

In that case you can either make your application behave as one OSGi
bundle (which would probably be the easiest to implement), or, use it
to launch SIP Communicator. If you go down the second road you'd have
to use Felix's Main class as an example in order to have a reference
to the bundle context, and hence the rest of the SC modules. In my
previous mail I also mentioned using our own launcher as an example,
but that won't give you access to the bundle context and is therefore
probably not a good idea.

Hope this helps,
Emil

Once again thank you very much for your time. You have been most
helpful.
Have a nice weekend.
Afro

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 9:53 AM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Afro,

На 13.05.10 15:31, Henry oko написа:

Hi there,

Apologies for spamming like this as I posted this message on the
users
mailing list as well as I was not sure where to post it. Going
through
the archive and came across this post from a while back:

https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841

<https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841>

Now that I know what am trying to do is somewhat possible. Can
anyone
please point me in the right direction as to where to start. I need
my
application to be able to load the sip-communicator environment and
pass
voice back and forth and also be able to make and answer phone
calls.
How is this possible and where should I start looking?

Try getting familiar with OSGi first. You can find a lot of useful
information on their web site [1]. You should then also have a look
at
how JMF works [2]. The

I am relatively new to sip-communicator and am wondering how
possible
it
is to incorporate some of its services in my java application. I
have
developed a voice recognizer/speech synthesizer application which I
need
to plug in to sip-communicator. Basically what I want to find out
is
:

(1) Configuring - is it possible to configure and launch it from
another
java class

Yes. Have a look at our launcher class to see how to do this:

net.java.sip.communicator.launcher.SIPCommunicator

However, rather than launching SIP Communicator, I'd recommend
designing
your application in OSGi bundles and running them together with SIP
Communicator's. This would make communication between them easier.

(2) Control - is it possible to dial out or answer the phone via
another
java class

Yes. You would need to use OperationSerBasicTelephony in a provider
that
supports it in order to do this.

(3) Voice out - can I send voice from my application into the sip
client

This one would require adding your own datasource to our neomedia
package, because we don't currently support external data sources.
You'd
have to go through the JMF docs in order to learn how to do this.

(4) Voice in - can I get voice into my java class from the SIP
client.

Same as (3). You'd have to modify the neomedia package in order to
handle this.

Hope this helps,
Emil

[1] - http://felix.apache.org
[2] -
http://java.sun.com/javase/technologies/desktop/media/jmf/index.jsp

---------------------------------------------------------------------
To unsubscribe, e-mail:
dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE:
+33.1.77.62.43.30
http://sip-communicator.org FAX:
+33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#14

Hi again,

Thank you very much for your patience with my questions so far.

Please if anyone can spare the time to explain to me the port audio datasources. From what I can see, they are the sources used for porting audio to the system devices correct?

Thank you again.

···

--------------------------------------------------

From: "Emil Ivov" <emcho@sip-communicator.org>

Sent: Wednesday, May 19, 2010 12:02 PM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Henry,

На 18.05.10 11:19, Henry oko написа:

After I build my data source and probably a processor for it
then add to the package as you've suggested, will sip recognize it and allow
it to be selected?

As long as it's properly registered in JMF, it will yes. This is what we
do with the portaudio datasources for example so you may use them as a
source of inspiration.

Cheers,
Emil

Thanks again.

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Tuesday, May 18, 2010 9:55 AM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java project

Hey Henry,

На 18.05.10 00:02, Henry oko написа:

I have tried implementing my application as you suggested but have found
it
will be impossible to go down this route as certain parts of the
application
need to run in a separate JVM. Implementing it in the OSGI framework
hides
the visibility of certain components.

Well, if you are going to use separate JVMs then I am not sure how OSGi
would be a problem. As for hiding the visibility - all this is very
configurable and there are different ways to allow for partial or
complete access to the system class loader like for example
org.osgi.framework.bootdelegation and
org.osgi.framework.system.packages.extra. All this added to what you can
do with your bundle manifest of course.

I do however have another question if you don't mind. I believe I can
process basic control from my application to sip through sockets but that
remains to be seen. In the mean time before I dive head first into the
code,
is there any documentation on how the neomedia package works? Even just a
quick run down of how the package selects a datasource?

Nothing specific to our neomedia package I am afraid (other than the
javadocs). You'd probably find the various docs available on the JMF
site quite useful though.

Cheers,
Emil

Thanks in advance.
Henry
--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 8:44 PM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Henry,

На 15.05.10 17:48, Henry oko написа:

Hi Emil,

Thanks again for your mail, very helpful indeed.

I will explore the first option although it is undesired at this point
because the application interacts with other components as well. Going
down
this road will inevitably mean converting other components as well.

Not necessarily. Making your application work as a bundle does not mean
that you absolutely need to fragment it into separate independent
bundles that all follow the OSGi paradigm. The only real difference is
that rather than being started by a main method, it would be launched
from your Activator's start method.

You'll also have to make sure that all libs you are using are either
bundled together with your app or made available through the various
mechanisms that Felix allows.

Cheers,
Emil

Thank you very much for your help.

Henry

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 3:58 PM
To: <dev@sip-communicator.dev.java.net>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Afro,

On Sat, May 15, 2010 at 3:54 PM, Henry oko >>>>>>> <henry.oko_serco@hotmail.co.uk> wrote:

Hi Emil,

Many many thanks for your mail, am sure you are quite busy, so I
really
do
appreciate your time.

Well I have familiarized myself with OSGI by going through the
tutorials
and
allot of the documentation on the felix website and I dear say it was
very
helpful. I have not had a look at JMF but I will quickly get
accustomed
to
it.

I do however have another question if you don't mind, after going
through
the Felix tutorials and your reply to the question on the post, I had
been
thinking about developing my application to work with Sip-Com as
bundles
but
some other question come to mind.

1) Is sip a bundled app or hosted framework?

Not sure I understand the question. SIP itself is a signalling
protocol so I guess it's neither. Our SIP protocol provider (the
module that handles SIP for SIP Communicator) is a bundle that
encapsulates, among other things, jain-sip which is the protocol stack
we use to convert SIP message into Java objects and vice versa. SIP
Communicator on the other hand is a collection of bundles that are
packaged together, that discover each other via the OSGi bundle
context, and that use each other's features through service
interfaces.

2) It is not desired to switch my application which is quite large at
this
point into an OSGI compatible model. Can a sub application be used to
interact with both my application and sip?

In that case you can either make your application behave as one OSGi
bundle (which would probably be the easiest to implement), or, use it
to launch SIP Communicator. If you go down the second road you'd have
to use Felix's Main class as an example in order to have a reference
to the bundle context, and hence the rest of the SC modules. In my
previous mail I also mentioned using our own launcher as an example,
but that won't give you access to the bundle context and is therefore
probably not a good idea.

Hope this helps,
Emil

Once again thank you very much for your time. You have been most
helpful.
Have a nice weekend.
Afro

--------------------------------------------------
From: "Emil Ivov" <emcho@sip-communicator.org>
Sent: Saturday, May 15, 2010 9:53 AM
To: <dev@sip-communicator.dev.java.net>
Cc: "Henry oko" <henry.oko_serco@hotmail.co.uk>
Subject: Re: [sip-comm-dev] Fw: Use sip-communicator with other java
project

Hey Afro,

На 13.05.10 15:31, Henry oko написа:

Hi there,

Apologies for spamming like this as I posted this message on the
users
mailing list as well as I was not sure where to post it. Going
through
the archive and came across this post from a while back:

https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841

<https://sip-communicator.dev.java.net/servlets/ReadMsg?list=users&msgNo=841>

Now that I know what am trying to do is somewhat possible. Can
anyone
please point me in the right direction as to where to start. I need
my
application to be able to load the sip-communicator environment and
pass
voice back and forth and also be able to make and answer phone
calls.
How is this possible and where should I start looking?

Try getting familiar with OSGi first. You can find a lot of useful
information on their web site [1]. You should then also have a look
at
how JMF works [2]. The

I am relatively new to sip-communicator and am wondering how
possible
it
is to incorporate some of its services in my java application. I
have
developed a voice recognizer/speech synthesizer application which I
need
to plug in to sip-communicator. Basically what I want to find out
is
:

(1) Configuring - is it possible to configure and launch it from
another
java class

Yes. Have a look at our launcher class to see how to do this:

net.java.sip.communicator.launcher.SIPCommunicator

However, rather than launching SIP Communicator, I'd recommend
designing
your application in OSGi bundles and running them together with SIP
Communicator's. This would make communication between them easier.

(2) Control - is it possible to dial out or answer the phone via
another
java class

Yes. You would need to use OperationSerBasicTelephony in a provider
that
supports it in order to do this.

(3) Voice out - can I send voice from my application into the sip
client

This one would require adding your own datasource to our neomedia
package, because we don't currently support external data sources.
You'd
have to go through the JMF docs in order to learn how to do this.

(4) Voice in - can I get voice into my java class from the SIP
client.

Same as (3). You'd have to modify the neomedia package in order to
handle this.

Hope this helps,
Emil

[1] - http://felix.apache.org
[2] -
http://java.sun.com/javase/technologies/desktop/media/jmf/index.jsp

---------------------------------------------------------------------
To unsubscribe, e-mail:
dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE:
+33.1.77.62.43.30
http://sip-communicator.org FAX:
+33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net