<div dir="ltr">Sorry just realized it was already done in your dp.<div>+1 for Ken's workaround then.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-15 15:54 GMT+02:00 Florent Krieg <span dir="ltr"><<a href="mailto:flokrrr@gmail.com" target="_blank">flokrrr@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello David,<div><br></div><div>Also, you may have a try setting the session_in_hangup_hook variable to true (JS example here: <a href="https://freeswitch.org/confluence/display/FREESWITCH/JavaScript+Example+-+Session+in+Hangup+Hook" target="_blank">https://freeswitch.org/<wbr>confluence/display/FREESWITCH/<wbr>JavaScript+Example+-+Session+<wbr>in+Hangup+Hook</a>, see the old wiki for more info <a href="https://wiki.freeswitch.org/wiki/Variable_session_in_hangup_hook" target="_blank">https://wiki.freeswitch.org/<wbr>wiki/Variable_session_in_<wbr>hangup_hook</a>)</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Florent</div></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2016-09-15 15:48 GMT+02:00 Ken Rice <span dir="ltr"><<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Why not just use mod_xml_cdr for this… it’ll post a full CDR that you can parse and will have all the information you are looking at and will not potentially leave a session open<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists<wbr>.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounc<wbr>es@lists.freeswitch.org</a>] <b>On Behalf Of </b>David Ponzone<br><b>Sent:</b> Thursday, September 15, 2016 8:37 AM<br><b>To:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freesw<wbr>itch.org</a>><br><b>Subject:</b> [Freeswitch-users] api_reporting_hook and session_in_hangup_hook issue<u></u><u></u></span></p></div></div><div><div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am trying to run mod_curl after hangup, in order to sens some channel variables to a HTTP server:<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><p class="MsoNormal"> <extension name="from_SIP_account_to_US_T<wbr>ollFree"><u></u><u></u></p></div><div><p class="MsoNormal"> <condition field="destination_number" expression="^00(1800\d+)$"><u></u><u></u></p></div><div><p class="MsoNormal"> <action application="set" data="api_reporting_hook=curl <a href="http://server/script.php?orig=$%7bsip_from_user%7d&dest=$%7bdestination_number%7d&callstart=$%7banswered_time%7d&callend=$%7bhangup_time%7d" target="_blank">http://server/script.php?orig=<wbr>${sip_from_user}&dest=${destin<wbr>ation_number}&callstart=${<wbr>answered_time}&callend=${hangu<wbr>p_time}</a> headers get"/><u></u><u></u></p></div><div><p class="MsoNormal"> <action application="set" data="session_in_hangup_hook=t<wbr>rue"/><u></u><u></u></p></div><div><p class="MsoNormal"> <action application="bridge" data="{sip_cid_type=none}sofia<wbr>/gateway/trunk.out/+$1"/><u></u><u></u></p></div><div><p class="MsoNormal"> </condition><u></u><u></u></p></div><div><p class="MsoNormal"> </extension><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">When I hangup, only sip_from_user and destination_number are correct.<u></u><u></u></p></div><div><p class="MsoNormal">answered_time contains 0 and hangup_time is empty<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Am I missing something ?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thank you<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><div><p class="MsoNormal"><span><span style="font-family:"Helvetica Neue",serif;color:#1c00ff">David Ponzone</span></span><span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1c00ff"> </span></span><span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1c00ff"> </span></span><span><span style="font-family:"Helvetica Neue",serif;color:black">Direction Technique</span></span><span style="font-family:"Helvetica",sans-serif;color:black"><u></u><u></u></span></p></div><div><div><p class="MsoNormal"><span><span>email: <a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a></span></span><span style="font-size:7.5pt;font-family:"Arial",sans-serif"><u></u><u></u></span></p></div><div><p class="MsoNormal"><span><span>tel: 01 74 03 18 97</span></span><span style="font-size:7.5pt;font-family:"Arial",sans-serif"><u></u><u></u></span></p></div><div><p class="MsoNormal"><span><span>gsm: 06 66 98 76 34</span></span><span style="font-size:7.5pt;font-family:"Arial",sans-serif"><u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#0022f3"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span>Service Client </span><span>IP</span><span>eva</span><span style="font-family:"Helvetica",sans-serif;color:#0022f3"><u></u><u></u></span></p></div><div><div><p class="MsoNormal"><span><span>tel: 0811 46 26 26</span></span><span style="font-size:7.5pt;font-family:"Helvetica",sans-serif;color:black"><u></u><u></u></span></p></div><div><div><p class="MsoNormal"><u><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#0022f3"><a>www.ipeva.fr</a></span></u><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#656895"> - </span><u><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#0022f3"><a>www.ipeva-studio.com</a></span></u><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#0022f3"><u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#0022f3"><u></u> <u></u></span></p></div><div><p class="MsoNormal" style="text-align:justify"><i><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:silver">Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. <b>IPeva</b> décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</span></i><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:silver"><u></u><u></u></span></p><div><p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#0022f3"><u></u> <u></u></span></p></div></div></div></div></div></div><p class="MsoNormal"><span style="font-family:"Helvetica",sans-serif"><br><br></span><u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div><br></div></div><span class="">______________________________<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" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></span></blockquote></div><br></div>
</blockquote></div><br></div>