- revert change to ast_queue_hangup and create ast_queue_hangup_with_cause
authorMichiel van Baak <michiel@vanbaak.info>
Thu, 22 May 2008 16:29:54 +0000 (16:29 +0000)
committerMichiel van Baak <michiel@vanbaak.info>
Thu, 22 May 2008 16:29:54 +0000 (16:29 +0000)
commitf1e9371da8b502999b9aec1db7f68635395a7b6a
treebcbbf4eda53cdb8257bbc7add4616e01e31b1ae2
parent2c7760e6262c97afc19037890242299421d62157
- revert change to ast_queue_hangup and create ast_queue_hangup_with_cause
- make data member of the ast_frame struct a named union instead of a void

Recently the ast_queue_hangup function got a new parameter, the hangupcause
Feedback came in that this is no good and that instead a new function should be created.
This I did.

The hangupcause was stored in the seqno member of the ast_frame struct. This is not very
elegant, and since there's already a data member that one should be used.
Problem is, this member was a void *.
Now it's a named union so it can hold a pointer, an uint32 and there's a padding in case someone
wants to store another type in there in the future.

This commit is so massive, because all ast_frame.data uses have to be
altered to ast_frame.data.data

Thanks russellb and kpfleming for the feedback.

(closes issue #12674)
Reported by: mvanbaak

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
76 files changed:
apps/app_alarmreceiver.c
apps/app_chanspy.c
apps/app_dial.c
apps/app_disa.c
apps/app_externalivr.c
apps/app_festival.c
apps/app_followme.c
apps/app_ices.c
apps/app_meetme.c
apps/app_milliwatt.c
apps/app_mp3.c
apps/app_nbscat.c
apps/app_queue.c
apps/app_sms.c
apps/app_speech_utils.c
apps/app_test.c
apps/app_zapbarge.c
apps/app_zapscan.c
channels/chan_alsa.c
channels/chan_console.c
channels/chan_gtalk.c
channels/chan_h323.c
channels/chan_iax2.c
channels/chan_jingle.c
channels/chan_local.c
channels/chan_mgcp.c
channels/chan_misdn.c
channels/chan_oss.c
channels/chan_phone.c
channels/chan_sip.c
channels/chan_skinny.c
channels/chan_unistim.c
channels/chan_zap.c
channels/iax2-parser.c
codecs/codec_a_mu.c
codecs/codec_adpcm.c
codecs/codec_alaw.c
codecs/codec_g722.c
codecs/codec_g726.c
codecs/codec_gsm.c
codecs/codec_lpc10.c
codecs/codec_resample.c
codecs/codec_ulaw.c
codecs/codec_zap.c
formats/format_g723.c
formats/format_g726.c
formats/format_g729.c
formats/format_gsm.c
formats/format_h263.c
formats/format_h264.c
formats/format_ilbc.c
formats/format_jpeg.c
formats/format_pcm.c
formats/format_sln.c
formats/format_sln16.c
formats/format_vox.c
formats/format_wav.c
formats/format_wav_gsm.c
include/asterisk/channel.h
include/asterisk/frame.h
main/abstract_jb.c
main/app.c
main/audiohook.c
main/channel.c
main/dsp.c
main/features.c
main/file.c
main/frame.c
main/indications.c
main/rtp.c
main/slinfactory.c
main/translate.c
main/udptl.c
res/res_adsi.c
res/res_agi.c
res/res_musiconhold.c