<div dir="ltr">Are you doing billing in this hangup hook?</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 30, 2017 at 2:15 AM, David Ponzone <span dir="ltr">&lt;<a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Dave,<div><br></div><div>for that, you need something a little bit different:</div><div><br></div><div><div><span class="m_-5892313264938325250Apple-tab-span" style="white-space:pre-wrap">        </span>&lt;action application=&quot;set&quot; data=&quot;session_in_hangup_hook=<wbr>true&quot;/&gt;</div><div><span class="m_-5892313264938325250Apple-tab-span" style="white-space:pre-wrap">        </span>&lt;action application=&quot;set&quot; data=&quot;api_reporting_hook= xxxx »/&gt;</div><div><br></div><div>when, you will be able to catch session variables in your script.</div><div>For xxxx I recommend lua yourscript.lua</div><div>I tried using curl, and it does not have access to session variables.</div><div><br></div><div>See my own thread:</div><div><br></div><div><a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2016-September/122721.html" target="_blank">http://lists.freeswitch.org/<wbr>pipermail/freeswitch-users/<wbr>2016-September/122721.html</a></div><div><br></div><div>I never understood why curl can’t access session variables, but lua works.</div><div><br></div><div><span class=""><div>
<span class="m_-5892313264938325250Apple-style-span" style="border-collapse:separate;font-family:Helvetica;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;line-height:normal;border-spacing:0px"><span class="m_-5892313264938325250Apple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"><div style="color:rgb(0,0,0)"><span class="m_-5892313264938325250Apple-style-span" style="color:rgb(0,34,243);font-family:&#39;Helvetica Neue&#39;"><font class="m_-5892313264938325250Apple-style-span" color="#1C00FF">David Ponzone<font class="m_-5892313264938325250Apple-style-span" face="Arial" size="2"><span class="m_-5892313264938325250Apple-converted-space"> </span> </font></font></span><span class="m_-5892313264938325250Apple-style-span" style="color:rgb(0,34,243);font-family:&#39;Helvetica Neue&#39;"><font class="m_-5892313264938325250Apple-style-span" color="#000000">Direction Technique</font></span></div><div><div style="font-family:Arial;font-size:10px"><font class="m_-5892313264938325250Apple-style-span" face="&#39;Helvetica Neue&#39;"><font class="m_-5892313264938325250Apple-style-span" size="3"><span class="m_-5892313264938325250Apple-style-span" style="font-size:13px">email: <a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a></span></font></font></div><div style="font-family:Arial;font-size:10px"><font class="m_-5892313264938325250Apple-style-span" face="&#39;Helvetica Neue&#39;"><font class="m_-5892313264938325250Apple-style-span" size="3"><span class="m_-5892313264938325250Apple-style-span" style="font-size:13px">tel:      01 74 03 18 97</span></font></font></div><div style="font-family:Arial;font-size:10px"><font class="m_-5892313264938325250Apple-style-span" face="&#39;Helvetica Neue&#39;"><font class="m_-5892313264938325250Apple-style-span" size="3"><span class="m_-5892313264938325250Apple-style-span" style="font-size:13px">gsm:   06 66 98 76 34</span></font></font></div><div style="color:rgb(0,34,243);font-family:Arial;font-size:10px"><font class="m_-5892313264938325250Apple-style-span" face="&#39;Helvetica Neue&#39;"><br></font></div><div style="color:rgb(0,34,243)"><font class="m_-5892313264938325250Apple-style-span" color="#1C00FF" face="&#39;Helvetica Neue&#39;">Service Client </font><font class="m_-5892313264938325250Apple-style-span" face="&#39;Helvetica Neue&#39;"><font class="m_-5892313264938325250Apple-style-span" color="#FF0000">IP</font></font><font class="m_-5892313264938325250Apple-style-span" color="#1C00FF" face="&#39;Helvetica Neue&#39;">eva</font></div><div style="color:rgb(0,34,243);font-family:Arial;font-size:10px"><font class="m_-5892313264938325250Apple-style-span" color="#1C00FF" face="&#39;Helvetica Neue&#39;"><span class="m_-5892313264938325250Apple-style-span" style="color:rgb(0,0,0);font-family:Helvetica"><div><font class="m_-5892313264938325250Apple-style-span" face="&#39;Helvetica Neue&#39;"><font class="m_-5892313264938325250Apple-style-span" size="3"><span class="m_-5892313264938325250Apple-style-span" style="font-size:13px">tel:      0811 46 26 26</span></font></font></div><div><font class="m_-5892313264938325250Apple-style-span" face="&#39;Helvetica Neue&#39;" size="3"><span class="m_-5892313264938325250Apple-style-span" style="font-size:13px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Arial;color:rgb(0,34,243)"><span style="text-decoration:underline"><a>www.ipeva.fr</a></span><span style="color:rgb(101,104,149)">  -   <span style="color:rgb(0,34,243);text-decoration:underline"><a>www.ipeva-studio.com</a></span></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Arial;color:rgb(0,34,243)"><span class="m_-5892313264938325250Apple-style-span" style="text-decoration:underline"><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Arial;color:rgb(0,34,243)"><span class="m_-5892313264938325250Apple-style-span"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;text-align:justify;font:normal normal normal 10px/normal Arial;color:rgb(192,192,192)"><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l&#39;intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d&#39;altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s&#39;il a été altéré, déformé ou falsifié. Si vous n&#39;êtes pas destinataire de ce message, merci de le détruire immédiatement et d&#39;avertir l&#39;expéditeur.</i></div><div><i><br></i></div></span></div></span></font></div></span></font></div></div></div></span><br class="m_-5892313264938325250Apple-interchange-newline"></span><br class="m_-5892313264938325250Apple-interchange-newline">
</div>
<br></span><div><div class="h5"><div><blockquote type="cite"><div>Le 30 mars 2017 à 06:48, Dave Horton &lt;<a href="mailto:daveh@beachdognet.com" target="_blank">daveh@beachdognet.com</a>&gt; a écrit :</div><br class="m_-5892313264938325250Apple-interchange-newline"><div><div style="word-wrap:break-word">Thanks, that will do it.  One followup question: when my api_hangup_hook is invoked, is it possible for me to get a termination reason that lets me know whether the caller canceled the call (i.e hungup before answer), or whether it was a normal call clearing (i.e hangup after answer) ?<div><br></div><div><br><div><div>On Mar 29, 2017, at 3:33 PM, David Ponzone &lt;<a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a>&gt; wrote:</div><br class="m_-5892313264938325250Apple-interchange-newline"><div><div style="word-wrap:break-word">api_hangup_hook<div><br><div>
<span class="m_-5892313264938325250Apple-style-span" style="border-collapse:separate;font-family:Helvetica;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;line-height:normal;border-spacing:0px"><span class="m_-5892313264938325250Apple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"><div><span class="m_-5892313264938325250Apple-style-span" style="color:rgb(0,34,243);font-family:&#39;Helvetica Neue&#39;"><font class="m_-5892313264938325250Apple-style-span" color="#1C00FF">David Ponzone<font class="m_-5892313264938325250Apple-style-span" face="Arial" size="2"><span class="m_-5892313264938325250Apple-converted-space"> </span> </font></font></span><span class="m_-5892313264938325250Apple-style-span" style="color:rgb(0,34,243);font-family:&#39;Helvetica Neue&#39;"><font class="m_-5892313264938325250Apple-style-span">Direction Technique</font></span></div><div><div style="font-family:Arial;font-size:10px"><font class="m_-5892313264938325250Apple-style-span" face="&#39;Helvetica Neue&#39;"><font class="m_-5892313264938325250Apple-style-span" size="3"><span class="m_-5892313264938325250Apple-style-span" style="font-size:13px">email: <a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a></span></font></font></div><div style="font-family:Arial;font-size:10px"><font class="m_-5892313264938325250Apple-style-span" face="&#39;Helvetica Neue&#39;"><font class="m_-5892313264938325250Apple-style-span" size="3"><span class="m_-5892313264938325250Apple-style-span" style="font-size:13px">tel:      01 74 03 18 97</span></font></font></div><div style="font-family:Arial;font-size:10px"><font class="m_-5892313264938325250Apple-style-span" face="&#39;Helvetica Neue&#39;"><font class="m_-5892313264938325250Apple-style-span" size="3"><span class="m_-5892313264938325250Apple-style-span" style="font-size:13px">gsm:   06 66 98 76 34</span></font></font></div><div style="color:rgb(0,34,243);font-family:Arial;font-size:10px"><font class="m_-5892313264938325250Apple-style-span" face="&#39;Helvetica Neue&#39;"><br></font></div><div style="color:rgb(0,34,243)"><font class="m_-5892313264938325250Apple-style-span" color="#1C00FF" face="&#39;Helvetica Neue&#39;">Service Client </font><font class="m_-5892313264938325250Apple-style-span" face="&#39;Helvetica Neue&#39;"><font class="m_-5892313264938325250Apple-style-span" color="#FF0000">IP</font></font><font class="m_-5892313264938325250Apple-style-span" color="#1C00FF" face="&#39;Helvetica Neue&#39;">eva</font></div><div style="color:rgb(0,34,243);font-family:Arial;font-size:10px"><font class="m_-5892313264938325250Apple-style-span" color="#1C00FF" face="&#39;Helvetica Neue&#39;"><span class="m_-5892313264938325250Apple-style-span" style="font-family:Helvetica"><div><font class="m_-5892313264938325250Apple-style-span" face="&#39;Helvetica Neue&#39;"><font class="m_-5892313264938325250Apple-style-span" size="3"><span class="m_-5892313264938325250Apple-style-span" style="font-size:13px">tel:      0811 46 26 26</span></font></font></div><div><font class="m_-5892313264938325250Apple-style-span" face="&#39;Helvetica Neue&#39;" size="3"><span class="m_-5892313264938325250Apple-style-span" style="font-size:13px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Arial;color:rgb(0,34,243)"><span style="text-decoration:underline"><a>www.ipeva.fr</a></span><span style="color:rgb(101,104,149)">  -   <span style="color:rgb(0,34,243);text-decoration:underline"><a>www.ipeva-studio.com</a></span></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Arial;color:rgb(0,34,243)"><span class="m_-5892313264938325250Apple-style-span" style="text-decoration:underline"><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Arial;color:rgb(0,34,243)"><span class="m_-5892313264938325250Apple-style-span"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;text-align:justify;font:normal normal normal 10px/normal Arial;color:rgb(192,192,192)"><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l&#39;intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d&#39;altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s&#39;il a été altéré, déformé ou falsifié. Si vous n&#39;êtes pas destinataire de ce message, merci de le détruire immédiatement et d&#39;avertir l&#39;expéditeur.</i></div><div><i><br></i></div></span></div></span></font></div></span></font></div></div></div></span><br class="m_-5892313264938325250Apple-interchange-newline"></span><br class="m_-5892313264938325250Apple-interchange-newline">
</div>
<br><div><blockquote type="cite"><div>Le 30 mars 2017 à 00:18, Dave Horton &lt;<a href="mailto:daveh@beachdognet.com" target="_blank">daveh@beachdognet.com</a>&gt; a écrit :</div><br class="m_-5892313264938325250Apple-interchange-newline"><div><div>I’m hoping to find a dialplan-based solution to this problem.  I have a call coming in, and I start executing a dialplan with various applications.  At some point, if the caller cancels before I have bridged or answered his or her call, I would like the ability to immediately execute some code — e.g. by jumping to another extension (or something like that) at the moment when the caller abandons.  I know this could be orchestrated in an event socket app, but as mentioned I would prefer a dialplan-based approach, if possible.  Any ideas?<br><br>Dave<br>______________________________<wbr>______________________________<wbr>_____________<br>Professional FreeSWITCH Consulting Services: <br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.<wbr>org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div></div></blockquote></div><br></div></div>______________________________<wbr>______________________________<wbr>_____________<br>Professional FreeSWITCH Consulting Services: <br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.<wbr>org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div></div><br></div></div>______________________________<wbr>______________________________<wbr>_____________<br>Professional FreeSWITCH Consulting Services: <br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.<wbr>org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div></blockquote></div><br></div></div></div></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p><p><b style="font-family:monospace,monospace;font-size:small"><i>Twitter: @FreeSWITCH , @briankwest</i></b></p><p><font size="2" face="monospace, monospace"><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a> <br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a><br><br>Allison prompts for FreeSWITCH:</font></p><table cellspacing="0" cellpadding="0" style="font-size:12.8px"><tbody><tr><td valign="baseline"><p><span><a href="https://www.gofundme.com/allison-prompts-for-freeswitch" target="_blank"><b>https://www.gofundme.com/allison-prompts-for-freeswitch</b></a></span></p></td></tr></tbody></table><p><span style="font-family:monospace,monospace;font-size:12.8px">Got Bugs? Report them </span><a href="https://freeswitch.org/jira" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">here</a><span style="font-family:monospace,monospace;font-size:12.8px">! | Reddit: </span><a href="https://www.reddit.com/r/freeswitch" style="font-family:monospace,monospace;font-size:12.8px" target="_blank">/r/freeswitch</a><br></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>Skype:</b>briankwest<br></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>