[asterisk-addons-commits] mnicholson: trunk r862 - /trunk/channels/chan_mobile.c

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Thu Apr 9 11:39:18 CDT 2009


Author: mnicholson
Date: Thu Apr  9 11:39:15 2009
New Revision: 862

URL: http://svn.digium.com/svn-view/asterisk-addons?view=rev&rev=862
Log:
make sure we reject incoming calls on the mobile side when asterisk rejects
them before they are answered

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=862&r1=861&r2=862
==============================================================================
--- trunk/channels/chan_mobile.c (original)
+++ trunk/channels/chan_mobile.c Thu Apr  9 11:39:15 2009
@@ -3234,6 +3234,10 @@
 			return -1;
 		}
 
+		/* from this point on, we need to send a chup in the event of a
+		 * hangup */
+		pvt->needchup = 1;
+
 		if (ast_pbx_start(chan)) {
 			ast_log(LOG_ERROR, "[%s] unable to start pbx on incoming call\n", pvt->id);
 			mbl_ast_hangup(pvt);




More information about the asterisk-addons-commits mailing list