asterisk/apps
Mark Michelson a53877b469 Add some safety measures when using gosub, especially when using the options
for app_dial and app_queue to run a gosub when the call is answered.

* Check for the existence of the gosub target in gosub_exec. If it is nonexistent,
  then this will cause errors when we attempt to actually run the gosub, including
  a definite memory leak and potential crashes. Return an error in this situation
* Check the return value of pbx_exec in app_dial and app_queue before attempting
  to actually run the gosub routine. If there was an error, we should not attempt
  to run the gosub.
* Change a '|' to a ',' in app_queue.
* Add some extra curly braces where they had been missing previously.

(closes issue #13548)
Reported by: fiddur



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@160626 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-03 18:37:46 +00:00
..
app_adsiprog.c - Add more <see-also> based on TFOT. 2008-11-05 13:07:29 +00:00
app_alarmreceiver.c Add more SeeAlso references based on TFOT. 2008-11-05 14:37:07 +00:00
app_amd.c Add more SeeAlso references based on TFOT. 2008-11-05 14:37:07 +00:00
app_authenticate.c - Add more <see-also> based on TFOT. 2008-11-05 13:07:29 +00:00
app_cdr.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_chanisavail.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_channelredirect.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_chanspy.c - Add more <see-also> based on TFOT. 2008-11-05 13:07:29 +00:00
app_controlplayback.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_dahdibarge.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_dahdiras.c Fix various spelling and grammatical issues in documentation 2008-11-02 02:50:33 +00:00
app_dahdiscan.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_db.c - Add some see-also references based on TFOT. 2008-11-05 12:13:57 +00:00
app_dial.c Add some safety measures when using gosub, especially when using the options 2008-12-03 18:37:46 +00:00
app_dictate.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_directed_pickup.c In order to move away from nested function use, some changes to the recently introduced 2008-11-09 01:59:59 +00:00
app_directory.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_disa.c - Add more <see-also> based on TFOT. 2008-11-05 13:07:29 +00:00
app_dumpchan.c - Add more <see-also> based on TFOT. 2008-11-05 13:07:29 +00:00
app_echo.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_exec.c Fix various spelling and grammatical issues in documentation 2008-11-02 02:50:33 +00:00
app_externalivr.c cleaup of the TCP/TLS socket API: 2008-10-19 19:11:28 +00:00
app_fax.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_festival.c Add missing variable declaration for PPC code 2008-11-25 16:18:53 +00:00
app_flash.c Add Flash() application XML documentation. 2008-11-02 05:10:22 +00:00
app_followme.c Make the options for the general and profiles more consistent 2008-11-25 21:49:42 +00:00
app_forkcdr.c - Add PlayTones() and StopPlayTones() applications XML documentation. 2008-11-05 01:44:04 +00:00
app_getcpeid.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_ices.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_image.c - Add more <see-also> based on TFOT. 2008-11-05 13:07:29 +00:00
app_ivrdemo.c Add XML documentation for: 2008-11-03 01:01:25 +00:00
app_jack.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_macro.c Add Macro(), MacroExit(), MacroExclusive() and 2008-11-05 18:46:29 +00:00
app_meetme.c Merged revisions 157365 via svnmerge from 2008-11-18 19:16:00 +00:00
app_milliwatt.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_minivm.c - Add <variable /> tags when naming a channel variable. 2008-12-03 17:48:47 +00:00
app_mixmonitor.c Add more [see also] references based on TFOT. 2008-11-05 18:50:02 +00:00
app_morsecode.c Add more SeeAlso references based on TFOT. 2008-11-05 14:37:07 +00:00
app_mp3.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_nbscat.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_osplookup.c improve configure script to remember the previous value of each dependency in build_tools/menuselect-deps, so that (once it has been written) menuselect can use this information to warn the user when a previously met dependency is no longer met 2008-11-04 15:07:54 +00:00
app_page.c - Add more <see-also> based on TFOT. 2008-11-05 13:07:29 +00:00
app_parkandannounce.c - Add ParkAndAnnounce() application XML documentation. 2008-11-05 13:51:16 +00:00
app_playback.c Fix various spelling and grammatical issues in documentation 2008-11-02 02:50:33 +00:00
app_privacy.c Add more SeeAlso references based on TFOT. 2008-11-05 14:37:07 +00:00
app_queue.c Add some safety measures when using gosub, especially when using the options 2008-12-03 18:37:46 +00:00
app_read.c - Add Read() application XML documentation. 2008-11-05 11:26:40 +00:00
app_readexten.c Allow the '#' sign to exist within an extension (inspired by issue #13330) 2008-11-29 18:33:18 +00:00
app_readfile.c - Add some see-also references based on TFOT. 2008-11-05 12:13:57 +00:00
app_record.c Another little one. 2008-11-02 02:57:27 +00:00
app_rpt.c Merged revisions 159025 via svnmerge from 2008-11-25 05:02:11 +00:00
app_sayunixtime.c Add more SeeAlso references based on TFOT. 2008-11-05 14:37:07 +00:00
app_senddtmf.c - Add some see-also references based on TFOT. 2008-11-05 12:13:57 +00:00
app_sendtext.c - Add some see-also references based on TFOT. 2008-11-05 12:13:57 +00:00
app_setcallerid.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_skel.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_sms.c bring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 branch, and add the ones needed for all the new code here too 2008-11-02 18:52:13 +00:00
app_softhangup.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_speech_utils.c Merged revisions 147517 via svnmerge from 2008-10-08 14:53:51 +00:00
app_stack.c Add some safety measures when using gosub, especially when using the options 2008-12-03 18:37:46 +00:00
app_system.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_talkdetect.c Fix a typo in the name of the application. 2008-11-02 04:57:02 +00:00
app_test.c Add TestClient() and TestServer() applications XML 2008-11-05 19:17:32 +00:00
app_transfer.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_url.c - Add some see-also references based on TFOT. 2008-11-05 12:13:57 +00:00
app_userevent.c Fix various spelling and grammatical issues in documentation 2008-11-02 02:50:33 +00:00
app_verbose.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_voicemail.c Merged revisions 160207 via svnmerge from 2008-12-02 00:37:21 +00:00
app_waitforring.c Add XML documentation for: 2008-11-03 01:01:25 +00:00
app_waitforsilence.c Add XML documentation for: 2008-11-03 01:01:25 +00:00
app_waituntil.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
app_while.c Merged revisions 156755 via svnmerge from 2008-11-14 00:43:13 +00:00
app_zapateller.c Merge changes from team/group/appdocsxml 2008-11-01 21:10:07 +00:00
enter.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
leave.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
Makefile Merged revisions 127892,127895 via svnmerge from 2008-07-03 22:23:04 +00:00
rpt_flow.pdf remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00