keywords: ip pbx voip gateway gsm gateway

×

Notice

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

how to set a queue for outgoing SMS

13 years 6 months ago #6345 by marco
Hi,
I've a openVox G400P2 on a CentOs with installed Asterisk 1.4.26.2-BRIstuffed-0.4.0-RC3h.
I can send sms with the command:

asterisk -rx 'gsm send sms 1 XXXXXX "Hello"'

but, when the card is busy sending a sms, I get the error:

WARNING[9513]: chan_dahdi.c:9294 dahdi_gsm_error: GSM 1: Cannot send SM when in state 22

Is there a way to set up a queue?

Thank you and best Regards,
Marco
13 years 6 months ago #6346 by svolta
Hi,
Sorry, you can set up a queue in asterisk or drivers now, maybe you can try it on application!
13 years 6 months ago #6347 by james.zhu
hi:
you can not use queue in this way. the queue in asterisk is for inbound calls, not for outgoing calls.
when sending sms out, you can check the outbound status or try to search idle channel to send that, just make
sure the channle is idle.

13 years 5 months ago #6367 by marco
Hi,
at the moment I made a bash script to manage the queues and an expect script that launch something like:
#!/usr/bin/expect
#
set number [lindex $argv 0]
set msg [lindex $argv 1]

spawn asterisk -r
expect "localhost*CLI>"
send "gsm send sms 1 $number \"$msg\"\n"
expect "GSM 1: SMS sent successfully on span 1."
send "exit\n"
expect "Asterisk ending (0)."

so the only way to send an SMS is to use the CLI. is this right?
If I would like to access the device also at the AT level to use extra functionalities,
for example implement sending multiple message (I read about AT+CMSS command).
to do such things have I to modify the drivers? or there is a better solution?

Thank you and Best Regards,
Marco.
13 years 5 months ago #6371 by krzysioD
Chan_extra :)
this is work in progress, but for me it works.
mentioned similar problem for almost a year...
Time to create page: 0.037 seconds
Powered by Kunena Forum