Module: sems Branch: 1.4 Commit: e7740239da843088e71b1c9b7cbab09d951065ce URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=e7740239da843088e71b1c9b7cbab09d951065ce
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 3f31930..c52c798 100644 --- a/core/AmConfig.cpp +++ b/core/AmConfig.cpp @@ -778,6 +778,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 d8af7f0..e6f4582 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
