I've found I can't send more than 70 characters - that's half of what I should be able to send. If I send more, it usually dies a quiet death. I don't see any errors. My provider supports 140 - I've sent it using this SIM outside of Celliax.
Has anyone experienced this issue before? Is there a configuration I'm not seeing?
thx in advance!
character limit 2
Hi there
no, you should be able to send 140 characters.
Can you please post exactly what you are doing, so we can reproduce it?
Also, would be very nice if you can post a debug run as specified in this page:
http://www.gsmopen.org/howtobug
character limit 3
Sure, thank you.
It's a simple Asterisk 1.4.30
I'm just running the following from the Asterisk commandline:
celliax_sendsms line0/1[scrubbed] "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGH"
Here's my hardware and Linux/Asterisk info:
http://pastebin.com/QWTsUJT8
Here's my debug log (Celliax only):
http://pastebin.com/PGCxkvNC
Here's my config info:
http://pastebin.com/RL1cKHHh
This one works:
celliax_sendsms line0/1[scrubbed] "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqr"
I cannot send a single additional character and have it work. I've tested with my GSM carrier, and they support 160 characters.
Let me know if there's anything else I can provide. I really appreciate your assistance and hard work.
SP
character limit 4
Thanks SP.
Just to be sure I understood: it crashes at line 1246 of http://pastebin.com/PGCxkvNC , correct? Because until there, seems ok...
Tomorrow I'll try to replicate and fix
character limit 5
I'm not sure - is that what a crash looks like? It looks like it finished. I don't see any obvious errors. Aside from the at the end, I've got no way of figuring out what was sent.
Anyways, thank you again for your help.
#
[Apr 29 12:08:16] DEBUG[9371] celliax_additional.c: rev 17188M[(nil)|b6cd7b90][DEBUG_AT 2470 ][line0 ][-1, 0, 0] sent data... ()
#
[Apr 29 12:08:17] DEBUG[3095] chan_iax2.c: ip callno count decremented to 1 for [scrubbed]
#
[Apr 29 12:08:31] DEBUG[9371] celliax_additional.c: rev 17188M[(nil)|b6cd7b90][DEBUG_AT 1346 ][line0 ][-1, 0, 0] Read line 0: |+CMGS: 74|
#
[Apr 29 12:08:31] DEBUG[9371] celliax_additional.c: rev 17188M[(nil)|b6cd7b90][DEBUG_AT 1346 ][line0 ][-1, 0, 0] Read line 1: |OK|
#
[Apr 29 12:08:31] DEBUG[9371] celliax_additional.c: rev 17188M[(nil)|b6cd7b90][DEBUG_AT 2170 ][line0 ][-1, 0, 0] got OK
#
[Apr 29 12:08:31] DEBUG[9371] celliax_additional.c: FINISH
character limit 6
Is anyone else using Celliax to send SMS over 70 characters successfully?
thx,
SP
character limit 7
I'm very sorry, I was too busy and I've not done it.
I'll fix it in a couple of days.
Sorry again
-giovanni
character limit 8
No worries, I wasn't prodding you - it wasn't clear that there was a bug.
I do appreciate your hard work on this solution.
Let me know how I can assist you.
SP
character limit 9, no problems for me...
Dear smiley,
thanks for your patience.
I just tested right now on a fresh asterisk 1.4.31 and a fresh checkout of chan_celliax (as per the "download" section of this site), and it works for me...
I only compiled and installed asterisk, then checout the sources of chan_celliax, edited the Makefile to have the right "include" directory, compiled chan celliax, copied where the modules are, copied celliax.conf where the confs are.
I used the command line:
celliax_sendsms line0/3472665618 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGH"
and I received just that.
What hardware are you using? (I mean what kind of gsm interface?)
Operating system?
Any other info?
-giovanni
character limit 10
Hi Giovanni,
I updated to Asterisk 1.4.31, and I grabbed the lastest chan_celliax SVN code, compiled it, and so on...
I'm running CentOS 5.4 (Final)
Linux version 2.6.18-164.el5 (mockbuild@builder16.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Thu Sep 3 03:33:56 EDT 2009
I'm using a Mobigater GSM ProOpen. I've tested the SIM card on a phone - my provider lets me send 140 characters.
I can still only send 70 characters. I can receive 140 (via ciapalo).
I'm sympathetic on the frustration and effort you're putting in here. What else can I do to assist? Do you want to SSH into my box? I'll have a second system up tomorrow AM on different hardware (pointed to the same GSM gateway), with a fresh Asterisk install. I'll let you know the results.
Thanks for your hard work,
SP
character limit 11
now I got an idea, is probably something I got wrong to use the advanced capabilities of mobigater in pdu mode.
The check I made was with a motorola, btw.
So, now I'm in a trip, but I got a mobigater with me. As soon as I can, I'll test it and fix it (it's probably - out of my mind - a wrong count of characters in the conversion between ucs2 and utf8 and ascii format, I thinkI'll fix it).
Thanks for your patience and for the nice words,
-giovanni
character limit 12, SUCCESS!!
yessah!
found the quirk:
mobigater is strictly adhering to ETSI standard (and this is good), and the default configuration that I coded into chan_celliax is to allow the sending of SMSs in utf8 code (so, you can send chinese, arab, hebrew, cirillic, indian, etc texts).
It allows only 80 (70 in your case) characters when in utf8 mode (and that's correct, each character is represented and sent as two bytes).
Other terminals, when they understands that the text to be sent is in the GSM code (an extended ASCII, with european accented letters), allows you to send the full 160 (in your case 140) characters, because each character is sent as one byte.
Mobigater is very strictly to the letter of the standard, or has a bug (different way to look at the same "feature"), and only let you send the number of characters that would be the maximum in utf8.
Enough theory.
If you send text in GSM code (and you probably do that), you only need to change one line in the configuration file (celliax.conf).
find the line(s) that reads like:
at_postinit_5= AT+clvl=99
and edit it (them), so it looks like:
at_postinit_5= AT+CSMP=17,167,0,0 +clvl=99
(note that there is a space between the last "zero" and the "plus" sign)
This will configure the modem to send SMS in GSM standard encoding, and you'll have the full 140 (or 160 in my country) characters at your orders.
Many thanks for having been so patient and so detailed in reporting this problem.
-giovanni
character limit - SOLVED
Awesome work Giovanni. Problem solved.
-smileyphase