[freeside-commits] freeside/FS/FS/part_export phone_shellcommands.pm, 1.2, 1.3

Ivan,,, ivan at wavetail.420.am
Mon Jun 30 16:56:04 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv6515/FS/FS/part_export

Modified Files:
	phone_shellcommands.pm 
Log Message:
add sip pw field

Index: phone_shellcommands.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/phone_shellcommands.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- phone_shellcommands.pm	30 Jun 2008 08:00:34 -0000	1.2
+++ phone_shellcommands.pm	30 Jun 2008 23:56:02 -0000	1.3
@@ -33,7 +33,7 @@
   <LI>
     <INPUT TYPE="button" VALUE="FreePBX (build_exten CLI module needed)" onClick='
       this.form.user.value = "root";
-      this.form.useradd.value = "build_exten.php --create --exten $phonenum --name $cust_name --vm-password $pin && /usr/share/asterisk/bin/module_admin reload";
+      this.form.useradd.value = "build_exten.php --create --exten $phonenum --directdid 1$phonenum --sip-secret $sip_password --name $cust_name --vm-password $pin && /usr/share/asterisk/bin/module_admin reload";
       this.form.userdel.value = "build_exten.php --delete --exten $phonenum && /usr/share/asterisk/bin/module_admin reload";
       this.form.usermod.value = "";
       this.form.suspend.value = "";
@@ -46,8 +46,9 @@
 <UL>
   <LI><code>$countrycode</code> - Country code
   <LI><code>$phonenum</code> - Phone number
+  <LI><code>$sip_password</code> - SIP secret (quoted for the shell)
   <LI><code>$pin</code> - Personal identification number
-  <LI><code>$cust_name</code> - Customer name
+  <LI><code>$cust_name</code> - Customer name (quoted for the shell)
 </UL>
 END
 );
@@ -88,6 +89,7 @@
   my $cust_pkg = $svc_phone->cust_svc->cust_pkg;
   my $cust_name = $cust_pkg ? $cust_pkg->cust_main->name : '';
   $cust_name = shell_quote $cust_name;
+  my $sip_password = shell_quote $svc_phone->sip_password;
   #done setting variables for the command
 
   $self->shellcommands_queue( $svc_phone->svcnum,



More information about the freeside-commits mailing list