Closed (fixed)
Project:
SMS Framework
Version:
6.x-2.x-dev
Component:
Clickatell
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2009 at 14:49 UTC
Updated:
2 Dec 2010 at 05:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
frazras commentedWhy is the sender field under /user/*/mobile - Are you allowing regular users to define who the sender should be? I don't see the purpose of that, especially since only the admin can register a sender.
I also have a bug, I am not sure if its with the code, Clickatell or my carrier but for Textual sender IDs it trims it to 7 characters, or maybe it trims off the last character because my ID is eight characters "Exterbox" and it only displays "Exterbo" - I believe the Limit is 11 but for numeric IDs it dispalys all 11 numbers I use.
Comment #2
frazras commentedUpdate: for the previous comment about sender ID, when I change the last letter to a capital letter "ExterboX" it works - all eight characters are displayed... weird.
Comment #3
aspope commentedFair point about allowing the user to define sender IDs when Clickatell restricts them to an approved list. Maybe this feature should be removed.
I am not sure about your other bug though. The Clickatell restriction is 16 chars for numeric Sender IDs or 11 chars for alphanumeric Sender IDs. I have applied Admin form validation for this, but have not implemented any trimming. I had tested with an 11 char number and an 8 char alphanumeric ("MilkMore").
Comment #4
Anonymous (not verified) commentedI tryed to update to
smsframework-6.x-2.x-dev
and/or
smsframework-6.x-1.x-dev + sms_clickatell.zip
but no chance to send any sms.
Smsframework-6.x-1.x-dev is the last working code
Comment #5
Will White commentedHi aspope,
First of all, wow! Thanks for all of your hard work on this. The list of features that you've added is enormous and this will be very helpful to a lot of people.
Here are some thoughts at this point.
I think the send form needs work. The sender field should be removed and the help text for the country field is overwhelming. Despite this issue, I think it would be best to restore the previous behavior for now. The real solution to this would be to design a module that does smarter international number validation, which is a problem that big enough for its own issue.
Also, can you remove the HTML from block comments?
Would mind submitting future changes a patches so it's clear what has changed?
Thanks again for all of your hard work!
Comment #6
aspope commentedHi Will. Fair point about submitting patches - I will remember for next time.
I have made the requested changes as below:
Full patch submitted to this comment. Please take a look and let me know. Thanks!
Comment #7
zeropaperThe patch fails for me ;(
Still, I'm lloking forward for the delivery receipts but I would like to have the country selection thing (has it can be used as a filter for the numbers).
I may also soon post a small module (I'd like to see merged with sms_user) to create a user account with an SMS verification.... still need some work...
Comment #8
Ahmed commentedHello,
I'm sorry for my question :$
Is this module used to send sms because I have a clickatell account with credits, or it used just to send drupal notifications?
Thank you,
Ahmed Mohamed
Comment #9
aspope commentedHi Ahmed,
This module is an extension for SMS Framework, which is used to send and receive SMS messages.
Comment #10
aspope commentedZeropaper, please try this patch. It seems that the other was malformed.
Comment #11
patrickharris commentedThis is great functionality for clickatell users!
Comment #12
Anonymous (not verified) commentedcould it be possible to put international prefix into sms_user number?
...doing so, clickatell module doesn't need to use
function sms_clickatell_country_codes()Comment #13
burningdog commentedI'm using this on a live project where people sms a "word of the day" to a short code (in South Africa) via Clickatell. Clickatell sends me the contents via a HTTP POST to http://www.example.com/sms/clickatell/receiver and I can work with the variables by using hook_sms_incoming($op, $number, $message, $options) in my module...
...which checks if the word of the day is valid, and sms's back a response, while storing each sms as a competition entry (if valid).
So far so good! I'm not using the other functionality this patch provides (like long messages, send options, or a default sender ID) but everything else seems fine.
Comment #14
patrickharris commentedIt would be great to get this patch in.
Comment #15
burningdog commentedIt doesn't look like this patch has the ability to support receipts from Clickatell. It does have function sms_clickatell_receive_receipt() which will only be implemented once #440384: Delivery receipts from gateways has made its way in. It's a really small patch (5 lines of code) which should really be SMS Framework. So make your way over there and review it!
Comment #16
aspope commentedHi Roger, thanks for trying this out! The receipts are still a work in progress - I am just about to review your post at #440384: Delivery receipts from gateways
~ap
Comment #17
aspope commentedThis module has now been committed to 6.x-1.x-dev
Comment #18
Anonymous (not verified) commentedComment #19
Anonymous (not verified) commentedI have downgraded from 6.x-2.x-dev and I got following errors:
user warning: Unknown column 'delta' in 'field list' query: SELECT number, delta, status, code, gateway FROM sms_user WHERE uid = 1 in /sites/all/modules/smsframework/modules/sms_user/sms_user.module on line 329.
Warning: Call-time pass-by-reference has been deprecated in /sites/all/modules/smsframework/sms.install on line 95
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of sms_country_codes_insert_initial_data(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /sites/all/modules/smsframework/sms.install on line 96
Comment #20
aspope commented@giorez: Unfortunately, as you have discovered, the 1.x code is not compatible with the 2.x database schema - you cannot downgrade like that.
The sms_user database table schema changed between 1.x and 2.x, and the delta column does not exist in 2.x. You have two options:
1. Disable the sms_user module. Add the delta column: ALTER TABLE sms_user ADD COLUMN delta INT UNSIGNED NOT NULL;
2. Try using the 2.x sms_user module with 6.x-1.x-dev - but I cannot guarantee the result. I can't remember whether the code is 100% compatible from memory.
Comment #21
heander commentedHi!
I have ported this (very nice patch) to 6.x-2.x-dev. I have applied the patch to the latest tarball (2010-Jul-11) and tested it against our clickatell account.
Best Regards
Johan
Comment #22
burningdog commentedThanks Johan. Marking as "needs review".
Comment #23
grub3 commentedThis works fine for me. Finally !
Also I read the code.
It seems to comply with Clickatel rules.
Setting status to "reviewed by community"
Comment #24
grub3 commentedThis patch was installed on our live site, I see no problem, it is working.
Comment #25
univate commentedActually the patch does not apply cleanly since its not in the proper patch format, but in a the git patch format.
Attached is a patch that applies to 2.x
Will leave at RTBC since I didn't change any code in this re-roll of the patch.
Comment #26
grub3 commentedThis patch is in production since October 8 without any problem. It can be committed safely.
Comment #27
univate commentedcommitted