SER server 的安装

导读:
  X-Lite v2.0 Build 1103m for Windows http://builds.xten.net/download-public.php?download=1135
  2: Install step
  2.1: SER install
  goto the directory, in which the rpm-file locates
  type "rpm -i ser-0.8.9-1.i386.rpm"
  2.2: MySQL server install
  goto the directory, in which the rpm-file locates
  type "rpm -i MySQL-server-4.0.24-0.i386.rpm"
  copy the configuration file to the /etc directory, type "cp /usr/sharemysql/my-large.cnf /etc/my.cnf"
  2.3: MySQL client install
  goto the directory, in which the rpm-file locates
  type "rpm -i MySQL-client-4.0.24-0.i386.rpm"
  2.4: ser-mysql install
  goto the directory, in which the rpm-file locates
  type "ser-mysql-0.8.9-1.i386.rpm"
  2.5: sipsak install
  goto the directory, in which the tar-file locates
  type "tar xvzf sipsak-0.8.12.tar.gz"
  change to the new created directory
  type "./configure"
  type "make"
  type "make install"
  2.6: X-Lite install under windows
  dobble click the .exe file
  select install directory
  click continue until the installation finished
  3: configuration of the server
  3.1 configure the MySQL server
  type "mysqld_safe &" to start the mysq server as a daemon service
  type "mysql_install_db" to initiate the database
  3.2 configure the SER server
  edit /etc/ser/ser.cfg
  uncomment all the ' loadmodule "/usr/lib/ser/modules/*.so" 'lines
  comment the line 'modparam("usrloc", "db_mode", 0)' and uncomment the line modparam("usrloc", "db_mode", 2)
  uncomment the line ' modparam("auth", "calculate_ha1", yes)' and 'modparam("auth", "password_column", "password")'
  add a line 'modparam("auth", "db_url", "sql://ser:heslo@YOUR_SERVER_NAME_OR_IP_ADDRESS/ser")'
  change the line 'if (uri==myself) {' to 'if (uri=~"YOUR__SERVER_NAME_OR_IP_ADDRESS") {'
  uncomment the lines and change them to
  if (!www_authorize("YOUR__SERVER_NAME_OR_IP_ADDRESS", "subscriber")) {
  www_challenge("YOUR__SERVER_NAME_OR_IP_ADDRESS", "0");
  break;
  };
  save("location");
  break;
  edit /usr/sbin/ser_mysql.sh
  change the value of variable "DBHOST" to localhost
  edit /usr/sbin/serctl
  change the value of variable "SQL_HOST" to localhost
  edit /etc/profile
  add a line at the end of the file: "export SIP_DOMAIN=""YOUR__SERVER_NAME_OR_IP_ADDRES"
  init the database in MySQL for SER
  type "/usr/sbin/ser_mysql.sh create", the password for MySQL should be promted, type the password
  add some users to test the functionality of the server
  type "serctl add USER_NAME USER_PASSWORD USER_E-MAIL" the password for MySQL should be promted, type "heslo by default"
  4: configuration of trhe client
  start the X-Lite and the programm should start a configuration, in this configuration you can test your microphone and speaker, set enviroment of the client
  "enabled" yes
  "Display Name" select a name, which you like to display on the sceen
  "Usename" the name, that you registed by SER server
  "Authorization User" should be the same as the "Usename"
  "Password" the password of your registration
  "Domain/Realm" your server name or IP address
  "SIP proxy" your server name or IP address
  "Registry" Always
  the other options need not to be edited
  5: start telephone
  start the X-Lite
  type the username, with witch you want to talk
  click the green button and wait for the establishment of the connection
  start conversation
  6: have fun :-)
function CheckAlls(checked) { len = document.frmmain.elements.length; var i=0; for( i=0; i<len; i++) { if (document.frmmain.elements[i].name=='check_node_0') { if(document.frmmain.elements[i].disabled == false){ document.frmmain.elements[i].checked=(checked==true?true:false); } } } } document.onpropertychange= function() { var a= document.getElementById('field6163').value;//取小写金额的值 var numberValue=new String(Math.round(a*100)); // 数字金额 var String1 = "零壹贰叁肆伍陆柒捌玖"; // 汉字数字 var String2 = "万仟佰拾亿仟佰拾万仟佰拾角分"; // 对应单位 var len=numberValue.length; // numberValue 的字符串长度 //alert(len); var Ch1; // 数字的汉语读法 var Ch2; // 数字位的汉字读法 var nZero=0; // 用来计算连续的零值的个数 var String3; // 指定位置的数值 { if(len>15){ alert("超出计算范围"); return fase; } if (numberValue==0){ chineseValue = "零整"; } else { chineseValue=""; } String2 = String2.substr(String2.length-len, len); // 取出对应位数的STRING2的值 for(var i=0; i= 3 ){ Ch1 = ""; Ch2 = ""; nZero = nZero + 1; } else{ Ch1 = ""; Ch2 = String2.substr(i, 1); nZero = nZero + 1; } if( i == (len - 11) || i == (len - 3)){ // 如果该位是亿位或位,则必须写上 Ch2 = String2.substr(i, 1); } } chineseValue =chineseValue +Ch1 + Ch2; } if ( String3 == 0 ){ // 最后一位(分)为0时,加上“整” chineseValue = chineseValue + "整"; } } //alert(chineseValue); document.getElementById('field6421').value=chineseValue; }
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值