From bb5907148eb298e2e509fa37e23dcbe63619db9d Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 30 Jun 2008 23:56:02 +0000 Subject: add sip pw field --- FS/FS/Schema.pm | 9 +++++---- FS/FS/part_export/phone_shellcommands.pm | 6 ++++-- FS/FS/svc_phone.pm | 1 + 3 files changed, 10 insertions(+), 6 deletions(-) (limited to 'FS') diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index 807be999e..34e31d82d 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -2027,10 +2027,11 @@ sub tables_hashref { 'svc_phone' => { 'columns' => [ - 'svcnum', 'int', '', '', '', '', - 'countrycode', 'varchar', '', 3, '', '', - 'phonenum', 'varchar', '', 15, '', '', #12 ? - 'pin', 'varchar', 'NULL', $char_d, '', '', + 'svcnum', 'int', '', '', '', '', + 'countrycode', 'varchar', '', 3, '', '', + 'phonenum', 'varchar', '', 15, '', '', #12 ? + 'pin', 'varchar', 'NULL', $char_d, '', '', + 'sip_password', 'varchar', 'NULL', $char_d, '', '', ], 'primary_key' => 'svcnum', 'unique' => [], diff --git a/FS/FS/part_export/phone_shellcommands.pm b/FS/FS/part_export/phone_shellcommands.pm index e61af3d59..2edd69dc9 100644 --- a/FS/FS/part_export/phone_shellcommands.pm +++ b/FS/FS/part_export/phone_shellcommands.pm @@ -33,7 +33,7 @@ Run remote commands via SSH, for phone numbers. You will need to
  • sip_password; #done setting variables for the command $self->shellcommands_queue( $svc_phone->svcnum, diff --git a/FS/FS/svc_phone.pm b/FS/FS/svc_phone.pm index 7622e9887..bd92ed84b 100644 --- a/FS/FS/svc_phone.pm +++ b/FS/FS/svc_phone.pm @@ -170,6 +170,7 @@ sub check { $self->ut_numbern('svcnum') || $self->ut_numbern('countrycode') || $self->ut_number('phonenum') + || $self->ut_anythingn('sip_password') || $self->ut_numbern('pin') ; return $error if $error; -- cgit v1.2.1