Idefisk
Tools
Tutorials
Reviews
VoIP Providers
Archives
AsteriskGuru Archives
Mailing List Archives
FAQ
Search
Memberlist
Usergroups
Register
Profile
Log in to check your private messages
Log in
[Asterisk-cvs] asterisk/res res_monitor.c,1.3,1.4
AsteriskGuru Archives Forum Index
->
Asterisk-CVS
View previous topic
::
View next topic
Author
Message
markster at lists.digium.
Guest
Posted: Mon Sep 08, 2003 4:43 pm
Post subject: [Asterisk-cvs] asterisk/res res_monitor.c,1.3,1.4
Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv30911/res
Modified Files:
res_monitor.c
Log Message:
First of Jayson's manager patches
Index: res_monitor.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_monitor.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** res_monitor.c 13 Aug 2003 15:25:16 -0000 1.3
--- res_monitor.c 8 Sep 2003 16:44:36 -0000 1.4
***************
*** 283,287 ****
char *format = astman_get_header(m, "Format");
if((!name)||(!strlen(name))) {
! astman_send_error(s, "No channel specified");
return 0;
}
--- 283,287 ----
char *format = astman_get_header(m, "Format");
if((!name)||(!strlen(name))) {
! astman_send_error(s, m, "No channel specified");
return 0;
}
***************
*** 294,307 ****
}
if (!c) {
! astman_send_error(s, "No such channel");
return 0;
}
if( ast_monitor_start( c, format, fname, 1 ) ) {
if( ast_monitor_change_fname( c, fname, 1 ) ) {
! astman_send_error(s, "Could not start monitoring channel");
return 0;
}
}
! astman_send_ack(s, "Started monitoring channel");
return 0;
}
--- 294,307 ----
}
if (!c) {
! astman_send_error(s, m, "No such channel");
return 0;
}
if( ast_monitor_start( c, format, fname, 1 ) ) {
if( ast_monitor_change_fname( c, fname, 1 ) ) {
! astman_send_error(s, m, "Could not start monitoring channel");
return 0;
}
}
! astman_send_ack(s, m, "Started monitoring channel");
return 0;
}
***************
*** 312,316 ****
char *name = astman_get_header(m, "Channel");
if((!name)||(!strlen(name))) {
! astman_send_error(s, "No channel specified");
return 0;
}
--- 312,316 ----
char *name = astman_get_header(m, "Channel");
if((!name)||(!strlen(name))) {
! astman_send_error(s, m, "No channel specified");
return 0;
}
***************
*** 323,334 ****
}
if (!c) {
! astman_send_error(s, "No such channel");
return 0;
}
if( ast_monitor_stop( c, 1 ) ) {
! astman_send_error(s, "Could not stop monitoring channel");
return 0;
}
! astman_send_ack(s, "Stopped monitoring channel");
return 0;
}
--- 323,334 ----
}
if (!c) {
! astman_send_error(s, m, "No such channel");
return 0;
}
if( ast_monitor_stop( c, 1 ) ) {
! astman_send_error(s, m, "Could not stop monitoring channel");
return 0;
}
! astman_send_ack(s, m, "Stopped monitoring channel");
return 0;
}
***************
*** 340,348 ****
char *fname = astman_get_header(m, "File");
if((!name) || (!strlen(name))) {
! astman_send_error(s, "No channel specified");
return 0;
}
if ((!fname)||(!strlen(fname))) {
! astman_send_error(s, "No filename specified");
return 0;
}
--- 340,348 ----
char *fname = astman_get_header(m, "File");
if((!name) || (!strlen(name))) {
! astman_send_error(s, m, "No channel specified");
return 0;
}
if ((!fname)||(!strlen(fname))) {
! astman_send_error(s, m, "No filename specified");
return 0;
}
***************
*** 355,366 ****
}
if (!c) {
! astman_send_error(s, "No such channel");
return 0;
}
if( ast_monitor_change_fname( c, fname, 1 ) ) {
! astman_send_error(s, "Could not change monitored filename of channel");
return 0;
}
! astman_send_ack(s, "Stopped monitoring channel");
return 0;
}
--- 355,366 ----
}
if (!c) {
! astman_send_error(s, m, "No such channel");
return 0;
}
if( ast_monitor_change_fname( c, fname, 1 ) ) {
! astman_send_error(s, m, "Could not change monitored filename of channel");
return 0;
}
! astman_send_ack(s, m, "Stopped monitoring channel");
return 0;
}
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
AsteriskGuru Archives Forum Index
->
Asterisk-CVS
All times are GMT
Page
1
of
1
Jump to:
Select a forum
Asterisk Mailing Lists
----------------
Asterisk-Users
Asterisk-Dev
Asterisk-CVS
Asterisk-Biz
Asterisk-Doc
Asterisk-BSD
Asterisk-Announce
Asterisk Call Centers
Asterisk-Video
Asterisk-Speech-Rec
Bristuff-Users
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
edit your posts in this forum
You
cannot
delete your posts in this forum
You
cannot
vote in polls in this forum
Powered by
phpBB
© 2001, 2005 phpBB Group