Discussion:
Problems sending more than 2 SMS with asterisk / smsq
(too old to reply)
Matthias Huber
2007-07-09 15:21:42 UTC
Permalink
When i send more than one messages shortly after the other, my log
(/var/spool/asterisk/sms ) looks like this
and only two of four messages arrive.

What am i doing wrong ?

I am using an AVM B1 PCI with chan-capi and 1.4.4.

and also, when sending with smsq -x only two of the messages are handled.
(i thought, asterisk itself handles the queues ? )

Here the log:

2007-07-09T15:04:14 YOM04 0 - 0172xxxxxxx test11
2007-07-09T15:04:15 ?OM05 0 - 0172xxxxxxx test12
2007-07-09T15:07:51 YOM06 0 - 0172xxxxxxx test13
2007-07-09T15:07:53 ?OM07 0 - 0172xxxxxxx test14

sorry - i am a total newbie at asterisk.
--
Mit freundlichen GrĂ¼ssen
Matthias Huber



_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Anselm Martin Hoffmeister
2007-07-14 09:53:37 UTC
Permalink
Post by Matthias Huber
When i send more than one messages shortly after the other, my log
(/var/spool/asterisk/sms ) looks like this
and only two of four messages arrive.
What am i doing wrong ?
I am using an AVM B1 PCI with chan-capi and 1.4.4.
and also, when sending with smsq -x only two of the messages are handled.
(i thought, asterisk itself handles the queues ? )
2007-07-09T15:04:14 YOM04 0 - 0172xxxxxxx test11
2007-07-09T15:04:15 ?OM05 0 - 0172xxxxxxx test12
2007-07-09T15:07:51 YOM06 0 - 0172xxxxxxx test13
2007-07-09T15:07:53 ?OM07 0 - 0172xxxxxxx test14
sorry - i am a total newbie at asterisk.
My experience with sending several subsequent short messages is that
this might run you into a timing issue. Whyever, some calls will not
successfully transmit the first two packets of the SMS handshake,
resulting in a non-delivery.

This can be seen on the CLI, so perhaps your problem shows up there as
well: Try
asterisk -r

CLI> set verbose 10

(keep CLI open)
and send those messages. I would expect those failing messages to show a
different pattern.

I got this failing probability _way_ down by using an additional Wait(1)
or Wait(2) in the dialplan where the SMS sending happens, after bringing
up the line and before sending the SMS proper.

HTH
Anselm


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Christoph Adomeit
2007-09-19 13:25:51 UTC
Permalink
Hi there,

I experience the same problem here with asterisk 1.2.24 on
an E1 Line, only 2 of 3 sms are sent, this happens always and
is reproducable.

Did someone find out more about the problem ?

Especially I do not see how I could add a wait to the dialplan
as somebody suggested because there seems no dialplan invoked
when I send sms.

I use:

smsq -d 017xxx -m TEST1 --motx-channel=Zap/g1/0193010
(Germen Telekom Message Center)

How could I invoke smsq differently to use an own context
of the dialplan ?

Thanks
Christoph
Post by Matthias Huber
When i send more than one messages shortly after the other, my log
(/var/spool/asterisk/sms ) looks like this
and only two of four messages arrive.
What am i doing wrong ?
I am using an AVM B1 PCI with chan-capi and 1.4.4.
and also, when sending with smsq -x only two of the messages are handled.
(i thought, asterisk itself handles the queues ? )
2007-07-09T15:04:14 YOM04 0 - 0172xxxxxxx test11
2007-07-09T15:04:15 ?OM05 0 - 0172xxxxxxx test12
2007-07-09T15:07:51 YOM06 0 - 0172xxxxxxx test13
2007-07-09T15:07:53 ?OM07 0 - 0172xxxxxxx test14
sorry - i am a total newbie at asterisk.
--
Mit freundlichen GrĂ¼ssen
Matthias Huber
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-users mailing list
http://lists.digium.com/mailman/listinfo/asterisk-users
--
Christoph Adomeit
GATWORKS GmbH
Reststrauch 191
41199 Moenchengladbach
Sitz: Moenchengladbach
Amtsgericht Moenchengladbach, HRB 6303
Geschaftsfuehrer:
Christoph Adomeit, Hans Wilhelm Terstappen

***@gatworks.de Internetloesungen vom Feinsten
Fon. +49 2166 9149-32 Fax. +49 2166 9149-10

_______________________________________________

Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/

--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
randulo
2007-09-20 12:32:48 UTC
Permalink
Post by Christoph Adomeit
Especially I do not see how I could add a wait to the dialplan
as somebody suggested because there seems no dialplan invoked
when I send sms.
Can you not invoke a shell script and put the sleep in there?

_______________________________________________

Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/

--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Anselm Martin Hoffmeister
2007-09-20 13:08:31 UTC
Permalink
Post by Christoph Adomeit
Hi there,
I experience the same problem here with asterisk 1.2.24 on
an E1 Line, only 2 of 3 sms are sent, this happens always and
is reproducable.
Did someone find out more about the problem ?
Especially I do not see how I could add a wait to the dialplan
as somebody suggested because there seems no dialplan invoked
when I send sms.
smsq -d 017xxx -m TEST1 --motx-channel=Zap/g1/0193010
(Germen Telekom Message Center)
How could I invoke smsq differently to use an own context
of the dialplan ?
I think I have been in error there. The wait occurs on incoming calls,
like my Gigaset calling in to Asterisk, between answering the line:

exten => _0193010.,1,Answer()
exten => _0193010.,2,Wait(2)
exten => _0193010.,3,SMS(blahfasel)

Same for _incoming_ messages from the Telco SMSC.

I do not immediately understand where I could have inserted a Wait() for
outgoing SMS, especially as that SMS() seems to open the line itself. I
would have to investigate, but do not have the equipment right here at
the moment, sorry.

BR
Anselm


_______________________________________________

Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/

--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

Loading...