{"id":805,"date":"2010-06-04T17:05:45","date_gmt":"2010-06-04T10:05:45","guid":{"rendered":"http:\/\/www.jfdesignnet.com\/?p=805"},"modified":"2010-06-04T17:05:45","modified_gmt":"2010-06-04T10:05:45","slug":"smsgateway-with-kalkun-and-gammu-on-huawei-e272","status":"publish","type":"post","link":"https:\/\/www.jfdesignnet.com\/?p=805","title":{"rendered":"smsgateway with kalkun and gammu on Huawei E272"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2010\/06\/sms.gif\" rel=\"lightbox[805]\"><img decoding=\"async\" loading=\"lazy\" class=\"alignright size-full wp-image-879\" title=\"sms\" src=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2010\/06\/sms.gif\" alt=\"\" width=\"149\" height=\"150\" \/><\/a>Been build gammu-1.27.90-1.1klixs2010.i586.rpm and wammu-0.33-2.1klixs2010.noarch.rpm and tried with klixs with no problem and now would like to try on building a smsgateway based on that gammu-smsd daemon and a nice webbased php interface for end user named kalkun.<br \/>\nBefore continuing installing and configuring everything, I assume you already have the mysql, phpMyAdmin, apache and php system running well, otherwise do so.<\/p>\n<p style=\"text-align: justify;\">First of all we need to configure our sms hardware device which in this tutorial I&#8217;m using Huawei E272 3G USB Modem and without any difficulties can work on klixs. We need to know the device node name for this device using dmesg command :<\/p>\n<p>{code type=CSS}[root@jfklixs-domain jfdesign]# dmesg | tail<br \/>\noption 1-2:1.0: GSM modem (1-port) converter detected<br \/>\nusb 1-2: GSM modem (1-port) converter now attached to ttyUSB0<br \/>\noption 1-2:1.1: GSM modem (1-port) converter detected<br \/>\nusb 1-2: GSM modem (1-port) converter now attached to ttyUSB1<br \/>\nusbcore: registered new interface driver option<br \/>\noption: v0.7.2:USB Driver for GSM modems<br \/>\nscsi 9:0:0:0: CD-ROM \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0HUAWEI \u00a0 Mass Storage \u00a0 \u00a0 2.31 PQ: 0 ANSI: 2<br \/>\nsr1: scsi-1 drive<br \/>\nsr 9:0:0:0: Attached scsi CD-ROM sr1<br \/>\nsr 9:0:0:0: Attached scsi generic sg2 type 5<br \/>\n[root@jfklixs-domain jfdesign]#{\/code}<\/p>\n<p>Thus we know that our device were at ttyUSB0 and now it&#8217;s time to write the config for gammu-smsd daemon, save this config as \/etc\/gammu-smsdrc :<\/p>\n<p>{code type=html}<br \/>\n[gammu]<br \/>\nport=\/dev\/ttyUSB0<br \/>\nconnection = at<br \/>\nname = Huawei E272<br \/>\nmodel =<br \/>\nsynchronizetime = yes<br \/>\nlogfile = gammulog<br \/>\nlogformat = textall<br \/>\nuse_locking = yes<br \/>\ngammuloc = locfile<br \/>\nstartinfo = yes<br \/>\ngammucoding = utf8<br \/>\nusephonedb = yes<br \/>\nnumber1 = 1234<\/p>\n<p>[smsd]<br \/>\nservice = MYSQL<br \/>\nPIN =.<br \/>\nlogfile = smsdlog<br \/>\ndebuglevel = 0<br \/>\nphoneid = +6287853085xxx<br \/>\ncommtimeout = 30<br \/>\nsendtimeout = 30<br \/>\nreceivefrequency = 0<br \/>\nchecksecurity = 1<br \/>\nresetfrequency = 0<br \/>\ndeliveryreport = no<br \/>\ndeliveryreportdelay = 10<br \/>\ninboxpath = \/var\/spool\/sms\/inbox\/<br \/>\noutboxpath = \/var\/spool\/sms\/outbox\/<br \/>\nsentsmspath = \/var\/spool\/sms\/sent\/<br \/>\nerrorsmspath = \/var\/spool\/sms\/error\/<br \/>\ninboxformat = unicode<br \/>\ntransmitformat = auto<br \/>\noutboxformat = detail<br \/>\nuser = dbuser<br \/>\npassword = dbpasswd<br \/>\npc = dbhost<br \/>\ndatabase = dbname<br \/>\n{\/code}<\/p>\n<p>Let&#8217;s now create the database using phpMyAdmin and create database same as you define above on gammu-smsrc config, which named as dbname and had a database user as dbuser with password dbpasswd and the mysql service were run at dbhost.<\/p>\n<p>We almost done, the last thing we must do is installing the webinterface to process the database as our interface for end user. Download the kalkun source <a href=\"http:\/\/sourceforge.net\/projects\/kalkun\/files\/kalkun\/0.1.4beta\/kalkun_0.1.4beta.tar.gz\/download\">here<\/a>, and extract them to document root of your webserver.<br \/>\nDon&#8217;t forget to change the owner of the folder unto apache group user.<br \/>\nWe need to initialize the database with pre-installed sql database, open again the phpMyAdmin and import the sql from folder media\/db\/install.sql from that kalkun source.<\/p>\n<p>It&#8217;s time to fire up the sms daemon service, open konsole, logon to root and try starting the daemon with :<br \/>\n{code type=CSS}[root@jfklixs-domain jfdesign]# gammu-smsd<br \/>\nLog filename is &#8220;smsdlog&#8221;{\/code}<br \/>\nAs you may see from the message, you could investigate file smsdlog file in case the daemon could not run properly, which is in many case it&#8217;s always about the device name and database parameter. \ud83d\ude42<\/p>\n<p>Now, we could test the system within our browser, the default user is kalkun with password kalkun, and try to send some message &#8230;.<br \/>\nGood luck and have fun.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Been build gammu-1.27.90-1.1klixs2010.i586.rpm and wammu-0.33-2.1klixs2010.noarch.rpm and tried with klixs with no problem and now would like to try on building a smsgateway based on that gammu-smsd daemon and a nice webbased php interface for end user named kalkun. Before continuing installing and configuring everything, I assume you already have the mysql, phpMyAdmin, apache and php [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":879,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,9],"tags":[221],"_links":{"self":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/805"}],"collection":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=805"}],"version-history":[{"count":0,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/805\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/media\/879"}],"wp:attachment":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}