<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I have been asked to send an audio announcement to members of a ring group who lose the race to pick up the call. I have not found anything obvious in the documentation showing a hook or method to play such a message prior to hanging up on the b-leg losing members.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I have tried a lua script capturing the onHangup event but it appears to happen after the hangup and the media does not play.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>My attempts at using transfer_after_bridge like wise did not appear to allow me to play a media file.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>So far my attempts at using the api_hangup_hook have been totally unsuccessful.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I will admit to oldness concerning development and extreme noobness concerning freeswitch.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Any assistance / examples would be appreciated.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><b><span style='font-size:13.0pt;color:#E84A36'>john nowlin<o:p></o:p></span></b></p><p class=MsoNormal><span style='color:#6A6A6A'>Senior Software Developer<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;color:#6A6A6A'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='color:#E84A36'>Tresta<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:10.0pt;color:#6A6A6A'>office: </span><span style='font-size:10.0pt;color:#9980CC'>850.383.7756<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;color:#6A6A6A'>mobile: </span><span style='font-size:10.0pt;color:#9980CC'>850.294.5635<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;color:#6A6A6A'><a href="www.tresta.com"><span style='color:#6A6A6A;text-decoration:none'>www.tresta.com</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;color:#797979'>&#8212;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;color:#6A6A6A'>A Better Phone Experience</span><span style='font-size:8.0pt;color:black'><o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><u><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#4F81BD'><o:p><span style='text-decoration:none'>&nbsp;</span></o:p></span></u></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>