/[smecontribs]/rpms/smeserver-freepbx/contribs9/smeserver-freepbx-13.bz9702.udpports.patch
ViewVC logotype

Annotation of /rpms/smeserver-freepbx/contribs9/smeserver-freepbx-13.bz9702.udpports.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Jul 26 16:24:23 2016 UTC (8 years, 3 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-freepbx-13-6_el6_sme, smeserver-freepbx-13-8_el6_sme, smeserver-freepbx-13-7_el6_sme, smeserver-freepbx-13-9_el6_sme, smeserver-freepbx-13-4_el6_sme, smeserver-freepbx-13-2_el6_sme, smeserver-freepbx-13-15_el6_sme, smeserver-freepbx-13-13_el6_sme, smeserver-freepbx-13-12_el6_sme, smeserver-freepbx-13-11_el6_sme, smeserver-freepbx-13-3_el6_sme, smeserver-freepbx-13-10_el6_sme, smeserver-freepbx-13-5_el6_sme, smeserver-freepbx-13-14_el6_sme, HEAD
* Tue Jul 26 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-2.sme
- fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702]

1 unnilennium 1.1 diff -Nur smeserver-freepbx-13.old/root/etc/e-smith/db/configuration/defaults/freepbx/UDPPorts smeserver-freepbx-13/root/etc/e-smith/db/configuration/defaults/freepbx/UDPPorts
2     --- smeserver-freepbx-13.old/root/etc/e-smith/db/configuration/defaults/freepbx/UDPPorts 2016-06-13 08:03:08.000000000 -0400
3     +++ smeserver-freepbx-13/root/etc/e-smith/db/configuration/defaults/freepbx/UDPPorts 2016-07-26 12:10:07.034000000 -0400
4     @@ -1 +1 @@
5     -5060,5061,5160,5161,4569,1000-2000
6     +5060,5061,5160,5161,4569,10000-20000
7     diff -Nur smeserver-freepbx-13.old/root/etc/e-smith/db/configuration/migrate/freepbx smeserver-freepbx-13/root/etc/e-smith/db/configuration/migrate/freepbx
8     --- smeserver-freepbx-13.old/root/etc/e-smith/db/configuration/migrate/freepbx 2016-06-13 08:03:08.000000000 -0400
9     +++ smeserver-freepbx-13/root/etc/e-smith/db/configuration/migrate/freepbx 2016-07-26 12:20:56.495000000 -0400
10     @@ -29,10 +29,14 @@
11     $UDPPorts = "$UDPPorts,5161";
12     $freepbx->set_prop('UDPPorts',$UDPPorts);
13     }
14     -unless ('1000-2000' ~~ @UDPlist){
15     - $UDPPorts = "$UDPPorts,1000-2000";
16     +unless ('10000-20000' ~~ @UDPlist){
17     + $UDPPorts = "$UDPPorts,10000-20000";
18     $freepbx->set_prop('UDPPorts',$UDPPorts);
19     }
20     +if ('1000-2000' ~~ @UDPlist){
21     + $UDPPorts =~ s/,1000-2000//;
22     + $freepbx->set_prop('UDPPorts',$UDPPorts);
23     +}
24    
25     }
26    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed