sleed Posted February 1, 2014 Report Posted February 1, 2014 (edited) Buna , in acest tutorial va v-oi arata cum sa instalati un server de sms pentru Linux. [Debian,Ubuntu only!]Avem nevoie de un telefon , putin mai vechi , eu am folosit un Nokia 6610i.Trebuie sa ne asiguram ca avem instalat toate modulele acestea : apt-get install apache2 libapache2-mod-php5 mysql-server php5 php5-cli php5-cgi php-pear php-db phpmyadmin make gcc sendmail sendmail-bin lynx wget curlCa sa instalam ,modulul de serviciu , ne trebuie sa facem urmatoarele: adduser playsmsmkdir -p /var/www/playsmsmkdir -p /var/spool/playsmsmkdir -p /var/log/playsmschown -R www-data /var/www/playsmschown -R www-data /var/spool/playsmschown -R www-data /var/log/playsmsDownload -> wget http://downloads.sourceforge.net/project/playsms/playsms/Version%200.9.7.2/playsms-0.9.7.2.tar.gztar -zxvf playsms-0.9.7.2.tar.gz il dezarhivan cu comanda aceasta , Intram aici : ../playsms-0.9.7.2/webIl adaugam la serverul nostru , in cazul asta , eu folosesc apache2, // . cp -rR * /var/www/playsms , apoi chown -R www-data /var/www/playsms.Facem o baza de date pe care o numim : playsms , sau cum vreti dumneavoastra , apoi ii dam import daca folosim phpmyadmin , la : db/playsms.sql.Next configuram PLaysms : cd /var/www/playsms, -> , cp config-dist.php config.php , ---> nano config.phpSchimbam Pass , si/sau numele la db , daca este cazul , si nu ati pus playsms , ca mai sus .Intram in : cd playsms-0.9.7.2/binEfectuam aceste comenzi : cp playsmsd playsmsd.php playsmsd_star & cp playsms /etc/default/ Intram aici : nano /etc/init.d/rc.local Adaugam aceasta linie , inainte de exit : /usr/local/bin/playsmsd_start , sa porneasca serviciul , cand aprindem pc-ul de fiecare data.Instalam SMS Tools : cdwget http://smstools3.kekekasvi.com/packages/smstools3-3.1.15.tar.gztar -zxvf smstools3-3.1.15.tar.gz -C /usr/local/srccd /usr/local/src/smstools3makemake installcd /usr/local/src/playsms-0.9.7.2cp contrib/smstools/smsd.conf /etc/nano /etc/smsd.conf si cautam la linia 27 , mie imi da asa : device = /dev/ttyUSB0, voi inlocuiti cu ce scrie la usb , sa functioneze corect.Apoi ii dam un run la aceste comenzi : mkdir -p /var/spool/sms/checkedmkdir -p /var/spool/sms/failedmkdir -p /var/spool/sms/incomingmkdir -p /var/spool/sms/outgoingmkdir -p /var/spool/sms/sentmkdir -p /var/log/smschown -R www-data /var/spool/smsupdate-rc.d sms3 defaults Si intram la : http://localhost/playsms , ne logam cu pass & user : admin : admin . Se poate trimite mai multe mesaje de pe acelasi numar , doar daca faceti un user nou , cu acelasi numar de telefon.Daca sunt probleme P.M.!Tutorial made by sleed from RSTFORUMS.COM Va multumesc ! Edited February 1, 2014 by sleed 2 Quote
sleed Posted February 1, 2014 Author Report Posted February 1, 2014 Vezi ca nu la orice telefon merge , am incercat cu un iphone 4 si nu mi a mers nu stiu de ce ... Am sa ma apuc sa ma uit prin folderul web , la fisierele .php de la configuratii , sa incerc sa schimb una alta .. Pana atunci ... e ok Quote
Moderators Dragos Posted February 1, 2014 Moderators Report Posted February 1, 2014 Vezi ca nu la orice telefon merge , am incercat cu un iphone 4 si nu mi a mers nu stiu de ce ... Am sa ma apuc sa ma uit prin folderul web , la fisierele .php de la configuratii , sa incerc sa schimb una alta .. Pana atunci ... e okAi incercat cu el in modul DFU? Quote
aelius Posted February 1, 2014 Report Posted February 1, 2014 Puteti utiliza un stick huawei.https://rstforums.com/forum/54068-sms-gateway.rstFelicitari pt. tutorial. Hint: Foloseste tag-urile code in loc de quote, apare mai bine. Quote
sleed Posted February 1, 2014 Author Report Posted February 1, 2014 Inca nu,, sunt la alt proiect acum , ma orientez sa fac un server de mirc conectat la mysql .. si sa folosesc toata zona locala , care sunt conectati la rds + upc , din camin , sa ii fac boti @ mersi Tex Quote
vex0r Posted February 9, 2014 Report Posted February 9, 2014 Tutorialul nu este f?cut de tine, ci doar tradus ?i modificat pe ici-colo.Installation of PlaySMS and SMS Server Tools 3 on Debian Lenny Server | HowtoForge - Linux Howtos and Tutorials Quote
tedeus Posted February 9, 2014 Report Posted February 9, 2014 @sleed, multumim de share. Foarte util.In poala mea, despre asta vorbeam intr-un post trecut: aratati, in romana(chiar si tradus), cum si ce. Quote
Kalashnikov. Posted February 9, 2014 Report Posted February 9, 2014 Varianta pentru lenesi, pana la baza de date: apt-get install apache2 libapache2-mod-php5 mysql-server php5 php5-cli php5-cgi php-pear php-db phpmyadmin make gcc sendmail sendmail-bin lynx wget curl && adduser playsms && mkdir -p /var/www/playsms && mkdir -p /var/spool/playsms &&mkdir -p /var/log/playsms && chown -R www-data /var/www/playsms && chown -R www-data /var/spool/playsms && chown -R www-data /var/log/playsms && wget http://downloads.sourceforge.net/project/playsms/playsms/Version%200.9.7.2/playsms-0.9.7.2.tar.gz && tar -zxvf playsms-0.9.7.2.tar.gz && cd playsms-0.9.7.2/web && cp -rR * /var/www/playsms && chown -R www-data /var/www/playsms && Quote
l3tmeb3 Posted February 12, 2014 Report Posted February 12, 2014 (edited) sleed : da mi un pm sa te intreb ceva, ca tu nu accepti .Mai exact merge si pe masina virtuala ?plus : lsusbBus 001 Device 003: ID 12d1:14db Huawei Technologies Co., Ltd. Cum verific/vad device-ul de care am eu nevoie : " device = /dev/ttyUSB0 "Am incercat dmesg | grep -i tty ...dar degeaba . Edited February 12, 2014 by l3tmeb3 Quote
quantum Posted February 13, 2014 Report Posted February 13, 2014 sleed : da mi un pm sa te intreb ceva, ca tu nu accepti .Mai exact merge si pe masina virtuala ?plus : lsusbBus 001 Device 003: ID 12d1:14db Huawei Technologies Co., Ltd. Cum verific/vad device-ul de care am eu nevoie : " device = /dev/ttyUSB0 "Am incercat dmesg | grep -i tty ...dar degeaba .Incearca cu comanda aceasta ll /sys/class/tty/ttyUSB* Quote
yo20063 Posted February 13, 2014 Report Posted February 13, 2014 (edited) Merge, am incercat pe ubuntu ieri. Azi l-am portat pe windows, am folosit numa' smstools3 cu cygwin, i-am facut un script php pentru trimis mesaje si am implementat js pe un button cu prompt sa trimita valorile la scriptul php. Merge grozav!// apropo, am avut probleme cu playsms, cand trimitea, cand nu, asa ca va sfatuiesc mai simplu sa folositi un simplu phonebook cu sql si ii implementati buton de sms. Oricum se poate adapta in multe moduri. Probat cu nokia x6 pe ubuntu 12.04 si windows server 2003. Edited February 13, 2014 by yo20063 Quote
l3tmeb3 Posted February 13, 2014 Report Posted February 13, 2014 @quantum : ll /sys/class/tty/ttyUSB*ls: cannot access /sys/class/tty/ttyUSB*: No such file or directory . Quote
bajetzashu89 Posted February 13, 2014 Report Posted February 13, 2014 acum vin eu cu o intrebare tampita ,dar chiar nu stiu : La ce ar folosii acest server de sms ? se poate schimba nr de unde vine sms-ul? sa pun de ex un nume propriu ? Quote
quantum Posted February 13, 2014 Report Posted February 13, 2014 @quantum : ll /sys/class/tty/ttyUSB*ls: cannot access /sys/class/tty/ttyUSB*: No such file or directory .Ai conectat telefonul la sistem ? Quote
coolbyte Posted February 14, 2014 Report Posted February 14, 2014 bajetzashu89 ai putea trimite SMS-uri personalizate sa spunem cumperi o cartela si bagi optiunea de 2000 SMS sau nelimitat si gata. Nu cred ca se poate schimba nr de telefon ca practic u programezi telefonul nu cartela. Momentan am incercat pe un Nokia C5-00 dar nu am reusit o sa incerc si pe alt telefon daca e poate merge apare doar Bus 001 Device 004: ID 0421:03a7 Nokia Mobile Phones Quote
gogusan Posted February 18, 2014 Report Posted February 18, 2014 @quantum : ll /sys/class/tty/ttyUSB*ls: cannot access /sys/class/tty/ttyUSB*: No such file or directory .comanda e dmesg | grep ttyroot@zeus:/var/spool/sms# dmesg | grep tty[ 0.000000] console [tty0] enabled[ 0.726177] tty tty18: hash matches[ 5.802123] cdc_acm 2-2:1.8: ttyACM0: USB ACM device[ 90.771604] cdc_acm 2-2:1.8: ttyACM0: USB ACM deviceroot@zeus:/var/spool/sms#in cazul meu nokia 6680i = ttyACM0 Quote
l3tmeb3 Posted February 18, 2014 Report Posted February 18, 2014 gogusan : dmesg | grep tty[ 0.000000] console [tty0] enabled[ 1.142973] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A[ 1.169926] 00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A Quote
coolbyte Posted March 9, 2014 Report Posted March 9, 2014 Am reusit sa instalez gammu pe ubuntu si merge din consola ca ROOT cu comanda /home/user# sudo echo "sms test" | /usr/bin/gammu --sendsms TEXT 07xxxx... cum pot sa conectez un php sa pot trimite de pe localhostam incercat cu www-data ALL=NOPASSWD dar nimicin php e <?php$output = shell_exec('sudo echo "php SMS" | /usr/bin/gammu --sendsms TEXT +407xxxx.. );echo "<pre>$output</pre>";?>dar primesc No response in specified timeout. Probably phone not connected. Quote
sleed Posted March 9, 2014 Author Report Posted March 9, 2014 Bre a fost testat pe debian 7 wheezy.Nu stiu care ar fi problema la tine. Imi dai P.M cand vezi mesaju sa intru cu team viewer sa te ajut/ Quote
coolbyte Posted March 9, 2014 Report Posted March 9, 2014 (edited) Nu vrea domne nu vrea, tot caut de zori variante dar nu merge, recunoaste modemul din consola dar in php nu mai vrea, am incercat sa ma conectez cu ssh prin php dar nimic Edited March 9, 2014 by coolbyte Quote
wirtz Posted March 25, 2014 Report Posted March 25, 2014 pai mai tata... daca conectez un singur telefon sa zicem care e pe cosmo si doar acolo am nelimitate cum trimite si la alte retele? poti face vreo comanda care sa actiuneze pt 3 telefoane deodata? serios vb. unu il pun pe orange, altu pe voda, altu pe cosmo. Quote