[asterisk-dev] [Code Review] Fix app_sms regression

dwmw2 reviewboard at asterisk.org
Sat Aug 27 03:16:01 CDT 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1392/
-----------------------------------------------------------

(Updated Aug. 27, 2011, 3:16 a.m.)


Review request for Asterisk Developers.


Changes
-------

Fix patch.


Summary
-------

Fix two problems with app_sms.

Firstly, the 'flags' field on the stack in sms_exec() is uninitialised, causing it to use the wrong protocol in some cases.

Secondly, when disconnect supervision is not working or inbanddisconnect=yes is set in chan_dahdi.conf, app_sms was failing to terminate the call after it sent the REL(ease) message and the peer stopped talking to it. This patch fixes the code to handle the 'bad stop bit' message more gracefully in that case, and hang up the call.


This addresses bug ASTERISK-18331.
    https://issues.asterisk.org/jira/browse/ASTERISK-18331


Diffs (updated)
-----

  /trunk/apps/app_sms.c 333428 

Diff: https://reviewboard.asterisk.org/r/1392/diff


Testing
-------

Sending and receiving protocol 1 messages to/from British Telecom over ISDN BRI (with chan_dahdi), both with and without inbanddisconnect=yes.


Thanks,

dwmw2

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110827/27cd8355/attachment.htm>


More information about the asterisk-dev mailing list