<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">api_hangup_hook does not work.<div class="">api_reporting_hook is supposed to be the one as you can access channel variables during REPORTING.</div><div class=""><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div style="color: rgb(0, 0, 0); " class=""><span class="Apple-style-span" style="color: rgb(0, 34, 243); font-family: 'Helvetica Neue'; "><font class="Apple-style-span" color="#1C00FF">David Ponzone<font class="Apple-style-span" face="Arial" size="2"><span class="Apple-converted-space"> </span> </font></font></span><span class="Apple-style-span" style="color: rgb(0, 34, 243); font-family: 'Helvetica Neue'; "><font class="Apple-style-span" color="#000000">Direction Technique</font></span></div><div class=""><div style="font-family: Arial; font-size: 10px; " class=""><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email: <a href="mailto:david.ponzone@ipeva.fr" class="">david.ponzone@ipeva.fr</a></span></font></font></div><div style="font-family: Arial; font-size: 10px; " class=""><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 01 74 03 18 97</span></font></font></div><div style="font-family: Arial; font-size: 10px; " class=""><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-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; " class=""><font class="Apple-style-span" face="'Helvetica Neue'"><br class=""></font></div><div style="color: rgb(0, 34, 243); " class=""><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client </font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div style="color: rgb(0, 34, 243); font-family: Arial; font-size: 10px; " class=""><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div class=""><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 0811 46 26 26</span></font></font></div><div class=""><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-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); " class=""><span style="text-decoration: underline; " class=""><a href="blocked::http://www.ipeva.fr/" class="">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); " class=""> - <span style="color: rgb(0, 34, 243); text-decoration: underline; " class=""><a href="blocked::http://www.ipeva-studio.com/" class="">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); " class=""><span class="Apple-style-span" style="text-decoration: underline; "><br class=""></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); " class=""><span class="Apple-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); " class=""><i class="">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. </i><b class=""><i class="">IPeva</i></b><i class=""> 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.</i></div><div class=""><i class=""><br class=""></i></div></span></div></span></font></div></span></font></div></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">Le 15 sept. 2016 à 15:51, Don Hawkins <<a href="mailto:hawkins@hawkinsegroup.com" class="">hawkins@hawkinsegroup.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class="">Have you tried execute_on_hangup or api_hangup_hook?</p><p dir="ltr" class="">Generally though, the variables tend to be gone after the call hangs up, neither solution worked for me so I just get the info I need from the http post mod_xml_curl sends.</p><p dir="ltr" class="">Sincerely,<br class="">
Don Hawkins</p><p dir="ltr" class="">Sent from my NationPCS® Nexus 6.</p>
<div class="gmail_extra"><br class=""><div class="gmail_quote">On Sep 15, 2016 8:38 AM, "David Ponzone" <<a href="mailto:david.ponzone@ipeva.fr" class="">david.ponzone@ipeva.fr</a>> wrote:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">I am trying to run mod_curl after hangup, in order to sens some channel variables to a HTTP server:<div class=""><br class=""></div><div class=""><div class=""> <extension name="from_SIP_account_to_US_<wbr class="">TollFree"></div><div class=""> <condition field="destination_number" expression="^00(1800\d+)$"></div><div class=""> <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" class="">http://server/script.php?orig=<wbr class="">${sip_from_user}&dest=${<wbr class="">destination_number}&callstart=<wbr class="">${answered_time}&callend=${<wbr class="">hangup_time}</a> headers get"/></div><div class=""> <action application="set" data="session_in_hangup_hook=<wbr class="">true"/></div><div class=""> <action application="bridge" data="{sip_cid_type=none}<wbr class="">sofia/gateway/trunk.out/+$1"/></div><div class=""> </condition></div><div class=""> </extension></div><div class=""><br class=""></div><div class="">When I hangup, only sip_from_user and destination_number are correct.</div><div class="">answered_time contains 0 and hangup_time is empty</div><div class=""><br class=""></div><div class="">Am I missing something ?</div><div class=""><br class=""></div><div class="">Thank you</div><div class=""><br class=""></div><div class="">
<span style="border-collapse:separate;font-family:Helvetica;line-height:normal;border-spacing:0px" class=""><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" class=""><div style="word-wrap:break-word" class=""><div style="" class=""><span style="color:rgb(0,34,243);font-family:'Helvetica Neue'" class=""><font color="#1C00FF" class="">David Ponzone<font face="Arial" size="2" class=""><span class=""> </span> </font></font></span><span style="color:rgb(0,34,243);font-family:'Helvetica Neue'" class=""><font class="">Direction Technique</font></span></div><div class=""><div style="font-family:Arial;font-size:10px" class=""><font face="'Helvetica Neue'" class=""><font size="3" class=""><span style="font-size:13px" class="">email: <a href="mailto:david.ponzone@ipeva.fr" target="_blank" class="">david.ponzone@ipeva.fr</a></span></font></font></div><div style="font-family:Arial;font-size:10px" class=""><font face="'Helvetica Neue'" class=""><font size="3" class=""><span style="font-size:13px" class="">tel: 01 74 03 18 97</span></font></font></div><div style="font-family:Arial;font-size:10px" class=""><font face="'Helvetica Neue'" class=""><font size="3" class=""><span style="font-size:13px" class="">gsm: 06 66 98 76 34</span></font></font></div><div style="color:rgb(0,34,243);font-family:Arial;font-size:10px" class=""><font face="'Helvetica Neue'" class=""><br class=""></font></div><div style="color:rgb(0,34,243)" class=""><font color="#1C00FF" face="'Helvetica Neue'" class="">Service Client </font><font face="'Helvetica Neue'" class=""><font color="#FF0000" class="">IP</font></font><font color="#1C00FF" face="'Helvetica Neue'" class="">eva</font></div><div style="color:rgb(0,34,243);font-family:Arial;font-size:10px" class=""><font color="#1C00FF" face="'Helvetica Neue'" class=""><span style="font-family: Helvetica;" class=""><div class=""><font face="'Helvetica Neue'" class=""><font size="3" class=""><span style="font-size:13px" class="">tel: 0811 46 26 26</span></font></font></div><div class=""><font face="'Helvetica Neue'" size="3" class=""><span style="font-size:13px" class=""><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)" class=""><span style="text-decoration:underline" class=""><a class="">www.ipeva.fr</a></span><span style="color:rgb(101,104,149)" class=""> - <span style="color:rgb(0,34,243);text-decoration:underline" class=""><a class="">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)" class=""><span style="text-decoration:underline" class=""><br class=""></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)" class=""><span class=""><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)" class=""><i class="">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. </i><b class=""><i class="">IPeva</i></b><i class=""> 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.</i></div><div class=""><i class=""><br class=""></i></div></span></div></span></font></div></span></font></div></div></div></span><br class=""></span><br class="">
</div>
<br class=""></div></div><br class="">______________________________<wbr class="">______________________________<wbr class="">_____________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.<wbr class="">freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.<wbr class="">org</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="">FreeSWITCH-users@lists.<wbr class="">freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/<wbr class="">mailman/listinfo/freeswitch-<wbr class="">users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.<wbr class="">freeswitch.org/mailman/<wbr class="">options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class=""><a href="http://www.freeswitchsolutions.com" class="">http://www.freeswitchsolutions.com</a><br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></body></html>