keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about G400/G410 Cards.

chan-extra 1.0.2.1 receive sms while sending

13 years 2 months ago #6674 by Easy
Hi allThere is a problem with the new driver - if a span is sending sms and receives another sms, it hangs. everything You get after is "Cannot send SMS when not ready, waiting..." repeating itself. It is said in changelog, that the bug is fixed, but with my installation from todays morning it stil exists.
In that case there is no way to use the card as I need to restart dahdi service each 10-15 minutes
13 years 2 months ago #6682 by Jessie.liao
HI,
How many sms did you send at the same time?
Which command do you use to send sms,gsm send sms or gsm send pdu?
Please try to use "gsm send pdu" by which you should transfer txt to pdu.

i] Last edited by Jessie.liao at 2011-2-28 15:47 [/i

13 years 2 months ago #6684 by Easy
At the same time I am sending only one SMS from one span. There is a script that sends sms - it sends command asterisk -rx "gsm send sms X XXXX "text", then waits for an answer from the span. After getting an answer it sends one more sms and so on. It is threaded, every thread working with one span. In another words - all spans are sending sms at any given time moment. If sms is incomming - it's always between the asterisk -rx... and the response. After incomming sms arrives I still get response from span "SMS sent successfully" and when it gives another command to send the answer is "Cannot send SMS when not ready, waiting...". The strange thing is that my script does not send any sms and stops the thread if it gets this message, but the message repeats itself indefinitely.
P.S. It sends sms only it text mode, I haven't done any subsystem to convert to pdu....
13 years 2 months ago #6686 by Easy
Sorry, to have mistaken You, PDU mode does not help either. Log: (Sending sms on span 3)
[Feb 28 15:31:00] ERROR[12792] chan_extra.c: Error sending SMS (+CMS ERROR: SM BL not ready) on span 3.
[Feb 28 15:31:08] VERBOSE[12792] logger.c: -- SMS from +37060285462 received on span 3. (Text: Yest) (PDU: 07917360489991F9040B917360205864F200001120825113108004D9F29C0E)
(Sending sms on span 3)
[Feb 28 15:31:12] VERBOSE[12792] logger.c: SMS sent successfully on span 3.
(Sending sms on span 3)
[Feb 28 15:31:22] VERBOSE[12792] logger.c: SMS sent successfully on span 3.
[Feb 28 15:32:22] VERBOSE[12792] logger.c: -- SMS from +37060285462 received on span 3. (Text: ) (PDU: 07917360489991F9040B917360205864F200001120825123708000)
(Sending sms on span 3)
[Feb 28 15:32:37] VERBOSE[12792] logger.c: Span 3: Cannot send PDU when not ready, waiting...
[Feb 28 15:32:45] VERBOSE[12792] logger.c: Span 3: Cannot send PDU when not ready, waiting...

Please take look, that there is no response for sms send when second sms arrived. I think there is a problem - there is no success either error to the sms send process, so GSM_STATE is left another than ready...

Update - if port debugging is turned on this does not happen.... I have no idea why...

i] Last edited by Easy at 2011-2-28 23:10 [/i
13 years 2 months ago #6690 by Jessie.liao
HI,
You should send and recieve sms after the modules are initialized,about 1 minite after loginning in gsm network.

13 years 2 months ago #6692 by Easy
Those cards I showed You yesterday were online for more than 24 hours when You saw them. As far as I could get I think the problem is that when starting to send SMS state is set to GSM_STATE_SENDING, but then another SMS arrives, and this state is then never set back to GSM_STATE_READY.
Time to create page: 0.038 seconds
Powered by Kunena Forum