[Asterisk-cvs] asterisk/channels chan_iax2.c, 1.194, 1.195 chan_mgcp.c, 1.81, 1.82 chan_skinny.c, 1.56, 1.57 chan_zap.c, 1.353, 1.354

markster at lists.digium.com markster at lists.digium.com
Sun Oct 3 17:16:45 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv24619/channels

Modified Files:
	chan_iax2.c chan_mgcp.c chan_skinny.c chan_zap.c 
Log Message:
Add ability to check voicemail from multiple folders (bug #2561)


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.194
retrieving revision 1.195
diff -u -d -r1.194 -r1.195
--- chan_iax2.c	3 Oct 2004 14:57:01 -0000	1.194
+++ chan_iax2.c	3 Oct 2004 21:18:27 -0000	1.195
@@ -4475,7 +4475,7 @@
 						old = 255;
 					msgcount = (old << 8) | new;
 				} else {
-					msgcount = ast_app_has_voicemail(p->mailbox);
+					msgcount = ast_app_has_voicemail(p->mailbox, NULL);
 					if (msgcount)
 						msgcount = 65535;
 				}

Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- chan_mgcp.c	3 Oct 2004 04:19:58 -0000	1.81
+++ chan_mgcp.c	3 Oct 2004 21:18:27 -0000	1.82
@@ -460,7 +460,7 @@
 
 static int has_voicemail(struct mgcp_endpoint *p)
 {
-	return ast_app_has_voicemail(p->mailbox);
+	return ast_app_has_voicemail(p->mailbox, NULL);
 }
 
 static int unalloc_sub(struct mgcp_subchannel *sub)

Index: chan_skinny.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_skinny.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- chan_skinny.c	3 Oct 2004 04:19:58 -0000	1.56
+++ chan_skinny.c	3 Oct 2004 21:18:27 -0000	1.57
@@ -1197,7 +1197,7 @@
 
 static int has_voicemail(struct skinny_line *l)
 {
-	return ast_app_has_voicemail(l->mailbox);
+	return ast_app_has_voicemail(l->mailbox, NULL);
 }
 
 static int skinny_register(skinny_req *req, struct skinnysession *s)

Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.353
retrieving revision 1.354
diff -u -d -r1.353 -r1.354
--- chan_zap.c	3 Oct 2004 19:59:45 -0000	1.353
+++ chan_zap.c	3 Oct 2004 21:18:27 -0000	1.354
@@ -1404,7 +1404,7 @@
 static int has_voicemail(struct zt_pvt *p)
 {
 
-	return ast_app_has_voicemail(p->mailbox);
+	return ast_app_has_voicemail(p->mailbox, NULL);
 }
 
 static int send_callerid(struct zt_pvt *p)
@@ -5831,7 +5831,7 @@
 #if 0
 							printf("Channel %d has mailbox %s\n", last->channel, last->mailbox);
 #endif							
-							res = ast_app_has_voicemail(last->mailbox);
+							res = ast_app_has_voicemail(last->mailbox, NULL);
 							if (last->msgstate != res) {
 								int x;
 								ast_log(LOG_DEBUG, "Message status for %s changed from %d to %d on %d\n", last->mailbox, last->msgstate, res, last->channel);




More information about the svn-commits mailing list