Module: sems Branch: master Commit: 9bea34a06aa0de99ed605be1bd993509e80d76f2 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=9bea34a06aa0de99ed605be1bd993509e80d76f2
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Sun May 22 15:41:55 2011 +0200 allow network interface name for sip_ip* parameters. --- core/AmConfig.cpp | 3 +++ core/etc/sems.conf.sample | 3 ++- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/core/AmConfig.cpp b/core/AmConfig.cpp index cde6559..9752560 100644 --- a/core/AmConfig.cpp +++ b/core/AmConfig.cpp @@ -783,6 +783,9 @@ int AmConfig::finalizeIPConfig() if (AmConfig::Ifs[i].LocalSIPIP.empty()) { AmConfig::Ifs[i].LocalSIPIP = AmConfig::Ifs[i].LocalIP; } + else { + AmConfig::Ifs[i].LocalSIPIP = getLocalIP(AmConfig::Ifs[i].LocalSIPIP); + } AmConfig::LocalSIPIP2If.insert(std::make_pair(AmConfig::Ifs[i].LocalSIPIP,i)); } diff --git a/core/etc/sems.conf.sample b/core/etc/sems.conf.sample index d3e3a35..35cf786 100644 --- a/core/etc/sems.conf.sample +++ b/core/etc/sems.conf.sample @@ -30,7 +30,7 @@ # media_ip=10.0.0.34 # media_ip=eth0 -# optional parameter: sip_ip=<ip_address> +# optional parameter: sip_ip=<ip_address>|<device> # # - this informs SEMS about the SIP IP where its SIP stack is # bound to or should be bound to. This also sets @@ -42,6 +42,7 @@ # # Example: # sip_ip=10.0.0.34 +# sip_ip=en0 # # optional parameter: public_ip=<ip_address> _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
