diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/siproxd.xml | 4 |
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"); |