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

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


Author: mnicholson
Date: Thu Feb 12 16:38:13 2009
New Revision: 777

URL: http://svn.digium.com/svn-view/asterisk-addons?view=rev&rev=777
Log:
make the default value for hfp_wait() 10 seconds instead of 1 second

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=777&r1=776&r2=777
==============================================================================
--- team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c (original)
+++ team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c Thu Feb 12 16:38:13 2009
@@ -928,7 +928,7 @@
 		return 0;
 	
 	ast_debug(1, "Dialed %c\n", digit);
-	if (hfp_send_dtmf(pvt->hfp, digit) || !rfcomm_wait(pvt->hfp->rsock, &ms) || at_read(pvt->rfcomm_socket) != AT_OK) {
+	if (hfp_send_dtmf(pvt->hfp, digit) || !hfp_wait(pvt->hfp) || at_read(pvt->rfcomm_socket) != AT_OK) {
 		return -1;
 	}
 
@@ -1593,7 +1593,7 @@
  */
 static int hfp_wait(struct hfp_pvt *pvt)
 {
-	int ms = 1000;
+	int ms = 10000;
 	return rfcomm_wait(pvt->rsock, &ms);
 }
 




More information about the asterisk-addons-commits mailing list