Dale Worley wrote:
> I see the following in NatTraversal.java:
>
>         @SettingEntry(path = "nattraversal-bridge/mediarelayexternaladdress")
>         public String getSymmitronLocalAddress() {
>
>
>         @SettingEntry(path = "nattraversal-bridge/mediarelaynativeaddress")
>         public String getSymmitronExternalAddress() {
>
> Are these what is intended?  I ask because name of the method doesn't
> match the data item names just above.  E.g., the media relay external
> address is followed by getSymmetron*Local*Address.
>
> Dale
>
>   
The name of the methods are confusing indeed (we should change to make them 
more intuitive) - but the functionality is as expected.

The method names don't really matter in this approach. The things that matter 
are the values of @SettingEntry annotation

nattraversal-bridge/mediarelayexternaladdress corresponds to: 
<mediarelayexternaladdress> tag from nattraversalrules.xml file
nattraversal-bridge/mediarelaynativeaddress corresponds to: 
<mediarelaynativeaddress> tag from nattraversalrules.xml file

@SettingEntry annotation assigns the default value to  
nattraversal-bridge/mediarelayexternaladdress and 
nattraversal-bridge/mediarelaynativeaddress

The default value of  
nattraversal-bridge/mediarelayexternaladdress/<mediarelayexternaladdress> is: 
the sipx Bridge external address (if found) or the proxy address if 
there is no sipX Bridge in the system
The default value of 
nattraversal-bridge/mediarelaynativeaddress/<mediarelaynativeaddress> is : the 
sipx Bridge local address (if found) or the proxy address if there is no 
sipX Bridge in the system.

Local address is the 'Address' field from Devices/SBCs screen - Configuration 
tab
External address is the 'External address' field from Devices/SBCs screen - SIP 
tab

Looking at SBC screen and create a sipXbridge you will find that 'Address' 
field is the same as 'External address' field. If you change the value of 
'Address' field - the same value will be assigned in the 'External address' 
field
The other way - change the 'External address' field, the value of 'Address' 
remains the same

If you play around a bit with SBCs screen (bridge created) and go back to 
NatTraversal screen you will find out that these values are assigned there as 
expected.

I really don't know if this behavior is correct but this is what was requested.

The SIP tab contains another field that contains IP address: 'Public address' 
with no default value. I have no idea what is the purpose of this one or 
whether it should affect in any way the Nat Traversal screen.

I hope this helps.

Mircea






 


_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to