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.
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?