[Asterisk-Dev] smsq
Drew Wells
drew at elysium.ltd.uk
Thu Sep 1 01:51:16 MST 2005
I am getting a little confused/lost with smsq and app_sms. I managed to
get smsq compiled and working. If I issue the command (UK SMS) :-
smsq --motx-channel=Zap/1/17094009 00000 register
then smsq writes the message into /var/spool/asterisk/sms/motx as
0.1125564277-22383.1 with contents of :-
da=00000
ud=register
a file is also written into /var/spool/asterisk/outgoing/ as
smsq.motx.0.1125564277-22383.1 with contents of :-
Channel: Zap/1/17094009
Callerid: SMS <0>
Application: SMS
Data: 0
MaxRetries: 10
RetryTime: 1
WaitTime: 10
All this looks correct to me, but then app_sms in Asterisk acts on the
file in /var/spool/asterisk/outgoing and makes an outgoing call to
'17094009', but it then scans /var/spool/asterisk/sms/me-sc.0 for any
messages (obviously there are not any there as the message got written in
/var/spool/asterisk/sms/motx), it gets the SMS header from the SMSC (SMS
RX 93 00 6D 00 00 00 ...), then looks for messages in
/var/spool/asterisk/sms/me-sc.0, does not find any messages so sends
SMS_REL (SMS TX 94 00 6C 00 00 00...).
What do I need to do to get the messages from /var/spool/asterisk/sms/motx
into /var/spool/asterisk/sms/me-sc.0
More information about the asterisk-dev
mailing list