{"id":15015265,"url":"https://github.com/awarmanf/sms_gateway_perl","last_synced_at":"2026-04-04T00:05:35.563Z","repository":{"id":254403298,"uuid":"846424791","full_name":"awarmanf/sms_gateway_perl","owner":"awarmanf","description":"The SMS Gateway is a console application running on background (init.d service) created with Perl.","archived":false,"fork":false,"pushed_at":"2024-08-24T14:34:47.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T16:09:51.601Z","etag":null,"topics":["perl","sms-gateway"],"latest_commit_sha":null,"homepage":"https://awarmanf.wordpress.com/2016/08/18/sms-gateway-dengan-perl/","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awarmanf.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-23T07:16:49.000Z","updated_at":"2024-08-24T14:34:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"16c3d734-0659-4176-aecc-0ddcfc493ca7","html_url":"https://github.com/awarmanf/sms_gateway_perl","commit_stats":null,"previous_names":["awarmanf/sms_gateway_perl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/awarmanf/sms_gateway_perl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awarmanf%2Fsms_gateway_perl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awarmanf%2Fsms_gateway_perl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awarmanf%2Fsms_gateway_perl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awarmanf%2Fsms_gateway_perl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awarmanf","download_url":"https://codeload.github.com/awarmanf/sms_gateway_perl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awarmanf%2Fsms_gateway_perl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31382355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T23:20:52.058Z","status":"ssl_error","status_checked_at":"2026-04-03T23:20:51.675Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["perl","sms-gateway"],"created_at":"2024-09-24T19:46:41.202Z","updated_at":"2026-04-04T00:05:35.528Z","avatar_url":"https://github.com/awarmanf.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SMS Gateway\n\nThe SMS Gateway is a console application running on background (init.d service) created with Perl.\n\n## Requirement\n\nPackages installation in Debian / Ubuntu.\n\n```\napt-get install libdbi-perl libdbd-sqlite3-perl sqlite3 build-essential\n```\n\nDownload the CPAN modules\n\n* [Device-SerialPort-1.04.tar.gz](https://cpan.metacpan.org/authors/id/C/CO/COOK/Device-SerialPort-1.04.tar.gz)\n* [Device-Modem-1.57.tar.gz](https://cpan.metacpan.org/authors/id/C/CO/COSIMO/Device-Modem-1.57.tar.gz)\n* [Device-Gsm-1.61.tar.gz](https://cpan.metacpan.org/authors/id/C/CO/COSIMO/Device-Gsm-1.61.tar.gz)\n\nInstallation for CPAN module\n\n```\ntar zxf module_name.tar.gz\ncd module_name\nperl Makefile.PL\nmake\nmake test\nmake install\n```\n\n## How to use\n\nEdit file `/usr/local/sbin/modem.cfg`\n\n```\nmodem   = /dev/ttyUSB0\nbaud    = 115200\n# timeout to wait for modem response after sending sms\ntimeout = 30\n# longtimeout to wait for modem response after sending some sms\nlongtimeout = 300\n# elapsed time for checking sms file(s) to sent\nelapsed = 10\n# check the modem every some seconds\nchecktime = 900\n# reset modem after sending some sms\nsmstoreset = 30\n# directory to search sms file(s) \ndirectory = /var/tmp/sms\n# log file\nlog = /var/log/smsgateway.log\n# pid file\npid = /var/run/smsgateway.pid\n# international prefix number for indonesia\nprefix = +62\n# database sqlite\ndatabase = /var/log/sms.db\n```\n\nCreate directory\n\n```\nmkdir /var/tmp/sms\n```\n\nMake executable\n\n```\nchmod 755 /etc/init.d/smsgateway\nchmod 755 /usr/local/sbin/smsgateway.pl\nchmod 755 /usr/local/sbin/decodeSM.pl\n```\n\nRunning the service\n\n```\n/etc/init.d/smsgateway start\n```\n\n## Test sending sms\n\n```\n$ /etc/init.d/smsgateway test \nRecipient : 085236006000\nText      : Testing\nSending SMS ...\n```\n\n## Execution\n\nAfter execution the content of `/var/log/smsgateway.log` :\n\n```\nSmsgateway starting at Fri, 07-11-2014 16:23:23 WIT.\n\nModem is connected!\n\nATQ0 V1 E0 \u0026C1 \u0026D2 +FCLASS=0\nOK\n\nAT+IFC=2,2\nOK\n\nAT+CPIN?\n+CPIN: READY\n\nAT+CSQ\n+CSQ: 24,5\n\nOK\n\nAT+CREG?\n+CREG: 0,1\n\nOK\n\nAT+CSMS=1\n+CSMS: 1,1,1\n\nOK\n\nAT+CNMI=1,2,0,1,0;+CMEE=1\nOK\n\nAT+CPMS=\"SM\"\n+CPMS: 0,10,0,10\n\nOK\n\nAT+CPMS?\n+CPMS: \"SM\",0,10,\"SM\",0,10\n\nOK\n\nAT+CMGF=0\nOK\n\nAT+CSMP=1,167,0,0\nOK\n```\n\nThe content of `/var/log/smsgateway.log` after sms is delivered.\n\n```\nTo: 085236006000\nSMS: Testing\n\nAT+CMGS=21\n\u003e 0031000C818025630066970000A707D4F29C9E769F01\n\n+CMGS: 54\n\n** Status Report **\nReference  : 54\nPDU type   : SMS-SUBMIT\nSMSC       : 00\nRecipient  : +6285236006000\nMessage    : Testing@\nValidity   : 1440 minutes\nData coding: SMS Default Alphabet\n\n+CDS: 25 0006360C81802563006697411170617285824111706182708200\n\n** Status Report **\nReference  : 54\nPDU type   : SMS-STATUS-REPORT\nSMSC       : 00\nFrom number: +6285236006000\nTime stamp : 2014-11-07 16:27:58\nDischarge  : 2014-11-07 16:28:07\nStatus     : 00 (Short message received succesfully)\n\nAT+CNMA\nOK\n```\n\n## How to create SMS Bulk\n\nCreate a file `contacts2sms.csv`, column 1 is contact number and column 2 is the message.\n\n```\n085236000001;Good Morning !\n085236000002;How are you?\n085236000003;Can you come tomorrow?\n085236000004;Please, answer me\n085236000005;Today is great!\n```\n\nExecute code below to create a sms bulk which saved at `/var/tmp/sms`\n\n```bash\ngrep -v '^#' contacts2sms.csv | while read INFO\ndo\n  CONTACT=`echo $INFO | cut -f1 -d';'`\n  MESG=`echo $INFO | cut -f2 -d';'`\n  echo $CONTACT $MESG\ndone \u003e /var/tmp/sms/sms.bulk \n```\n\n## Limitation\n\n* Only support 160 characters to sent.\n* Default alphabet is 7 bit data coding.\n\n## Reference\n\n[SMS Gateway dengan Perl](https://awarmanf.wordpress.com/2016/08/18/sms-gateway-dengan-perl/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawarmanf%2Fsms_gateway_perl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawarmanf%2Fsms_gateway_perl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawarmanf%2Fsms_gateway_perl/lists"}