A minor problem with sendsms-char

francesco emmi <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <1077126696.1011.49.camel@verne>
Hi all,

I had problems sending sms whose receiver phone numbers are alphanumeric
(Wind Italy operator use naked phone numbers sometimes).

I' ve tried by setting sendsms-chars parameter in this way:

sendsms-chars "abcde....ABCD...01234456789 +-"

but it doesn't work.

The code smsbox.c seems like to get the sendsms-chars from kannel.conf
but it doesn't use it (am I wrong?).

I modified the code and in attach my diff file.

Are you agree with this modification?

Thanks in advance

--Francesco Emmi
smsbox.diff (text/plain, 679 B)
--- smsbox.c	2002-08-20 17:13:22.000000000 -0400
+++ /usr/local/src/kannel/gateway-1.2.1/gw/smsbox.c	2004-02-18 11:31:55.000000000 -0500
@@ -3027,7 +3027,10 @@
     if (urltrans_add_cfg(translations, cfg) == -1)
 	panic(0, "urltrans_add_cfg failed");
 
-    sendsms_number_chars = SENDSMS_DEFAULT_CHARS;
+    //sendsms_number_chars = SENDSMS_DEFAULT_CHARS;
+    sendsms_number_chars = (accepted_chars != NULL) ? octstr_get_cstr(accepted_chars) : SENDSMS_DEFAULT_CHARS;
+    debug("sms", 0, GW_NAME " smsbox setting sendsms-chars to %s", sendsms_number_chars);
+
     caller = http_caller_create();
     smsbox_requests = list_create();
     smsbox_http_requests = list_create();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.