Summary:ASTERISK-08315: [patch] ast_app_getdata() without any prompts to play
Reporter:Alexei Volkov (alexei volkov)Labels:
Date Opened:2006-12-09 16:32:00.000-0600Date Closed:2006-12-11 11:08:27.000-0600
Versions:Frequency of
Environment:Attachments:( 0) patch.8551.2
Description:The ast_app_getdata() function no longer properly handles the case where it is called without any prompts to play.  The problem was introduced when the function was updated to support a string of multiple prompts to play, instead of a single one.
Comments:By: Steve Murphy (murf) 2006-12-09 23:19:58.000-0600


I have attached a small patch... Could you tell me if solves the problem?

By: Steve Murphy (murf) 2006-12-09 23:28:22.000-0600

Upon second thought, I substituted a new patch; the input prompt could be a null ptr, or an empty string. strsep will behave correctly (I hope) if it is guaranteed to not be a NULL ptr.

By: Alexei Volkov (alexei volkov) 2006-12-10 14:37:43.000-0600

Thanks, it solves a problem.
Read application written as Read(NUM,,2,n,1,3); do not drop the current channel as was before i apply your patch.
I confirm that issue is fixed.

By: Steve Murphy (murf) 2006-12-11 11:02:30.000-0600

This fix was committed to trunk via r. 48388.

By: Steve Murphy (murf) 2006-12-11 11:08:27.000-0600

Time to close this bug!