aboutsummaryrefslogtreecommitdiffstats
path: root/packages/siproxd.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-08 18:20:51 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-08 18:20:51 +0000
commite6da0b2262a286b36c53e616a6d82907af55d9c2 (patch)
tree9343a9d55eb53e9f1ab929543b80527ef7452bd6 /packages/siproxd.xml
parentc872f052d4708a2b7116bac82b372ec8af77849b (diff)
downloadpfsense-packages-e6da0b2262a286b36c53e616a6d82907af55d9c2.tar.gz
pfsense-packages-e6da0b2262a286b36c53e616a6d82907af55d9c2.tar.bz2
pfsense-packages-e6da0b2262a286b36c53e616a6d82907af55d9c2.zip
If user is using PPPoE on interface then grab the correct interface.
Ticket #471
Diffstat (limited to 'packages/siproxd.xml')
-rw-r--r--packages/siproxd.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/siproxd.xml b/packages/siproxd.xml
index af486211..04d91108 100644
--- a/packages/siproxd.xml
+++ b/packages/siproxd.xml
@@ -122,7 +122,11 @@
fwrite($fout, "if_inbound = " . convert_friendly_interface_to_real_interface_name($_POST['if_inbound']) . "\n");
}
if($_POST['if_outbound'] != "") {
+ if($config['interfaces'][$_POST['if_outbound']]['ipaddr'] == "pppoe") {
+ fwrite($fout, "if_outbound = " . get_real_wan_interface() . "\n\n");
+ } else {
fwrite($fout, "if_outbound = " . convert_friendly_interface_to_real_interface_name($_POST['if_outbound']) . "\n\n");
+ }
}
if($_POST['port'] != "") {
fwrite($fout, "sip_listen_port = " . $_POST['port'] . "\n\n");