|Summary:||ASTERISK-14591: Monitor not working, terminates dialplan|
|Reporter:||Mitch Sharp (bluecrow76)||Labels:|
|Date Opened:||2009-08-03 18:39:53||Date Closed:||2009-10-20 09:03:27|
|Environment:||Attachments:||( 0) 184.108.40.206-rc2-monitor.txt|
( 1) asterisk-220.127.116.11-beta2-beta4-res_monitor-diff.txt
( 2) asterisk-18.104.22.168-beta4-res_monitor.txt
|Description:||I noticed this on 22.214.171.124-beta3 as well but didn't have the time to look at it then and reverted back to 126.96.36.199-beta2.|
When Monitor() is called with a single argument such as Monitor(wav), the app exits with -1 and the dial plan terminates. This occurs with any set of arguments that have been working in production and that have been tested to work properly in 188.8.131.52-beta2.
When Monitor() is called with no options, it returns with the proper message "Monitor requires an argument".
****** ADDITIONAL INFORMATION ******
I diffed out the res_monitor.c files from beta2 and beta4 and didn't really see any difference to speak of. I included the diff in the uploaded files.
I added some debug code just to see where the problem is. I can see that on line 528 in res_monitor.c ast_monitor_start is returning res=-1, but when I try to see what is happening in ast_monitor_start, I get no debug messages on the console even if I place a ast_debug(1,"ast_monitor_start debugging\n"); code right after "int res = 0" on line 208. Since I'm not getting any responses to my "debug" code in that function, I'm at the end of my skills and am turning it over to the group.
|Comments:||By: Mitch Sharp (bluecrow76) 2009-08-06 09:35:48|
It looks like the asterisk version got set 1.6.1-beta4 somehow, even though that's not an option in the submission form...
By: Leif Madsen (lmadsen) 2009-09-18 07:31:39
Is there any chance you could verify this is still an issue in 184.108.40.206-rc2? If so, I'm going to set this as a blocker for 220.127.116.11 final release. Thanks!
By: Mitch Sharp (bluecrow76) 2009-09-25 07:36:08
I just got around to compiling 18.104.22.168-rc2 this morning and the behavior is the same. Calls hangup the moment the Monitor() application is called. I am reverting back to 22.214.171.124-beta2 once again.
By: Mitch Sharp (bluecrow76) 2009-09-25 07:43:10
Attached console output from the attempt in the 126.96.36.199-rc2-monitor.txt file.
By: Pavel Litvinenko (pavell) 2009-09-27 10:43:50
it seams something wrong with optional api ?
asterisk uses stubs not real function ...
By: Mitch Sharp (bluecrow76) 2009-10-07 22:32:39
I just compiled and install 188.8.131.52-rc3 and monitor is now working properly!!!
In the ChangeLog it looks like the optional_api was removed from a few files, including include/asterisk/monitor.h, to fix bug ASTERISK-14847... I'm guessing that's what did it.
By: Leif Madsen (lmadsen) 2009-10-20 09:03:27
Closing this issue as the reporter confirms things are working in 184.108.40.206-rc3 and beyond. Thanks!