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

dwmw2 reviewboard at asterisk.org
Fri Aug 26 18:36:57 CDT 2011


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

Review request for Asterisk Developers.


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

  /trunk/Makefile 333075 
  /trunk/apps/app_sms.c 333428 
  /trunk/apps/app_voicemail.c 333075 
  /trunk/build_tools/mkpkgconfig 333075 
  /trunk/channels/chan_local.c 333075 
  /trunk/configure 333075 
  /trunk/configure.ac 333075 
  /trunk/makeopts.in 333075 
  /trunk/res/res_fax.c 333075 
  /trunk/res/res_jabber.c 333075 
  /trunk/sounds/Makefile 333075 

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/20110826/71f8054e/attachment.htm>


More information about the asterisk-dev mailing list