[asterisk-addons-commits] mnicholson: trunk r844 - /trunk/channels/chan_mobile.c
SVN commits to the Asterisk addons project
asterisk-addons-commits at lists.digium.com
Mon Apr 6 15:31:28 CDT 2009
Author: mnicholson
Date: Mon Apr 6 15:22:52 2009
New Revision: 844
URL: http://svn.digium.com/svn-view/asterisk-addons?view=rev&rev=844
Log:
disconnect if we fail to create a channel for an incoming sms message
Modified:
trunk/channels/chan_mobile.c
Modified: trunk/channels/chan_mobile.c
URL: http://svn.digium.com/svn-view/asterisk-addons/trunk/channels/chan_mobile.c?view=diff&rev=844&r1=843&r2=844
==============================================================================
--- trunk/channels/chan_mobile.c (original)
+++ trunk/channels/chan_mobile.c Mon Apr 6 15:22:52 2009
@@ -3210,7 +3210,7 @@
/* XXX this channel probably does not need to be associated with this pvt */
if (!(chan = mbl_new(AST_STATE_DOWN, pvt, NULL))) {
ast_debug(1, "[%s] error creating sms message channel, disconnecting\n", pvt->id);
- return 0;
+ return -1;
}
strcpy(chan->exten, "sms");
More information about the asterisk-addons-commits
mailing list