Rabu, 12 November 2014

Bagaimana agar gammu bisa mengirim banyak karakter sms

sebagai berikut adalah coding u gammu agar bisa mengirim banyak karakter sms:

$hp=$HP;
        $jml_karakter=strlen($isi_pesan);
if($jml_karakter <= 160) {
    $masuk = "insert into outbox (DestinationNumber,TextDecoded,CreatorID) values ('$hp','$isi_pesan','gammu')";
    mysql_query($masuk);
    echo " sukses sent to $HP :$jml_karakter char";
}

else {
    $jml_potongan_SMS = ceil(strlen($isi_pesan)/153);
    // memecah pesan asli
    $potongan_SMS = str_split($isi_pesan, 153);

    // proses untuk mendapatkan ID record yang akan disisipkan ke tabel OUTBOX
    $masuk = "SHOW TABLE STATUS LIKE 'outbox'";
    $hasil = mysql_query($masuk);
    $data  = mysql_fetch_array($hasil);
    $newID = $data['Auto_increment'];

    // proses penyimpanan ke tabel mysql untuk setiap pecahan
    for ($i=1; $i<=$jml_potongan_SMS; $i++)
    {
        // membuat UDH untuk setiap pecahan, sesuai urutannya
        $udh = "050003A7".sprintf("%02s", $jml_potongan_SMS).sprintf("%02s", $i);
        // membaca text setiap pecahan
        $msg = $potongan_SMS[$i-1];
        if ($i == 1)
        {
        // jika merupakan pecahan pertama, maka masukkan ke tabel OUTBOX
        $masuk = "INSERT INTO outbox (DestinationNumber, UDH, TextDecoded, ID, MultiPart, CreatorID, Coding)
        VALUES ('$hp', '$udh', '$msg', '$newID', 'true', 'gammu','Default_No_Compression')";
        }
        else
        {
        // jika bukan merupakan pecahan pertama, simpan ke tabel OUTBOX_MULTIPART
        $masuk = "INSERT INTO outbox_multipart(UDH, TextDecoded, ID, SequencePosition)
        VALUES ('$udh', '$msg', '$newID', '$i')";
        }
        // jalankan query
        mysql_query($masuk);
        echo "sukses sent to $HP  :$jml_karakter char";
    }

semoga membantu

Fungsi Index SMS gateway

<?php
if (version_compare(phpversion(), "5.3.0", ">=")  == 1)
  error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
else
  error_reporting(E_ALL & ~E_NOTICE); 
  ?>
<?php
session_start();
//error_reporting(0);
require_once"koneksi.php";
//require_once"function.php";
$mnu=$_GET["mnu"];
date_default_timezone_set("Asia/Jakarta");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $header;?></title>
<meta name="keywords" content="<?php echo $header;?>" />
<meta name="description" content="<?php echo $header;?>" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
<link href="css/jquery.ennui.contentslider.css" rel="stylesheet" type="text/css" media="screen,projection" />


<script type="text/javascript">
function myAjax(){
                var $http,$self = arguments.callee;

                if (window.XMLHttpRequest) {$http = new XMLHttpRequest();}
                else if (window.ActiveXObject) {
                    try {$http = new ActiveXObject('Msxml2.XMLHTTP');}
                    catch(e) {$http = new ActiveXObject('Microsoft.XMLHTTP');}
                }

                if ($http) {
                    $http.onreadystatechange = function(){
                        if (/4|^complete$/.test($http.readyState)) {
                            document.getElementById('ReloadMe').innerHTML = $http.responseText;
                            setTimeout(function(){$self();}, 1000);
                        }
                    };
                    $http.open('GET', 'bacainbox.php' + '?' + new Date().getTime(), true);
                    $http.send(null);
                }
            }
        </script>
        <script type="text/javascript">setTimeout(function() {myAjax();}, 1000);</script>
</head>
<body>
<?php
   //$string = "This is a strpos() test";
  //  print strpos($string, "his") . "\n";
?>
<div id="templatemo_wrapper">
    <div id="temmplatmeo_header">
           <div id="site_title">
               <a href="http://www.templatemo.com" target="_parent">
                <img src="images/templatemo_logo.png" alt="Scene Template" />
            </a>
        </div>
   
        <div id="templatemo_menu">
       
            <ul>
           
             <?php
if(isset($_SESSION["cid"])){   
?>

 <li><a href="index.php?mnu=home" <?php if($mnu=="home"){echo "class='current'";}?>>Beranda</a></li>
                <li><a href="index2.php?mnu=petugas" <?php if($mnu=="visi"){echo "class='current'";}?>>Petugas</a></li>
                <li><a href="index2.php?mnu=anggota" <?php if($mnu=="anggota"){echo "class='current'";}?>>Anggota</a></li>
                <li><a href="index2.php?mnu=buku" <?php if($mnu=="buku"){echo "class='current'";}?>>Buku</a></li>
                 <li><a href="index2.php?mnu=peminjaman" <?php if($mnu=="peminjaman"){echo "class='current'";}?>>Peminjaman</a></li>
                  <li><a href="index2.php?mnu=pengembalian" <?php if($mnu=="pengembalian"){echo "class='current'";}?>>Pengembalian</a></li>
                   <li><a href="index2.php?mnu=pengunjung" <?php if($mnu=="pengunjung"){echo "class='current'";}?>>Bukutamu</a></li>
                <li><a href="index.php?mnu=logout" <?php if($mnu=="logout"){echo "class='current'";}?>>Logout</a></li>
               
                <?php 
}
else{
    ?>
   
              <li><a href="index.php?mnu=home" <?php if($mnu=="home"){echo "class='current'";}?>>Beranda</a></li>
                <li><a href="index.php?mnu=visi" <?php if($mnu=="visi"){echo "class='current'";}?>>Visi Misi</a></li>
                <li><a href="index.php?mnu=profile" <?php if($mnu=="profile"){echo "class='current'";}?>>Sejarah</a></li>
                <li><a href="index.php?mnu=contact" <?php if($mnu=="contact"){echo "class='current'";}?>>Bukutamu</a></li>
                <li><a href="index.php?mnu=login" <?php if($mnu=="login"){echo "class='current'";}?>>Login</a></li>
      <?php
    }
      ?>
     
     
            </ul>       
       
        </div> <!-- end of templatemo_menu -->   
    </div> <!-- end of templatemo_header -->
   
  <div id="templatemo_banner">
   
           <div id="banner_left">
            <h2>Perpustakaan</h2>
            <p>Adalah kumpulan informasi yang bersifat ilmu pengetahuan, hiburan, rekreasi, dan ibadah yang merupakan kebutuhan hakiki manusia.

Oleh karena itu perpustakaan modern telah didefinisikan kembali sebagai tempat untuk mengakses informasi dalam format apa pun, apakah informasi itu disimpan dalam gedung perpustakaan tersebut ataupun tidak. </p>
            <p>&nbsp;</p>
            <p>Dalam perpustakaan modern ini selain kumpulan buku tercetak, sebagian buku dan koleksinya ada dalam perpustakaan digital (dalam bentuk data yang bisa diakses lewat jaringan komputer).<a href="http://id.wikipedia.org/wiki/Perpustakaan">Info Lebih</a></p>
           </div>
       
      <div id="banner_right"><span></span>
       
        <div id="one" class="contentslider">
           <div class="cs_wrapper">
               <div class="cs_slider">
               
                   <div class="cs_article">
                   <?php
                   if($mnu=="visi"){echo"<img src='ypathfile/pustaka1.jpg' alt='pustaka' width='100%' height='100%' />";}
            else if($mnu=="profile"){echo"<img src='ypathfile/pustaka2.jpg' alt='pustaka' width='100%' height='100%' />";}
            else if($mnu=="contact"){echo"<img src='ypathfile/pustaka3.jpg' alt='pustaka' width='100%' height='100%' />";}
            else if($mnu=="petugas"){echo"<img src='ypathfile/pustaka4.jpg' alt='pustaka' width='100%' height='100%' />";}
else if($mnu=="anggota"){echo"<img src='ypathfile/pustaka5.jpg' alt='pustaka' width='100%' height='100%' />";}
else if($mnu=="buku"){echo"<img src='ypathfile/pustaka1.jpg' alt='pustaka' width='100%' height='100%' />";}

else if($mnu=="peminjaman"){echo"<img src='ypathfile/pustaka2.jpg' alt='pustaka' width='100%' height='100%' />";}
else if($mnu=="pengembalian"){echo"<img src='ypathfile/pustaka3.jpg' alt='pustaka' width='100%' height='100%' />";}

else if($mnu=="login"){echo"<img src='ypathfile/pustaka4.jpg' alt='pustaka' width='100%' height='100%' />";}
else if($mnu=="logout"){echo"<img src='ypathfile/pustaka5.jpg' alt='pustaka' width='100%' height='100%' />";}
else{echo"<img src='ypathfile/pustaka5.jpg' alt='pustaka' width='100%' height='100%' />";}
                   ?>
                             
                        </div>
             
               </div><!-- End cs_slider -->
           </div><!-- End cs_wrapper -->
        </div><!-- End contentslider -->

        <!-- Site JavaScript -->
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
    <script type="text/javascript" src="js/jquery.ennui.contentslider.js"></script>
    <script type="text/javascript">
            $(function() {
                $('#one').ContentSlider({
                    width : '535px',
                    height : '233px',
                    speed : 800,
                    easing : 'easeInOutQuart'
                });
            });
        </script>
    <script src="js/jquery.chili-2.2.js" type="text/javascript"></script>
    <script src="js/chili/recipes.js" type="text/javascript"></script>

       
      </div>   <!-- end of slider -->

       
   
    </div> <!-- end of templatemo_banner -->
   
    <div id="templatemo_content">
   
        <div class="section_w900">
       
            <div class="section_w580 float_l">
            <?php
            if($mnu=="visi"){require_once"visi.php";}
            else if($mnu=="profile"){require_once"profile.php";}
            else if($mnu=="contact"){require_once"pengunjung/pengunjungcaptcha.php";}
            else if($mnu=="pengunjung"){require_once"pengunjung/pengunjung.php";}
            else if($mnu=="petugas"){require_once"petugas/petugas.php";}
else if($mnu=="anggota"){require_once"anggota/anggota.php";}
else if($mnu=="buku"){require_once"buku/buku.php";}

else if($mnu=="peminjaman"){require_once"peminjaman/peminjaman.php";}
else if($mnu=="pengembalian"){require_once"pengembalian/pengembalian.php";}

else if($mnu=="login"){require_once"login.php";}
else if($mnu=="logout"){require_once"logout.php";}

            else{
            ?>
                  <h2>Selamat Datang di Aplikasi SMS Gateway</h2>
                <a href="http://id.wikipedia.org/wiki/Perpustakaan" title="Perpustakaan onlie"  class="float_l_img" target="_blank"><img src="ypathfile/pustaka1.jpg" title="a imagem" alt="Perpustakaan Onlie Unila" width="100" height="100"/></a>
                <p><span id="ctl00_ctl00_ContentPlaceHolder1_lbDeskripsi">Direktori Perpustakaan Online menyajikan daftar perpustakaan di Indonesia yang katalognya dapat diakses secara online.</span></p>
              <p>Perpustakaan diartikan sebuah ruangan atau gedung yang digunakan   untuk menyimpan buku dan terbitan lainnya yang biasanya disimpan menurut   tata susunan tertentu yang digunakan pembaca bukan untuk dijual (   Sulistyo, Basuki ; 1991 ). </p>
              <p> Ada dua unsur utama dalam perpustakaan, yaitu buku dan ruangan.   Namun, di zaman sekarang, koleksi sebuah perpustakaan tidak hanya   terbatas berupa buku-buku, tetapi bisa berupa film, slide, atau lainnya,   yang dapat diterima di perpustakaan sebagai sumber informasi. Kemudian   semua sumber informasi itu diorganisir, disusun teratur, sehingga ketika   kita membutuhkan suatu informasi, kita dengan mudah dapat menemukannya.</p>
              <p> Dengan memperhatikan keterangan di atas, dapat disimpulkan   bahwa perpustakaan adalah suatu unit kerja yang berupa tempat menyimpan   koleksi bahan pustaka yang diatur secara sistematis dan dapat digunakan   oleh pemakainya sebagai sumber informasi. ( Sugiyanto ). <a href="http://id.wikipedia.org/wiki/Perpustakaan">Info lebih</a></p>

              <div class="cleaner_h40"></div> 
                <div class="services_section">
                <h2>List Referensi</h2>
               
     <p><strong>Katalog dan daftar buku terlengkap,</strong> sebagai berikut adalah referensi mendapatkan beragam buku atau penulisan ilmiah secara onle :</p>
               
                <ul class="services_list">
                    <li><a href="http://www.pnri.go.id/">Perpustakaan Nasional RI</a></li>
                     <li><a href="http://www.pnri.go.id/">Perpustakaan Dinas Pendidikan dan Kebudayaan</a></li>
                     <li><a href="http://www.pnri.go.id/">Perpustakaan Pemerintah Daerah  XXX</a></li>
                  <li><a href="http://www.pnri.go.id/">Perpustakaan Online Universitas XXX</a></li></ul>
                </div>
           
            <?php
            }
            ?>
            </div> <!-- end of section_580 -->
           
            <div class="section_w280 float_r">
           
                <div class="testimonial">
                        <p><?php require_once"pengunjung/pengunjungup.php";?></p>
                </div>
               
                  <div class="twitter">
                         <ul>
                        <li>
                        <?php require_once"statistik/statistik.php"; ?>
                        </li>
                      </ul>
                </div>
           
            </div>
       
            <div class="cleaner"></div>
        </div>
       
       
       
    </div><div id="content_bottom"></div> <!-- end of templatemo_content -->
   
    <div id="templatemo_footer">
        <?php echo $footer;?><br />
        <div id="ReloadMe" align="center">Terimakasih atas kunjungannya....</div>
    </div>
</div> <!-- end of templatemo_wrapper -->


<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js'></script>
<script type='text/javascript' src='js/logging.js'></script>
</body>
</html>

<?php
function WKT($sekarang){
$tanggal = substr($sekarang,8,2)+0;
$bulan = substr($sekarang,5,2);
$tahun = substr($sekarang,0,4);

$judul_bln=array(1=> "Januari", "Februari", "Maret", "April", "Mei","Juni", "Juli", "Agustus", "September","Oktober", "November", "Desember");
$wk=$tanggal." ".$judul_bln[(int)$bulan]." ".$tahun;
return $wk;
}
?>
<?php
function WKTP($sekarang){
$tanggal = substr($sekarang,8,2)+0;
$bulan = substr($sekarang,5,2);
$tahun = substr($sekarang,2,2);

$judul_bln=array(1=> "Jan", "Feb", "Mar", "Apr", "Mei","Jun", "Jul", "Agu", "Sep","Okt", "Nov", "Des");
$wk=$tanggal." ".$judul_bln[(int)$bulan]."'".$tahun;
return $wk;
}
?>
<?php
function BAL($tanggal){
    $arr=split(" ",$tanggal);
    if($arr[1]=="Januari"){$bul="01";}
    else if($arr[1]=="Februari"){$bul="02";}
    else if($arr[1]=="Maret"){$bul="03";}
    else if($arr[1]=="April"){$bul="04";}
    else if($arr[1]=="Mei"){$bul="05";}
    else if($arr[1]=="Juni"){$bul="06";}
    else if($arr[1]=="Juli"){$bul="07";}
    else if($arr[1]=="Agustus"){$bul="08";}
    else if($arr[1]=="September"){$bul="09";}
    else if($arr[1]=="Oktober"){$bul="10";}
    else if($arr[1]=="November"){$bul="11";}
    else if($arr[1]=="Nopember"){$bul="11";}
    else if($arr[1]=="Desember"){$bul="12";}
return "$arr[2]-$bul-$arr[0]";   
}
?>

<?php
function BALP($tanggal){
    $arr=split(" ",$tanggal);
    if($arr[1]=="Jan"){$bul="01";}
    else if($arr[1]=="Feb"){$bul="02";}
    else if($arr[1]=="Mar"){$bul="03";}
    else if($arr[1]=="Apr"){$bul="04";}
    else if($arr[1]=="Mei"){$bul="05";}
    else if($arr[1]=="Jun"){$bul="06";}
    else if($arr[1]=="Jul"){$bul="07";}
    else if($arr[1]=="Agu"){$bul="08";}
    else if($arr[1]=="Sep"){$bul="09";}
    else if($arr[1]=="Okt"){$bul="10";}
    else if($arr[1]=="Nov"){$bul="11";}
    else if($arr[1]=="Nop"){$bul="11";}
    else if($arr[1]=="Des"){$bul="12";}
return "$arr[2]-$bul-$arr[0]";   
}

function getAnggota($kode){
    $s="select `nama_anggota` from `anggota` where `id_anggota`='$kode'";
    $q=mysql_query($s);
            $d=mysql_fetch_array($q);
                $nama_anggota=$d["nama_anggota"];
        return $nama_anggota;
    }

function getBuku($kode){
    $s="select `judul_buku` from `buku` where `id_buku`='$kode'";
    $q=mysql_query($s);
            $d=mysql_fetch_array($q);
                $judul_buku=$d["judul_buku"];
        return $judul_buku;
    }
   
function getPetugas($kode){
    $s="select `nama_petugas` from `petugas` where `id_petugas`='$kode'";
    $q=mysql_query($s);
            $d=mysql_fetch_array($q);
                $nama_petugas=$d["nama_petugas"];
        return $nama_petugas;
    }

?>

Posisi Standby menunggu SMS Masuk

<?php
require_once"koneksi.php";

 $s="select * from inbox where status='N' order by `UpdatedInDB` asc";
$q = mysql_query($s);
$hitung = mysql_num_rows($q);
if($hitung>0){
$waktu0="";
$i=-1;
while($data = mysql_fetch_array($q)){
    $waktu=$data["UpdatedInDB"];
    $hp=$data["SenderNumber"];
    $msg=$data["TextDecoded"];
    $id=$data["ID"];
    if($waktu0==$waktu){
        $arrHp[$i-1]=$hp;
        $arrId[$i-1]=$id;
        $arrMsg[$i-1]=$msg.$arrMsg[$i-1];
        $arrHp[$i-1]=$hp;
        $arrWkt[$i-1]=$waktu;
        }
    else{
        $i++;
        $arrHp[$i]=$hp;
        $arrId[$i]=$id;
        $arrMsg[$i]=$msg.$arrMsg[$i-1];
        $arrHp[$i]=$hp;
        $arrWkt[$i]=$waktu;   
        }
    $waktu0=$waktu;
    }//while
   
for($j=0;$j<=$i;$j++){
    $update= mysql_query("update inbox set status='Y' where ID='".$arrId[$j]."'");
   
    $ar=strtolower($arrMsg[$j]);
    $x=split("#",$ar);
    $p=sizeof($x);
    //info#judul#katakunci
    $key=$x[2];
    $HP=$arrHp[$j];
if($x[0]=="info"){
    $req="judul_buku";//select * from `buku` where `judul_buku` like '%psiko%'
    if($x[1]=="judul"){$req="judul_buku";    $s="select * from `$tbbuku` where `judul_buku` like '%$key%'";}
    else if($x[1]=="penulis" ||$x[1]=="pengarang" ){$req="pengarang";    $s="select * from `$tbbuku` where `pengarang` like '%$key%'";}
    else if($x[1]=="jenis" ||$x[1]=="jenis_buku" ){$req="jenis_buku";    $s="select * from `$tbbuku` where `jenis_buku` like '%$key%'";}
    else if($x[1]=="penerbit" ||$x[1]=="penerbit_buku" ){$req="penerbit_buku";    $s="select * from `$tbbuku` where `penerbit_buku` like '%$key%'";}
    else if($x[1]=="sinopsis"){$req="sinopsis";    $s="select * from `$tbbuku` where `sinopsis` like '%$key%'";}
        $q=mysql_query($s);
        $gab="";
        $jum=0;
        $no=1;
            while($d=mysql_fetch_array($q)){
                $id_buku=$d["id_buku"];
                $judul_buku=$d["judul_buku"];
                $jenis_buku=$d["jenis_buku"];
                $penerbit_buku=$d["penerbit_buku"];
                $keterangan=$d["keterangan"];
               
                $pengarang=$d["pengarang"];
                $tahun_terbit=$d["tahun_terbit"];
                $stok_buku=$d["stok_buku"];
                $sinopsis=$d["sinopsis"];
                $gab.="$no. $judul_buku,$pengarang ($penerbit_buku:$tahun_terbit):$stok_buku buah#";
                $jum++;
                $no++;
                if($jum>5){break;}
                $isi_pesan="hasil pencarian: $gab";
            }//while
    }//if
    else{//ELSE
        $isi_pesan="Yth $HP, Gunakan pola \"info#judul/penulis/pengarang#kata_kunci";
        }
        echo "send mesage to $HP :$isi_pesan";
        $kirimsms = mysql_query("insert into outbox (InsertIntoDB,SendingDateTime,DestinationNumber,TextDecoded,SendingTimeOut,DeliveryReport,CreatorID)
        values (sysdate(),sysdate(),'$HP','$isi_pesan',sysdate(),'yes','system')");
       
       
       
        $hp=$HP;
        $jml_karakter=strlen($isi_pesan);
if($jml_karakter <= 160) {
    $masuk = "insert into outbox (DestinationNumber,TextDecoded,CreatorID) values ('$hp','$isi_pesan','gammu')";
    mysql_query($masuk);
    echo " sukses sent to $HP :$jml_karakter char";
}

else {
    $jml_potongan_SMS = ceil(strlen($isi_pesan)/153);
    // memecah pesan asli
    $potongan_SMS = str_split($isi_pesan, 153);

    // proses untuk mendapatkan ID record yang akan disisipkan ke tabel OUTBOX
    $masuk = "SHOW TABLE STATUS LIKE 'outbox'";
    $hasil = mysql_query($masuk);
    $data  = mysql_fetch_array($hasil);
    $newID = $data['Auto_increment'];

    // proses penyimpanan ke tabel mysql untuk setiap pecahan
    for ($i=1; $i<=$jml_potongan_SMS; $i++)
    {
        // membuat UDH untuk setiap pecahan, sesuai urutannya
        $udh = "050003A7".sprintf("%02s", $jml_potongan_SMS).sprintf("%02s", $i);
        // membaca text setiap pecahan
        $msg = $potongan_SMS[$i-1];
        if ($i == 1)
        {
        // jika merupakan pecahan pertama, maka masukkan ke tabel OUTBOX
        $masuk = "INSERT INTO outbox (DestinationNumber, UDH, TextDecoded, ID, MultiPart, CreatorID, Coding)
        VALUES ('$hp', '$udh', '$msg', '$newID', 'true', 'gammu','Default_No_Compression')";
        }
        else
        {
        // jika bukan merupakan pecahan pertama, simpan ke tabel OUTBOX_MULTIPART
        $masuk = "INSERT INTO outbox_multipart(UDH, TextDecoded, ID, SequencePosition)
        VALUES ('$udh', '$msg', '$newID', '$i')";
        }
        // jalankan query
        mysql_query($masuk);
        echo "sukses sent to $HP  :$jml_karakter char";
    }
}
////////////////////////////////       
       
    }//ELSE   
}
else{
    $tgl=date("Y-m-d").",".date("H:i:s")." WIB";
    echo"$tgl";
    }
?>

artinya....jika ada sms masuk sesuai pola request yang diminta...maka sistem akan langsung meresponya....

Sms auto send to member jika ada buku baru sesuai kriteria masuk



 if(isset($_POST["Simpan"])){
    $id_buku=strip_tags($_POST["id_buku"]);
    $judul_buku=strip_tags($_POST["judul_buku"]);
    $jenis_buku=strip_tags($_POST["jenis_buku"]);
    $penerbit_buku=strip_tags($_POST["penerbit_buku"]);
    $keterangan=strip_tags($_POST["keterangan"]);
    $tahun_terbit=strip_tags($_POST["tahun_terbit"]);
  
    $pengarang=strip_tags($_POST["pengarang"]);
    $sinopsis=strip_tags($_POST["sinopsis"]);
    $stok_buku=strip_tags($_POST["stok_buku"]);

    $y=split(",",$jenis_buku);//marketing,humas,komputer
    $p=sizeof($y);
   
    $s="select * from `$tbanggota` where not `jenis_buku_fav`=''";
    $q=mysql_query($s);
            while($d=mysql_fetch_array($q)){
                $id_anggota=$d["id_anggota"];
                $nama_anggota=$d["nama_anggota"];
                $alamat_anggota=$d["alamat_anggota"];
                $no_tlp_anggota=$d["no_tlp_anggota"];
                $jenis_buku_fav=$d["jenis_buku_fav"];
                $x=split(",",$jenis_buku_fav);
                $pp=sizeof($x);
                $sama=0;
                for($i=0;$i<$p;$i++){
//mencari irisan kesamaan antara tbl buku(jenis_buku) dan favorite tblanggota
                    $buku1=trim($y[$i]);
                    for($j=0;$j<$pp;$j++){
                        $buku2=trim($x[$j]);//$pos === false
                            if(strpos($buku1, $buku2)===true){
                                    $sama=$sama+1;           
                            }//if               
                        }//for                   
                    }//for
                   
                    if($sama>0){
                        $isi_pesan="Yth $nama_anggota, ada buku baru dengan jenis buku $jenis_buku=>$judul_buku /$pengarang ($tahun_terbit)";
                        $kirimsms = mysql_query("insert into outbox (InsertIntoDB,SendingDateTime,DestinationNumber,TextDecoded,SendingTimeOut,DeliveryReport,CreatorID)
        values (sysdate(),sysdate(),'$no_tlp_anggota','$isi_pesan',sysdate(),'yes','system')");
                        }
            }//while
                }
                     
$sql=" INSERT INTO `$tbbuku` (
`id_buku` ,
`judul_buku` ,
`jenis_buku` ,
`penerbit_buku` ,
`keterangan` ,
`tahun_terbit` ,
`pengarang`,
`stok_buku`,
`sinopsis`
) VALUES (
'',
'$judul_buku',
'$jenis_buku',
'$penerbit_buku',
'$keterangan','$tahun_terbit',
'$pengarang','$stok_buku','$sinopsis'
)";
   
$simpan=mysql_query($sql);
        if($simpan) {echo "<script>alert('Data buku $judul_buku berhasil disimpan !');document.location.href='?mnu=buku';</script>";}
        else{echo"<script>alert('Data buku $judul_buku gagal disimpan...');document.location.href='?mnu=buku';</script>";}

Artinya saat mita menyimpan buku  baru (studi kasus web perpustakaan online), maka favorite request para member nantinya akan di cek apakah sesuai dengan jenis buku yg baru diinputkan tadi.....jika ya....maka akan dilakukan sms gateway....



referesnsi gunakan strpos:
<?php
$mystring 
'abc';$findme   'a';$pos strpos($mystring$findme);
// Note our use of ===.  Simply == would not work as expected
// because the position of 'a' was the 0th (first) character.
if ($pos === false) {
    echo 
"The string '$findme' was not found in the string '$mystring'";
} else {
    echo 
"The string '$findme' was found in the string '$mystring'";
    echo 
" and exists at position $pos";
}
?>

Minggu, 09 November 2014

PHP code to read sent Item Using Gammu


gambar gammu to read sent item



<?php
include "koneksi.php";
$sql = mysql_query("select * from sentitems");
$hitung = mysql_num_rows($sql);

$offset = $_GET['offset'];

//Jumlah data yang ditampilkan per halaman
$limit = 5;
if (empty ($offset) ){
    $offset = 0;
}
if ($hitung == 0){
    echo "<br><font face=tahoma size=2><div align=center>Tidak Ada Pesan Terkirim</div></font>";
}
else {
?>
<center>
<table border="0" cellpadding="0" cellspacing="0" width="70%">
<tr >
    <td height="30" width=100%>
        <div align="left"><font size="3" face="tahoma">Semua Data Pesan Terkirim (sentitems)<br></font>
        <font face="tahoma" size="2">Jumlah Data : <?php echo "$hitung";?><hr color=#CCCCFF></font></div></td>
</tr>
</table>
<table border="1" cellpadding="0" cellspacing="0" width="70%">
<tr bgcolor="#999999" align="center">
    <td width="2%"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">No</font></div></td>
    <td width="20%"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">Time</font></div></td>
    <td width="18%"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">No Tujuan</font></div></td>
    <td width="40%"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">Isi Pesan</font></div></td>
    <td width="15%"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">Status</font></div></td>
    <td><div align="center"><font size="2" face="tahoma" color="#FFFFFF"> Aksi </font></div></td>
</tr>
<?
echo "<div class=paging>";

if ($offset != 0){
    $prevoffset = $offset - 5;
    echo "<span class=prevnext><a href=pesanterkirim.php?offset=$prevoffset>Back</a></span>";
}
else {
    echo "<span class=disabled>Back</span>"; //cetak halaman tanpa link
}

//hitung jumlah halaman
$halaman = intval($hitung/$limit); //Pembulatan

if ($hitung%$limit){
    $halaman++;
}
for ($i=1; $i<=$halaman; $i++) {
    $newoffset = $limit*($i-1);
    if ($offset != $newoffset){
        echo "<a href=pesanterkirim.php?offset=$newoffset>$i</a>";
    }
    else {
        echo "<span class=current>".$i."</span>";//cetak halaman tanpa link
    }
}

//cek halaman akhir
if (! (($offset/$limit) + 1 == $halaman) && $halaman !=1){
    //jika bukan halaman terakhir maka berikan next
    $newoffset = $offset + $limit;
    echo "<span class=prevnext><a href=pesanterkirim.php?offset=$newoffset>Next</a></span>";
}
else {
    echo "<span class=disabled>Next</span>";//cetak halaman tanpa link
}
echo "</div>";
?>
<?
$hasil = mysql_query("select * from sentitems limit $offset,$limit");
$k = 1 + $offset;
while($data = mysql_fetch_array($hasil)){
echo"
 <tr valign=top>
    <td height=24><div align=center><font size=2 face=tahoma>$k</font></div></td>
    <td><div align=center><font size=2 face=tahoma>$data[UpdatedInDB]</font></div></td>
    <td><div align=center><font size=2 face=tahoma>$data[DestinationNumber]</font></div></td>
    <td><font size=2 face=tahoma>$data[TextDecoded]</font></div></td>
    <td align='center'><font size=2 face=tahoma>$data[Status]</font></div></td>
    <td><div align=center><font size=2 face=tahoma><a href='hapuspesanterkirim.php?id=$data[ID]'> Hapus</a></font></div></td>
 </tr>
    ";   
$k++;
}
echo"</table>";
}
?>

ok....semoga membantu

Source code PHP to read Inbox using Gammu


 gambar Gammu success read Inbox




 Gammbar minimum database for read or sent sms

import database gammu ba di dapatkan dari  Impor format table untuk database 'gammu' Anda dengan menggunakan script 'mysql.sql' pada direktori 'C:\gammu\share\doc\gammu\examples\sql\mysql.sql' 

source code baca inbox:

<h1>List Of Inbox </h1>
<?php
$host    = "localhost";
$user    = "root";
$pass    = "";
$database = "lp2msetgammuauto";

mysql_connect($host,$user,$pass);
mysql_select_db($database);



$sql = mysql_query("select * from inbox");
$hitung = mysql_num_rows($sql);

$offset = $_GET['offset'];

//Jumlah data yang ditampilkan per halaman
$limit = 5;
if (empty ($offset) ){
    $offset = 0;
}
if ($hitung == 0){
    echo "<br><font face=tahoma size=2><div align=center>Tidak Ada Pesan Masuk</div></font>";
}
else {
?>
<center>
<table border="0" cellpadding="0" cellspacing="0" width="70%">
<tr >
    <td height="30" width=100%>
        <div align="left"><font size="3" face="tahoma">Semua Data Pesan Masuk (Inbox)<br></font>
        <font face="tahoma" size="2">Jumlah Data : <?php echo "$hitung";?><hr color=#CCCCFF></font></div></td>
</tr>
</table>
<table border="1" cellpadding="0" cellspacing="0" width="70%">
<tr bgcolor="#999999" align="center">
    <td width="2%"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">No</font></div></td>
    <td width="20%"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">Time</font></div></td>
    <td width="18%"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">Pengirim</font></div></td>
    <td width="50%"><div align="center"><font size="2" face="tahoma" color="#FFFFFF">Isi Pesan</font></div></td>
    <td><div align="center"><font size="2" face="tahoma" color="#FFFFFF"> Aksi </font></div></td>
</tr>
<?
echo "<div class=paging>";

if ($offset != 0){
    $prevoffset = $offset - 5;
    echo "<span class=prevnext><a href=pesanmasuk.php?offset=$prevoffset>Back</a></span>";
}
else {
    echo "<span class=disabled>Back</span>"; //cetak halaman tanpa link
}

//hitung jumlah halaman
$halaman = intval($hitung/$limit); //Pembulatan

if ($hitung%$limit){
    $halaman++;
}
for ($i=1; $i<=$halaman; $i++) {
    $newoffset = $limit*($i-1);
    if ($offset != $newoffset){
        echo "<a href=pesanmasuk.php?offset=$newoffset>$i</a>";
    }
    else {
        echo "<span class=current>".$i."</span>";//cetak halaman tanpa link
    }
}

//cek halaman akhir
if (! (($offset/$limit) + 1 == $halaman) && $halaman !=1){
    //jika bukan halaman terakhir maka berikan next
    $newoffset = $offset + $limit;
    echo "<span class=prevnext><a href=pesanmasuk.php?offset=$newoffset>Next</a></span>";
}
else {
    echo "<span class=disabled>Next</span>";//cetak halaman tanpa link
}
echo "</div>";
?>
<?
$hasil = mysql_query("select * from inbox limit $offset,$limit");
$k = 1 + $offset;
while($data = mysql_fetch_array($hasil)){
echo"
 <tr valign=top>
    <td height=24><div align=center><font size=2 face=tahoma>$k</font></div></td>
    <td><div align=center><font size=2 face=tahoma>$data[UpdatedInDB]</font></div></td>
    <td><div align=center><font size=2 face=tahoma>$data[SenderNumber]</font></div></td>
    <td><font size=2 face=tahoma>$data[TextDecoded]</font></div></td>
    <td><div align=center><font size=2 face=tahoma><a href='hapuspesanmasuk.php?id=$data[ID]'> Hapus</a></font></div></td>
 </tr>
    ";   
$k++;
}
echo"</table>";
}
?>









OK semoga membantu

Source code PHP for Gammu to send message

Interface :

<form name="formlp2maray" method="post" action="simpangammu.php">
<h3> Kirim Pesan Single </h3>
<table width="800" border="0" cellspacing="0" cellpadding="3">
<tr>
    <td width="100"> Nomor Tujuan </td><td width="10"> : </td>
    <td><input name="hp" type="text" size="20"></td>
</tr>
<tr valign="top">
    <td> Isi Pesan </td><td> : </td>
    <td>
        <textarea name="isi_pesan" cols="40" rows="7"></textarea>
    </td>
</tr>
<tr>
    <td colspan="2"></td>
    <td><input name="counter" type="text" size="5" maxlength="5" value="160" /></td>
</tr>
<tr>
    <td><input type="submit" value="Kirim Pesan" /></td>
</tr>
</table>
</form>



lalu buat file baru bernama :simpangammu.php

<?php
$host    = "localhost";
$user    = "root";
$pass    = "";
$database = "lp2msetgammuauto";

mysql_connect($host,$user,$pass);
mysql_select_db($database);

$hp = $_POST['hp'];
$isi_pesan = $_POST['isi_pesan'];

$masuk = mysql_query("insert into outbox (InsertIntoDB,SendingDateTime,DestinationNumber,TextDecoded,SendingTimeOut,DeliveryReport,CreatorID)
        values (sysdate(),sysdate(),'$hp','$isi_pesan',sysdate(),'yes','system')");
if ($masuk){
    echo "<h4> Pesan Dikirim </h4>";
}
else {
    echo "<h4> Pesan gagal dikirim </h4>";
}
?>

Ok semoga membantu....



Konfigurasi Final Gammu pada Win 7 atau XP to help All error

Bagi yang belum memiliki new gammu version, silakan download dimari:
Download :http://dl.cihar.com/gammu/releases/windows/

extract rename misal gammu =>jadi:D:\gammu\bin\....
Copy file 'gammurc' dan 'smsdrc' pada 'C:\gammu\share\doc\gammu\examples\config' ke 'D:\gammu\bin'


edit file smsdrc
# Database backends congfiguration
user = root
password =
pc = localhost
# pc can also contain port or socket path after colon (eg. localhost:/path/to/socket)
database = lp2msetgammuauto

edit file gammurc
device = com10:
connection = at115200

   
testing
gammu identify
========================
jika sudah sukses, import database
 Impor format table untuk database 'gammu' Anda dengan menggunakan script 'mysql.sql' pada direktori 'C:\gammu\share\doc\gammu\examples\sql\mysql.sql' 

=========================
lalu edit ulang smsdrc sesuaikan dengan konfigurasi database dan password Xampp Anda
device = com70:
connection = at115200
service = mysql
user = root
password =
pc = localhost
database = lp2msetgammuauto
driver = mysql

tes sms.....
gammu -c smsdrc sendsms TEXT 08121215xxxx
isi  pesan
ctrl+z

atau
gammu sendsms TEXT 089669091xxx -text "Apa kabar"
ctrl+z
=============================
Untuk membuat service gammu dengan perintah sbb:
    gammu-smsd -i -c smsdrc -n adiGammu atau
    gammu-smsd -c smsdrc -i
Untuk jalankan :
    gammu-smsd -s -c smsdrc -n adiGammu


CATATAN:
Apabila terjadi error (Error 1053: The service did not respond to the start or control request in a timely fashion), hilangkan opsi “-f 0? pada service yang telah dibuat tadi, dengan cara:
a. Buka Registry Editor (Start>RUN>”regedit”)
b.Cari lokasi “HKLM\\SYSTEM\\CurrentControlSet\\Services\\[nama service gammu]”
b.Edit value bagian “ImagePath”, hilangkan “-f 0?

hmmmm...    jika masih ada error fasion juga: edit pada smsdrc
    [gammu]
device = com11:
connection = at19200
#connection = dlr3
#synchronizetime = yes


Error 1063: The service process could not connect to the service controller)
    akan muncul jika gammu tidak du run test (play standby)


Error 27 : The drive cannot find the sector requested
    Kemungkinan ada masalah dengan database...

*N.B : sebelum menjalankan/install service gammu daemon, pastikan settingan gammu sudah benar, untuk mengeceknya gunakan perintah :
    gammu-smsd -c smsdrc
    Kalo tidak ada pesan error dan di TaskManager ada proses Gammu-SMSD, berarti settingan kemungkinan sudah benar. Jika terdapat error, jangan lupa ngecek file smsdlog.

U di windows 7 dan sukses, beberapa yang perlu diperhatikan:(error Access is Denied)
>> Waktu eksekusi command prompt, pastikan dibuka sebagai administrator (run as administrator)
>> PASTIKAN telah melewati proses identifikasi, artinya tidak ada error ketika menjalakan perintah :
    gammu –identify

Errror : Invalid parameter
    Gunakan baufrate: 115200

Error 27 : The specified service does not exist as an installed service
    karena service gammu belum aktif...jadi seblum gunakan start gammu install dlu servicenya:
    gammu –identify
    gammu identify
    gammu-smsd -i -c smsdrc -n adiGammu
    gammu-smsd -s -c smsdrc -n adiGammu
   

Keterangan:
-i untuk meng-install service
-c untuk konfigurasi
-n untuk membuat nama service
-s untuk menjalankan service gammu

Uji coba untuk mengirim SMS dengan menggunakan perintah dibawah ini:
gammu-smsd-inject –c D:\mygammu\bin\smsdrc TEXT +6285279959498 –text “Hello Mr. Adi...”

    
   


===============finish smsdrc
# This is a sample Gammu SMSD configuration file. It's required for gammu-smsd,
# see gammu-smsdrc(5) for documentation.

# Gammu configuration, this section is like section "gammu" in "gammurc" file,
# see gammurc(5) for documentation.
[gammu]
device = com11:
connection = at19200
#connection = dlr3
#synchronizetime = yes
#logfile = gammulog # this is not used at all in SMSD mode
#logformat = textall
#use_locking = yes
#gammuloc = gammu.us
#startinfo = yes

# When uncomment this section and insert numbers here, smsd will process
# incoming sms only from numbers written here (incoming sms from all other
# numbers will be deleted)
#[include_numbers]
#number1 = 1234

# When uncomment this section and insert numbers here, smsd will process
# incoming sms from all numbers not written here (incoming sms from numbers
# written here will be deleted). This is "black" list.
# Note: after using "include_numbers" section this one will be ignored
#[exclude_numbers]
#number1 = 1234

# General SMSD settings, see gammu-smsdrc(5) for detailed description.
[smsd]
# SMSD service to use, one of FILES, MYSQL, PGSQL, DBI
service = MYSQL
# PIN for SIM card
PIN = 1234
# File (or stderr, syslog, eventlog) where information will be logged
logfile = smsdlog
# Amount of information being logged, each bit mean one level
debuglevel = 0
# Configuration for using more phones on same database
#phoneid = MyPhone1
# Script to be executed when new message has been received
#runonreceive = /some/script
# Commication frequency settings
commtimeout = 30
sendtimeout = 30
#receivefrequency = 0

# Phone communication settings
#checksecurity = 1
#resetfrequency = 0

# Delivery report configuration
#deliveryreport = no
#deliveryreportdelay = 10

# Ignoring broken SMSC
#skipsmscnumber = +48602123456

# Database backends congfiguration
user = root
password =
pc = localhost
# pc can also contain port or socket path after colon (eg. localhost:/path/to/socket)
database = lp2msetgammuauto

# DBI configuration
driver = mysql
# driverspath = /usr/lib/dbd/
# Database directory for sqlite
# dbdir = /var/lib/smsd

# Files backend configuration
#inboxpath = /var/spool/sms/inbox/
#outboxpath = /var/spool/sms/outbox/
#sentsmspath = /var/spool/sms/sent/
#errorsmspath = /var/spool/sms/error/
#inboxformat = unicode
#transmitformat = auto
#outboxformat = detail


=======================finish gammurc file
; This is a sample ~/.gammurc file.
; In Unix/Linux  copy it into your home directory and name it .gammurc
;                or into /etc and name it gammurc
; In Win32       copy it into directory with Gammu.exe and name gammurc
; More about parameters later
; Anything behind ; or # is comment.
; -----------------------------------------------------------------------------

[gammu]

device = com11:
connection = at19200
; Do not use model configuration unless you really need it
;model = 6110
;synchronizetime = yes
;logfile = gammulog
;logformat = textall
;use_locking = yes
;gammuloc = locfile
;startinfo = yes
;gammucoding = utf8
;usephonedb = yes

[gammu1]

;device = com8:
;model = 6110
;connection = fbusblue
;synchronizetime = yes
;logfile = gammulog
;logformat = textall
;use_locking = yes
;gammuloc = locfile
;startinfo = yes
;gammucoding = utf8

; Step 1. Please find required Connection parameter and look into assigned
; with it device type. With some Connection you must set concrete model

; ================================================================ cables =====
; New Nokia protocol for FBUS/DAU9P
;    Connection "fbus", device type serial
; New Nokia protocol for DLR3/DLR3P
;    Connection "fbusdlr3"/"dlr3", device type serial
; New Nokia protocol for DKU2 (and phone with USB converter on phone mainboard
;                              like 6230)
;    Connection "dku2phonet"/"dku2", device type dku2 on Windows
;    Connection "fbususb" on Linux
; New Nokia protocol for DKU5 (and phone without USB converter on phone
;                              mainboard like 5100)
;    Connection "dku5fbus"/"dku5", device type dku5
; New Nokia protocol for PL2303 USB cable (and phone without USB converter
;                                          on phone mainboard like 5100)
;    Connection "fbuspl2303", device type usb
; Old Nokia protocol for MBUS/DAU9P
;    Connection "mbus", device type serial
; Variants:
; You can modify a bit behaviour of connection using additional flags
; specified just after connection name like connection-variant.
; If you're using ARK3116 cable (or any other which does not like dtr
; handling), you might need -nodtr variant of connection, eg. dlr3-nodtr.
; If cable you use is not powered over DTR/RTS, try using -nopower variant of
; connection, eg. fbus-nopower.
; -----------------------------------------------------------------------------
; AT commands for DLR3, DKU5 or other AT compatible cable (8 bits, None
; parity, no flow control, 1 stop bit). Used with Nokia, Alcatel, Siemens, etc.
;    Connection "at19200"/"at115200"/.., device type serial
; AT commands for DKU2 cable
;    Connection "dku2at", device type dku2
; ============================================================== infrared =====
; Nokia protocol for infrared with Nokia 6110/6130/6150
;    Connection "fbusirda"/"infrared", device type serial
; Nokia protocol for infrared with other Nokia models
;    Connection "irdaphonet"/"irda", device type irda
; -----------------------------------------------------------------------------
; AT commands for infrared. Used with Nokia, Alcatel, Siemens, etc.
;    Connection "irdaat", device type irda
; -----------------------------------------------------------------------------
; OBEX for infrared
;    Connection "irdaobex", device type irda.
; ============================================================= Bluetooth =====
; Nokia protocol with serial device set in BT stack (WidComm, other) from
; adequate service and Nokia 6210
;    Connection "fbusblue", device type serial
; Nokia protocol with serial device set in BT stack (WidComm, other) from
; adequate service and other Nokia models
;    Connection "phonetblue", device type serial
; -----------------------------------------------------------------------------
; Nokia protocol for Bluetooth stack with Nokia 6210
;    Connection "bluerffbus", device type BT
; Nokia protocol for Bluetooth stack with DCT4 Nokia models, which don't inform
; about services correctly (6310, 6310i with firmware lower than 5.50, 8910,..)
;    Connection "bluerfphonet", device type BT
; Nokia protocol for Bluetooth stack with other DCT4 Nokia models
;    Connection "bluephonet", device type BT
; -----------------------------------------------------------------------------
; AT commands for Bluetooth stack and 6210 / DCT4 Nokia models, which don't
; inform about BT services correctly (6310, 6310i with firmware lower
; than 5.50, 8910,..)
;    Connection "bluerfat", device type BT
; AT commands for Bluetooth stack with other phones (Siemens, other Nokia,etc.)
;    Connection "blueat", device type BT
; -----------------------------------------------------------------------------
; OBEX for Bluetooth stack with DCT4 Nokia models, which don't inform about
; BT services correctly (6310, 6310i with firmware lower than 5.50, 8910,...)
;    Connection "bluerfobex", device type BT
; OBEX for Bluetooth stack with other phones (Siemens, other Nokia, etc.)
;    Connection "blueobex", device type BT.
; -----------------------------------------------------------------------------
;    Connection "bluerfgnapbus", device type BT, model "gnap"
;    Connection "irdagnapbus", device type irda, model "gnap"

; Step2. According to device type from Step1 and used OS set Port parameter

; -----------------------------------------------------------------------------
; Port type | "Port" parameter in Windows/DOS | "Port" parameter in Linux/Unix
; ----------|---------------------------------|--------------------------------
; serial    | "com*:"                         | "/dev/ttyS*"
;           | (example "com1:")               | (example "/dev/ttyS1")
;           |                                 | or "/dev/tts/**" (with DevFS)
;           |                                 | virtual serial ports like
;           |                                 | "/dev/ircomm*" or "/dev/rfcomm*"
; ----------|---------------------------------|--------------------------------
; irda      | ignored (can be empty)          | ignored (can be empty)
; ----------|---------------------------------|--------------------------------
; BT        | Bluetooth device address (example "00:11:22:33:44:55").
;           | Optionally you can also include channel after slash
;           | (example "00:11:22:33:44:55/12"). Can be also empty.
; ----------|---------------------------------|--------------------------------
; dku2      | ignored (can be empty)          | /dev/ttyUSB* or /dev/ttyACM*
; ----------|---------------------------------|--------------------------------
; dku5      | ignored (can be empty)          | connection with it not possible
; ----------|---------------------------------|--------------------------------
; usb       | connection with it not possible | "/dev/ttyUSB*"

; Step3. Set other config parameters

; -----------------------------------------------------------------------------
; Parameter name  | Description
; ----------------|------------------------------------------------------------
; Model           | Should not be used unless you have a good reason to do so.
;                 | If Gammu doesn't recognize your phone model, put it here.
;                 | Example values: "6110", "6150", "6210", "8210"
; SynchronizeTime | if you want to set time from computer to phone during
;                 | starting connection. Do not rather use this option when
;                 | when to reset phone during connection (in some phones need
;                 | to set time again after restart)
; GammuLoc        | name of localisation file
; StartInfo       | this option allow to set, that you want (setting "yes")
;                 | to see message on the phone screen or phone should enable
;                 | light for a moment during starting connection. Phone
;                 | WON'T beep during starting connection with this option.
; GammuCoding     | forces using specified codepage (in win32 - for example
;                 | "1250" will force CP1250) or UTF8 (in Linux - "utf8")
; ----------------|------------------------------------------------------------
; Logfile         | Use, when want to have logfile from communication.
; Logformat       | What debug info and format should be used:
;                 |   "nothing" - no debug level (default)
;                 |   "text"    - transmission dump in text format
;                 |   "textall" - all possible info in text format
;                 |   "errors"  - errors in text format
;                 |   "binary"  - transmission dump in binary format
; ----------------|------------------------------------------------------------
; Features        | Custom features for phone. This can be used as override
;                 | when values coded in common/gsmphones.c are bad or
;                 | missing. Consult include/gammu-info.h for possible values
;                 | (all Feature values without leading F_ prefix).
;                 | Please report correct values to Gammu authors.
; ----------------|------------------------------------------------------------
; Use_Locking     | under Unix/Linux use "yes", if want to lock used device
;                 | to prevent using it by other applications. In win32 ignored

; vim: et ts=4 sw=4 sts=4 tw=78 spell spelllang=en_us