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

dwmw2 reviewboard at asterisk.org
Fri Apr 18 20:01:25 CDT 2014


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

(Updated April 18, 2014, 8:01 p.m.)


Status
------

This change has been marked as submitted.


Review request for Asterisk Developers.


Changes
-------

Committed in revision 412655


Bugs: ASTERISK-18331
    https://issues.asterisk.org/jira/browse/ASTERISK-18331


Repository: Asterisk


Description
-------

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.


Diffs
-----

  /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/20140419/25899629/attachment.html>


More information about the asterisk-dev mailing list