Closed (fixed)
Project:
SMS Bulk
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Anonymous (not verified)
Created:
28 Jun 2009 at 07:13 UTC
Updated:
11 Jul 2015 at 02:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gunzip commentedwhich sms gateway are you using ? can you describe how you do it (are you sending sms to users through a profile field ?)
if you try to send a sms to the same number(s) with smsframework the "classical way" does it work ? may I access a demo installation ?
for a simple log you can activate smsbulk_example module.
EDIT:
I've changed the code to show some debugging stuff (if you activate smsbulk_example module).
This should give you a hint on what's going wrong. you can get the latest version from cvs or wait 24h
for a new relase to be generated by drupal packaging system.
thank you for testing.
Comment #2
gunzip commentedComment #3
Anonymous (not verified) commentedI've just updated* to SMS Bulk 6.x-1.x-dev (2009-Jun-29).
The gateway is clickatell.
I've set a dynamic field in content profile that pull-out the mobile number from sms_user with:
$sql = 'select number from sms_user where uid = %d';
return db_result(db_query($sql, $node->uid));
My smsframework just send sms for mobile number confirmation, but is not working for the rest. I don't have a demo installation, sorry.
I've activated smsbulk_example module, but I don't know how to use it.
I re-checked log and now I have following error: [8] Failed sending SMS: skipping empty number
*PS I'm also using plugin_manager. Your module was marked as "module needs to be updated", but the process is not working. So I updated it manually.
Comment #4
gunzip commentedwell, now i get the point. smsbulk calls the view query (SELECT...) just once at the beginning. it cannot work with dynamic fields because
these are built looping through the rows after the main query is called. you have to copy the values from the old sms_user mobile field to the new content profile field manually, then rework the view to use the latter. anyway, i'm gonna check if i can make it work against sms_user mobile field (without content profile). i mark this as a task then.
about the plugin manager, i guess i cannot do anything, it has something to do with drupal packaging system magic.
Comment #5
Anonymous (not verified) commentedgreat, thanks for your work
I'll wait for your updates!
Comment #6
gunzip commentedok, i'm not gonna fix this in my module because sms_user should add views support itself.
but, good news for you, I've made a patch that works with sms_user and adds a field 'SMS mobile phone number' to the User group in views
so you don't need content profile etc. if you already have collected numbers with sms_users. just make an User view and add that field.
the patch is against the latest development version (3 june) of smsframework.
Comment #7
Anonymous (not verified) commentedI applied your patch, but when I try to select the Mobile Number field I'm not able to select anyting (pls see the attached image)
Comment #8
Anonymous (not verified) commentedComment #9
gunzip commentedyou have to create a User view, not a Node view (ensure to clear the cache beforewards).
please don't reopen this issue as it's not a bug in smsbulk module but a feature request for sms_user.
Comment #10
Anonymous (not verified) commentedthe problem was another sms_user_views module conflicting with yours. Anyway, I properly created an user views, but I still get the error:
[8] Failed sending SMS: skipping empty number.
I'll post future issues on sms_user module, sorry.
Comment #11
gunzip commentedmay i ask you which other sms_user_views module ?
if you want you can paste here the exported view and/or the full generated query
(the one you get when you click on preview in the view) so i can debug.
Comment #12
Anonymous (not verified) commentedthe module is now disabled, and doesn't conflict anymore. Anyway here are the attached module and the views export.
Comment #13
Anonymous (not verified) commentedComment #14
gunzip commentedit was my fault. the bug was caused by the fact that the running view was not the 'default' display.
i've committed the fix to the dev version, here's the patch:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/smsbulk/sms...
thank you for the support.
Comment #15
Anonymous (not verified) commentedIT'S WORKING!
thank you very much
Now I'll try to:
- regarding "Select the field that acts as mobile phone number", I'll try to pull automatically the Number Field from sms_user, instead to map it manually
- regarding "Country" I'd like to have international prefix into the number, otherwise Bulk Operations make no sense when you need to send to different destination at the same time (italy, france, etc)
Comment #16
gunzip commentedcan you open a new issue for this as a feature request ?
if i understand the first request is: the system should guess the phone number field automatically (in the dropdown select).
i don't understand the second request. you can put the prefix into numbers, the fact is that the clickatell gateway module
expects them coming from his own form, so it depends on the gateway module you're using...
Comment #17
Anonymous (not verified) commentedI opened a feature request here http://drupal.org/node/506234
Regarding the international prefix I was wondering if possibly do like in http://drupal.org/node/441650 at line:
<<<<<<<
The MSISDN numbers must now be specified in full international format. I removed the concatenation of the country code and phone number from the send function, as this causes pain when sending programatically. Users should be encouraged to use properly formatted numbers, including the E.164 country codes (without special chars like "+" or spaces).
<<<<<<<
...but I don't know how/where to put my request.
Comment #18
gunzip commented#441650: Updated Clickatell gateway module is the right place
Comment #20
BenK commentedSubscribing...
Comment #21
mos2710 commentedSorry gunzip to reopen this case.
I can't understand why the number field here ( "Select the field that acts as mobile phone number") couldn't work with a cck phone field. It would have been much easier (I think) to get the number from the user's profile. At the moment no field is displayed. Look forward to hear from you.
Thanks
Mos2710
Comment #22
gunzip commentedsorry, i didn't understand, may you elaborate more ? you can have a cck field as phone number, indeed that's what this module is for. you can create an user view with the profile field that act as phone number as well. you are free to use cck with content profile _or_ a plain user profile field _or_ the sms_user phone field applying the patch above.