help with STUN


#1

Please Emil, answer my e-mail, I'm really waiting for it.

Thanks Emil, but can you tell me how can I configure sip-communicator.xml with a stun and its port?
Can you tell me what, where and how to write the info of the STUN in sip-communicator.xml?
Maybe you can write an example in a sip-communicator.xml and then attach it to an e-mail.

Thanks a lot.


#2

Hi,

you can look in the sources of NetworkAddressManagerServiceImpl.
https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/src/net/java/sip/communicator/impl/netaddr/NetworkAddressManagerServiceImpl.java?view=markup

There are the config values you can set with their description.

A example for value net.java.sip.communicator.STUN_SERVER_ADDRESS :

<sip-communicator>
    <net>
        <java>
              <sip>
                <communicator>
                    <STUN_SERVER_ADDRESS value="some.stun.server.org"/>
                ..
            ..
        ..

Hope this helps.
damencho

Alex Moros Marco wrote:

···

Please Emil, answer my e-mail, I'm really waiting for it.

Thanks Emil, but can you tell me how can I configure sip-communicator.xml with a stun and its port?
Can you tell me what, where and how to write the info of the STUN in sip-communicator.xml?
Maybe you can write an example in a sip-communicator.xml and then attach it to an e-mail.

Thanks a lot.

---------------------------------------------------------------------
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


#3

Hi,

you can look in the sources of NetworkAddressManagerServiceImpl.
https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/src/net/java/sip/communicator/impl/netaddr/NetworkAddressManagerServiceImpl.java?view=markup

There are the config values you can set with their description.

A example for value net.java.sip.communicator.STUN_SERVER_ADDRESS :

<sip-communicator>
    <net>
        <java>
              <sip>
                <communicator>
                    <STUN_SERVER_ADDRESS value="some.stun.server.org"/>
                ..
            ..
        ..

Hope this helps.
damencho

Alex Moros Marco wrote:

···

Please Emil, answer my e-mail, I'm really waiting for it.

Thanks Emil, but can you tell me how can I configure sip-communicator.xml with a stun and its port?
Can you tell me what, where and how to write the info of the STUN in sip-communicator.xml?
Maybe you can write an example in a sip-communicator.xml and then attach it to an e-mail.

Thanks a lot.

---------------------------------------------------------------------
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

Thanks, Damian, so introducing that snippet of XML code in the 'sip-communicator.xml' would work?

I had a look to the code, and found that there is a boolean variable like below:

    /**
     * Specifies whether or not STUN should be used for NAT traversal
     */
    private boolean useStun = false;

Don't I need to set the boolean variable to true in the xml file?

Is there anyway where I can see the configuration options of the 'sip-communicator.xml'? So that i can see in a easy way how to add configuration settings to the xml file.

Thanks a lot.

Damian Minkov escribi�:

···

Hi,

you can look in the sources of NetworkAddressManagerServiceImpl.
https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/src/net/java/sip/communicator/impl/netaddr/NetworkAddressManagerServiceImpl.java?view=markup

There are the config values you can set with their description.

A example for value net.java.sip.communicator.STUN_SERVER_ADDRESS :

<sip-communicator>
   <net>
       <java>
             <sip>
               <communicator>
                   <STUN_SERVER_ADDRESS value="some.stun.server.org"/>
               ..
           ..
       ..

Hope this helps.
damencho

Alex Moros Marco wrote:

Please Emil, answer my e-mail, I'm really waiting for it.

Thanks Emil, but can you tell me how can I configure sip-communicator.xml with a stun and its port?
Can you tell me what, where and how to write the info of the STUN in sip-communicator.xml?
Maybe you can write an example in a sip-communicator.xml and then attach it to an e-mail.

Thanks a lot.

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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


#5

Hi,

Alex Moros Marco wrote:

Thanks, Damian, so introducing that snippet of XML code in the 'sip-communicator.xml' would work?

Yes.

I had a look to the code, and found that there is a boolean variable like below:

   /**
    * Specifies whether or not STUN should be used for NAT traversal
    */
   private boolean useStun = false;

Don't I need to set the boolean variable to true in the xml file?

No.

Is there anyway where I can see the configuration options of the 'sip-communicator.xml'? So that i can see in a easy way how to add configuration settings to the xml file.

No there is now such document right now.

damencho

···

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


#6

Alex Moros Marco wrote:

> Is there anyway where I can see the configuration options of the
> 'sip-communicator.xml'? So that i can see in a easy way how to add
> configuration settings to the xml file.
No there is now such document right now.

  I wish I knew what the options in that XML were and how they worked
well enough to document it (hint hint ;).

···

On Thu, 2008-01-10 at 17:44 +0200, Damian Minkov wrote:

damencho

--

(C) Matthew Rubenstein

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


#7

This is the beginning of my xml file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
    <net>
        <java>
            <sip>
                <communicator>
                    <SC_HOME_DIR_NAME value=".sip-communicator"/>
                    <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                    <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                    <impl>
                        <notifications>

Are you sure that name of the variable 'STUN_SERVER_ADDRESS' is correct? Cause in the website you linked me before, there is not a variable with that name, just some really close names.

Should i put that code line inside the part of my account, maybe?

Just looking for solutions...

Thanks a lot.

Damian Minkov escribi�:

···

Hi,

Alex Moros Marco wrote:

Thanks, Damian, so introducing that snippet of XML code in the 'sip-communicator.xml' would work?

Yes.

I had a look to the code, and found that there is a boolean variable like below:

   /**
    * Specifies whether or not STUN should be used for NAT traversal
    */
   private boolean useStun = false;

Don't I need to set the boolean variable to true in the xml file?

No.

Is there anyway where I can see the configuration options of the 'sip-communicator.xml'? So that i can see in a easy way how to add configuration settings to the xml file.

No there is now such document right now.

damencho

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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


#8

Hi,

I have just saw that the java doc and the implementation are different.

Can you try this :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <impl>
                      <netaddr>
                         <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>

damencho

Alex Moros Marco wrote:

···

This is the beginning of my xml file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                   <impl>
                       <notifications>

Are you sure that name of the variable 'STUN_SERVER_ADDRESS' is correct? Cause in the website you linked me before, there is not a variable with that name, just some really close names.

Should i put that code line inside the part of my account, maybe?

Just looking for solutions...

Thanks a lot.

Damian Minkov escribi�:

Hi,

Alex Moros Marco wrote:

Thanks, Damian, so introducing that snippet of XML code in the 'sip-communicator.xml' would work?

Yes.

I had a look to the code, and found that there is a boolean variable like below:

   /**
    * Specifies whether or not STUN should be used for NAT traversal
    */
   private boolean useStun = false;

Don't I need to set the boolean variable to true in the xml file?

No.

Is there anyway where I can see the configuration options of the 'sip-communicator.xml'? So that i can see in a easy way how to add configuration settings to the xml file.

No there is now such document right now.

damencho

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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


#9

Thanks but doesn't work, did you check the name "STUN_SERVER_ADDRESS"?

I just found some close names but not exactly that one.

thanks

Damian Minkov escribi�:

···

Hi,

I have just saw that the java doc and the implementation are different.

Can you try this :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
  <net>
      <java>
          <sip>
              <communicator>
                  <SC_HOME_DIR_NAME value=".sip-communicator"/>
                  <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                  <impl>
                     <netaddr>
                        <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>

damencho

Alex Moros Marco wrote:

This is the beginning of my xml file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                   <impl>
                       <notifications>

Are you sure that name of the variable 'STUN_SERVER_ADDRESS' is correct? Cause in the website you linked me before, there is not a variable with that name, just some really close names.

Should i put that code line inside the part of my account, maybe?

Just looking for solutions...

Thanks a lot.

Damian Minkov escribi�:

Hi,

Alex Moros Marco wrote:

Thanks, Damian, so introducing that snippet of XML code in the 'sip-communicator.xml' would work?

Yes.

I had a look to the code, and found that there is a boolean variable like below:

   /**
    * Specifies whether or not STUN should be used for NAT traversal
    */
   private boolean useStun = false;

Don't I need to set the boolean variable to true in the xml file?

No.

Is there anyway where I can see the configuration options of the 'sip-communicator.xml'? So that i can see in a easy way how to add configuration settings to the xml file.

No there is now such document right now.

damencho

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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


#10

Hi,

yes I've checked it here is the code :

    /**
     * The name of the property containing the stun server address.
     */
    private static final String PROP_STUN_SERVER_ADDRESS
                = "net.java.sip.communicator.impl.netaddr.STUN_SERVER_ADDRESS";

damencho

Alex Moros Marco wrote:

···

Thanks but doesn't work, did you check the name "STUN_SERVER_ADDRESS"?

I just found some close names but not exactly that one.

thanks

Damian Minkov escribi�:

Hi,

I have just saw that the java doc and the implementation are different.

Can you try this :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
  <net>
      <java>
          <sip>
              <communicator>
                  <SC_HOME_DIR_NAME value=".sip-communicator"/>
                  <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                  <impl>
                     <netaddr>
                        <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>

damencho

Alex Moros Marco wrote:

This is the beginning of my xml file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                   <impl>
                       <notifications>

Are you sure that name of the variable 'STUN_SERVER_ADDRESS' is correct? Cause in the website you linked me before, there is not a variable with that name, just some really close names.

Should i put that code line inside the part of my account, maybe?

Just looking for solutions...

Thanks a lot.

Damian Minkov escribi�:

Hi,

Alex Moros Marco wrote:

Thanks, Damian, so introducing that snippet of XML code in the 'sip-communicator.xml' would work?

Yes.

I had a look to the code, and found that there is a boolean variable like below:

   /**
    * Specifies whether or not STUN should be used for NAT traversal
    */
   private boolean useStun = false;

Don't I need to set the boolean variable to true in the xml file?

No.

Is there anyway where I can see the configuration options of the 'sip-communicator.xml'? So that i can see in a easy way how to add configuration settings to the xml file.

No there is now such document right now.

damencho

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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


#11

Yes, you are right, I've just checked it also. I guess that is the structure where it looks for a stun name in the xml file.

I also tryed setting the stun port (3478):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
    <net>
        <java>
            <sip>
                <communicator>
                    <SC_HOME_DIR_NAME value=".sip-communicator"/>
                    <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                    <impl>
                        <netaddr>
                            <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                            <STUN_SERVER_PORT value="3478"/>
                        </netaddr> <notifications>

But doesn't work either and deletes the code line of the port. This STUN already works in a softphone, i don't get why it doesn't work in sip-communicator.

Thanks.

Damian Minkov escribi�:

···

Hi,

yes I've checked it here is the code :

   /**
    * The name of the property containing the stun server address.
    */
   private static final String PROP_STUN_SERVER_ADDRESS
               = "net.java.sip.communicator.impl.netaddr.STUN_SERVER_ADDRESS";

damencho

Alex Moros Marco wrote:

Thanks but doesn't work, did you check the name "STUN_SERVER_ADDRESS"?

I just found some close names but not exactly that one.

thanks

Damian Minkov escribi�:

Hi,

I have just saw that the java doc and the implementation are different.

Can you try this :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
  <net>
      <java>
          <sip>
              <communicator>
                  <SC_HOME_DIR_NAME value=".sip-communicator"/>
                  <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                  <impl>
                     <netaddr>
                        <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>

damencho

Alex Moros Marco wrote:

This is the beginning of my xml file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                   <impl>
                       <notifications>

Are you sure that name of the variable 'STUN_SERVER_ADDRESS' is correct? Cause in the website you linked me before, there is not a variable with that name, just some really close names.

Should i put that code line inside the part of my account, maybe?

Just looking for solutions...

Thanks a lot.

Damian Minkov escribi�:

Hi,

Alex Moros Marco wrote:

Thanks, Damian, so introducing that snippet of XML code in the 'sip-communicator.xml' would work?

Yes.

I had a look to the code, and found that there is a boolean variable like below:

   /**
    * Specifies whether or not STUN should be used for NAT traversal
    */
   private boolean useStun = false;

Don't I need to set the boolean variable to true in the xml file?

No.

Is there anyway where I can see the configuration options of the 'sip-communicator.xml'? So that i can see in a easy way how to add configuration settings to the xml file.

No there is now such document right now.

damencho

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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


#12

Hi Damian, and everybody. I'd like to keep with the dialog about setting a STUN in the xml file, cause i didn't succeed. You can find below, the sippet code of my xml and its explanation, can you try it and then if works, send me the xml file? or the sippet code, i don't mind.

Thanks!

Alex Moros Marco escribi�:

···

Yes, you are right, I've just checked it also. I guess that is the structure where it looks for a stun name in the xml file.

I also tryed setting the stun port (3478):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <impl>
                       <netaddr>
                           <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                           <STUN_SERVER_PORT value="3478"/>
                       </netaddr> <notifications>

But doesn't work either and deletes the code line of the port. This STUN already works in a softphone, i don't get why it doesn't work in sip-communicator.

Thanks.

Damian Minkov escribi�:

Hi,

yes I've checked it here is the code :

   /**
    * The name of the property containing the stun server address.
    */
   private static final String PROP_STUN_SERVER_ADDRESS
               = "net.java.sip.communicator.impl.netaddr.STUN_SERVER_ADDRESS";

damencho

Alex Moros Marco wrote:

Thanks but doesn't work, did you check the name "STUN_SERVER_ADDRESS"?

I just found some close names but not exactly that one.

thanks

Damian Minkov escribi�:

Hi,

I have just saw that the java doc and the implementation are different.

Can you try this :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
  <net>
      <java>
          <sip>
              <communicator>
                  <SC_HOME_DIR_NAME value=".sip-communicator"/>
                  <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                  <impl>
                     <netaddr>
                        <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>

damencho

Alex Moros Marco wrote:

This is the beginning of my xml file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                   <impl>
                       <notifications>

Are you sure that name of the variable 'STUN_SERVER_ADDRESS' is correct? Cause in the website you linked me before, there is not a variable with that name, just some really close names.

Should i put that code line inside the part of my account, maybe?

Just looking for solutions...

Thanks a lot.

Damian Minkov escribi�:

Hi,

Alex Moros Marco wrote:

Thanks, Damian, so introducing that snippet of XML code in the 'sip-communicator.xml' would work?

Yes.

I had a look to the code, and found that there is a boolean variable like below:

   /**
    * Specifies whether or not STUN should be used for NAT traversal
    */
   private boolean useStun = false;

Don't I need to set the boolean variable to true in the xml file?

No.

Is there anyway where I can see the configuration options of the 'sip-communicator.xml'? So that i can see in a easy way how to add configuration settings to the xml file.

No there is now such document right now.

damencho

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

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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,

I've just tested it, it doesn't work. Your config is ok. Actually the problem is somewhere in the stun support.
In the thread running stun address discovery the StunAdrress is null.
    StunAddress stunAddress
                        = detector.getMappingFor(randomSocket);
I will try to find the problem and will reported here on the list

damencho

Alex Moros Marco wrote:

···

Hi Damian, and everybody. I'd like to keep with the dialog about setting a STUN in the xml file, cause i didn't succeed. You can find below, the sippet code of my xml and its explanation, can you try it and then if works, send me the xml file? or the sippet code, i don't mind.

Thanks!

Alex Moros Marco escribi�:

Yes, you are right, I've just checked it also. I guess that is the structure where it looks for a stun name in the xml file.

I also tryed setting the stun port (3478):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <impl>
                       <netaddr>
                           <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                           <STUN_SERVER_PORT value="3478"/>
                       </netaddr> <notifications>

But doesn't work either and deletes the code line of the port. This STUN already works in a softphone, i don't get why it doesn't work in sip-communicator.

Thanks.

Damian Minkov escribi�:

Hi,

yes I've checked it here is the code :

   /**
    * The name of the property containing the stun server address.
    */
   private static final String PROP_STUN_SERVER_ADDRESS
               = "net.java.sip.communicator.impl.netaddr.STUN_SERVER_ADDRESS";

damencho

Alex Moros Marco wrote:

Thanks but doesn't work, did you check the name "STUN_SERVER_ADDRESS"?

I just found some close names but not exactly that one.

thanks

Damian Minkov escribi�:

Hi,

I have just saw that the java doc and the implementation are different.

Can you try this :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
  <net>
      <java>
          <sip>
              <communicator>
                  <SC_HOME_DIR_NAME value=".sip-communicator"/>
                  <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                  <impl>
                     <netaddr>
                        <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>

damencho

Alex Moros Marco wrote:

This is the beginning of my xml file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                   <impl>
                       <notifications>

Are you sure that name of the variable 'STUN_SERVER_ADDRESS' is correct? Cause in the website you linked me before, there is not a variable with that name, just some really close names.

Should i put that code line inside the part of my account, maybe?

Just looking for solutions...

Thanks a lot.

Damian Minkov escribi�:

Hi,

Alex Moros Marco wrote:

Thanks, Damian, so introducing that snippet of XML code in the 'sip-communicator.xml' would work?

Yes.

I had a look to the code, and found that there is a boolean variable like below:

   /**
    * Specifies whether or not STUN should be used for NAT traversal
    */
   private boolean useStun = false;

Don't I need to set the boolean variable to true in the xml file?

No.

Is there anyway where I can see the configuration options of the 'sip-communicator.xml'? So that i can see in a easy way how to add configuration settings to the xml file.

No there is now such document right now.

damencho

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

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

OK, thanks a lot, let me now if you succeed!jeje

Thanks a lot.

Damian Minkov escribi�:

···

Hi,

I've just tested it, it doesn't work. Your config is ok. Actually the problem is somewhere in the stun support.
In the thread running stun address discovery the StunAdrress is null.
   StunAddress stunAddress
                       = detector.getMappingFor(randomSocket);
I will try to find the problem and will reported here on the list

damencho

Alex Moros Marco wrote:

Hi Damian, and everybody. I'd like to keep with the dialog about setting a STUN in the xml file, cause i didn't succeed. You can find below, the sippet code of my xml and its explanation, can you try it and then if works, send me the xml file? or the sippet code, i don't mind.

Thanks!

Alex Moros Marco escribi�:

Yes, you are right, I've just checked it also. I guess that is the structure where it looks for a stun name in the xml file.

I also tryed setting the stun port (3478):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <impl>
                       <netaddr>
                           <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                           <STUN_SERVER_PORT value="3478"/>
                       </netaddr> <notifications>

But doesn't work either and deletes the code line of the port. This STUN already works in a softphone, i don't get why it doesn't work in sip-communicator.

Thanks.

Damian Minkov escribi�:

Hi,

yes I've checked it here is the code :

   /**
    * The name of the property containing the stun server address.
    */
   private static final String PROP_STUN_SERVER_ADDRESS
               = "net.java.sip.communicator.impl.netaddr.STUN_SERVER_ADDRESS";

damencho

Alex Moros Marco wrote:

Thanks but doesn't work, did you check the name "STUN_SERVER_ADDRESS"?

I just found some close names but not exactly that one.

thanks

Damian Minkov escribi�:

Hi,

I have just saw that the java doc and the implementation are different.

Can you try this :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
  <net>
      <java>
          <sip>
              <communicator>
                  <SC_HOME_DIR_NAME value=".sip-communicator"/>
                  <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                  <impl>
                     <netaddr>
                        <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>

damencho

Alex Moros Marco wrote:

This is the beginning of my xml file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                   <impl>
                       <notifications>

Are you sure that name of the variable 'STUN_SERVER_ADDRESS' is correct? Cause in the website you linked me before, there is not a variable with that name, just some really close names.

Should i put that code line inside the part of my account, maybe?

Just looking for solutions...

Thanks a lot.

Damian Minkov escribi�:

Hi,

Alex Moros Marco wrote:

Thanks, Damian, so introducing that snippet of XML code in the 'sip-communicator.xml' would work?

Yes.

I had a look to the code, and found that there is a boolean variable like below:

   /**
    * Specifies whether or not STUN should be used for NAT traversal
    */
   private boolean useStun = false;

Don't I need to set the boolean variable to true in the xml file?

No.

Is there anyway where I can see the configuration options of the 'sip-communicator.xml'? So that i can see in a easy way how to add configuration settings to the xml file.

No there is now such document right now.

damencho

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

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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


#15

Hi Damian, did you solve the problem with the STUN? If you do, let me know. Thanks a lot.

Damian Minkov escribi�:

···

Hi,

I've just tested it, it doesn't work. Your config is ok. Actually the problem is somewhere in the stun support.
In the thread running stun address discovery the StunAdrress is null.
   StunAddress stunAddress
                       = detector.getMappingFor(randomSocket);
I will try to find the problem and will reported here on the list

damencho

Alex Moros Marco wrote:

Hi Damian, and everybody. I'd like to keep with the dialog about setting a STUN in the xml file, cause i didn't succeed. You can find below, the sippet code of my xml and its explanation, can you try it and then if works, send me the xml file? or the snippet code, i don't mind.

Thanks!

Alex Moros Marco escribi�:

Yes, you are right, I've just checked it also. I guess that is the structure where it looks for a stun name in the xml file.

I also tryed setting the stun port (3478):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <impl>
                       <netaddr>
                           <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                           <STUN_SERVER_PORT value="3478"/>
                       </netaddr> <notifications>

But doesn't work either and deletes the code line of the port. This STUN already works in a softphone, i don't get why it doesn't work in sip-communicator.

Thanks.

Damian Minkov escribi�:

Hi,

yes I've checked it here is the code :

   /**
    * The name of the property containing the stun server address.
    */
   private static final String PROP_STUN_SERVER_ADDRESS
               = "net.java.sip.communicator.impl.netaddr.STUN_SERVER_ADDRESS";

damencho

Alex Moros Marco wrote:

Thanks but doesn't work, did you check the name "STUN_SERVER_ADDRESS"?

I just found some close names but not exactly that one.

thanks

Damian Minkov escribi�:

Hi,

I have just saw that the java doc and the implementation are different.

Can you try this :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
  <net>
      <java>
          <sip>
              <communicator>
                  <SC_HOME_DIR_NAME value=".sip-communicator"/>
                  <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                  <impl>
                     <netaddr>
                        <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>

damencho

Alex Moros Marco wrote:

This is the beginning of my xml file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                   <impl>
                       <notifications>

Are you sure that name of the variable 'STUN_SERVER_ADDRESS' is correct? Cause in the website you linked me before, there is not a variable with that name, just some really close names.

Should i put that code line inside the part of my account, maybe?

Just looking for solutions...

Thanks a lot.

Damian Minkov escribi�:

Hi,

Alex Moros Marco wrote:

Thanks, Damian, so introducing that snippet of XML code in the 'sip-communicator.xml' would work?

Yes.

I had a look to the code, and found that there is a boolean variable like below:

   /**
    * Specifies whether or not STUN should be used for NAT traversal
    */
   private boolean useStun = false;

Don't I need to set the boolean variable to true in the xml file?

No.

Is there anyway where I can see the configuration options of the 'sip-communicator.xml'? So that i can see in a easy way how to add configuration settings to the xml file.

No there is now such document right now.

damencho

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

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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


#16

Hi Damian (or anybody!),

Do you remember our e-mail dialog talking about a problem setting a STUN server? Could you finally fix it?

Thanks.

Damian Minkov escribi�:

···

Hi,

I've just tested it, it doesn't work. Your config is ok. Actually the problem is somewhere in the stun support.
In the thread running stun address discovery the StunAdrress is null.
   StunAddress stunAddress
                       = detector.getMappingFor(randomSocket);
I will try to find the problem and will reported here on the list

damencho

Alex Moros Marco wrote:

Hi Damian, and everybody. I'd like to keep with the dialog about setting a STUN in the xml file, cause i didn't succeed. You can find below, the sippet code of my xml and its explanation, can you try it and then if works, send me the xml file? or the sippet code, i don't mind.

Thanks!

Alex Moros Marco escribi�:

Yes, you are right, I've just checked it also. I guess that is the structure where it looks for a stun name in the xml file.

I also tryed setting the stun port (3478):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <impl>
                       <netaddr>
                           <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                           <STUN_SERVER_PORT value="3478"/>
                       </netaddr> <notifications>

But doesn't work either and deletes the code line of the port. This STUN already works in a softphone, i don't get why it doesn't work in sip-communicator.

Thanks.

Damian Minkov escribi�:

Hi,

yes I've checked it here is the code :

   /**
    * The name of the property containing the stun server address.
    */
   private static final String PROP_STUN_SERVER_ADDRESS
               = "net.java.sip.communicator.impl.netaddr.STUN_SERVER_ADDRESS";

damencho

Alex Moros Marco wrote:

Thanks but doesn't work, did you check the name "STUN_SERVER_ADDRESS"?

I just found some close names but not exactly that one.

thanks

Damian Minkov escribi�:

Hi,

I have just saw that the java doc and the implementation are different.

Can you try this :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
  <net>
      <java>
          <sip>
              <communicator>
                  <SC_HOME_DIR_NAME value=".sip-communicator"/>
                  <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                  <impl>
                     <netaddr>
                        <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>

damencho

Alex Moros Marco wrote:

This is the beginning of my xml file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                   <impl>
                       <notifications>

Are you sure that name of the variable 'STUN_SERVER_ADDRESS' is correct? Cause in the website you linked me before, there is not a variable with that name, just some really close names.

Should i put that code line inside the part of my account, maybe?

Just looking for solutions...

Thanks a lot.

Damian Minkov escribi�:

Hi,

Alex Moros Marco wrote:

Thanks, Damian, so introducing that snippet of XML code in the 'sip-communicator.xml' would work?

Yes.

I had a look to the code, and found that there is a boolean variable like below:

   /**
    * Specifies whether or not STUN should be used for NAT traversal
    */
   private boolean useStun = false;

Don't I need to set the boolean variable to true in the xml file?

No.

Is there anyway where I can see the configuration options of the 'sip-communicator.xml'? So that i can see in a easy way how to add configuration settings to the xml file.

No there is now such document right now.

damencho

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

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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


#17

Hi,

we were quite busy these days and Google Summer of Code started, so time is limited
and so I was unable to test and debug this, sorry.
If there are some volunteers on the list to do it they are welcome :slight_smile:

damencho

Alex Moros Marco wrote:

···

Hi Damian (or anybody!),

Do you remember our e-mail dialog talking about a problem setting a STUN server? Could you finally fix it?

Thanks.

Damian Minkov escribi�:

Hi,

I've just tested it, it doesn't work. Your config is ok. Actually the problem is somewhere in the stun support.
In the thread running stun address discovery the StunAdrress is null.
   StunAddress stunAddress
                       = detector.getMappingFor(randomSocket);
I will try to find the problem and will reported here on the list

damencho

Alex Moros Marco wrote:

Hi Damian, and everybody. I'd like to keep with the dialog about setting a STUN in the xml file, cause i didn't succeed. You can find below, the sippet code of my xml and its explanation, can you try it and then if works, send me the xml file? or the sippet code, i don't mind.

Thanks!

Alex Moros Marco escribi�:

Yes, you are right, I've just checked it also. I guess that is the structure where it looks for a stun name in the xml file.

I also tryed setting the stun port (3478):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <impl>
                       <netaddr>
                           <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                           <STUN_SERVER_PORT value="3478"/>
                       </netaddr> <notifications>

But doesn't work either and deletes the code line of the port. This STUN already works in a softphone, i don't get why it doesn't work in sip-communicator.

Thanks.

Damian Minkov escribi�:

Hi,

yes I've checked it here is the code :

   /**
    * The name of the property containing the stun server address.
    */
   private static final String PROP_STUN_SERVER_ADDRESS
               = "net.java.sip.communicator.impl.netaddr.STUN_SERVER_ADDRESS";

damencho

Alex Moros Marco wrote:

Thanks but doesn't work, did you check the name "STUN_SERVER_ADDRESS"?

I just found some close names but not exactly that one.

thanks

Damian Minkov escribi�:

Hi,

I have just saw that the java doc and the implementation are different.

Can you try this :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
  <net>
      <java>
          <sip>
              <communicator>
                  <SC_HOME_DIR_NAME value=".sip-communicator"/>
                  <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                  <impl>
                     <netaddr>
                        <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>

damencho

Alex Moros Marco wrote:

This is the beginning of my xml file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sip-communicator>
   <net>
       <java>
           <sip>
               <communicator>
                   <SC_HOME_DIR_NAME value=".sip-communicator"/>
                   <SC_HOME_DIR_LOCATION value="C:\Documents and Settings\Alejandro"/>
                   <STUN_SERVER_ADDRESS value="stun.zoiper.com"/>
                   <impl>
                       <notifications>

Are you sure that name of the variable 'STUN_SERVER_ADDRESS' is correct? Cause in the website you linked me before, there is not a variable with that name, just some really close names.

Should i put that code line inside the part of my account, maybe?

Just looking for solutions...

Thanks a lot.

Damian Minkov escribi�:

Hi,

Alex Moros Marco wrote:

Thanks, Damian, so introducing that snippet of XML code in the 'sip-communicator.xml' would work?

Yes.

I had a look to the code, and found that there is a boolean variable like below:

   /**
    * Specifies whether or not STUN should be used for NAT traversal
    */
   private boolean useStun = false;

Don't I need to set the boolean variable to true in the xml file?

No.

Is there anyway where I can see the configuration options of the 'sip-communicator.xml'? So that i can see in a easy way how to add configuration settings to the xml file.

No there is now such document right now.

damencho

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

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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

__________ Informaci�n de NOD32, revisi�n 2759 (20080101) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

---------------------------------------------------------------------
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


#18

Hi all,

we were quite busy these days and Google Summer of Code started, so time is
limited
and so I was unable to test and debug this, sorry.
If there are some volunteers on the list to do it they are welcome :slight_smile:

Sorry to revive this old thread but I'm volunteering to work on this
problem, which is linked to issue 435
(https://sip-communicator.dev.java.net/issues/show_bug.cgi?id=435)
because ekiga.net requires a STUN server. Before starting, I'd like to
get the confirmation that my changes won't be conflicting with the
STUN/ICE GSoC project (the issue might even have already been solved
in a separate branch).

Does someone know?

Cheers,

···

On Mon, Apr 7, 2008 at 5:49 PM, Damian Minkov <damencho@damencho.com> wrote:

--
Sébastien Mazy


#19

Hello Sebastien,

Before starting, I'd like to

get the confirmation that my changes won't be conflicting with the
STUN/ICE GSoC project (the issue might even have already been solved
in a separate branch).

Does someone know?

I worked on the ICE project. The implementation of the ICE protocol is not
fully completed yet.
There are still some development to be done (I'll be working on it)

There will be a new project called ice4j, which will include the code I
developed so far
This project will then later be used to integrate the ICE feature to
sip-communicator.

From what I understood by going through the issue 435, I don't think there

will be a conflict.
ICE is used for connectivity checks between two client programs.
In this issue (435), its a connection failure to a SIP proxy. So I don't
think we need to go
for a complete ICE connectivity check to establish a connection with a SIP
server.
So I think you would be OK.

regards,
Namal


#20

Hi Namal,

Thanks for your reply.

I worked on the ICE project. The implementation of the ICE protocol is not
fully completed yet.
There are still some development to be done (I'll be working on it)

There will be a new project called ice4j, which will include the code I
developed so far
This project will then later be used to integrate the ICE feature to
sip-communicator.

Awesome! I'll be one of the first testers then :wink:

From what I understood by going through the issue 435, I don't think there
will be a conflict.

The problem comes from not using a STUN server (I'm behind a NAT). I
checked with another SIP client and I get the same 406 "Not available"
error with ekiga.net when I disable the STUN (otherwise it works).

ICE is used for connectivity checks between two client programs.
In this issue (435), its a connection failure to a SIP proxy. So I don't
think we need to go
for a complete ICE connectivity check to establish a connection with a SIP
server.
So I think you would be OK.

From what I understood (you might correct me, I'm new to
SIP/STUN/ICE), ICE is basically about determining if nothing, STUN or
TURN should be used. I know I have to use STUN and I want to enable it
(it failed for now but I didn't take the time to look further). Will
ice4j rely on stun4j for STUN?

Cheers,

···

On Fri, Aug 22, 2008 at 5:51 AM, Namal Senarathne <namal.senarathne@gmail.com> wrote:

--
Sébastien Mazy