Syed Jahanzaib – Personal Blog to Share Knowledge !

July 16, 2015

20 Comments »

  1. Dear Zabi,
    how we can send this to customer now i am using kannel
    thank you

    Like

    Comment by Haroon Rashidi — July 20, 2015 @ 11:30 AM

  2. […] will be renewed by the dealer using ‘add credit’ options, then another account renewal script mentioned here  will be invoked and will update the qmail flag back to […]

    Like

    Pingback by Sharing Ideas: Sending Quota Alert via SMS/EMAIL with repeated Email Prevention in RADIUS MANAGER | Syed Jahanzaib Personal Blog to Share Knowledge ! — August 5, 2015 @ 9:31 AM

  3. Dear Zabi
    Is there a mysql command that will allow mw to deposit cast into a user account.
    Thanks

    Like

    Comment by na — September 17, 2015 @ 1:09 AM

    • what is ‘mw’ ?

      Like

      Comment by Syed Jahanzaib / Pinochio~:) — September 17, 2015 @ 9:20 AM

      • Dear Zabi
        Is there a mysql command that will allow me to deposit cash into a user account?

        Thanks

        Like

        Comment by na — September 17, 2015 @ 7:27 PM

      • yes you can use following
        mysql -uroot -pmysqlpass -e "use radius; UPDATE rm_users SET credits = credits + '500' WHERE username = 'zaibuser';"
        Replace the mysql password, credits amount 500 is the amount, and username.
        Also its a good idea to make log for this action too, so add entry to add logs after adding credits, or email or sms, whatever action you like to take. you can make a simple php page to where you can select users from drop down list or type its name and add amount of your choice

        Like

        Comment by Syed Jahanzaib / Pinochio~:) — September 18, 2015 @ 1:06 PM

      • Zabi
        Thank you very much.May Allah give u good health and long live.
        Best Regards

        Like

        Comment by na — September 18, 2015 @ 3:33 PM

  4. Hi,

    Will this script run each time i renew user through RM panel? or i need to scheduel it to run every 5 minute??

    Thanks,
    Sanket

    Like

    Comment by sanketabad — October 22, 2015 @ 1:05 AM

  5. Dear Zaib,

    I’m using sms gateway other than Kennel(code given by smsgateway is added to “/var/html/www/radiusmanager/api/smsgateway.php”), I just want to send sms on account renewal also. Could you please tell me how to?

    Like

    Comment by Pavan — November 16, 2015 @ 10:20 PM

    • SMS on account renewal is not supported by RM yet. That is why I wrote this guide, using this, you can send sms to user about the renewal with every details you want to add. Follow the procedure and schedule it to run after every 5 (or as required ) minutes) Read it !

      Like

      Comment by Syed Jahanzaib / Pinochio~:) — November 17, 2015 @ 9:18 AM

      • Thank you for your reply, If I use this code to alter SQL Tables, n other modules will effect apart from sending renewal messages to customers, right?

        Like

        Comment by Pavan — November 17, 2015 @ 1:15 PM

      • Thank you for your reply, If I use this code to alter SQL Tables, no other modules will effect apart from sending renewal messages to customers, right?

        Like

        Comment by Pavan — November 17, 2015 @ 1:16 PM

      • I tried this, and it only sends sms on account renewal and account creation, it stops for password recovery, limit warning and account expiry warning. Do we able to add those modules also in this code?

        Like

        Comment by Pavan — November 18, 2015 @ 10:31 AM

      • I have implemented the same at various locations and all of them worked like a charm.
        you can use radius own alerts, as well ass create your own.

        Like

        Comment by Syed Jahanzaib / Pinochio~:) — November 18, 2015 @ 11:21 AM

  6. Hi I am using a different smsgateway by africastalking. I would like your help in configuring your custom sms to work with the gateway. I have already configured the gateway to work with the Radiusmanager. Much appreciated.

    Like

    Comment by Ian Kasyoki — February 24, 2016 @ 2:10 AM

    • with some modifications you can use about any sms gateway as long as they provide proper API support.
      I use KANNEL with localy attached modem which works very cheap in our country.
      I also used itelservices base sms service also. you can use about any other as well too

      Like

      Comment by Syed Jahanzaib / Pinochio~:) — February 25, 2016 @ 10:33 AM

      • thank you for your quick response. I am not very conversant with the shell script however how can i pass the following variables “$mobile and message body” from your bash script to the smsgateway.php.

        Like

        Comment by Ian Kasyoki — February 28, 2016 @ 10:38 PM

    • send me your sms api on sanket.bijlani@gmail.com i will send you updated script.

      Like

      Comment by Sanket Bijlani — September 23, 2016 @ 10:08 AM

  7. i can not send file $username.sms wtith this script . plz edit this

    “http://sms.lrt.com.pk/api/sms-single-or-bulk-api.php?username=$api_user&password=$api_password&sender=$api_id&phone=$recp&type=$api_type&message=$body”)

    Liked by 1 person

    Comment by shoaib — September 6, 2018 @ 11:51 AM


RSS feed for comments on this post. TrackBack URI

Leave a comment