title: gammu phones tables with multiple modem port
body: <blockquote>
    <p>EDIT: I know, after some research, this problem caused by IMEI field
    in phones tables as primary, if we using modem pool like wavecome with
    16 port, gammu detect just one IMEI</p>
  </blockquote>
  
  <p>i have 1 modem connected with 16 port of sim card,each config connected to same database on my server,send and receive sms all working like a charm, each port have smsd services, like </p>
  
  <pre><code>gammu-smsd -c /etc/gammu-smsdrc-modem1 --pid /var/run/gammu-smsdrc-modem1 --daemon
  gammu-smsd -c /etc/gammu-smsdrc-modem2 --pid /var/run/gammu-smsdrc-modem2 --daemon
  </code></pre>
  
  <p>each port have their own PhoneID, like <code>modem1</code> and <code>modem2</code>, the problem is
  why phones tables in gammu databases keep replacing the data with last gammu-smsd services run ? </p>
  
  <p>ex:
  if i run the first config, then phones tables will contains all informations , like signal, IMEI from 1st port, but when i run 2nd gammu-smsd data from 1st port will gone, changed from 2nd port config</p>
  
  <p>here is my smsdrc config from modem1 /etc/gammu-smsdrc-modem1</p>
  
  <pre><code>[gammu]
  port = /dev/ttyUSB0
  model =
  connection = at115200
  synchronizetime = yes
  logfile = /var/log/gammu-smsdrc-modem1
  logformat = nothing
  use_locking =
  gammuloc =
  
  [smsd]
  service=sql
  logfile=/var/log/gammu-smsdrc-modem1
  debuglevel=0
  Driver=native_mysql
  User=root
  Password=root
  PC=localhost
  Database=test
  PhoneID=modem1
  </code></pre>
  
  <p>here is my smsd config from modem2 /etc/gammu-smsdrc-modem2</p>
  
  <pre><code>[gammu]
  port = /dev/ttyUSB1
  model =
  connection = at115200
  synchronizetime = yes
  logfile = /var/log/gammu-smsdrc-modem2
  logformat = nothing
  use_locking =
  gammuloc =
  
  [smsd]
  service=sql
  logfile=/var/log/gammu-smsdrc-modem2
  debuglevel=0
  Driver=native_mysql
  User=root
  Password=root
  PC=localhost
  Database=test
  PhoneID=modem2
  </code></pre>