From e6da0b2262a286b36c53e616a6d82907af55d9c2 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 8 Sep 2005 18:20:51 +0000 Subject: If user is using PPPoE on interface then grab the correct interface. Ticket #471 --- packages/siproxd.xml | 4 ++++ 1 file changed, 4 insertions(+) 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"); -- cgit v1.2.3