Hello,
here I submit a (previously mentioned) patch that fix a (false) error report when usin chan_capi.
I have checked this is not included in the patch at leviogo.de


Best regards
Luis

Pd: Just in case,if anybody need it I have made a version of chan_capi-0.3.5-cvs-HEAD-patch.tar.bz2 compatible with the asterisk stable version at http://200.59.203.76/pub/chan_capi-0.3.5-patch.stable.diff

diff -ruN --ignore-all-space chan_capi-0.3.5/chan_capi.c chan_capi-0.3.5.ipcontact/chan_capi.c
--- chan_capi-0.3.5/chan_capi.c	2005-02-04 15:04:29.000000000 -0300
+++ chan_capi-0.3.5.ipcontact/chan_capi.c	2005-02-04 18:32:45.000000000 -0300
@@ -2161,6 +2161,18 @@
 		PLCI = INFO_CONF_PLCI(CMSG);
 //		ast_log(LOG_ERROR,"INFO_CONF PLCI=%#x INFO=%#x\n",PLCI,INFO_CONF_INFO(CMSG));
 	    break;
+	case CAPI_LISTEN:
+	  if (LISTEN_CONF_INFO(CMSG)!=0) {
+		char * message = capi_info2str(LISTEN_CONF_INFO(CMSG));
+		if(!message) {
+		  asprintf(&message, "CAPI returned an unknown error! Please ask your manufacturer for assistance (error code=0x%X)\n", LISTEN_CONF_INFO(CMSG));
+		  ast_log(LOG_ERROR, message);
+		  free(message);
+		} else {
+		  ast_log(LOG_ERROR, "%s\n", message);
+		}
+	  }
+	  break;
 	    case CAPI_CONNECT:
 		PLCI = CONNECT_CONF_PLCI(CMSG);
 		if (option_verbose > 3) {
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to