[freeside-commits] freeside/FS/FS Conf.pm, 1.468.2.28, 1.468.2.29 svc_phone.pm, 1.39.2.2, 1.39.2.3
Mark Wells
mark at wavetail.420.am
Mon Dec 19 13:28:01 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv29307/FS/FS
Modified Files:
Tag: FREESIDE_2_3_BRANCH
Conf.pm svc_phone.pm
Log Message:
more options for netsapiens export, #14958
Index: svc_phone.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_phone.pm,v
retrieving revision 1.39.2.2
retrieving revision 1.39.2.3
diff -u -w -d -r1.39.2.2 -r1.39.2.3
--- svc_phone.pm 13 Dec 2011 20:40:44 -0000 1.39.2.2
+++ svc_phone.pm 19 Dec 2011 21:27:59 -0000 1.39.2.3
@@ -503,7 +503,16 @@
$self->countrycode(1) unless $self->countrycode;
- unless ( length($self->sip_password) ) {
+ unless ( length($self->pin) ) {
+ my $random_pin = $conf->config('svc_phone-random_pin');
+ if ( $random_pin =~ /^\d+$/ ) {
+ $self->pin(
+ join('', map int(rand(10)), 0..($random_pin-1))
+ );
+ }
+ }
+
+ unless ( length($self->sip_password) ) { # option for this?
$self->sip_password(
join('', map $pw_set[ int(rand $#pw_set) ], (0..16) )
Index: Conf.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Conf.pm,v
retrieving revision 1.468.2.28
retrieving revision 1.468.2.29
diff -u -w -d -r1.468.2.28 -r1.468.2.29
--- Conf.pm 19 Dec 2011 01:59:15 -0000 1.468.2.28
+++ Conf.pm 19 Dec 2011 21:27:58 -0000 1.468.2.29
@@ -4134,6 +4134,13 @@
},
{
+ 'key' => 'svc_phone-random_pin',
+ 'section' => 'telephony',
+ 'description' => 'Number of random digits to generate in the "PIN" field, if empty.',
+ 'type' => 'text',
+ },
+
+ {
'key' => 'svc_phone-lnp',
'section' => 'telephony',
'description' => 'Enables Number Portability features for svc_phone',
More information about the freeside-commits
mailing list