watsmyname Posted November 5, 2011 Share Posted November 5, 2011 Hello! I have sim card, how can we integrate it with server and use web interface to send sms and other requests, all handled via PHP?? Just an idea will be appreciated. thanks watsmyname Link to comment https://forums.phpfreaks.com/topic/250494-integrate-sim-card-with-server-and-send-sms-via-web-interface-php/ Share on other sites More sharing options...
dragon_sa Posted November 5, 2011 Share Posted November 5, 2011 Use an online service it is much more reliable and they have API's already setup to integrate into your application, here is an example of one that I use http://www.160.com.au/developer-sms-api The other way, not really recommended, is to put your sim card into a mobile phone and connect it to your server via usb or serial, you can then send messages from the system through the phone, but you would need to ensure the phone is always charged and working, you could also use a GSM mobile usb device and integrate with that or buy a commercial type product like this depending on your needs http://www.alibaba.com/product-gs/350980106/16_SIMs_GSM_GPRS_modem_pool.html But I would use the online service as it is quick and easy and you could be sending messages in minutes. Link to comment https://forums.phpfreaks.com/topic/250494-integrate-sim-card-with-server-and-send-sms-via-web-interface-php/#findComment-1285198 Share on other sites More sharing options...
watsmyname Posted November 5, 2011 Author Share Posted November 5, 2011 well, thanks for the reply but i have to use my sim card in the server. I cant use third party apis. I need to do more than sending SMS. for example i need to use balance transfer feature of prepaid mobile service. Link to comment https://forums.phpfreaks.com/topic/250494-integrate-sim-card-with-server-and-send-sms-via-web-interface-php/#findComment-1285200 Share on other sites More sharing options...
dragon_sa Posted November 5, 2011 Share Posted November 5, 2011 The online service you just buy credits in blocks, the API includes balance check options, auto or manual top up and many other features like sending an SMS with a different reply number or the SMS can come from a business name with no option for reply. But if you feel you really have to use your own sim card then you would need to use either the mobile phone connected via usb or serial, or a GSM or GPRS modem connected via USB or a PCI GSM sim card device like this one http://www.alibaba.com/product-gs/268116255/PCI_GPRS_MODEM.html Link to comment https://forums.phpfreaks.com/topic/250494-integrate-sim-card-with-server-and-send-sms-via-web-interface-php/#findComment-1285202 Share on other sites More sharing options...
watsmyname Posted November 5, 2011 Author Share Posted November 5, 2011 Thanks again, the later is my option, i have to use sim card of my client. So i need to have GSM modem installed in the server. But how exactly would i communicate with modem via PHP? watsmyname Link to comment https://forums.phpfreaks.com/topic/250494-integrate-sim-card-with-server-and-send-sms-via-web-interface-php/#findComment-1285206 Share on other sites More sharing options...
dragon_sa Posted November 5, 2011 Share Posted November 5, 2011 If the device doesn't come with a SIM toolkit here are some php classes you can try http://www.phpclasses.org/package/3865-PHP-Send-and-receive-SMS-messages-using-Gammu.html http://www.phpclasses.org/package/6835-PHP-Send-SMS-messages-using-Gammu-MySQL-storage.html http://www.phpclasses.org/package/2906-PHP-Control-mobile-devices-using-the-tool-Gammu.html Link to comment https://forums.phpfreaks.com/topic/250494-integrate-sim-card-with-server-and-send-sms-via-web-interface-php/#findComment-1285210 Share on other sites More sharing options...
watsmyname Posted November 5, 2011 Author Share Posted November 5, 2011 Thanks again, OKay thats cool i have questions. 1. I have attached my phone to my computer via USB cable. Can i use these code in my localhost machine? 2. I have to access specific service of the phone by dialing specific codes like *411#, etc can it be done via gammu tool+ these scripts?? thanks Link to comment https://forums.phpfreaks.com/topic/250494-integrate-sim-card-with-server-and-send-sms-via-web-interface-php/#findComment-1285214 Share on other sites More sharing options...
dragon_sa Posted November 5, 2011 Share Posted November 5, 2011 1. Yes providing you are running a php mysql apache server and installed the correct version of gammu 2. Please see the following site for the documentation http://wammu.eu, as I would have to study it myself for your answer, I would believe this is possible. Link to comment https://forums.phpfreaks.com/topic/250494-integrate-sim-card-with-server-and-send-sms-via-web-interface-php/#findComment-1285218 Share on other sites More sharing options...
watsmyname Posted November 5, 2011 Author Share Posted November 5, 2011 thanks for the help. I just went through documentation and options available for gammu[v 1.30]. I dont see the thing i need. 1. Like i want user to able to access sim service codes via dialing special codes like *411#, and interpret the response sent by the mobile service provider. many thanks again watsmyname Link to comment https://forums.phpfreaks.com/topic/250494-integrate-sim-card-with-server-and-send-sms-via-web-interface-php/#findComment-1285253 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.