[asterisk-addons-commits] mnicholson: branch mnicholson/chan-mobile-refactor r776 - /team/mnicholson/ch...

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Thu Feb 12 16:32:17 CST 2009


Author: mnicholson
Date: Thu Feb 12 16:32:17 2009
New Revision: 776

URL: http://svn.digium.com/svn-view/asterisk-addons?view=rev&rev=776
Log:
wait up to 10 seconds for dtmf tones to go through for mobile devices

Modified:
    team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c

Modified: team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c
URL: http://svn.digium.com/svn-view/asterisk-addons/team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c?view=diff&rev=776&r1=775&r2=776
==============================================================================
--- team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c (original)
+++ team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c Thu Feb 12 16:32:17 2009
@@ -922,12 +922,13 @@
 static int mbl_digit_end(struct ast_channel *ast, char digit, unsigned int duration)
 {
 	struct mbl_pvt *pvt = ast->tech_pvt;
+	int ms = 10000;
 
 	if (pvt->type == MBL_TYPE_HEADSET)
 		return 0;
 	
 	ast_debug(1, "Dialed %c\n", digit);
-	if (hfp_send_dtmf(pvt->hfp, digit) || !hfp_wait(pvt->hfp) || at_read(pvt->rfcomm_socket) != AT_OK) {
+	if (hfp_send_dtmf(pvt->hfp, digit) || !rfcomm_wait(pvt->hfp->rsock, &ms) || at_read(pvt->rfcomm_socket) != AT_OK) {
 		return -1;
 	}
 




More information about the asterisk-addons-commits mailing list