 |
Sipaddresses and local domains
This applies to the thirdparty/sip-services sip proxy shipped with the Mobicents distribution.
Sipaddresses are usually on the from username@domain with examples such as joe@nist.gov.
However, when doing development work or just playing around with sip technology in a local network it can be convenient to use addresses with an ipaddress intead of a domain e.g. joe@192.168.0.2.
One benefit with this approach is that you do not have to care about setting an outbound proxy in the sip user agent since it will send the sip messages to the ipaddress that is used.
There is one drawback with this approach: The sip proxy must be configured to treat both hostnames such as nist.gov and ipaddresses as local domains which are handled by the sip proxy itself.
Using hostnames provides a little more robust configuration than ipadresses unless the server ipaddress is stable.
The main lesson learned from trying out addresses like username@nist.gov and username@192.168.0.2 is however that nomatter what way is chosen, the local domains must be configured.
As of now there is no configuration file for this. The local domains are hard coded in the class org.mobicents.slee.services.sip.common.SipConfigImpl.
Just edit the getLocalDomainNames method to enable your domain as a local domain.
-- Main.niklasuhrberg - 29 Nov 2005
|